annotate lib/errno.in.h @ 448:5cccf90bf838 3.0 tip

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