summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoraaron <>1999-05-27 13:09:09 +0000
committeraaron <>1999-05-27 13:09:09 +0000
commit629cc1e026f715bef9adfabd8b33329332499ebe (patch)
tree77b3596fba528b5c849e6476e698ebb3a1818896 /src
parent57296c612c4cd0e23f9467bfe1b60679cff7deaa (diff)
downloadopenbsd-629cc1e026f715bef9adfabd8b33329332499ebe.tar.gz
openbsd-629cc1e026f715bef9adfabd8b33329332499ebe.tar.bz2
openbsd-629cc1e026f715bef9adfabd8b33329332499ebe.zip
getopt(3) does not return -1 when encountering unrecognized options
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/stdlib/getopt.35
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/getopt.3 b/src/lib/libc/stdlib/getopt.3
index 1697f58ec8..57d2c3668b 100644
--- a/src/lib/libc/stdlib/getopt.3
+++ b/src/lib/libc/stdlib/getopt.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: getopt.3,v 1.7 1999/05/23 14:11:03 aaron Exp $ 32.\" $OpenBSD: getopt.3,v 1.8 1999/05/27 13:09:09 aaron Exp $
33.\" 33.\"
34.Dd April 19, 1994 34.Dd April 19, 1994
35.Dt GETOPT 3 35.Dt GETOPT 3
@@ -121,8 +121,7 @@ The
121.Fn getopt 121.Fn getopt
122function 122function
123returns \-1 123returns \-1
124when the argument list is exhausted, or a non-recognized 124when the argument list is exhausted.
125option is encountered.
126The interpretation of options in the argument list may be cancelled 125The interpretation of options in the argument list may be cancelled
127by the option 126by the option
128.Ql -- 127.Ql --