Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdlib Reorder sections to conform more to mdoc.sam...



details:   https://anonhg.NetBSD.org/src/rev/a56b8b4f4bd3
branches:  trunk
changeset: 499683:a56b8b4f4bd3
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Nov 26 22:35:53 2000 +0000

description:
Reorder sections to conform more to mdoc.samples; remove non-mdoc
section header; fix two typos.

diffstat:

 lib/libc/stdlib/getopt_long.3 |  20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diffs (62 lines):

diff -r b21dfa838431 -r a56b8b4f4bd3 lib/libc/stdlib/getopt_long.3
--- a/lib/libc/stdlib/getopt_long.3     Sun Nov 26 21:05:02 2000 +0000
+++ b/lib/libc/stdlib/getopt_long.3     Sun Nov 26 22:35:53 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: getopt_long.3,v 1.3 2000/04/07 00:02:32 wiz Exp $
+.\"    $NetBSD: getopt_long.3,v 1.4 2000/11/26 22:35:53 wiz Exp $
 .\"
 .\" Copyright (c) 1988, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -86,7 +86,6 @@
 It is possible to combine these methods, providing for long options
 processing with short option equivalents for some options. Less
 frequently used options would be processed as long options only.
-.Sh USAGE
 .Pp
 The 
 .Fn getopt_long
@@ -133,7 +132,7 @@
 to the corresponding short option will make this function act just
 like
 .Xr getopt 3 .
-.Sh EXAMPLE
+.Sh EXAMPLES
 .Bd -literal -compact
 extern char *optarg;
 extern int optind;
@@ -163,7 +162,7 @@
                break;
        case 0:
                if(daggerset) {
-                       fprintf(stderr,"Buffy will put use her dagger to "
+                       fprintf(stderr,"Buffy will use her dagger to "
                                       "apply floride to dracula's teeth\en");
                }
                break;
@@ -174,11 +173,6 @@
 argc -= optind;
 argv += optind;
 .Ed
-.Sh HISTORY
-The
-.Fn getopt_long
-function first appeared in GNU libiberty. The first NetBSD implementation
-appeared in 1.5.
 .Sh IMPLEMENTATION DIFFERENCES
 .Pp
 This section describes differences to the GNU implementation
@@ -267,6 +261,14 @@
 to current positions) are the same, though.  (We do fewer variable
 swaps.)
 .El
+.Sh SEE ALSO
+.Xr getopt 3
+.Sh HISTORY
+The
+.Fn getopt_long
+function first appeared in GNU libiberty. The first 
+.Nx
+implementation appeared in 1.5.
 .Sh BUGS
 The implementation, can completelely replace
 .Xr getopt 3 ,



Home | Main Index | Thread Index | Old Index