Browse Source

Remove some lies

OPENBSD_3_4
millert 21 years ago
parent
commit
20542d1d50
2 changed files with 8 additions and 11 deletions
  1. +7
    -7
      src/lib/libc/stdlib/getopt.3
  2. +1
    -4
      src/lib/libc/stdlib/getopt_long.3

+ 7
- 7
src/lib/libc/stdlib/getopt.3 View File

@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: getopt.3,v 1.23 2003/06/01 19:27:27 jmc Exp $
.\" $OpenBSD: getopt.3,v 1.24 2003/06/02 03:49:39 millert Exp $
.\" .\"
.Dd December 8, 2002
.Dd December 17, 2002
.Dt GETOPT 3 .Dt GETOPT 3
.Os .Os
.Sh NAME .Sh NAME
@ -85,10 +85,6 @@ contains the index to the next
argument for a subsequent call argument for a subsequent call
to to
.Fn getopt . .Fn getopt .
The variable
.Va optopt
saves the last known option character returned by
.Fn getopt .
.Pp .Pp
The variables The variables
.Va opterr .Va opterr
@ -137,7 +133,8 @@ encounters a character not found in
.Fa optstring .Fa optstring
or if it detects a missing option argument, or if it detects a missing option argument,
it returns it returns
.Sq ? .
.Sq ?
(question mark).
If If
.Fa optstring .Fa optstring
has a leading has a leading
@ -146,6 +143,9 @@ then a missing option argument causes
.Sq \: .Sq \:
to be returned instead of to be returned instead of
.Sq ? . .Sq ? .
In either case, the variable
.Va optopt
is set to the character that caused the error.
The The
.Fn getopt .Fn getopt
function returns \-1 when the argument list is exhausted. function returns \-1 when the argument list is exhausted.


+ 1
- 4
src/lib/libc/stdlib/getopt_long.3 View File

@ -1,4 +1,4 @@
.\" $OpenBSD: getopt_long.3,v 1.6 2003/05/10 06:48:30 jmc Exp $
.\" $OpenBSD: getopt_long.3,v 1.7 2003/06/02 03:49:39 millert Exp $
.\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $ .\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $
.\" .\"
.\" Copyright (c) 1988, 1991, 1993 .\" Copyright (c) 1988, 1991, 1993
@ -368,6 +368,3 @@ argument is not really
as its elements may be permuted (unless as its elements may be permuted (unless
.Ev POSIXLY_CORRECT .Ev POSIXLY_CORRECT
is set). is set).
.Pp
In a future release, this implementation should completely replace
.Xr getopt 3 .

Loading…
Cancel
Save