version 1.1.1.1, 2012/05/29 09:29:43
|
version 1.1.1.2, 2021/03/17 13:38:46
|
Line 1
|
Line 1
|
/* strerror-override.h --- POSIX compatible system error routine |
/* strerror-override.h --- POSIX compatible system error routine |
|
|
Copyright (C) 2010-2011 Free Software Foundation, Inc. | Copyright (C) 2010-2019 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 13
|
Line 13
|
GNU General Public License for more details. |
GNU General Public License for more details. |
|
|
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ | along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
|
|
#ifndef _GL_STRERROR_OVERRIDE_H |
#ifndef _GL_STRERROR_OVERRIDE_H |
# define _GL_STRERROR_OVERRIDE_H |
# define _GL_STRERROR_OVERRIDE_H |
Line 29
|
Line 29
|
/* If ERRNUM maps to an errno value defined by gnulib, return a string |
/* If ERRNUM maps to an errno value defined by gnulib, return a string |
describing the error. Otherwise return NULL. */ |
describing the error. Otherwise return NULL. */ |
# if REPLACE_STRERROR_0 \ |
# if REPLACE_STRERROR_0 \ |
|| GNULIB_defined_ETXTBSY \ |
|
|| GNULIB_defined_ESOCK \ |
|| GNULIB_defined_ESOCK \ |
|
|| GNULIB_defined_ESTREAMS \ |
|
|| GNULIB_defined_EWINSOCK \ |
|| GNULIB_defined_ENOMSG \ |
|| GNULIB_defined_ENOMSG \ |
|| GNULIB_defined_EIDRM \ |
|| GNULIB_defined_EIDRM \ |
|| GNULIB_defined_ENOLINK \ |
|| GNULIB_defined_ENOLINK \ |
Line 43
|
Line 44
|
|| GNULIB_defined_ECONNABORTED \ |
|| GNULIB_defined_ECONNABORTED \ |
|| GNULIB_defined_ESTALE \ |
|| GNULIB_defined_ESTALE \ |
|| GNULIB_defined_EDQUOT \ |
|| GNULIB_defined_EDQUOT \ |
|| GNULIB_defined_ECANCELED | || GNULIB_defined_ECANCELED \ |
extern const char *strerror_override (int errnum); | || GNULIB_defined_EOWNERDEAD \ |
| || GNULIB_defined_ENOTRECOVERABLE \ |
| || GNULIB_defined_EILSEQ |
| extern const char *strerror_override (int errnum) _GL_ATTRIBUTE_CONST; |
# else |
# else |
# define strerror_override(ignored) NULL |
# define strerror_override(ignored) NULL |
# endif |
# endif |