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