2
0
mirror of git://git.sv.gnu.org/autoconf synced 2025-03-25 14:50:24 +08:00

(Particular Functions): Document the HAVE_WORKING_STRERROR_R ->

STRERROR_R_CHAR_P change suggested by POSIX.  Also, document the fact
that AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
This commit is contained in:
Paul Eggert 2001-10-22 17:50:09 +00:00
parent 5210e0c90b
commit ec3ef48c3f

@ -3757,15 +3757,18 @@ variable @code{POW_LIB} to the extra library needed.
@defmac AC_FUNC_STRERROR_R @defmac AC_FUNC_STRERROR_R
@acindex FUNC_STRERROR_R @acindex FUNC_STRERROR_R
@cvindex HAVE_STRERROR_R @cvindex HAVE_STRERROR_R
@cvindex HAVE_WORKING_STRERROR_R @cvindex HAVE_DECL_STRERROR_R
@cvindex STRERROR_R_CHAR_P
@c @fuindex strerror_r @c @fuindex strerror_r
@prindex @code{strerror_r} @prindex @code{strerror_r}
If @code{strerror_r} is available, define @code{HAVE_STRERROR_R}. If If @code{strerror_r} is available, define @code{HAVE_STRERROR_R}, and if
its implementation correctly returns a @code{char *}, define it is declared, define @code{HAVE_DECL_STRERROR_R}. If it returns a
@code{HAVE_WORKING_STRERROR_R}. On at least DEC UNIX 4.0[A-D] and HP-UX @code{char *} message, define @code{STRERROR_R_CHAR_P}; otherwise it
B.10.20, @code{strerror_r} returns @code{int}. Actually, this tests returns an @code{int} error number. The Thread-Safe Functions option of
only whether it returns a scalar or an array, but that should be enough. @sc{posix-200x} requires @code{strerror_r} to return @code{int}, but
This is used by the common @file{error.c}. many systems (including, for example, version 2.2.4 of the GNU C
Library) return a @code{char *} value that is not necessarily equal to
the buffer argument.
@end defmac @end defmac
@defmac AC_FUNC_STRFTIME @defmac AC_FUNC_STRFTIME