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.

pREPC+ Error Codes Error Codes<br />

B.3 pREPC+ Error Codes<br />

When a pREPC+ system call generates an error, an error code is loaded into an internal<br />

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

exists for each task. If the return value of a pREPC+ 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-7 lists the error codes of the pREPC+ library and component. Each listing<br />

includes the error code’s hexadecimal number, its mnemonic, and a brief description.<br />

The error code mnemonics are also defined in .<br />

For practical reasons, system calls are not listed, because nearly every pREPC+ error<br />

code can be returned by all pREPC+ system calls. In addition, errors in other<br />

<strong>pSO<strong>System</strong></strong> components or device drivers can be reported by pREPC+ system calls.<br />

TABLE B-7 pREPC+ Error Codes<br />

Hex Mnemonic and Description<br />

0x3001 EMOPEN: Maximum number of files are open.<br />

0x3002 ERANGE: Converted value out of range.<br />

0x3003 EBASE: Invalid radix base specified.<br />

0x3005 EACCESS: File access violation.<br />

0x3006 EMODE: Unrecognized mode specified.<br />

0x3007 EINVAL: Operation not allowed on this type of file.<br />

0x3008 EPHILE: Attempted a disk file operation without the pHILE+ file system<br />

manager installed.<br />

0x3009 EINVTYPE: Invalid buffer type.<br />

0x300a EINVSIZE: Invalid buffer size.<br />

0x300b EPRRW: Previous read/write; cannot setvbuf.<br />

0x300d ENAN: Invalid floating point number.<br />

0x3F01 LC_FAT_CONFIG: Insufficient memory to hold pREPC+ data.<br />

0x3F03 LC_FAT_STDIO: Cannot open standard I/O streams.<br />

0x3F0E LC_FAT_CHKSUM: Corrupted ROM; checksum error.<br />

B-38 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

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

Saved successfully!

Ooh no, something went wrong!