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