06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

B Error Codes<br />

This appendix is a collection of tables of <strong>pSO<strong>System</strong></strong> error codes, intended to help<br />

you identify which system call returned a specific error code. Each table lists the<br />

codes belonging to a single <strong>pSO<strong>System</strong></strong> component (i.e., pSOS+, pHILE+, etc.) The<br />

table entry for each code includes a hexadecimal number, a brief description (including<br />

the error mnemonic), and a list of the system calls that can return the error.<br />

<strong>pSO<strong>System</strong></strong> components return error codes in two ways:<br />

■ pSOS+ and pHILE+ return error codes as function return values.<br />

■ pREPC+, pNA+, and pRPC+ load the error code into an internal variable that<br />

can be read through the macro errno(). If the return value of a pREPC+,<br />

pNA+, or pRPC+ system call indicates an error, your application should examine<br />

the errno variable to determine the cause of the error. See the description of<br />

errno() on page 3-27 for more information.<br />

Table B-1 lists the error code ranges of <strong>pSO<strong>System</strong></strong> components, libraries, and drivers.<br />

Error code values are in hexadecimal notation, with a space inserted every byte<br />

for readability.<br />

TABLE B-1 Error Code Origins<br />

Error Code Range Origin Defined in Refer to page<br />

From To<br />

00 00 00 01 00 00 0F FF pSOS+, pSOS+m B-4<br />

00 00 10 00 00 00 1F FF (reserved)<br />

00 00 20 00 00 00 2F FF pHILE+ B-15<br />

B-1<br />

B

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!