home *** CD-ROM | disk | FTP | other *** search
- /* errno.h
-
- For use with the GNU compilers and the SharedCLibrary.
- (c) Copyright 1997, Nick Burrett. */
- #ifndef __ERRNO_H
- #define __ERRNO_H
-
- #ifndef errno
- #define errno __errno
- extern volatile int errno;
- #endif
-
- /* Domain error. An input argument is outside the domain over
- which the mathematical function is defined. */
- #define EDOM 1
-
- /* Range error. The result of a function cannot be represented
- as a double floating point value. */
- #define ERANGE 2
-
- /* An unrecognised signal is caught by the default signal handler. */
- #define ESIGNUM 3
-
- /* Operation not permitted. */
- #define EPERM 4
- /* No such file or directory. */
- #define ENOENT 5
- /* No such process. */
- #define ESRCH 6
- /* Interrupted function call. */
- #define EINTR 7
- /* Input/output error. */
- #define EIO 8
- /* No such device or address (device not configured). */
- #define ENXIO 9
- /* Argument list too long. */
- #define E2BIG 10
- /* Invalid executable file format (exec format error). */
- #define ENOEXEC 11
- /* Bad file descriptor. */
- #define EBADF 12
- /* There are no child processes. */
- #define ECHILD 13
- /* Resource deadlock avoided. */
- #define EDEADLK 14
- /* Cannot allocate memory. */
- #define ENOMEM 15
- /* Permission denied.
- File permissions do not allow the attempted operation. */
- #define EACCES 16
- /* Bad address. An invalid pointer was detected. */
- #define EFAULT 17
- /* Block device required. */
- #define ENOTBLK 18
- /* Device busy. Caused by a system resource that can't be shared
- is already in use. */
- #define EBUSY 19
- /* File exists. */
- #define EEXIST 20
- /* Invalid cross-device link. */
- #define EXDEV 21
- /* Operation not supported by device. */
- #define ENODEV 22
- /* Not a directory. */
- #define ENOTDIR 23
- /* Is a directory. */
- #define EISDIR 24
- /* Invalid argument. */
- #define EINVAL 25
- /* Too many open files in system. */
- #define ENFILE 26
- /* Too many open files. */
- #define EMFILE 27
- /* Inappropriate ioctl for device. */
- #define ENOTTY 28
- /* Text file busy. */
- #define ETXTBSY 29
- /* File too large. */
- #define EFBIG 30
- /* No space left on device. */
- #define ENOSPC 31
- /* Illegal seek. */
- #define ESPIPE 32
- /* Read-only filing system. */
- #define EROFS 33
- /* Too many links. */
- #define EMLINK 34
- /* Broken pipe. */
- #define EPIPE 35
- /* Operation would block. */
- #define EWOULDBLOCK 36
- /* Operation now in progress. */
- #define EINPROGRESS 37
- /* Operation already in progress. */
- #define EALREADY 38
- /* Socket operation on non-socket. */
- #define ENOTSOCK 39
- /* Destination address required. */
- #define EDESTADDRREQ 40
- /* Message too long. */
- #define EMSGSIZE 40
- /* Protocol wrong type for socket. */
- #define EPROTOTYPE 41
- /* Option not supported by protocol. */
- #define ENOPROTOOPT 42
- /* Protocol not supported */
- #define EPROTONOSUPPORT 43
- /* Socket type not supported */
- #define ESOCKTNOSUPPORT 44
- /* Operation not supported */
- #define EOPNOTSUPP 45
- /* Protocol family not supported. */
- #define EPFNOSUPPORT 46
- /* Address family not supported by protocol family. */
- #define EAFNOSUPPORT 47
- /* Address already in use */
- #define EADDRINUSE 48
- /* Can't assign requested address. */
- #define EADDRNOTAVAIL 49
- /* Network is down. */
- #define ENETDOWN 50
- /* Network unreachable */
- #define ENETUNREACH 51
- /* Network dropped connection on reset. */
- #define ENETRESET 52
- /* Software caused connection abort. */
- #define ECONNABORTED 53
- /* Connection reset by peer */
- #define ECONNRESET 54
- /* No buffer space available */
- #define ENOBUFS 55
- /* Socket is already connected */
- #define EISCONN 56
- /* Socked is not connected */
- #define ENOTCONN 57
- /* Can't send after socket shutdown. */
- #define ESHUTDOWN 58
- /* Too many references: can't splice. */
- #define ETOOMANYREFS 59
- /* Connection timed out. */
- #define ETIMEDOUT 60
- /* Connection refused */
- #define ECONNREFUSED 61
- /* Too many levels of symbolic links. */
- #define ELOOP 62
- /* File name too long. */
- #define ENAMETOOLONG 63
- /* Host is down. */
- #define EHOSTDOWN 64
- /* Host unreachable. */
- #define EHOSTUNREACH 65
- /* Directory not empty. */
- #define ENOTEMPTY 66
- /* Too many processes. */
- #define EPROCLIM 67
- /* Too many users. */
- #define EUSERS 68
- /* Disc quota exceeded. */
- #define EDQUOT 69
- /* Stale NFS file handle. */
- #define ESTALE 70
- /* Too many levels of remote in path. */
- #define EREMOTE 71
- /* RPC struct is bad. */
- #define EBADRPC 72
- /* RPC version wrong. */
- #define ERPCMISMATCH 73
- /* RPC program not available. */
- #define EPROGUNAVAIL 74
- /* RPC program version wrong. */
- #define EPROGMISMATCH 75
- /* RPC bad procedure for program. */
- #define EPROCUNAVAIL 76
- /* No locks available. */
- #define ENOLCK 77
- /* Function not implemented. */
- #define ENOSYS 78
- /* Inappropriate file type or format. */
- #define EFTYPE 79
- /* Authentication error. */
- #define EAUTH 80
- /* Need authenticator. */
- #define ENEEDAUTH 81
- /* Resource temporarily unavailable. */
- #define EAGAIN 82
- /* Inappropriate operation for background process. */
- #define EBACKGROUND 100
- /* Translator died. */
- #define EDIED 101
- /* ? */
- #define ED 102
- /* A pretty bad error. */
- #define EGREGIOUS 103
- /* ? */
- #define EIEIO 104
- /* Gratuitous error. */
- #define EGRATUITOUS 105
-
- /* EOPSYS was originally called EOS but this caused problems. */
- #define EOPSYS 106
- #define ESIG 107
-
- #define __SYS_NERR 107
-
- #endif
-