mirror of https://github.com/mkerrisk/man-pages
Modify SYNOPSIS to show protoypes of both versions of strerror_r(),
and make other small clarifications of the description regarding the two versions.
This commit is contained in:
parent
0f7035a8cb
commit
2d50dd9efa
|
@ -34,7 +34,7 @@
|
|||
.\" 2005-12-13, mtk, Substantial rewrite of strerror_r() description
|
||||
.\" Addition of extra material on portability and standards.
|
||||
.\"
|
||||
.TH STRERROR 3 2007-07-26 "" "Linux Programmer's Manual"
|
||||
.TH STRERROR 3 2008-06-13 "" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
strerror, strerror_r \- return string describing error number
|
||||
.SH SYNOPSIS
|
||||
|
@ -43,7 +43,11 @@ strerror, strerror_r \- return string describing error number
|
|||
.sp
|
||||
.BI "char *strerror(int " errnum );
|
||||
.sp
|
||||
.BI "int strerror_r(int " errnum ", char *" buf ", size_t " buflen );
|
||||
/* XSI-compliant */
|
||||
.sp
|
||||
.BI "char *strerror_r(int " errnum ", char *" buf ", size_t " buflen );
|
||||
/* GNU-specific */
|
||||
.fi
|
||||
.sp
|
||||
.in -4n
|
||||
|
@ -56,6 +60,8 @@ The XSI-compliant version of
|
|||
is provided if:
|
||||
.br
|
||||
(_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !\ _GNU_SOURCE
|
||||
.br
|
||||
Otherwise, the GNU-specific version is provided.
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
.BR strerror ()
|
||||
|
@ -118,7 +124,7 @@ is too small) and the string always includes a terminating null byte.
|
|||
.SH "RETURN VALUE"
|
||||
The
|
||||
.BR strerror ()
|
||||
and
|
||||
and the GNU-specific
|
||||
.BR strerror_r ()
|
||||
functions return
|
||||
the appropriate error description string,
|
||||
|
|
Loading…
Reference in New Issue