Pristine Ack-5.5
[Ack-5.5.git] / lang / cem / libcc.ansi / headers / sys / errno.h
1 /*
2  * sys/errno.h - error numbers
3  */
4 /* $Id: errno.h,v 1.4 1994/06/24 11:41:56 ceriel Exp $ */
5
6 #if     !defined(_SYS_ERRNO_H)
7 #define _SYS_ERRNO_H
8
9 #define EPERM           1       /* Not owner */
10 #define ENOENT          2       /* No such file or directory */
11 #define ESRCH           3       /* No such process */
12 #define EINTR           4       /* Interrupted system call */
13 #define EIO             5       /* I/O error */
14 #define ENXIO           6       /* No such device or address */
15 #define E2BIG           7       /* Arg list too long */
16 #define ENOEXEC         8       /* Exec format error */
17 #define EBADF           9       /* Bad file number */
18 #define ECHILD          10      /* No children */
19 #define EAGAIN          11      /* No more processes */
20 #define ENOMEM          12      /* Not enough core */
21 #define EACCES          13      /* Permission denied */
22 #define EFAULT          14      /* Bad address */
23 #define ENOTBLK         15      /* Block device required */
24 #define EBUSY           16      /* Mount device busy */
25 #define EEXIST          17      /* File exists */
26 #define EXDEV           18      /* Cross-device link */
27 #define ENODEV          19      /* No such device */
28 #define ENOTDIR         20      /* Not a directory*/
29 #define EISDIR          21      /* Is a directory */
30 #define EINVAL          22      /* Invalid argument */
31 #define ENFILE          23      /* File table overflow */
32 #define EMFILE          24      /* Too many open files */
33 #define ENOTTY          25      /* Not a typewriter */
34 #define ETXTBSY         26      /* Text file busy */
35 #define EFBIG           27      /* File too large */
36 #define ENOSPC          28      /* No space left on device */
37 #define ESPIPE          29      /* Illegal seek */
38 #define EROFS           30      /* Read-only file system */
39 #define EMLINK          31      /* Too many links */
40 #define EPIPE           32      /* Broken pipe */
41
42 #if     defined(__USG)
43 /* Only ENOMSG, EIDRM and EDEADLK are documented */
44 #define ENOMSG          35      /* No message of desired type */
45 #define EIDRM           36      /* Identifier Removed */
46 #define ECHRNG          37      /* Channel number out of range */
47 #define EL2NSYNC        38      /* Level 2 not synchronized */
48 #define EL3HLT          39      /* Level 3 halted */
49 #define EL3RST          40      /* Level 3 reset */
50 #define ELNRNG          41      /* Link number out of range */
51 #define EUNATCH         42      /* Protocol driver not attached */
52 #define ENOCSI          43      /* No CSI structure available */
53 #define EL2HLT          44      /* Level 2 halted */
54 #define EDEADLK         45      /* DeadLock */
55 #endif  /* __USG */
56
57 #if     defined(__BSD4_2)
58 /* non-blocking and interrupt i/o */
59 #define EWOULDBLOCK     35      /* Operation would block */
60 #define EINPROGRESS     36      /* Operation now in progress */
61 #define EALREADY        37      /* Operation already in progress */
62 /* ipc/network software */
63
64         /* argument errors */
65 #define ENOTSOCK        38      /* Socket operation on non-socket */
66 #define EDESTADDRREQ    39      /* Destination address required */
67 #define EMSGSIZE        40      /* Message too long */
68 #define EPROTOTYPE      41      /* Protocol wrong type for socket */
69 #define ENOPROTOOPT     42      /* Protocol not available */
70 #define EPROTONOSUPPORT 43      /* Protocol not supported */
71 #define ESOCKTNOSUPPORT 44      /* Socket type not supported */
72 #define EOPNOTSUPP      45      /* Operation not supported on socket */
73 #define EPFNOSUPPORT    46      /* Protocol family not supported */
74 #define EAFNOSUPPORT    47      /* Address family not supported by protocol family */
75 #define EADDRINUSE      48      /* Address already in use */
76 #define EADDRNOTAVAIL   49      /* Can't assign requested address */
77
78         /* operational errors */
79 #define ENETDOWN        50      /* Network is down */
80 #define ENETUNREACH     51      /* Network is unreachable */
81 #define ENETRESET       52      /* Network dropped connection on reset */
82 #define ECONNABORTED    53      /* Software caused connection abort */
83 #define ECONNRESET      54      /* Connection reset by peer */
84 #define ENOBUFS         55      /* No buffer space available */
85 #define EISCONN         56      /* Socket is already connected */
86 #define ENOTCONN        57      /* Socket is not connected */
87 #define ESHUTDOWN       58      /* Can't send after socket shutdown */
88 /* ETOOMANYREFS is not documented */
89 #define ETOOMANYREFS    59      /* Too many references: can't splice */
90 #define ETIMEDOUT       60      /* Connection timed out */
91 #define ECONNREFUSED    61      /* Connection refused */
92  
93         /* */
94 #define ELOOP           62      /* Too many levels of symbolic links */
95 #define ENAMETOOLONG    63      /* File name too long */
96  
97 /* In BSD4.2, ENOTEMPTY is defined as 64. */
98 /* Just use BSD4.3 & Sun UNIX 4.2 definitions */
99 #define EHOSTDOWN       64      /* Host is down */
100 #define EHOSTUNREACH    65      /* No route to host */
101 #define ENOTEMPTY       66      /* Directory not empty */
102
103 /* quotas & mush */
104 /* EPROCLIM and EUSERS are not documented */
105 #define EPROCLIM        67      /* Too many processes */
106 #define EUSERS          68      /* Too many users */
107 #define EDQUOT          69      /* Disc quota exceeded */
108
109 /* Network File System */
110 #define ESTALE          70      /* Stale NFS file handle */
111 #define EREMOTE         71      /* Too many levels of remote in path */
112
113 /* streams */
114 /* only ENOMSG is documented */
115 #define ENOSTR          72      /* Device is not a stream */
116 #define ETIME           73      /* Timer expired */
117 #define ENOSR           74      /* Out of streams resources */
118 #define ENOMSG          75      /* No message of desired type */
119 #define EBADMSG         76      /* Trying to read unreadable message */
120
121 #define EIDRM           77      /* Identifier removed */
122
123 /* SystemV Record Locking */
124 #define EDEADLK         78      /* Deadlock condition. */
125 #define ENOLCK          79      /* No record locks available. */
126
127 #endif  /* __BSD4_2 */
128
129 #if     defined(_POSIX_SOURCE)
130 #if     defined(_MINIX)
131 #define EDEADLK         35      /* resource deadlock avoided */
132 #define ENAMETOOLONG    36      /* file name too long */
133 #define ENOLCK          37      /* no locks available */
134 #define ENOSYS          38      /* function not implemented */
135 #define ENOTEMPTY       39      /* directory not empty */
136
137 #define ELOCKED         101     /* can't send message */
138 #define EBADCALL        102     /* error on send/recieve */
139 #define ELONGSTRING     103     /* string too long */
140 #endif
141 /* Room for other POSIX implementations */
142 #endif
143
144 #endif  /* _SYS_ERRNO_H */