1/* -*- buffer-read-only: t -*- vi: set ro: */ 2/* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 3#line 1 4/* A POSIX-like <errno.h>. 5 6 Copyright (C) 2008-2010 Free Software Foundation, Inc. 7 8 This program is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 3, or (at your option) 11 any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program; if not, write to the Free Software Foundation, 20 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 21 22#ifndef _GL_ERRNO_H 23 24#if __GNUC__ >= 3 25@PRAGMA_SYSTEM_HEADER@ 26#endif 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 Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151, 105 HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133. 106 107 Note: When one of these systems defines some of these macros some day, 108 binaries will have to be recompiled so that they recognizes the new 109 errno values from the system. */ 110 111# ifndef ENOMSG 112# define ENOMSG 2000 113# define GNULIB_defined_ENOMSG 1 114# endif 115 116# ifndef EIDRM 117# define EIDRM 2001 118# define GNULIB_defined_EIDRM 1 119# endif 120 121# ifndef ENOLINK 122# define ENOLINK 2002 123# define GNULIB_defined_ENOLINK 1 124# endif 125 126# ifndef EPROTO 127# define EPROTO 2003 128# define GNULIB_defined_EPROTO 1 129# endif 130 131# ifndef EMULTIHOP 132# define EMULTIHOP 2004 133# define GNULIB_defined_EMULTIHOP 1 134# endif 135 136# ifndef EBADMSG 137# define EBADMSG 2005 138# define GNULIB_defined_EBADMSG 1 139# endif 140 141# ifndef EOVERFLOW 142# define EOVERFLOW 2006 143# define GNULIB_defined_EOVERFLOW 1 144# endif 145 146# ifndef ENOTSUP 147# define ENOTSUP 2007 148# define GNULIB_defined_ENOTSUP 1 149# endif 150 151# ifndef ESTALE 152# define ESTALE 2009 153# define GNULIB_defined_ESTALE 1 154# endif 155 156# ifndef ECANCELED 157# define ECANCELED 2008 158# define GNULIB_defined_ECANCELED 1 159# endif 160 161 162#endif /* _GL_ERRNO_H */ 163#endif /* _GL_ERRNO_H */ 164