From 3af6d22bb3850ab2bac67287e3a3d3b0e32868e5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 21:41:07 +0200 Subject: Merging upstream version 6.7. Signed-off-by: Daniel Baumann --- man3/perror.3 | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'man3/perror.3') diff --git a/man3/perror.3 b/man3/perror.3 index efb3e6f..2bd83c2 100644 --- a/man3/perror.3 +++ b/man3/perror.3 @@ -10,7 +10,7 @@ .\" (msmith@falcon.mercer.peachnet.edu) and various other changes. .\" Modified 1996-05-16 by Martin Schulze (joey@infodrom.north.de) .\" -.TH perror 3 2023-07-20 "Linux man-pages 6.05.01" +.TH perror 3 2023-10-31 "Linux man-pages 6.7" .SH NAME perror \- print a system error message .SH LIBRARY @@ -19,22 +19,22 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void perror(const char *" s ); -.PP +.P .B #include -.PP +.P .BI "int " errno "; \fR/* Not really declared this way; see errno(3) */" -.PP +.P .BI "[[deprecated]] const char *const " sys_errlist []; .BI "[[deprecated]] int " sys_nerr ; .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .IR sys_errlist , .IR sys_nerr : .nf @@ -48,7 +48,7 @@ The .BR perror () function produces a message on standard error describing the last error encountered during a call to a system or library function. -.PP +.P First (if .I s is not NULL and @@ -59,10 +59,10 @@ is printed, followed by a colon and a blank. Then an error message corresponding to the current value of .I errno and a new-line. -.PP +.P To be of most use, the argument string should include the name of the function that incurred the error. -.PP +.P The global error list .IR sys_errlist "[]," which can be indexed by @@ -78,7 +78,7 @@ The use of is nowadays deprecated; use .BR strerror (3) instead. -.PP +.P When a system call fails, it usually returns \-1 and sets the variable .I errno @@ -113,7 +113,6 @@ T{ .BR perror () T} Thread safety MT-Safe race:stderr .TE -.sp 1 .SH STANDARDS .TP .I errno -- cgit v1.2.3