]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(Function Portability): Add strerror_r, cross referencing AC_FUNC_STRERROR_R.
authorKevin Ryde <user42@zip.com.au>
Wed, 19 May 2004 01:44:39 +0000 (01:44 +0000)
committerKevin Ryde <user42@zip.com.au>
Wed, 19 May 2004 01:44:39 +0000 (01:44 +0000)
doc/autoconf.texi

index 1b2342549ddd154efe66609985abadc71b3820fc..a7572c1a59e584430942b66d9f15349ed1be27cf 100644 (file)
@@ -3717,6 +3717,14 @@ constant strings in read-only memory
 Porting the @acronym{GNU} Compiler Collection}).  Apparently in some cases even
 having format strings read-only can be a problem.
 
+@item @code{strerror_r}
+@c @fuindex strerror_r
+@prindex @code{strerror_r}
+POSIX specifies that @code{strerror_r} returns an @code{int}, but many
+systems (eg.@: @acronym{GNU} C Library version 2.2.4) provide a
+different version returning a @code{char *}.  @code{AC_FUNC_STRERROR_R}
+can detect which is in use (@pxref{Particular Functions}).
+
 @item @code{strnlen}
 @c @fuindex strnlen
 @prindex @code{strnlen}