home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
GCC
/
BIN
/
gcc_2.5.8_cmds.lzh
/
DEFS
/
GCC2
/
errno.h
< prev
next >
Wrap
Text File
|
1994-03-21
|
2KB
|
58 lines
/* SYSTEM call error numbers.
* May be found in 'errno' after an error has occurred.
*
* These should be obtained from sys.l somehow.
*
*/
#ifndef E_PNNF
#ifndef _OSK
#define _OSK
#endif
#ifdef __cplusplus
extern "C" {
#endif
#include_next <errno.h>
#ifdef __cplusplus
}
#endif
#endif
#ifndef EIO
/* Unix Spezial */
#define EIO 5 /* I/O error */
#define ENXIO 6 /* No such device or address */
#define EXDEV 18 /* Cross-Link */
#define EMFILE 24 /* to many open files */
#define ENOSPC 248 /* No space left on device */
#define ENOMEM 0xfffd /* Not enough core. */
#define EPIPE 0xfffe /* Broken Pipe */
#define EAGAIN 0x500
#ifndef __STDC__
#define EBADF E_BPNUM /* invalid file number */
#define EINVAL E_ILLARG /* invalid argument */
#define EFAULT E_BPADDR /* Bad Adress */
#define ENOENT E_PNNF /* File not found */
#define ENOTTY E_BMODE /* Bad Mode */
#define ENOEXEC E_BPNNF /* File not found */
#define EINTR E_ILLFNC /* Unprocessed Signal Pending (obsolescent) */
#define EACCES E_FNA /* Permission denied */
#define EEXIST E_CEF /* File exists */
#define EPERM E_PERMIT /* Not Super-User */
#define ESRCH E_IPRCID /* No such process */
#define ENOTDIR E_FNA /* Bad Path number fuer not Directory */
#else
#define EBADF EOS_BPNUM /* invalid file number */
#define EINVAL EOS_ILLARG /* invalid argument */
#define EFAULT EOS_BPADDR /* Bad Adress */
#define ENOENT EOS_PNNF /* File not found */
#define ENOTTY EOS_BMODE /* Bad Mode */
#define ENOEXEC EOS_BPNNF /* File not found */
#define EINTR EOS_ILLFNC /* Unprocessed Signal Pending (obsolescent) */
#define EACCES EOS_FNA /* Permission denied */
#define EEXIST EOS_CEF /* File exists */
#define EPERM EOS_PERMIT /* Not Super-User */
#define ESRCH EOS_IPRCID /* No such process */
#define ENOTDIR EOS_FNA /* Bad Path number fuer not Directory */
#endif
#endif