version 1.1.1.1, 2012/02/21 22:57:48
|
version 1.1.1.2, 2012/05/29 09:29:43
|
Line 1
|
Line 1
|
/* A POSIX-like <errno.h>. |
/* A POSIX-like <errno.h>. |
|
|
Copyright (C) 2008-2009 Free Software Foundation, Inc. | Copyright (C) 2008-2011 Free Software Foundation, Inc. |
|
|
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
Line 16
|
Line 16
|
along with this program; if not, write to the Free Software Foundation, |
along with this program; if not, write to the Free Software Foundation, |
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
|
|
#ifndef _GL_ERRNO_H | #ifndef _@GUARD_PREFIX@_ERRNO_H |
|
|
#if __GNUC__ >= 3 |
#if __GNUC__ >= 3 |
@PRAGMA_SYSTEM_HEADER@ |
@PRAGMA_SYSTEM_HEADER@ |
#endif |
#endif |
|
@PRAGMA_COLUMNS@ |
|
|
/* The include_next requires a split double-inclusion guard. */ |
/* The include_next requires a split double-inclusion guard. */ |
#@INCLUDE_NEXT@ @NEXT_ERRNO_H@ |
#@INCLUDE_NEXT@ @NEXT_ERRNO_H@ |
|
|
#ifndef _GL_ERRNO_H | #ifndef _@GUARD_PREFIX@_ERRNO_H |
#define _GL_ERRNO_H | #define _@GUARD_PREFIX@_ERRNO_H |
|
|
|
|
/* On native Windows platforms, many macros are not defined. */ |
/* On native Windows platforms, many macros are not defined. */ |
Line 98
|
Line 99
|
|
|
/* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK, |
/* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK, |
EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined. |
EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined. |
|
Likewise, on NonStop Kernel, EDQUOT is not defined. |
Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151, |
Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151, |
HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133. |
HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133. |
|
|
Line 145
|
Line 147
|
# define GNULIB_defined_ENOTSUP 1 |
# define GNULIB_defined_ENOTSUP 1 |
# endif |
# endif |
|
|
|
# ifndef ENETRESET |
|
# define ENETRESET 2011 |
|
# define GNULIB_defined_ENETRESET 1 |
|
# endif |
|
|
|
# ifndef ECONNABORTED |
|
# define ECONNABORTED 2012 |
|
# define GNULIB_defined_ECONNABORTED 1 |
|
# endif |
|
|
# ifndef ESTALE |
# ifndef ESTALE |
# define ESTALE 2009 |
# define ESTALE 2009 |
# define GNULIB_defined_ESTALE 1 |
# define GNULIB_defined_ESTALE 1 |
# endif |
# endif |
|
|
|
# ifndef EDQUOT |
|
# define EDQUOT 2010 |
|
# define GNULIB_defined_EDQUOT 1 |
|
# endif |
|
|
# ifndef ECANCELED |
# ifndef ECANCELED |
# define ECANCELED 2008 |
# define ECANCELED 2008 |
# define GNULIB_defined_ECANCELED 1 |
# define GNULIB_defined_ECANCELED 1 |
# endif |
# endif |
|
|
|
|
#endif /* _GL_ERRNO_H */ | #endif /* _@GUARD_PREFIX@_ERRNO_H */ |
#endif /* _GL_ERRNO_H */ | #endif /* _@GUARD_PREFIX@_ERRNO_H */ |