06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Error Codes pNA+ Error Codes<br />

B.4 pNA+ Error Codes<br />

When the pNA+ network manager generates an error, an error code is loaded into an<br />

internal variable that can be read through the macro errno(). One errno variable<br />

exists for each task. If the return value of a pNA+ system call indicates an error,<br />

your application should examine the errno variable to determine the cause of the<br />

error. See the description of errno() on page 3-27 for more information.<br />

Table B-8 lists the error codes of the pNA+ network manager. Each listing includes<br />

the error code’s hexadecimal number, its mnemonic and description, and the system<br />

calls that can return it. The error code mnemonics are also defined in the file<br />

.<br />

TABLE B-8 pNA+ Error Codes<br />

Hex Mnemonic and Description <strong>System</strong> Call(s)<br />

0x5006 ENXIO: No such address. ioctl<br />

0x5009 EBADS: The socket descriptor is invalid. accept, bind,<br />

close, connect,<br />

getpeername,<br />

getsockname,<br />

getsockopt,<br />

ioctl, recv,<br />

recvfrom,<br />

recvmsg, select,<br />

send, sendmsg<br />

sendto,<br />

setsockopt,<br />

shr_socket,<br />

shutdown<br />

0x500D EACCESS: Permission denied. send, sendmsg,<br />

sendto<br />

0x5011 EEXIST: Duplicate entry exists. ioctl<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> B-39<br />

B

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

Saved successfully!

Ooh no, something went wrong!