Blame src/gl/errno.in.h

Packit aea12f
/* A POSIX-like <errno.h>.
Packit aea12f
Packit Service 991b93
   Copyright (C) 2008-2020 Free Software Foundation, Inc.
Packit aea12f
Packit aea12f
   This program is free software; you can redistribute it and/or modify
Packit aea12f
   it under the terms of the GNU General Public License as published by
Packit aea12f
   the Free Software Foundation; either version 3, or (at your option)
Packit aea12f
   any later version.
Packit aea12f
Packit aea12f
   This program is distributed in the hope that it will be useful,
Packit aea12f
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit aea12f
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit aea12f
   GNU General Public License for more details.
Packit aea12f
Packit aea12f
   You should have received a copy of the GNU General Public License
Packit aea12f
   along with this program; if not, see <https://www.gnu.org/licenses/>.  */
Packit aea12f
Packit aea12f
#ifndef _@GUARD_PREFIX@_ERRNO_H
Packit aea12f
Packit aea12f
#if __GNUC__ >= 3
Packit aea12f
@PRAGMA_SYSTEM_HEADER@
Packit aea12f
#endif
Packit aea12f
@PRAGMA_COLUMNS@
Packit aea12f
Packit aea12f
/* The include_next requires a split double-inclusion guard.  */
Packit aea12f
#@INCLUDE_NEXT@ @NEXT_ERRNO_H@
Packit aea12f
Packit aea12f
#ifndef _@GUARD_PREFIX@_ERRNO_H
Packit aea12f
#define _@GUARD_PREFIX@_ERRNO_H
Packit aea12f
Packit aea12f
Packit aea12f
/* On native Windows platforms, many macros are not defined.  */
Packit aea12f
# if defined _WIN32 && ! defined __CYGWIN__
Packit aea12f
Packit aea12f
/* These are the same values as defined by MSVC 10, for interoperability.  */
Packit aea12f
Packit aea12f
#  ifndef ENOMSG
Packit aea12f
#   define ENOMSG    122
Packit aea12f
#   define GNULIB_defined_ENOMSG 1
Packit aea12f
#  endif
Packit aea12f
Packit aea12f
#  ifndef EIDRM
Packit aea12f
#   define EIDRM     111
Packit aea12f
#   define GNULIB_defined_EIDRM 1
Packit aea12f
#  endif
Packit aea12f
Packit aea12f
#  ifndef ENOLINK
Packit aea12f
#   define ENOLINK   121
Packit aea12f
#   define GNULIB_defined_ENOLINK 1
Packit aea12f
#  endif
Packit aea12f
Packit aea12f
#  ifndef EPROTO
Packit aea12f
#   define EPROTO    134
Packit aea12f
#   define GNULIB_defined_EPROTO 1
Packit aea12f
#  endif
Packit aea12f
Packit aea12f
#  ifndef EBADMSG
Packit aea12f
#   define EBADMSG   104
Packit aea12f
#   define GNULIB_defined_EBADMSG 1
Packit aea12f
#  endif
Packit aea12f
Packit aea12f
#  ifndef EOVERFLOW
Packit aea12f
#   define EOVERFLOW 132
Packit aea12f
#   define GNULIB_defined_EOVERFLOW 1
Packit aea12f
#  endif
Packit aea12f
Packit aea12f
#  ifndef ENOTSUP
Packit aea12f
#   define ENOTSUP   129
Packit aea12f
#   define GNULIB_defined_ENOTSUP 1
Packit aea12f
#  endif
Packit aea12f
Packit aea12f
#  ifndef ENETRESET
Packit aea12f
#   define ENETRESET 117
Packit aea12f
#   define GNULIB_defined_ENETRESET 1
Packit aea12f
#  endif
Packit aea12f
Packit aea12f
#  ifndef ECONNABORTED
Packit aea12f
#   define ECONNABORTED 106
Packit aea12f
#   define GNULIB_defined_ECONNABORTED 1
Packit aea12f
#  endif
Packit aea12f
Packit aea12f
#  ifndef ECANCELED
Packit aea12f
#   define ECANCELED 105
Packit aea12f
#   define GNULIB_defined_ECANCELED 1
Packit aea12f
#  endif
Packit aea12f
Packit aea12f
#  ifndef EOWNERDEAD
Packit aea12f
#   define EOWNERDEAD 133
Packit aea12f
#   define GNULIB_defined_EOWNERDEAD 1
Packit aea12f
#  endif
Packit aea12f
Packit aea12f
#  ifndef ENOTRECOVERABLE
Packit aea12f
#   define ENOTRECOVERABLE 127
Packit aea12f
#   define GNULIB_defined_ENOTRECOVERABLE 1
Packit aea12f
#  endif
Packit aea12f
Packit aea12f
#  ifndef EINPROGRESS
Packit aea12f
#   define EINPROGRESS     112
Packit aea12f
#   define EALREADY        103
Packit aea12f
#   define ENOTSOCK        128
Packit aea12f
#   define EDESTADDRREQ    109
Packit aea12f
#   define EMSGSIZE        115
Packit aea12f
#   define EPROTOTYPE      136
Packit aea12f
#   define ENOPROTOOPT     123
Packit aea12f
#   define EPROTONOSUPPORT 135
Packit aea12f
#   define EOPNOTSUPP      130
Packit aea12f
#   define EAFNOSUPPORT    102
Packit aea12f
#   define EADDRINUSE      100
Packit aea12f
#   define EADDRNOTAVAIL   101
Packit aea12f
#   define ENETDOWN        116
Packit aea12f
#   define ENETUNREACH     118
Packit aea12f
#   define ECONNRESET      108
Packit aea12f
#   define ENOBUFS         119
Packit aea12f
#   define EISCONN         113
Packit aea12f
#   define ENOTCONN        126
Packit aea12f
#   define ETIMEDOUT       138
Packit aea12f
#   define ECONNREFUSED    107
Packit aea12f
#   define ELOOP           114
Packit aea12f
#   define EHOSTUNREACH    110
Packit aea12f
#   define EWOULDBLOCK     140
Packit aea12f
#   define GNULIB_defined_ESOCK 1
Packit aea12f
#  endif
Packit aea12f
Packit aea12f
#  ifndef ETXTBSY
Packit aea12f
#   define ETXTBSY         139
Packit aea12f
#   define ENODATA         120  /* not required by POSIX */
Packit aea12f
#   define ENOSR           124  /* not required by POSIX */
Packit aea12f
#   define ENOSTR          125  /* not required by POSIX */
Packit aea12f
#   define ETIME           137  /* not required by POSIX */
Packit aea12f
#   define EOTHER          131  /* not required by POSIX */
Packit aea12f
#   define GNULIB_defined_ESTREAMS 1
Packit aea12f
#  endif
Packit aea12f
Packit aea12f
/* These are intentionally the same values as the WSA* error numbers, defined
Packit aea12f
   in <winsock2.h>.  */
Packit aea12f
#  define ESOCKTNOSUPPORT 10044  /* not required by POSIX */
Packit aea12f
#  define EPFNOSUPPORT    10046  /* not required by POSIX */
Packit aea12f
#  define ESHUTDOWN       10058  /* not required by POSIX */
Packit aea12f
#  define ETOOMANYREFS    10059  /* not required by POSIX */
Packit aea12f
#  define EHOSTDOWN       10064  /* not required by POSIX */
Packit aea12f
#  define EPROCLIM        10067  /* not required by POSIX */
Packit aea12f
#  define EUSERS          10068  /* not required by POSIX */
Packit aea12f
#  define EDQUOT          10069
Packit aea12f
#  define ESTALE          10070
Packit aea12f
#  define EREMOTE         10071  /* not required by POSIX */
Packit aea12f
#  define GNULIB_defined_EWINSOCK 1
Packit aea12f
Packit aea12f
# endif
Packit aea12f
Packit aea12f
Packit aea12f
/* On OSF/1 5.1, when _XOPEN_SOURCE_EXTENDED is not defined, the macros
Packit aea12f
   EMULTIHOP, ENOLINK, EOVERFLOW are not defined.  */
Packit aea12f
# if @EMULTIHOP_HIDDEN@
Packit aea12f
#  define EMULTIHOP @EMULTIHOP_VALUE@
Packit aea12f
#  define GNULIB_defined_EMULTIHOP 1
Packit aea12f
# endif
Packit aea12f
# if @ENOLINK_HIDDEN@
Packit aea12f
#  define ENOLINK   @ENOLINK_VALUE@
Packit aea12f
#  define GNULIB_defined_ENOLINK 1
Packit aea12f
# endif
Packit aea12f
# if @EOVERFLOW_HIDDEN@
Packit aea12f
#  define EOVERFLOW @EOVERFLOW_VALUE@
Packit aea12f
#  define GNULIB_defined_EOVERFLOW 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
Packit aea12f
/* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK,
Packit aea12f
   EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined.
Packit aea12f
   Likewise, on NonStop Kernel, EDQUOT is not defined.
Packit aea12f
   Define them here.  Values >= 2000 seem safe to use: Solaris ESTALE = 151,
Packit aea12f
   HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133.
Packit aea12f
Packit aea12f
   Note: When one of these systems defines some of these macros some day,
Packit aea12f
   binaries will have to be recompiled so that they recognizes the new
Packit aea12f
   errno values from the system.  */
Packit aea12f
Packit aea12f
# ifndef ENOMSG
Packit aea12f
#  define ENOMSG    2000
Packit aea12f
#  define GNULIB_defined_ENOMSG 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
# ifndef EIDRM
Packit aea12f
#  define EIDRM     2001
Packit aea12f
#  define GNULIB_defined_EIDRM 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
# ifndef ENOLINK
Packit aea12f
#  define ENOLINK   2002
Packit aea12f
#  define GNULIB_defined_ENOLINK 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
# ifndef EPROTO
Packit aea12f
#  define EPROTO    2003
Packit aea12f
#  define GNULIB_defined_EPROTO 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
# ifndef EMULTIHOP
Packit aea12f
#  define EMULTIHOP 2004
Packit aea12f
#  define GNULIB_defined_EMULTIHOP 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
# ifndef EBADMSG
Packit aea12f
#  define EBADMSG   2005
Packit aea12f
#  define GNULIB_defined_EBADMSG 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
# ifndef EOVERFLOW
Packit aea12f
#  define EOVERFLOW 2006
Packit aea12f
#  define GNULIB_defined_EOVERFLOW 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
# ifndef ENOTSUP
Packit aea12f
#  define ENOTSUP   2007
Packit aea12f
#  define GNULIB_defined_ENOTSUP 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
# ifndef ENETRESET
Packit aea12f
#  define ENETRESET 2011
Packit aea12f
#  define GNULIB_defined_ENETRESET 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
# ifndef ECONNABORTED
Packit aea12f
#  define ECONNABORTED 2012
Packit aea12f
#  define GNULIB_defined_ECONNABORTED 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
# ifndef ESTALE
Packit aea12f
#  define ESTALE    2009
Packit aea12f
#  define GNULIB_defined_ESTALE 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
# ifndef EDQUOT
Packit aea12f
#  define EDQUOT 2010
Packit aea12f
#  define GNULIB_defined_EDQUOT 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
# ifndef ECANCELED
Packit aea12f
#  define ECANCELED 2008
Packit aea12f
#  define GNULIB_defined_ECANCELED 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
/* On many platforms, the macros EOWNERDEAD and ENOTRECOVERABLE are not
Packit aea12f
   defined.  */
Packit aea12f
Packit aea12f
# ifndef EOWNERDEAD
Packit aea12f
#  if defined __sun
Packit aea12f
    /* Use the same values as defined for Solaris >= 8, for
Packit aea12f
       interoperability.  */
Packit aea12f
#   define EOWNERDEAD      58
Packit aea12f
#   define ENOTRECOVERABLE 59
Packit aea12f
#  elif defined _WIN32 && ! defined __CYGWIN__
Packit aea12f
    /* We have a conflict here: pthreads-win32 defines these values
Packit aea12f
       differently than MSVC 10.  It's hairy to decide which one to use.  */
Packit aea12f
#   if defined __MINGW32__ && !defined USE_WINDOWS_THREADS
Packit aea12f
     /* Use the same values as defined by pthreads-win32, for
Packit aea12f
        interoperability.  */
Packit aea12f
#    define EOWNERDEAD      43
Packit aea12f
#    define ENOTRECOVERABLE 44
Packit aea12f
#   else
Packit aea12f
     /* Use the same values as defined by MSVC 10, for
Packit aea12f
        interoperability.  */
Packit aea12f
#    define EOWNERDEAD      133
Packit aea12f
#    define ENOTRECOVERABLE 127
Packit aea12f
#   endif
Packit aea12f
#  else
Packit aea12f
#   define EOWNERDEAD      2013
Packit aea12f
#   define ENOTRECOVERABLE 2014
Packit aea12f
#  endif
Packit aea12f
#  define GNULIB_defined_EOWNERDEAD 1
Packit aea12f
#  define GNULIB_defined_ENOTRECOVERABLE 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
# ifndef EILSEQ
Packit aea12f
#  define EILSEQ 2015
Packit aea12f
#  define GNULIB_defined_EILSEQ 1
Packit aea12f
# endif
Packit aea12f
Packit aea12f
#endif /* _@GUARD_PREFIX@_ERRNO_H */
Packit aea12f
#endif /* _@GUARD_PREFIX@_ERRNO_H */