Justin, > > Below is the draft that I have added to 2.31. I added and changed > > quite a few thinbgs. If you see anything to fix, let me know. > > Your #include is missing in the formatted output.
Thanks. Fixed now. > > .SH NAME > > error, error_at_line, error_message_count, error_on_per_line, \ > > error_print_progname \- glibc error reporting functions > Thanks, mentioning multiple things was the next bit to add; Best to send me a first draft that is as complete as you can reasonably make it... Also, the other thing to add was new link files. > you might > consider also adding program_invocation_name, but perhaps not.. Doesn't really belong on this page... > > \fBconst char *\fIfilename, > Did you intend to add a trailing backslash to this line too? No. (Try adding one and see how the output looks...) > > The program name printed by > > .BR error () > > is the value of the global variable > > .IR program_invocation_name > > (which initially has the same value as > > .IR main ()'s > > .IR argv[0] ), > > declared as > > .IR "extern char *program_invocation_name" > > in > > .IR <errno.h> > > if the feature test macro _GNU_SOURCE is defined. > This is a "run on" sentence, and should be somehow split up. This > could perhaps be done at the same time as making a separate sentence > for p-i-n, justifying this as its manpage Agreed; it is overly complex. I've broken it up. > (although it is declared in > a different header file, so I don't know if I like it..). I don't like it. > { The program name printed by > { .BR error () > { is the value of the global variable > { .IR program_invocation_name. > > { .IR program_invocation_name has the the same initial value as > { .IR main ()'s > { .IR argv[0] ), and is > { declared as > { .IR "extern char *program_invocation_name" > { in > { .IR <errno.h> > { if the feature test macro _GNU_SOURCE is defined. Thanks. > If you like, I'll patch errno.3 for this, or write a new manpage > (ugh). Patching errno would not be the place for this. I have written a new page. > > .I filename > > and > > .IR linenum . > > The output produced is as for > > .BR error (), > > except that after the program name are written: a colon, the value of > A better english phrase would be: > except that the output is: the program name, a colon, the value of Why better? My phrase there seems perfectly grammatical. So is yours, but it drops some information aboyut the location of the output. > > The global variable \fIerror_message_count\fP counts the number of > > messages that have been output by > > \fBerror\fP() and \fBerror_at_line\fP(). > Could you document that the glibc manual is, at best, unclear about > the value of that variable? (Lines printed, not times called) No. File a bug report to the glibc folks. > > .SH SEE ALSO > > .BR errno (3), > > .BR perror (3), > > .BR strerror (3), > > .BR err (3), > > .BR exit (3) > Could we keep the reference to the glibc manual? No -- it is generally assumed. I don't write that on every .3 man page. > Could you also add some SEE ALSOs back to error()? Already done. Thanks for your comments. Cheers, Michael -- Michael Kerrisk maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 Want to help with man page maintenance? Grab the latest tarball at ftp://ftp.win.tue.nl/pub/linux-local/manpages/, read the HOWTOHELP file and grep the source files for 'FIXME'. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]