]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/aix/bits/errno.h
Update.
[thirdparty/glibc.git] / sysdeps / unix / sysv / aix / bits / errno.h
CommitLineData
f80ea15d 1/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
7e836977
UD
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
7e836977
UD
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 12 Lesser General Public License for more details.
7e836977 13
41bdb6e2
AJ
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
7e836977
UD
18
19/* This file defines the `errno' constants. */
20
21#if !defined __Emath_defined && (defined _ERRNO_H || defined __need_Emath)
22#undef __need_Emath
23#define __Emath_defined 1
24
25#endif
26
27#ifdef _ERRNO_H
28# undef EDOM
29# undef EILSEQ
30# undef ERANGE
31
32# define EPERM 1 /* Operation not permitted. */
33# define ENOENT 2 /* No such file or directory. */
34# define ESRCH 3 /* No such process. */
35# define EINTR 4 /* interrupted system call. */
36# define EIO 5 /* I/O error. */
37# define ENXIO 6 /* No such device or address. */
38# define E2BIG 7 /* Arg list too long. */
39# define ENOEXEC 8 /* Exec format error. */
40# define EBADF 9 /* Bad file descriptor. */
41# define ECHILD 10 /* No child processes. */
42# define EAGAIN 11 /* Resource temporarily unavailable. */
43# define ENOMEM 12 /* Not enough space. */
44# define EACCES 13 /* Permission denied. */
45# define EFAULT 14 /* Bad address. */
46# define ENOTBLK 15 /* Block device required. */
47# define EBUSY 16 /* Resource busy. */
48# define EEXIST 17 /* File exists. */
49# define EXDEV 18 /* Improper link. */
50# define ENODEV 19 /* No such device. */
51# define ENOTDIR 20 /* Not a directory. */
52# define EISDIR 21 /* Is a directory. */
53# define EINVAL 22 /* Invalid argument. */
54# define ENFILE 23 /* Too many open files in system. */
55# define EMFILE 24 /* Too many open files. */
56# define ENOTTY 25 /* Inappropriate I/O control operation. */
57# define ETXTBSY 26 /* Text file busy. */
58# define EFBIG 27 /* File too large. */
59# define ENOSPC 28 /* No space left on device. */
60# define ESPIPE 29 /* Invalid seek. */
61# define EROFS 30 /* Read only file system. */
62# define EMLINK 31 /* Too many links. */
63# define EPIPE 32 /* Broken pipe. */
64# define EDOM 33 /* Domain error within math function. */
65# define ERANGE 34 /* Result too large. */
66# define ENOMSG 35 /* No message of desired type. */
67# define EIDRM 36 /* Identifier removed. */
68# define ECHRNG 37 /* Channel number out of range. */
69# define EL2NSYNC 38 /* Level 2 not synchronized. */
70# define EL3HLT 39 /* Level 3 halted. */
71# define EL3RST 40 /* Level 3 reset. */
72# define ELNRNG 41 /* Link number out of range. */
73# define EUNATCH 42 /* Protocol driver not attached. */
74# define ENOCSI 43 /* No CSI structure available. */
75# define EL2HLT 44 /* Level 2 halted. */
76# define EDEADLK 45 /* Resource deadlock avoided. */
77# define ENOTREADY 46 /* Device not ready. */
78# define EWRPROTECT 47 /* Write-protected media. */
79# define EFORMAT 48 /* Unformatted media. */
80# define ENOLCK 49 /* No locks available. */
81# define ENOCONNECT 50 /* No connection. */
82# define ESTALE 52 /* No filesystem. */
83# define EDIST 53 /* Old, currently unused AIX errno. */
84# if __USE_XOPEN_EXTENDED
85# define EWOULDBLOCK EAGAIN /* Operation would block. */
86# else /* __USE_XOPEN_EXTENDED */
87# define EWOULDBLOCK 54
88# endif /* __USE_XOPEN_EXTENDED */
89# define EINPROGRESS 55 /* Operation now in progress. */
90# define EALREADY 56 /* Operation already in progress. */
91# define ENOTSOCK 57 /* Socket operation on non-socket. */
92# define EDESTADDRREQ 58 /* Destination address required. */
93# define EDESTADDREQ EDESTADDRREQ /* Destination address required. */
94# define EMSGSIZE 59 /* Message too long. */
95# define EPROTOTYPE 60 /* Protocol wrong type for socket. */
96# define ENOPROTOOPT 61 /* Protocol not available. */
97# define EPROTONOSUPPORT 62 /* Protocol not supported. */
98# define ESOCKTNOSUPPORT 63 /* Socket type not supported. */
99# define EOPNOTSUPP 64 /* Operation not supported on socket. */
100# define EPFNOSUPPORT 65 /* Protocol family not supported. */
f80ea15d
UD
101# define EAFNOSUPPORT 66 /* Address family not supported by protocol
102 family. */
7e836977
UD
103# define EADDRINUSE 67 /* Address already in use. */
104# define EADDRNOTAVAIL 68 /* Can't assign requested address. */
105# define ENETDOWN 69 /* Network is down. */
106# define ENETUNREACH 70 /* Network is unreachable. */
107# define ENETRESET 71 /* Network dropped connection on reset. */
108# define ECONNABORTED 72 /* Software caused connection abort. */
109# define ECONNRESET 73 /* Connection reset by peer. */
110# define ENOBUFS 74 /* No buffer space available. */
111# define EISCONN 75 /* Socket is already connected. */
112# define ENOTCONN 76 /* Socket is not connected. */
113# define ESHUTDOWN 77 /* Can't send after socket shutdown. */
114# define ETIMEDOUT 78 /* Connection timed out. */
115# define ECONNREFUSED 79 /* Connection refused. */
116# define EHOSTDOWN 80 /* Host is down. */
117# define EHOSTUNREACH 81 /* No route to host. */
118# define ERESTART 82 /* Restart the system call. */
119# define EPROCLIM 83 /* Too many processes. */
120# define EUSERS 84 /* Too many users. */
121# define ELOOP 85 /* Too many levels of symbolic links. */
122# define ENAMETOOLONG 86 /* File name too long. */
123# define ENOTEMPTY EEXIST /* Directory not empty. */
124# define EDQUOT 88 /* Disc quota exceeded. */
125# define ECORRUPT 89 /* Invalid file system control data. */
126# define EREMOTE 93 /* Item is not local to host. */
127# define ENOSYS 109 /* Function not implemented POSIX. */
128# define EMEDIA 110 /* Media surface error. */
129# define ESOFT 111 /* I/O completed, but needs relocation. */
130# define ENOATTR 112 /* No attribute found. */
131# define ESAD 113 /* Security authentication denied. */
132# define ENOTRUST 114 /* Not a trusted program. */
133# define ETOOMANYREFS 115 /* Too many references: can't splice. */
134# define EILSEQ 116 /* Invalid wide character. */
135# define ECANCELED 117 /* Asynchronous i/o cancelled. */
136# define ENOSR 118 /* Temp out of streams resources. */
137# define ETIME 119 /* I_STR ioctl timed out. */
138# define EBADMSG 120 /* Wrong message type at stream head. */
139# define EPROTO 121 /* STREAMS protocol error. */
140# define ENODATA 122 /* No message ready at stream head. */
141# define ENOSTR 123 /* Fd is not a stream. */
142# define ECLONEME ERESTART /* This is the way we clone a stream. */
143# define ENOTSUP 124 /* POSIX threads unsupported value. */
144# define EMULTIHOP 125 /* Multihop is not allowed. */
145# define ENOLINK 126 /* The link has been severed. */
146# define EOVERFLOW 127 /* Value too large to be stored in data type.*/
7e836977
UD
147#endif
148
149#if !defined _ERRNO_H && defined __need_Emath
150# define EDOM 33 /* Math argument out of domain of function. */
151# define EILSEQ 116 /* Illegal byte sequence. */
152# define ERANGE 34 /* Math result not representable. */
153#endif /* !_ERRNO_H && __need_Emath */