.TH "hwlocality_api_error_reporting" 3 "Version 2.13.0" "Hardware Locality (hwloc)" \" -*- nroff -*- .ad l .nh .SH NAME hwlocality_api_error_reporting \- Error reporting in the API .SH SYNOPSIS .br .PP .SH "Detailed Description" .PP Most functions in the hwloc API return an integer value\&. Unless documentated differently, they return 0 on success and -1 on error\&. Functions that return a pointer type return \fRNULL\fP on error\&. .PP \fRerrno\fP will be set to a meaningful value whenever possible\&. This includes the usual \fREINVAL\fP when invalid function parameters are passed or \fRENOMEM\fP when an internal allocation fails\&. Some specific \fRerrno\fP value are also used, for instance for binding errors as documented in \fBCPU binding\fP\&. .PP Some modules describe return values of their functions in their introduction, for instance in \fBThe bitmap API\fP\&. .SH "Author" .PP Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code\&.