getopt(3) returns -1 when out of args, not EOF, whee!
authormillert <millert@openbsd.org>
Wed, 15 Jan 1997 23:40:20 +0000 (23:40 +0000)
committermillert <millert@openbsd.org>
Wed, 15 Jan 1997 23:40:20 +0000 (23:40 +0000)
commit72799b18e5d7fe7a63e4137ee58a606d3817781d
tree698a9ab6fd99eb5b6c651ec199bb17cca9178980
parent1540e4ebfe35b67a36f11abe0e84834648d33b4e
getopt(3) returns -1 when out of args, not EOF, whee!
252 files changed:
bin/cp/cp.c
bin/csh/printf.c
bin/ed/main.c
bin/pwd/pwd.c
bin/rcp/rcp.c
bin/rmail/rmail.c
bin/sh/histedit.c
bin/sleep/sleep.c
distrib/crunch/crunchide/crunchide.c
games/arithmetic/arithmetic.c
games/banner/banner.c
games/boggle/boggle/bog.c
games/cribbage/crib.c
games/factor/factor.c
games/fish/fish.c
games/fortune/fortune/fortune.c
games/fortune/strfile/strfile.c
games/gomoku/main.c
games/morse/morse.c
games/number/number.c
games/phantasia/setup.c
games/pig/pig.c
games/primes/primes.c
games/quiz/quiz.c
games/random/random.c
games/snake/snake/snake.c
games/tetris/tetris.c
games/worms/worms.c
games/wump/wump.c
kerberosIV/kadmin/kadmin.c
kerberosIV/kadmind/admin_server.c
kerberosIV/kerberos/kerberos.c
kerberosIV/kpropd/kpropd.c
lib/libc/time/zic.c
libexec/fingerd/fingerd.c
libexec/ftpd/ftpd.c
libexec/getNAME/getNAME.c
libexec/lfs_cleanerd/cleanerd.c
libexec/mail.local/mail.local.c
libexec/rlogind/rlogind.c
libexec/rshd/rshd.c
libexec/telnetd/telnetd.c
regress/lib/libc/db/dbtest.c
regress/lib/libc/regex/main.c
regress/sys/arch/i386/ldt/testldt.c
sbin/bim/bim.c
sbin/dmesg/dmesg.c
sbin/fsck_ffs/main.c
sbin/fsck_msdos/main.c
sbin/modload/modload.c
sbin/modunload/modunload.c
sbin/mount/mount.c
sbin/mount_ados/mount_ados.c
sbin/mount_cd9660/mount_cd9660.c
sbin/mount_ext2fs/mount_ext2fs.c
sbin/mount_fdesc/mount_fdesc.c
sbin/mount_ffs/mount_ffs.c
sbin/mount_kernfs/mount_kernfs.c
sbin/mount_lfs/mount_lfs.c
sbin/mount_msdos/mount_msdos.c
sbin/mount_null/mount_null.c
sbin/mount_portal/mount_portal.c
sbin/mount_procfs/mount_procfs.c
sbin/mount_umap/mount_umap.c
sbin/mount_union/mount_union.c
sbin/mountd/mountd.c
sbin/ncheck_ffs/ncheck_ffs.c
sbin/newfs/newfs.c
sbin/newfs_msdos/newfs_msdos.c
sbin/newlfs/newfs.c
sbin/nfsd/nfsd.c
sbin/nfsiod/nfsiod.c
sbin/ping/ping.c
sbin/reboot/reboot.c
sbin/restore/main.c
sbin/route/route.c
sbin/routed/main.c
sbin/routed/rtquery/rtquery.c
sbin/scsi/scsi.c
sbin/shutdown/shutdown.c
sbin/swapon/swapon.c
sbin/sysctl/pathconf.c
sbin/sysctl/sysctl.c
sbin/ttyflags/ttyflags.c
sbin/umount/umount.c
sys/arch/alpha/stand/installboot.c
sys/arch/amiga/stand/binpatch/binpatch.c
sys/arch/amiga/stand/loadbsd/loadbsd.c
sys/arch/atari/stand/binpatch/binpatch.c
sys/arch/atari/stand/tostools/chg_pid/chg_pid.c
sys/arch/atari/stand/tostools/loadbsd/loadbsd.c
sys/arch/atari/stand/tostools/rawwrite/rawwrite.c
sys/arch/i386/isa/pcvt/Util/cursor/cursor.c
sys/arch/i386/isa/pcvt/Util/demo/playvt.c
sys/arch/i386/isa/pcvt/Util/ispcvt/ispcvt.c
sys/arch/i386/isa/pcvt/Util/kcon/kcon.c
sys/arch/i386/isa/pcvt/Util/loadfont/loadfont.c
sys/arch/i386/isa/pcvt/Util/mcon/mcon.c
sys/arch/i386/isa/pcvt/Util/scon/scon.c
sys/arch/i386/isa/pcvt/Util/set2061/main.c
sys/arch/i386/isa/pcvt/Util/userkeys/vt220keys.c
sys/arch/mvme68k/stand/installboot/installboot.c
sys/arch/pmax/stand/mkboottape.c
sys/arch/sparc/stand/installboot.c
sys/arch/sun3/stand/installboot/installboot.c
sys/dev/microcode/aic7xxx/aic7xxx_asm.c
usr.bin/apply/apply.c
usr.bin/apropos/apropos.c
usr.bin/ar/ar.c
usr.bin/at/at.c
usr.bin/bdes/bdes.c
usr.bin/biff/biff.c
usr.bin/cal/cal.c
usr.bin/calendar/calendar.c
usr.bin/cap_mkdb/cap_mkdb.c
usr.bin/chpass/chpass.c
usr.bin/cmp/cmp.c
usr.bin/col/col.c
usr.bin/colrm/colrm.c
usr.bin/column/column.c
usr.bin/compress/compress.c
usr.bin/ctags/ctags.c
usr.bin/cut/cut.c
usr.bin/du/du.c
usr.bin/elf2olf/elf2olf.c
usr.bin/file/file.c
usr.bin/find/main.c
usr.bin/finger/finger.c
usr.bin/from/from.c
usr.bin/fstat/fstat.c
usr.bin/ftp/main.c
usr.bin/getopt/getopt.c
usr.bin/head/head.c
usr.bin/hexdump/hexsyntax.c
usr.bin/hexdump/odsyntax.c
usr.bin/id/id.c
usr.bin/info_mkdb/info_mkdb.c
usr.bin/ipcs/ipcs.c
usr.bin/join/join.c
usr.bin/ktrace/ktrace.c
usr.bin/last/last.c
usr.bin/lastcomm/lastcomm.c
usr.bin/locate/code/locate.code.c
usr.bin/locate/locate/locate.c
usr.bin/lock/lock.c
usr.bin/logger/logger.c
usr.bin/login/login.c
usr.bin/logname/logname.c
usr.bin/look/look.c
usr.bin/m4/main.c
usr.bin/mail/main.c
usr.bin/make/main.c
usr.bin/man/man.c
usr.bin/mesg/mesg.c
usr.bin/modstat/modstat.c
usr.bin/nc/netcat.c
usr.bin/netstat/main.c
usr.bin/newsyslog/newsyslog.c
usr.bin/nfsstat/nfsstat.c
usr.bin/nm/nm.c
usr.bin/passwd/passwd.c
usr.bin/paste/paste.c
usr.bin/pr/pr.c
usr.bin/ranlib/ranlib.c
usr.bin/rev/rev.c
usr.bin/rlogin/rlogin.c
usr.bin/rpcinfo/rpcinfo.c
usr.bin/rsh/rsh.c
usr.bin/ruptime/ruptime.c
usr.bin/rwho/rwho.c
usr.bin/script/script.c
usr.bin/sed/main.c
usr.bin/size/size.c
usr.bin/split/split.c
usr.bin/strip/strip.c
usr.bin/su/su.c
usr.bin/systat/main.c
usr.bin/tail/tail.c
usr.bin/tcopy/tcopy.c
usr.bin/telnet/main.c
usr.bin/time/time.c
usr.bin/touch/touch.c
usr.bin/tput/tput.c
usr.bin/tr/tr.c
usr.bin/tset/tset.c
usr.bin/tsort/tsort.c
usr.bin/ul/ul.c
usr.bin/uniq/uniq.c
usr.bin/unvis/unvis.c
usr.bin/users/users.c
usr.bin/vacation/vacation.c
usr.bin/vi/common/main.c
usr.bin/vis/vis.c
usr.bin/vmstat/vmstat.c
usr.bin/w/w.c
usr.bin/wall/wall.c
usr.bin/whatis/whatis.c
usr.bin/whereis/whereis.c
usr.bin/whois/whois.c
usr.bin/xargs/xargs.c
usr.bin/xinstall/xinstall.c
usr.sbin/ac/ac.c
usr.sbin/amd/amd/get_args.c
usr.sbin/amd/amq/amq.c
usr.sbin/amd/fsinfo/fsinfo.c
usr.sbin/amd/mk-amd-map/mk-amd-map.c
usr.sbin/arp/arp.c
usr.sbin/catman/catman.c
usr.sbin/chown/chown.c
usr.sbin/config.old/main.c
usr.sbin/config/main.c
usr.sbin/ctm/mkCTM/mkctm.c
usr.sbin/dev_mkdb/dev_mkdb.c
usr.sbin/grfinfo/grfinfo.c
usr.sbin/gspa/gspa/gspa.c
usr.sbin/hilinfo/hilinfo.c
usr.sbin/inetd/inetd.c
usr.sbin/iostat/iostat.c
usr.sbin/kgmon/kgmon.c
usr.sbin/mopd/mopchk/mopchk.c
usr.sbin/mopd/mopd/mopd.c
usr.sbin/mopd/mopprobe/mopprobe.c
usr.sbin/mopd/moptrace/moptrace.c
usr.sbin/mtree/mtree.c
usr.sbin/named/dnsquery/dnsquery.c
usr.sbin/named/named-xfer/named-xfer.c
usr.sbin/named/xfer/named-xfer.c
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
usr.sbin/pkg_install/add/main.c
usr.sbin/pkg_install/create/main.c
usr.sbin/pkg_install/delete/main.c
usr.sbin/pkg_install/info/main.c
usr.sbin/portmap/portmap.c
usr.sbin/pwd_mkdb/pwd_mkdb.c
usr.sbin/rarpd/rarpd.c
usr.sbin/rbootd/rbootd.c
usr.sbin/sendmail/contrib/bitdomain.c
usr.sbin/sendmail/mailstats/mailstats.c
usr.sbin/sendmail/makemap/makemap.c
usr.sbin/sendmail/praliases/praliases.c
usr.sbin/sendmail/src/main.c
usr.sbin/sysctl/pathconf.c
usr.sbin/sysctl/sysctl.c
usr.sbin/syslogd/syslogd.c
usr.sbin/tcpdump/tcpdump.c
usr.sbin/trpt/trpt.c
usr.sbin/videomode/videomode.c
usr.sbin/vipw/vipw.c
usr.sbin/ypserv/makedbm/makedbm.c
usr.sbin/ypserv/mknetid/mknetid.c
usr.sbin/ypserv/ypserv/ypserv.c
usr.sbin/ypserv/ypxfr/ypxfr.c