OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man3 / error.3
index 95bd57b..42051fc 100644 (file)
@@ -1,6 +1,7 @@
 .\" Copyright (C) 2006 Justin Pryzby <pryzbyj@justinpryzby.com>
 .\" and Copyright (C) 2006 Michael Kerrisk <mtk.manpages@gmail.com>
 .\"
+.\" %%%LICENSE_START(PERMISSIVE_MISC)
 .\" Permission is hereby granted, free of charge, to any person obtaining
 .\" a copy of this software and associated documentation files (the
 .\" "Software"), to deal in the Software without restriction, including
@@ -19,6 +20,7 @@
 .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+.\" %%%LICENSE_END
 .\"
 .\" References:
 .\"   glibc manual and source
@@ -28,21 +30,18 @@ error, error_at_line, error_message_count, error_one_per_line,
 error_print_progname \- glibc error reporting functions
 .SH SYNOPSIS
 .nf
-\fB#include <error.h>
+.B #include <error.h>
 
-\fBvoid error(int \fIstatus, \fBint\fI errnum, \
-\fBconst char *\fIformat, \fB...);
+.BI "void error(int " status ", int " errnum ", const char *" format ", ...);"
 
-\fBvoid error_at_line(int \fIstatus, \fBint \fIerrnum, \
-\fBconst char *\fIfilename,
-                   \fBunsigned int \fIlinenum, \
-\fBconst char *\fIformat, \fB...);
+.BI "void error_at_line(int " status ", int " errnum ", const char *" filename ,
+.BI "                   unsigned int " linenum ", const char *" format ", ...);"
 
-\fBextern unsigned int \fIerror_message_count\fP;
+.BI "extern unsigned int " error_message_count ;
 
-\fBextern int \fIerror_one_per_line\fP;
+.BI "extern int " error_one_per_line ;
 
-\fBextern void (* \fIerror_print_progname\fB) (void);
+.BI "extern void (*" error_print_progname ") (void);"
 .fi
 .SH DESCRIPTION
 .BR error ()
@@ -119,7 +118,7 @@ is assigned the address of a function
 instead of prefixing the message with the program name and colon.
 The function should print a suitable string to
 .IR stderr .
-.SH "CONFORMING TO"
+.SH CONFORMING TO
 These functions and variables are GNU extensions, and should not be
 used in programs intended to be portable.
 .SH SEE ALSO
@@ -129,3 +128,12 @@ used in programs intended to be portable.
 .BR perror (3),
 .BR program_invocation_name (3),
 .BR strerror (3)
+.SH COLOPHON
+This page is part of release 3.79 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/.