annotate lib/errno.in.h @ 40231:9b3c79fdfe0b

strtod: fix clash with strtold Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817). * lib/strtod.c (compute_minus_zero, minus_zero): Simplify by remving the macro / external variable, and having just a function. User changed. This avoids the need for an external variable that might clash.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 11 Mar 2019 16:40:29 -0700
parents b06060465f09
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* A POSIX-like <errno.h>.
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2
40057
b06060465f09 maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents: 19595
diff changeset
3 Copyright (C) 2008-2019 Free Software Foundation, Inc.
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 This program is free software; you can redistribute it and/or modify
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 the Free Software Foundation; either version 2, or (at your option)
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 any later version.
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 GNU General Public License for more details.
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
19190
9759915b2aca all: prefer https: URLs
Paul Eggert <eggert@cs.ucla.edu>
parents: 18626
diff changeset
16 along with this program; if not, see <https://www.gnu.org/licenses/>. */
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
14840
5f709022a256 Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
18 #ifndef _@GUARD_PREFIX@_ERRNO_H
13094
2ed0fc659db8 Emit #pragma system_header after the inclusion guard, not before.
Bruno Haible <bruno@clisp.org>
parents: 13055
diff changeset
19
10655
8668b19a7032 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
Bruno Haible <bruno@clisp.org>
parents: 10574
diff changeset
20 #if __GNUC__ >= 3
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 @PRAGMA_SYSTEM_HEADER@
10655
8668b19a7032 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
Bruno Haible <bruno@clisp.org>
parents: 10574
diff changeset
22 #endif
13761
a19ace3ba849 Avoid line length limitation from HP NonStop system header files.
Bruno Haible <bruno@clisp.org>
parents: 13754
diff changeset
23 @PRAGMA_COLUMNS@
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 /* The include_next requires a split double-inclusion guard. */
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 #@INCLUDE_NEXT@ @NEXT_ERRNO_H@
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27
14840
5f709022a256 Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
28 #ifndef _@GUARD_PREFIX@_ERRNO_H
5f709022a256 Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
29 #define _@GUARD_PREFIX@_ERRNO_H
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 /* On native Windows platforms, many macros are not defined. */
19595
beb2ad957aca Simplify code. Drop support for Borland C++ on Windows.
Bruno Haible <bruno@clisp.org>
parents: 19484
diff changeset
33 # if defined _WIN32 && ! defined __CYGWIN__
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34
15985
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
35 /* These are the same values as defined by MSVC 10, for interoperability. */
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
36
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
37 # ifndef ENOMSG
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
38 # define ENOMSG 122
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
39 # define GNULIB_defined_ENOMSG 1
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
40 # endif
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
41
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
42 # ifndef EIDRM
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
43 # define EIDRM 111
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
44 # define GNULIB_defined_EIDRM 1
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
45 # endif
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
46
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
47 # ifndef ENOLINK
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
48 # define ENOLINK 121
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
49 # define GNULIB_defined_ENOLINK 1
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
50 # endif
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
51
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
52 # ifndef EPROTO
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
53 # define EPROTO 134
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
54 # define GNULIB_defined_EPROTO 1
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
55 # endif
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
56
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
57 # ifndef EBADMSG
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
58 # define EBADMSG 104
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
59 # define GNULIB_defined_EBADMSG 1
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
60 # endif
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
61
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
62 # ifndef EOVERFLOW
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
63 # define EOVERFLOW 132
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
64 # define GNULIB_defined_EOVERFLOW 1
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
65 # endif
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
66
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
67 # ifndef ENOTSUP
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
68 # define ENOTSUP 129
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
69 # define GNULIB_defined_ENOTSUP 1
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
70 # endif
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
71
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
72 # ifndef ENETRESET
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
73 # define ENETRESET 117
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
74 # define GNULIB_defined_ENETRESET 1
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
75 # endif
10574
94dd82d49242 Define EWOULDBLOCK to the same value as EAGAIN.
Paolo Bonzini <bonzini@gnu.org>
parents: 10440
diff changeset
76
15985
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
77 # ifndef ECONNABORTED
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
78 # define ECONNABORTED 106
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
79 # define GNULIB_defined_ECONNABORTED 1
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
80 # endif
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
81
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
82 # ifndef ECANCELED
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
83 # define ECANCELED 105
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
84 # define GNULIB_defined_ECANCELED 1
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
85 # endif
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
86
16891
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
87 # ifndef EOWNERDEAD
16892
75dd3fc6e824 error, strerror-override: Support mingw64 from Fedora 17.
Paolo Bonzini <bonzini@gnu.org>
parents: 16891
diff changeset
88 # define EOWNERDEAD 133
75dd3fc6e824 error, strerror-override: Support mingw64 from Fedora 17.
Paolo Bonzini <bonzini@gnu.org>
parents: 16891
diff changeset
89 # define GNULIB_defined_EOWNERDEAD 1
75dd3fc6e824 error, strerror-override: Support mingw64 from Fedora 17.
Paolo Bonzini <bonzini@gnu.org>
parents: 16891
diff changeset
90 # endif
75dd3fc6e824 error, strerror-override: Support mingw64 from Fedora 17.
Paolo Bonzini <bonzini@gnu.org>
parents: 16891
diff changeset
91
75dd3fc6e824 error, strerror-override: Support mingw64 from Fedora 17.
Paolo Bonzini <bonzini@gnu.org>
parents: 16891
diff changeset
92 # ifndef ENOTRECOVERABLE
16891
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
93 # define ENOTRECOVERABLE 127
16892
75dd3fc6e824 error, strerror-override: Support mingw64 from Fedora 17.
Paolo Bonzini <bonzini@gnu.org>
parents: 16891
diff changeset
94 # define GNULIB_defined_ENOTRECOVERABLE 1
16891
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
95 # endif
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
96
15985
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
97 # ifndef EINPROGRESS
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
98 # define EINPROGRESS 112
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
99 # define EALREADY 103
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
100 # define ENOTSOCK 128
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
101 # define EDESTADDRREQ 109
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
102 # define EMSGSIZE 115
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
103 # define EPROTOTYPE 136
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
104 # define ENOPROTOOPT 123
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
105 # define EPROTONOSUPPORT 135
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
106 # define EOPNOTSUPP 130
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
107 # define EAFNOSUPPORT 102
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
108 # define EADDRINUSE 100
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
109 # define EADDRNOTAVAIL 101
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
110 # define ENETDOWN 116
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
111 # define ENETUNREACH 118
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
112 # define ECONNRESET 108
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
113 # define ENOBUFS 119
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
114 # define EISCONN 113
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
115 # define ENOTCONN 126
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
116 # define ETIMEDOUT 138
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
117 # define ECONNREFUSED 107
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
118 # define ELOOP 114
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
119 # define EHOSTUNREACH 110
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
120 # define EWOULDBLOCK 140
16893
a6389b513756 error, strerror-override: Support mingw64 from Fedora 17.
Paolo Bonzini <bonzini@gnu.org>
parents: 16892
diff changeset
121 # define GNULIB_defined_ESOCK 1
a6389b513756 error, strerror-override: Support mingw64 from Fedora 17.
Paolo Bonzini <bonzini@gnu.org>
parents: 16892
diff changeset
122 # endif
a6389b513756 error, strerror-override: Support mingw64 from Fedora 17.
Paolo Bonzini <bonzini@gnu.org>
parents: 16892
diff changeset
123
a6389b513756 error, strerror-override: Support mingw64 from Fedora 17.
Paolo Bonzini <bonzini@gnu.org>
parents: 16892
diff changeset
124 # ifndef ETXTBSY
15985
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
125 # define ETXTBSY 139
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
126 # define ENODATA 120 /* not required by POSIX */
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
127 # define ENOSR 124 /* not required by POSIX */
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
128 # define ENOSTR 125 /* not required by POSIX */
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
129 # define ETIME 137 /* not required by POSIX */
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
130 # define EOTHER 131 /* not required by POSIX */
16893
a6389b513756 error, strerror-override: Support mingw64 from Fedora 17.
Paolo Bonzini <bonzini@gnu.org>
parents: 16892
diff changeset
131 # define GNULIB_defined_ESTREAMS 1
15985
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
132 # endif
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
133
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
134 /* These are intentionally the same values as the WSA* error numbers, defined
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
135 in <winsock2.h>. */
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
136 # define ESOCKTNOSUPPORT 10044 /* not required by POSIX */
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
137 # define EPFNOSUPPORT 10046 /* not required by POSIX */
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
138 # define ESHUTDOWN 10058 /* not required by POSIX */
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
139 # define ETOOMANYREFS 10059 /* not required by POSIX */
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
140 # define EHOSTDOWN 10064 /* not required by POSIX */
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
141 # define EPROCLIM 10067 /* not required by POSIX */
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
142 # define EUSERS 10068 /* not required by POSIX */
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
143 # define EDQUOT 10069
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
144 # define ESTALE 10070
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
145 # define EREMOTE 10071 /* not required by POSIX */
15985
42b40ee9f878 errno, strerror-override: Support for MSVC 10.
Bruno Haible <bruno@clisp.org>
parents: 15484
diff changeset
146 # define GNULIB_defined_EWINSOCK 1
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
147
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
148 # endif
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
149
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
150
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
151 /* On OSF/1 5.1, when _XOPEN_SOURCE_EXTENDED is not defined, the macros
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
152 EMULTIHOP, ENOLINK, EOVERFLOW are not defined. */
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
153 # if @EMULTIHOP_HIDDEN@
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
154 # define EMULTIHOP @EMULTIHOP_VALUE@
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
155 # define GNULIB_defined_EMULTIHOP 1
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
156 # endif
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
157 # if @ENOLINK_HIDDEN@
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
158 # define ENOLINK @ENOLINK_VALUE@
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
159 # define GNULIB_defined_ENOLINK 1
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
160 # endif
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
161 # if @EOVERFLOW_HIDDEN@
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
162 # define EOVERFLOW @EOVERFLOW_VALUE@
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
163 # define GNULIB_defined_EOVERFLOW 1
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
164 # endif
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
165
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
166
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
167 /* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK,
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
168 EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined.
13754
3805b556be4b Define missing EDQUOT on NonStop Kernel.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
169 Likewise, on NonStop Kernel, EDQUOT is not defined.
10440
d4ba2e998855 Override <errno.h> also on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 10425
diff changeset
170 Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151,
d4ba2e998855 Override <errno.h> also on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 10425
diff changeset
171 HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133.
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
172
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
173 Note: When one of these systems defines some of these macros some day,
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
174 binaries will have to be recompiled so that they recognizes the new
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
175 errno values from the system. */
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
176
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
177 # ifndef ENOMSG
10440
d4ba2e998855 Override <errno.h> also on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 10425
diff changeset
178 # define ENOMSG 2000
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
179 # define GNULIB_defined_ENOMSG 1
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
180 # endif
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
181
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
182 # ifndef EIDRM
10440
d4ba2e998855 Override <errno.h> also on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 10425
diff changeset
183 # define EIDRM 2001
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
184 # define GNULIB_defined_EIDRM 1
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
185 # endif
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
186
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
187 # ifndef ENOLINK
10440
d4ba2e998855 Override <errno.h> also on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 10425
diff changeset
188 # define ENOLINK 2002
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
189 # define GNULIB_defined_ENOLINK 1
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
190 # endif
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
191
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
192 # ifndef EPROTO
10440
d4ba2e998855 Override <errno.h> also on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 10425
diff changeset
193 # define EPROTO 2003
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
194 # define GNULIB_defined_EPROTO 1
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
195 # endif
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
196
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
197 # ifndef EMULTIHOP
10440
d4ba2e998855 Override <errno.h> also on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 10425
diff changeset
198 # define EMULTIHOP 2004
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
199 # define GNULIB_defined_EMULTIHOP 1
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
200 # endif
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
201
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
202 # ifndef EBADMSG
10440
d4ba2e998855 Override <errno.h> also on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 10425
diff changeset
203 # define EBADMSG 2005
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
204 # define GNULIB_defined_EBADMSG 1
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
205 # endif
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
206
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
207 # ifndef EOVERFLOW
10440
d4ba2e998855 Override <errno.h> also on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 10425
diff changeset
208 # define EOVERFLOW 2006
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
209 # define GNULIB_defined_EOVERFLOW 1
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
210 # endif
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
211
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
212 # ifndef ENOTSUP
10440
d4ba2e998855 Override <errno.h> also on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 10425
diff changeset
213 # define ENOTSUP 2007
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
214 # define GNULIB_defined_ENOTSUP 1
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
215 # endif
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
216
15484
80735ab15b24 errno: Port to Minix.
Bruno Haible <bruno@clisp.org>
parents: 14840
diff changeset
217 # ifndef ENETRESET
80735ab15b24 errno: Port to Minix.
Bruno Haible <bruno@clisp.org>
parents: 14840
diff changeset
218 # define ENETRESET 2011
80735ab15b24 errno: Port to Minix.
Bruno Haible <bruno@clisp.org>
parents: 14840
diff changeset
219 # define GNULIB_defined_ENETRESET 1
80735ab15b24 errno: Port to Minix.
Bruno Haible <bruno@clisp.org>
parents: 14840
diff changeset
220 # endif
80735ab15b24 errno: Port to Minix.
Bruno Haible <bruno@clisp.org>
parents: 14840
diff changeset
221
80735ab15b24 errno: Port to Minix.
Bruno Haible <bruno@clisp.org>
parents: 14840
diff changeset
222 # ifndef ECONNABORTED
80735ab15b24 errno: Port to Minix.
Bruno Haible <bruno@clisp.org>
parents: 14840
diff changeset
223 # define ECONNABORTED 2012
80735ab15b24 errno: Port to Minix.
Bruno Haible <bruno@clisp.org>
parents: 14840
diff changeset
224 # define GNULIB_defined_ECONNABORTED 1
80735ab15b24 errno: Port to Minix.
Bruno Haible <bruno@clisp.org>
parents: 14840
diff changeset
225 # endif
80735ab15b24 errno: Port to Minix.
Bruno Haible <bruno@clisp.org>
parents: 14840
diff changeset
226
11626
e54d8a239545 Define missing ESTALE on Interix 3.5.
Bruno Haible <bruno@clisp.org>
parents: 10655
diff changeset
227 # ifndef ESTALE
e54d8a239545 Define missing ESTALE on Interix 3.5.
Bruno Haible <bruno@clisp.org>
parents: 10655
diff changeset
228 # define ESTALE 2009
e54d8a239545 Define missing ESTALE on Interix 3.5.
Bruno Haible <bruno@clisp.org>
parents: 10655
diff changeset
229 # define GNULIB_defined_ESTALE 1
e54d8a239545 Define missing ESTALE on Interix 3.5.
Bruno Haible <bruno@clisp.org>
parents: 10655
diff changeset
230 # endif
e54d8a239545 Define missing ESTALE on Interix 3.5.
Bruno Haible <bruno@clisp.org>
parents: 10655
diff changeset
231
13754
3805b556be4b Define missing EDQUOT on NonStop Kernel.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
232 # ifndef EDQUOT
3805b556be4b Define missing EDQUOT on NonStop Kernel.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
233 # define EDQUOT 2010
3805b556be4b Define missing EDQUOT on NonStop Kernel.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
234 # define GNULIB_defined_EDQUOT 1
3805b556be4b Define missing EDQUOT on NonStop Kernel.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
235 # endif
3805b556be4b Define missing EDQUOT on NonStop Kernel.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
236
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
237 # ifndef ECANCELED
10440
d4ba2e998855 Override <errno.h> also on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 10425
diff changeset
238 # define ECANCELED 2008
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
239 # define GNULIB_defined_ECANCELED 1
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
240 # endif
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
241
16891
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
242 /* On many platforms, the macros EOWNERDEAD and ENOTRECOVERABLE are not
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
243 defined. */
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
244
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
245 # ifndef EOWNERDEAD
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
246 # if defined __sun
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
247 /* Use the same values as defined for Solaris >= 8, for
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
248 interoperability. */
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
249 # define EOWNERDEAD 58
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
250 # define ENOTRECOVERABLE 59
19595
beb2ad957aca Simplify code. Drop support for Borland C++ on Windows.
Bruno Haible <bruno@clisp.org>
parents: 19484
diff changeset
251 # elif defined _WIN32 && ! defined __CYGWIN__
16891
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
252 /* We have a conflict here: pthreads-win32 defines these values
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
253 differently than MSVC 10. It's hairy to decide which one to use. */
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
254 # if defined __MINGW32__ && !defined USE_WINDOWS_THREADS
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
255 /* Use the same values as defined by pthreads-win32, for
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
256 interoperability. */
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
257 # define EOWNERDEAD 43
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
258 # define ENOTRECOVERABLE 44
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
259 # else
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
260 /* Use the same values as defined by MSVC 10, for
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
261 interoperability. */
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
262 # define EOWNERDEAD 133
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
263 # define ENOTRECOVERABLE 127
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
264 # endif
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
265 # else
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
266 # define EOWNERDEAD 2013
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
267 # define ENOTRECOVERABLE 2014
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
268 # endif
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
269 # define GNULIB_defined_EOWNERDEAD 1
16892
75dd3fc6e824 error, strerror-override: Support mingw64 from Fedora 17.
Paolo Bonzini <bonzini@gnu.org>
parents: 16891
diff changeset
270 # define GNULIB_defined_ENOTRECOVERABLE 1
16891
e98619449f63 error, strerror-override: Support new errno values from POSIX:2008.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
271 # endif
10425
44359c143462 New module 'errno'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
272
17149
a49df7b88261 errno: port to LynxOS 178 2.2.2
Paul Eggert <eggert@cs.ucla.edu>
parents: 16893
diff changeset
273 # ifndef EILSEQ
a49df7b88261 errno: port to LynxOS 178 2.2.2
Paul Eggert <eggert@cs.ucla.edu>
parents: 16893
diff changeset
274 # define EILSEQ 2015
a49df7b88261 errno: port to LynxOS 178 2.2.2
Paul Eggert <eggert@cs.ucla.edu>
parents: 16893
diff changeset
275 # define GNULIB_defined_EILSEQ 1
a49df7b88261 errno: port to LynxOS 178 2.2.2
Paul Eggert <eggert@cs.ucla.edu>
parents: 16893
diff changeset
276 # endif
a49df7b88261 errno: port to LynxOS 178 2.2.2
Paul Eggert <eggert@cs.ucla.edu>
parents: 16893
diff changeset
277
14840
5f709022a256 Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
278 #endif /* _@GUARD_PREFIX@_ERRNO_H */
5f709022a256 Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
279 #endif /* _@GUARD_PREFIX@_ERRNO_H */