diff options
Diffstat (limited to 'man3/strerror.3')
-rw-r--r-- | man3/strerror.3 | 59 |
1 files changed, 34 insertions, 25 deletions
diff --git a/man3/strerror.3 b/man3/strerror.3 index 6240e48a6..5ed507e96 100644 --- a/man3/strerror.3 +++ b/man3/strerror.3 @@ -17,7 +17,7 @@ .\" 2005-12-13, mtk, Substantial rewrite of strerror_r() description .\" Addition of extra material on portability and standards. .\" -.TH strerror 3 2023-02-05 "Linux man-pages 6.03" +.TH strerror 3 2023-07-20 "Linux man-pages 6.05.01" .SH NAME strerror, strerrorname_np, strerrordesc_np, strerror_r, strerror_l \- return string describing error number @@ -216,62 +216,55 @@ is not a valid error number. .TP .B ERANGE Insufficient storage was supplied to contain the error description string. -.SH VERSIONS -The -.BR strerror_l () -function first appeared in glibc 2.6. -.PP -The -.BR strerrorname_np () -and -.BR strerrordesc_np () -functions first appeared in glibc 2.32. .SH ATTRIBUTES For an explanation of the terms used in this section, see .BR attributes (7). -.ad l -.nh .TS allbox; lb lb lbx l l l. Interface Attribute Value T{ +.na +.nh .BR strerror () T} Thread safety T{ +.na +.nh MT-Unsafe race:strerror T} T{ +.na +.nh .BR strerrorname_np (), .BR strerrordesc_np () T} Thread safety MT-Safe T{ +.na +.nh .BR strerror_r (), .BR strerror_l () T} Thread safety MT-Safe .TE -.hy -.ad .sp 1 .SH STANDARDS +.TP .BR strerror () -is specified by POSIX.1-2001, POSIX.1-2008, and C99. +C11, POSIX.1-2008. +.TP .BR strerror_r () -is specified by POSIX.1-2001 and POSIX.1-2008. .\" FIXME . for later review when Issue 8 is one day released... .\" A future POSIX.1 may remove strerror_r() .\" http://austingroupbugs.net/tag_view_page.php?tag_id=8 .\" http://austingroupbugs.net/view.php?id=508 -.PP +.TQ .BR strerror_l () -is specified in POSIX.1-2008. -.PP -The GNU-specific functions -.BR strerror_r (), -.BR strerrorname_np (), -and +POSIX.1-2008. +.TP +.BR strerrorname_np () +.TQ .BR strerrordesc_np () -are nonstandard extensions. +GNU. .PP POSIX.1-2001 permits .BR strerror () @@ -292,6 +285,22 @@ to .B EINVAL if the error number is unknown. C99 and POSIX.1-2008 require the return value to be non-NULL. +.SH HISTORY +.TP +.BR strerror () +POSIX.1-2001, C89. +.TP +.BR strerror_r () +POSIX.1-2001. +.TP +.BR strerror_l () +glibc 2.6. +POSIX.1-2008. +.TP +.BR strerrorname_np () +.TQ +.BR strerrordesc_np () +glibc 2.32. .SH NOTES The GNU C Library uses a buffer of 1024 characters for .BR strerror (). |