1 #ifndef _PPC_ERRNO_H 2 #define _PPC_ERRNO_H 3 4 #define EPERM 1 /* Operation not permitted */ 5 #define ENOENT 2 /* No such file or directory */ 6 #define ESRCH 3 /* No such process */ 7 #define EINTR 4 /* Interrupted system call */ 8 #define EIO 5 /* I/O error */ 9 #define ENXIO 6 /* No such device or address */ 10 #define E2BIG 7 /* Arg list too long */ 11 #define ENOEXEC 8 /* Exec format error */ 12 #define EBADF 9 /* Bad file number */ 13 #define ECHILD 10 /* No child processes */ 14 #define EDEADLK 11 /* Resource deadlock would occur */ 15 #define ENOMEM 12 /* Out of memory */ 16 #define EACCES 13 /* Permission denied */ 17 #define EFAULT 14 /* Bad address */ 18 #define ENOTBLK 15 /* Block device required */ 19 #define EBUSY 16 /* Device or resource busy */ 20 #define EEXIST 17 /* File exists */ 21 #define EXDEV 18 /* Cross-device link */ 22 #define ENODEV 19 /* No such device */ 23 #define ENOTDIR 20 /* Not a directory */ 24 #define EISDIR 21 /* Is a directory */ 25 #define EINVAL 22 /* Invalid argument */ 26 #define ENFILE 23 /* File table overflow */ 27 #define EMFILE 24 /* Too many open files */ 28 #define ENOTTY 25 /* Not a typewriter */ 29 #define ETXTBSY 26 /* Text file busy */ 30 #define EFBIG 27 /* File too large */ 31 #define ENOSPC 28 /* No space left on device */ 32 #define ESPIPE 29 /* Illegal seek */ 33 #define EROFS 30 /* Read-only file system */ 34 #define EMLINK 31 /* Too many links */ 35 #define EPIPE 32 /* Broken pipe */ 36 #define EDOM 33 /* Math argument out of domain of func */ 37 #define ERANGE 34 /* Math result not representable */ 38 #define EAGAIN 35 /* Try again */ 39 #define EWOULDBLOCK EAGAIN /* Operation would block */ 40 #define EINPROGRESS 36 /* Operation now in progress */ 41 #define EALREADY 37 /* Operation already in progress */ 42 #define ENOTSOCK 38 /* Socket operation on non-socket */ 43 #define EDESTADDRREQ 39 /* Destination address required */ 44 #define EMSGSIZE 40 /* Message too long */ 45 #define EPROTOTYPE 41 /* Protocol wrong type for socket */ 46 #define ENOPROTOOPT 42 /* Protocol not available */ 47 #define EPROTONOSUPPORT 43 /* Protocol not supported */ 48 #define ESOCKTNOSUPPORT 44 /* Socket type not supported */ 49 #define EOPNOTSUPP 45 /* Operation not supported on transport endpoint */ 50 #define EPFNOSUPPORT 46 /* Protocol family not supported */ 51 #define EAFNOSUPPORT 47 /* Address family not supported by protocol */ 52 #define EADDRINUSE 48 /* Address already in use */ 53 #define EADDRNOTAVAIL 49 /* Cannot assign requested address */ 54 #define ENETDOWN 50 /* Network is down */ 55 #define ENETUNREACH 51 /* Network is unreachable */ 56 #define ENETRESET 52 /* Network dropped connection because of reset */ 57 #define ECONNABORTED 53 /* Software caused connection abort */ 58 #define ECONNRESET 54 /* Connection reset by peer */ 59 #define ENOBUFS 55 /* No buffer space available */ 60 #define EISCONN 56 /* Transport endpoint is already connected */ 61 #define ENOTCONN 57 /* Transport endpoint is not connected */ 62 #define ESHUTDOWN 58 /* Cannot send after transport endpoint shutdown */ 63 #define ETOOMANYREFS 59 /* Too many references: cannot splice */ 64 #define ETIMEDOUT 60 /* Connection timed out */ 65 #define ECONNREFUSED 61 /* Connection refused */ 66 #define ELOOP 62 /* Too many symbolic links encountered */ 67 #define ENAMETOOLONG 63 /* File name too long */ 68 #define EHOSTDOWN 64 /* Host is down */ 69 #define EHOSTUNREACH 65 /* No route to host */ 70 #define ENOTEMPTY 66 /* Directory not empty */ 71 72 #define EUSERS 68 /* Too many users */ 73 #define EDQUOT 69 /* Quota exceeded */ 74 #define ESTALE 70 /* Stale NFS file handle */ 75 #define EREMOTE 71 /* Object is remote */ 76 77 #define ENOLCK 77 /* No record locks available */ 78 #define ENOSYS 78 /* Function not implemented */ 79 80 #define ENOMSG 80 /* No message of desired type */ 81 #define EIDRM 81 /* Identifier removed */ 82 #define ENOSR 82 /* Out of streams resources */ 83 #define ETIME 83 /* Timer expired */ 84 #define EBADMSG 84 /* Not a data message */ 85 #define EPROTO 85 /* Protocol error */ 86 #define ENODATA 86 /* No data available */ 87 #define ENOSTR 87 /* Device not a stream */ 88 89 #define ENOPKG 92 /* Package not installed */ 90 91 #define EILSEQ 116 /* Illegal byte sequence */ 92 93 /* The following are just random noise.. */ 94 #define ECHRNG 44 /* Channel number out of range */ 95 #define EL2NSYNC 45 /* Level 2 not synchronized */ 96 #define EL3HLT 46 /* Level 3 halted */ 97 #define EL3RST 47 /* Level 3 reset */ 98 #define ELNRNG 48 /* Link number out of range */ 99 #define EUNATCH 49 /* Protocol driver not attached */ 100 #define ENOCSI 50 /* No CSI structure available */ 101 #define EL2HLT 51 /* Level 2 halted */ 102 #define EBADE 52 /* Invalid exchange */ 103 #define EBADR 53 /* Invalid request descriptor */ 104 #define EXFULL 54 /* Exchange full */ 105 #define ENOANO 55 /* No anode */ 106 #define EBADRQC 56 /* Invalid request code */ 107 #define EBADSLT 57 /* Invalid slot */ 108 #define EDEADLOCK 58 /* File locking deadlock error */ 109 #define EBFONT 59 /* Bad font file format */ 110 #define ENONET 64 /* Machine is not on the network */ 111 #define ENOLINK 67 /* Link has been severed */ 112 #define EADV 68 /* Advertise error */ 113 #define ESRMNT 69 /* Srmount error */ 114 #define ECOMM 70 /* Communication error on send */ 115 #define EMULTIHOP 72 /* Multihop attempted */ 116 #define EDOTDOT 73 /* RFS specific error */ 117 #define EOVERFLOW 75 /* Value too large for defined data type */ 118 #define ENOTUNIQ 76 /* Name not unique on network */ 119 #define EBADFD 77 /* File descriptor in bad state */ 120 #define EREMCHG 78 /* Remote address changed */ 121 #define ELIBACC 79 /* Can not access a needed shared library */ 122 #define ELIBBAD 80 /* Accessing a corrupted shared library */ 123 #define ELIBSCN 81 /* .lib section in a.out corrupted */ 124 #define ELIBMAX 82 /* Attempting to link in too many shared libraries */ 125 #define ELIBEXEC 83 /* Cannot exec a shared library directly */ 126 #define ERESTART 85 /* Interrupted system call should be restarted */ 127 #define ESTRPIPE 86 /* Streams pipe error */ 128 #define EUCLEAN 117 /* Structure needs cleaning */ 129 #define ENOTNAM 118 /* Not a XENIX named type file */ 130 #define ENAVAIL 119 /* No XENIX semaphores available */ 131 #define EISNAM 120 /* Is a named type file */ 132 #define EREMOTEIO 121 /* Remote I/O error */ 133 134 #endif