Loading...
--- Libc/Libc-1725.40.4/stdlib/FreeBSD/getopt.3
+++ Libc/Libc-583/stdlib/FreeBSD/getopt.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: getopt.3,v 1.34 2014/06/05 22:09:50 wiz Exp $
+.\" $NetBSD: getopt.3,v 1.31 2003/09/23 10:26:54 wiz Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -11,7 +11,11 @@
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
-.\" 3. Neither the name of the University nor the names of its contributors
+.\" 3. All advertising materials mentioning features or use of this software
+.\" must display the following acknowledgement:
+.\" This product includes software developed by the University of
+.\" California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
@@ -28,9 +32,9 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)getopt.3 8.5 (Berkeley) 4/27/95
-.\" $FreeBSD$
-.\"
-.Dd June 5, 2014
+.\" $FreeBSD: src/lib/libc/stdlib/getopt.3,v 1.25 2004/07/31 01:00:50 imp Exp $
+.\"
+.Dd April 27, 1995
.Dt GETOPT 3
.Os
.Sh NAME
@@ -65,23 +69,12 @@
may contain the following elements: individual characters, and
characters followed by a colon to indicate an option argument
is to follow.
-If an individual character is followed by two colons, then the
-option argument is optional;
-.Va optarg
-is set to the rest of the current
-.Va argv
-word, or
-.Dv NULL
-if there were no more characters in the current word.
-This is a
-.Tn GNU
-extension.
For example, an option string
-.Li \&"x"
+.Li "\&""x""
recognizes an option
.Dq Fl x ,
and an option string
-.Li \&"x:"
+.Li "\&""x:""
recognizes an option and argument
.Dq Fl x Ar argument .
It does not matter to