diff options
Diffstat (limited to 'gl/errno.in.h')
| -rw-r--r-- | gl/errno.in.h | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/gl/errno.in.h b/gl/errno.in.h index aa658e62..784a4018 100644 --- a/gl/errno.in.h +++ b/gl/errno.in.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* A POSIX-like <errno.h>. | 1 | /* A POSIX-like <errno.h>. |
| 2 | 2 | ||
| 3 | Copyright (C) 2008-2024 Free Software Foundation, Inc. | 3 | Copyright (C) 2008-2026 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is free software: you can redistribute it and/or modify | 5 | This file is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU Lesser General Public License as | 6 | it under the terms of the GNU Lesser General Public License as |
| @@ -133,7 +133,7 @@ | |||
| 133 | 133 | ||
| 134 | /* These are intentionally the same values as the WSA* error numbers, defined | 134 | /* These are intentionally the same values as the WSA* error numbers, defined |
| 135 | in <winsock2.h>. */ | 135 | in <winsock2.h>. */ |
| 136 | # define ESOCKTNOSUPPORT 10044 /* not required by POSIX */ | 136 | # define ESOCKTNOSUPPORT 10044 |
| 137 | # define EPFNOSUPPORT 10046 /* not required by POSIX */ | 137 | # define EPFNOSUPPORT 10046 /* not required by POSIX */ |
| 138 | # define ESHUTDOWN 10058 /* not required by POSIX */ | 138 | # define ESHUTDOWN 10058 /* not required by POSIX */ |
| 139 | # define ETOOMANYREFS 10059 /* not required by POSIX */ | 139 | # define ETOOMANYREFS 10059 /* not required by POSIX */ |
| @@ -148,27 +148,11 @@ | |||
| 148 | # endif | 148 | # endif |
| 149 | 149 | ||
| 150 | 150 | ||
| 151 | /* On OSF/1 5.1, when _XOPEN_SOURCE_EXTENDED is not defined, the macros | ||
| 152 | EMULTIHOP, ENOLINK, EOVERFLOW are not defined. */ | ||
| 153 | # if @EMULTIHOP_HIDDEN@ | ||
| 154 | # define EMULTIHOP @EMULTIHOP_VALUE@ | ||
| 155 | # define GNULIB_defined_EMULTIHOP 1 | ||
| 156 | # endif | ||
| 157 | # if @ENOLINK_HIDDEN@ | ||
| 158 | # define ENOLINK @ENOLINK_VALUE@ | ||
| 159 | # define GNULIB_defined_ENOLINK 1 | ||
| 160 | # endif | ||
| 161 | # if @EOVERFLOW_HIDDEN@ | ||
| 162 | # define EOVERFLOW @EOVERFLOW_VALUE@ | ||
| 163 | # define GNULIB_defined_EOVERFLOW 1 | ||
| 164 | # endif | ||
| 165 | |||
| 166 | |||
| 167 | /* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK, | 151 | /* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK, |
| 168 | EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined. | 152 | EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined. |
| 169 | Likewise, on NonStop Kernel, EDQUOT is not defined. | 153 | Likewise, on NonStop Kernel, EDQUOT is not defined. |
| 170 | Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151, | 154 | Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151, |
| 171 | HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133. | 155 | HP-UX EWOULDBLOCK = 246. |
| 172 | 156 | ||
| 173 | Note: When one of these systems defines some of these macros some day, | 157 | Note: When one of these systems defines some of these macros some day, |
| 174 | binaries will have to be recompiled so that they recognizes the new | 158 | binaries will have to be recompiled so that they recognizes the new |
| @@ -270,10 +254,17 @@ | |||
| 270 | # define GNULIB_defined_ENOTRECOVERABLE 1 | 254 | # define GNULIB_defined_ENOTRECOVERABLE 1 |
| 271 | # endif | 255 | # endif |
| 272 | 256 | ||
| 257 | /* On LynxOS, the macro EILSEQ is not defined. */ | ||
| 273 | # ifndef EILSEQ | 258 | # ifndef EILSEQ |
| 274 | # define EILSEQ 2015 | 259 | # define EILSEQ 2015 |
| 275 | # define GNULIB_defined_EILSEQ 1 | 260 | # define GNULIB_defined_EILSEQ 1 |
| 276 | # endif | 261 | # endif |
| 277 | 262 | ||
| 263 | /* On Haiku, the macro ESOCKTNOSUPPORT is not defined. */ | ||
| 264 | # ifndef ESOCKTNOSUPPORT | ||
| 265 | # define ESOCKTNOSUPPORT 2016 | ||
| 266 | # define GNULIB_defined_ESOCKTNOSUPPORT 1 | ||
| 267 | # endif | ||
| 268 | |||
| 278 | #endif /* _@GUARD_PREFIX@_ERRNO_H */ | 269 | #endif /* _@GUARD_PREFIX@_ERRNO_H */ |
| 279 | #endif /* _@GUARD_PREFIX@_ERRNO_H */ | 270 | #endif /* _@GUARD_PREFIX@_ERRNO_H */ |
