OSDN Git Service

LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git] / original / man3 / perror.3
index 85015f4..0a812a9 100644 (file)
@@ -3,6 +3,7 @@
 .\"      (michael@cantor.informatik.rwth-aachen.de), 1995-03-16
 .\" Copyright (c) 1996 Andries Brouwer (aeb@cwi.nl), 1996-01-13
 .\"
+.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
 .\" This is free documentation; you can redistribute it and/or
 .\" modify it under the terms of the GNU General Public License as
 .\" published by the Free Software Foundation; either version 2 of
 .\" GNU General Public License for more details.
 .\"
 .\" You should have received a copy of the GNU General Public
-.\" License along with this manual; if not, write to the Free
-.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
-.\" USA.
+.\" License along with this manual; if not, see
+.\" <http://www.gnu.org/licenses/>.
+.\" %%%LICENSE_END
 .\"
 .\" 1996-01-13 aeb: merged in some text contributed by Melvin Smith
 .\"   (msmith@falcon.mercer.peachnet.edu) and various other changes.
 .\" Modified 1996-05-16 by Martin Schulze (joey@infodrom.north.de)
 .\"
-.TH PERROR 3 2012-04-17 "" "Linux Programmer's Manual"
+.TH PERROR 3 2014-05-28 "" "Linux Programmer's Manual"
 .SH NAME
 perror \- print a system error message
 .SH SYNOPSIS
@@ -37,11 +38,11 @@ perror \- print a system error message
 .sp
 .B #include <errno.h>
 .sp
-.BI "const char *" sys_errlist [];
+.BI "const char * const " sys_errlist [];
 .br
 .BI "int " sys_nerr ;
 .br
-.BI "int " errno ;
+.BI "int " errno "; /* Not really declared this way; see errno(3). */"
 .sp
 .in -4n
 Feature Test Macro Requirements for glibc (see
@@ -87,7 +88,6 @@ The use of
 .IR sys_errlist "[]"
 is nowadays deprecated.
 
-
 When a system call fails, it usually returns \-1 and sets the
 variable
 .I errno
@@ -108,7 +108,7 @@ Thus, if a failing call is not immediately followed by a call to
 the value of
 .I errno
 should be saved.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
 The function
 .BR perror ()
 and the external
@@ -136,8 +136,17 @@ are defined by glibc, but in
 .\" and
 .\" .I _sys_errlist
 .\" are provided.
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR err (3),
 .BR errno (3),
 .BR error (3),
 .BR strerror (3)
+.SH COLOPHON
+This page is part of release 3.68 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.