annotate lib/errno.in.h @ 273:88bbffa404ea 2.5 2.5

Updated version for release
author lost
date Sun, 16 Aug 2009 17:18:11 +0000
parents d5392bb5da3c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
272
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1 /* A POSIX-like <errno.h>.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
2
d5392bb5da3c Added generated files
lost
parents:
diff changeset
3 Copyright (C) 2008 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
5 This program is free software; you can redistribute it and/or modify
d5392bb5da3c Added generated files
lost
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
d5392bb5da3c Added generated files
lost
parents:
diff changeset
7 the Free Software Foundation; either version 3, or (at your option)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
8 any later version.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
9
d5392bb5da3c Added generated files
lost
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
d5392bb5da3c Added generated files
lost
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d5392bb5da3c Added generated files
lost
parents:
diff changeset
13 GNU General Public License for more details.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
14
d5392bb5da3c Added generated files
lost
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
d5392bb5da3c Added generated files
lost
parents:
diff changeset
16 along with this program; if not, write to the Free Software Foundation,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
18
d5392bb5da3c Added generated files
lost
parents:
diff changeset
19 #ifndef _GL_ERRNO_H
d5392bb5da3c Added generated files
lost
parents:
diff changeset
20
d5392bb5da3c Added generated files
lost
parents:
diff changeset
21 #if __GNUC__ >= 3
d5392bb5da3c Added generated files
lost
parents:
diff changeset
22 @PRAGMA_SYSTEM_HEADER@
d5392bb5da3c Added generated files
lost
parents:
diff changeset
23 #endif
d5392bb5da3c Added generated files
lost
parents:
diff changeset
24
d5392bb5da3c Added generated files
lost
parents:
diff changeset
25 /* The include_next requires a split double-inclusion guard. */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
26 #@INCLUDE_NEXT@ @NEXT_ERRNO_H@
d5392bb5da3c Added generated files
lost
parents:
diff changeset
27
d5392bb5da3c Added generated files
lost
parents:
diff changeset
28 #ifndef _GL_ERRNO_H
d5392bb5da3c Added generated files
lost
parents:
diff changeset
29 #define _GL_ERRNO_H
d5392bb5da3c Added generated files
lost
parents:
diff changeset
30
d5392bb5da3c Added generated files
lost
parents:
diff changeset
31
d5392bb5da3c Added generated files
lost
parents:
diff changeset
32 /* On native Windows platforms, many macros are not defined. */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
33 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
d5392bb5da3c Added generated files
lost
parents:
diff changeset
34
d5392bb5da3c Added generated files
lost
parents:
diff changeset
35 /* POSIX says that EAGAIN and EWOULDBLOCK may have the same value. */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
36 # define EWOULDBLOCK EAGAIN
d5392bb5da3c Added generated files
lost
parents:
diff changeset
37
d5392bb5da3c Added generated files
lost
parents:
diff changeset
38 /* Values >= 100 seem safe to use. */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
39 # define ETXTBSY 100
d5392bb5da3c Added generated files
lost
parents:
diff changeset
40 # define GNULIB_defined_ETXTBSY 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
41
d5392bb5da3c Added generated files
lost
parents:
diff changeset
42 /* These are intentionally the same values as the WSA* error numbers, defined
d5392bb5da3c Added generated files
lost
parents:
diff changeset
43 in <winsock2.h>. */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
44 # define EINPROGRESS 10036
d5392bb5da3c Added generated files
lost
parents:
diff changeset
45 # define EALREADY 10037
d5392bb5da3c Added generated files
lost
parents:
diff changeset
46 # define ENOTSOCK 10038
d5392bb5da3c Added generated files
lost
parents:
diff changeset
47 # define EDESTADDRREQ 10039
d5392bb5da3c Added generated files
lost
parents:
diff changeset
48 # define EMSGSIZE 10040
d5392bb5da3c Added generated files
lost
parents:
diff changeset
49 # define EPROTOTYPE 10041
d5392bb5da3c Added generated files
lost
parents:
diff changeset
50 # define ENOPROTOOPT 10042
d5392bb5da3c Added generated files
lost
parents:
diff changeset
51 # define EPROTONOSUPPORT 10043
d5392bb5da3c Added generated files
lost
parents:
diff changeset
52 # define ESOCKTNOSUPPORT 10044 /* not required by POSIX */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
53 # define EOPNOTSUPP 10045
d5392bb5da3c Added generated files
lost
parents:
diff changeset
54 # define EPFNOSUPPORT 10046 /* not required by POSIX */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
55 # define EAFNOSUPPORT 10047
d5392bb5da3c Added generated files
lost
parents:
diff changeset
56 # define EADDRINUSE 10048
d5392bb5da3c Added generated files
lost
parents:
diff changeset
57 # define EADDRNOTAVAIL 10049
d5392bb5da3c Added generated files
lost
parents:
diff changeset
58 # define ENETDOWN 10050
d5392bb5da3c Added generated files
lost
parents:
diff changeset
59 # define ENETUNREACH 10051
d5392bb5da3c Added generated files
lost
parents:
diff changeset
60 # define ENETRESET 10052
d5392bb5da3c Added generated files
lost
parents:
diff changeset
61 # define ECONNABORTED 10053
d5392bb5da3c Added generated files
lost
parents:
diff changeset
62 # define ECONNRESET 10054
d5392bb5da3c Added generated files
lost
parents:
diff changeset
63 # define ENOBUFS 10055
d5392bb5da3c Added generated files
lost
parents:
diff changeset
64 # define EISCONN 10056
d5392bb5da3c Added generated files
lost
parents:
diff changeset
65 # define ENOTCONN 10057
d5392bb5da3c Added generated files
lost
parents:
diff changeset
66 # define ESHUTDOWN 10058 /* not required by POSIX */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
67 # define ETOOMANYREFS 10059 /* not required by POSIX */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
68 # define ETIMEDOUT 10060
d5392bb5da3c Added generated files
lost
parents:
diff changeset
69 # define ECONNREFUSED 10061
d5392bb5da3c Added generated files
lost
parents:
diff changeset
70 # define ELOOP 10062
d5392bb5da3c Added generated files
lost
parents:
diff changeset
71 # define EHOSTDOWN 10064 /* not required by POSIX */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
72 # define EHOSTUNREACH 10065
d5392bb5da3c Added generated files
lost
parents:
diff changeset
73 # define EPROCLIM 10067 /* not required by POSIX */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
74 # define EUSERS 10068 /* not required by POSIX */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
75 # define EDQUOT 10069
d5392bb5da3c Added generated files
lost
parents:
diff changeset
76 # define ESTALE 10070
d5392bb5da3c Added generated files
lost
parents:
diff changeset
77 # define EREMOTE 10071 /* not required by POSIX */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
78 # define GNULIB_defined_ESOCK 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
79
d5392bb5da3c Added generated files
lost
parents:
diff changeset
80 # endif
d5392bb5da3c Added generated files
lost
parents:
diff changeset
81
d5392bb5da3c Added generated files
lost
parents:
diff changeset
82
d5392bb5da3c Added generated files
lost
parents:
diff changeset
83 /* On OSF/1 5.1, when _XOPEN_SOURCE_EXTENDED is not defined, the macros
d5392bb5da3c Added generated files
lost
parents:
diff changeset
84 EMULTIHOP, ENOLINK, EOVERFLOW are not defined. */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
85 # if @EMULTIHOP_HIDDEN@
d5392bb5da3c Added generated files
lost
parents:
diff changeset
86 # define EMULTIHOP @EMULTIHOP_VALUE@
d5392bb5da3c Added generated files
lost
parents:
diff changeset
87 # define GNULIB_defined_EMULTIHOP 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
88 # endif
d5392bb5da3c Added generated files
lost
parents:
diff changeset
89 # if @ENOLINK_HIDDEN@
d5392bb5da3c Added generated files
lost
parents:
diff changeset
90 # define ENOLINK @ENOLINK_VALUE@
d5392bb5da3c Added generated files
lost
parents:
diff changeset
91 # define GNULIB_defined_ENOLINK 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
92 # endif
d5392bb5da3c Added generated files
lost
parents:
diff changeset
93 # if @EOVERFLOW_HIDDEN@
d5392bb5da3c Added generated files
lost
parents:
diff changeset
94 # define EOVERFLOW @EOVERFLOW_VALUE@
d5392bb5da3c Added generated files
lost
parents:
diff changeset
95 # define GNULIB_defined_EOVERFLOW 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
96 # endif
d5392bb5da3c Added generated files
lost
parents:
diff changeset
97
d5392bb5da3c Added generated files
lost
parents:
diff changeset
98
d5392bb5da3c Added generated files
lost
parents:
diff changeset
99 /* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
100 EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
101 Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
102 HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
103
d5392bb5da3c Added generated files
lost
parents:
diff changeset
104 Note: When one of these systems defines some of these macros some day,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
105 binaries will have to be recompiled so that they recognizes the new
d5392bb5da3c Added generated files
lost
parents:
diff changeset
106 errno values from the system. */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
107
d5392bb5da3c Added generated files
lost
parents:
diff changeset
108 # ifndef ENOMSG
d5392bb5da3c Added generated files
lost
parents:
diff changeset
109 # define ENOMSG 2000
d5392bb5da3c Added generated files
lost
parents:
diff changeset
110 # define GNULIB_defined_ENOMSG 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
111 # endif
d5392bb5da3c Added generated files
lost
parents:
diff changeset
112
d5392bb5da3c Added generated files
lost
parents:
diff changeset
113 # ifndef EIDRM
d5392bb5da3c Added generated files
lost
parents:
diff changeset
114 # define EIDRM 2001
d5392bb5da3c Added generated files
lost
parents:
diff changeset
115 # define GNULIB_defined_EIDRM 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
116 # endif
d5392bb5da3c Added generated files
lost
parents:
diff changeset
117
d5392bb5da3c Added generated files
lost
parents:
diff changeset
118 # ifndef ENOLINK
d5392bb5da3c Added generated files
lost
parents:
diff changeset
119 # define ENOLINK 2002
d5392bb5da3c Added generated files
lost
parents:
diff changeset
120 # define GNULIB_defined_ENOLINK 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
121 # endif
d5392bb5da3c Added generated files
lost
parents:
diff changeset
122
d5392bb5da3c Added generated files
lost
parents:
diff changeset
123 # ifndef EPROTO
d5392bb5da3c Added generated files
lost
parents:
diff changeset
124 # define EPROTO 2003
d5392bb5da3c Added generated files
lost
parents:
diff changeset
125 # define GNULIB_defined_EPROTO 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
126 # endif
d5392bb5da3c Added generated files
lost
parents:
diff changeset
127
d5392bb5da3c Added generated files
lost
parents:
diff changeset
128 # ifndef EMULTIHOP
d5392bb5da3c Added generated files
lost
parents:
diff changeset
129 # define EMULTIHOP 2004
d5392bb5da3c Added generated files
lost
parents:
diff changeset
130 # define GNULIB_defined_EMULTIHOP 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
131 # endif
d5392bb5da3c Added generated files
lost
parents:
diff changeset
132
d5392bb5da3c Added generated files
lost
parents:
diff changeset
133 # ifndef EBADMSG
d5392bb5da3c Added generated files
lost
parents:
diff changeset
134 # define EBADMSG 2005
d5392bb5da3c Added generated files
lost
parents:
diff changeset
135 # define GNULIB_defined_EBADMSG 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
136 # endif
d5392bb5da3c Added generated files
lost
parents:
diff changeset
137
d5392bb5da3c Added generated files
lost
parents:
diff changeset
138 # ifndef EOVERFLOW
d5392bb5da3c Added generated files
lost
parents:
diff changeset
139 # define EOVERFLOW 2006
d5392bb5da3c Added generated files
lost
parents:
diff changeset
140 # define GNULIB_defined_EOVERFLOW 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
141 # endif
d5392bb5da3c Added generated files
lost
parents:
diff changeset
142
d5392bb5da3c Added generated files
lost
parents:
diff changeset
143 # ifndef ENOTSUP
d5392bb5da3c Added generated files
lost
parents:
diff changeset
144 # define ENOTSUP 2007
d5392bb5da3c Added generated files
lost
parents:
diff changeset
145 # define GNULIB_defined_ENOTSUP 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
146 # endif
d5392bb5da3c Added generated files
lost
parents:
diff changeset
147
d5392bb5da3c Added generated files
lost
parents:
diff changeset
148 # ifndef ECANCELED
d5392bb5da3c Added generated files
lost
parents:
diff changeset
149 # define ECANCELED 2008
d5392bb5da3c Added generated files
lost
parents:
diff changeset
150 # define GNULIB_defined_ECANCELED 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
151 # endif
d5392bb5da3c Added generated files
lost
parents:
diff changeset
152
d5392bb5da3c Added generated files
lost
parents:
diff changeset
153
d5392bb5da3c Added generated files
lost
parents:
diff changeset
154 #endif /* _GL_ERRNO_H */
d5392bb5da3c Added generated files
lost
parents:
diff changeset
155 #endif /* _GL_ERRNO_H */