OLD | NEW |
(Empty) | |
| 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 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 |
| 27 /* The include_next requires a split double-inclusion guard. */ |
| 28 #@INCLUDE_NEXT@ @NEXT_ERRNO_H@ |
| 29 |
| 30 #ifndef _GL_ERRNO_H |
| 31 #define _GL_ERRNO_H |
| 32 |
| 33 |
| 34 /* On native Windows platforms, many macros are not defined. */ |
| 35 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ |
| 36 |
| 37 /* POSIX says that EAGAIN and EWOULDBLOCK may have the same value. */ |
| 38 # define EWOULDBLOCK EAGAIN |
| 39 |
| 40 /* Values >= 100 seem safe to use. */ |
| 41 # define ETXTBSY 100 |
| 42 # define GNULIB_defined_ETXTBSY 1 |
| 43 |
| 44 /* These are intentionally the same values as the WSA* error numbers, defined |
| 45 in <winsock2.h>. */ |
| 46 # define EINPROGRESS 10036 |
| 47 # define EALREADY 10037 |
| 48 # define ENOTSOCK 10038 |
| 49 # define EDESTADDRREQ 10039 |
| 50 # define EMSGSIZE 10040 |
| 51 # define EPROTOTYPE 10041 |
| 52 # define ENOPROTOOPT 10042 |
| 53 # define EPROTONOSUPPORT 10043 |
| 54 # define ESOCKTNOSUPPORT 10044 /* not required by POSIX */ |
| 55 # define EOPNOTSUPP 10045 |
| 56 # define EPFNOSUPPORT 10046 /* not required by POSIX */ |
| 57 # define EAFNOSUPPORT 10047 |
| 58 # define EADDRINUSE 10048 |
| 59 # define EADDRNOTAVAIL 10049 |
| 60 # define ENETDOWN 10050 |
| 61 # define ENETUNREACH 10051 |
| 62 # define ENETRESET 10052 |
| 63 # define ECONNABORTED 10053 |
| 64 # define ECONNRESET 10054 |
| 65 # define ENOBUFS 10055 |
| 66 # define EISCONN 10056 |
| 67 # define ENOTCONN 10057 |
| 68 # define ESHUTDOWN 10058 /* not required by POSIX */ |
| 69 # define ETOOMANYREFS 10059 /* not required by POSIX */ |
| 70 # define ETIMEDOUT 10060 |
| 71 # define ECONNREFUSED 10061 |
| 72 # define ELOOP 10062 |
| 73 # define EHOSTDOWN 10064 /* not required by POSIX */ |
| 74 # define EHOSTUNREACH 10065 |
| 75 # define EPROCLIM 10067 /* not required by POSIX */ |
| 76 # define EUSERS 10068 /* not required by POSIX */ |
| 77 # define EDQUOT 10069 |
| 78 # define ESTALE 10070 |
| 79 # define EREMOTE 10071 /* not required by POSIX */ |
| 80 # define GNULIB_defined_ESOCK 1 |
| 81 |
| 82 # endif |
| 83 |
| 84 |
| 85 /* On OSF/1 5.1, when _XOPEN_SOURCE_EXTENDED is not defined, the macros |
| 86 EMULTIHOP, ENOLINK, EOVERFLOW are not defined. */ |
| 87 # if @EMULTIHOP_HIDDEN@ |
| 88 # define EMULTIHOP @EMULTIHOP_VALUE@ |
| 89 # define GNULIB_defined_EMULTIHOP 1 |
| 90 # endif |
| 91 # if @ENOLINK_HIDDEN@ |
| 92 # define ENOLINK @ENOLINK_VALUE@ |
| 93 # define GNULIB_defined_ENOLINK 1 |
| 94 # endif |
| 95 # if @EOVERFLOW_HIDDEN@ |
| 96 # define EOVERFLOW @EOVERFLOW_VALUE@ |
| 97 # define GNULIB_defined_EOVERFLOW 1 |
| 98 # endif |
| 99 |
| 100 |
| 101 /* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK, |
| 102 EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined. |
| 103 Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151, |
| 104 HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133. |
| 105 |
| 106 Note: When one of these systems defines some of these macros some day, |
| 107 binaries will have to be recompiled so that they recognizes the new |
| 108 errno values from the system. */ |
| 109 |
| 110 # ifndef ENOMSG |
| 111 # define ENOMSG 2000 |
| 112 # define GNULIB_defined_ENOMSG 1 |
| 113 # endif |
| 114 |
| 115 # ifndef EIDRM |
| 116 # define EIDRM 2001 |
| 117 # define GNULIB_defined_EIDRM 1 |
| 118 # endif |
| 119 |
| 120 # ifndef ENOLINK |
| 121 # define ENOLINK 2002 |
| 122 # define GNULIB_defined_ENOLINK 1 |
| 123 # endif |
| 124 |
| 125 # ifndef EPROTO |
| 126 # define EPROTO 2003 |
| 127 # define GNULIB_defined_EPROTO 1 |
| 128 # endif |
| 129 |
| 130 # ifndef EMULTIHOP |
| 131 # define EMULTIHOP 2004 |
| 132 # define GNULIB_defined_EMULTIHOP 1 |
| 133 # endif |
| 134 |
| 135 # ifndef EBADMSG |
| 136 # define EBADMSG 2005 |
| 137 # define GNULIB_defined_EBADMSG 1 |
| 138 # endif |
| 139 |
| 140 # ifndef EOVERFLOW |
| 141 # define EOVERFLOW 2006 |
| 142 # define GNULIB_defined_EOVERFLOW 1 |
| 143 # endif |
| 144 |
| 145 # ifndef ENOTSUP |
| 146 # define ENOTSUP 2007 |
| 147 # define GNULIB_defined_ENOTSUP 1 |
| 148 # endif |
| 149 |
| 150 # ifndef ECANCELED |
| 151 # define ECANCELED 2008 |
| 152 # define GNULIB_defined_ECANCELED 1 |
| 153 # endif |
| 154 |
| 155 |
| 156 #endif /* _GL_ERRNO_H */ |
| 157 #endif /* _GL_ERRNO_H */ |
OLD | NEW |