]> git.ipfire.org Git - thirdparty/coreutils.git/commit
(strerror_r): Do not declare unless !_LIBC.
authorJim Meyering <jim@meyering.net>
Sun, 21 Oct 2001 07:59:04 +0000 (07:59 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 21 Oct 2001 07:59:04 +0000 (07:59 +0000)
commit7d6185f0f51bbd09c29e121d25841a573e776e06
tree2ae116f065fc770e0051a5e82a70016574ff2a49
parentad2abcb447fb91730533a201f869f4f2f840f221
(strerror_r): Do not declare unless !_LIBC.
Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
Use strerror_r that is only a macro, even if it is not a function.
(strerror): Check for HAVE_DECL_STRERROR before declaring.
(private_strerror): Use prototypes, not old-style function definition.
(print_errno_message): New function.
Support the POSIX 'int'-flavored strerror_r, as well as the traditional
char*-flavored one.
(error_tail, error, error_at_line): Use it.
lib/error.c