-/* $OpenBSD: cp.c,v 1.5 1996/12/14 12:17:38 mickey Exp $ */
+/* $OpenBSD: cp.c,v 1.6 1997/01/15 23:40:20 millert Exp $ */
/* $NetBSD: cp.c,v 1.14 1995/09/07 06:14:51 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cp.c 8.5 (Berkeley) 4/29/95";
#else
-static char rcsid[] = "$OpenBSD: cp.c,v 1.5 1996/12/14 12:17:38 mickey Exp $";
+static char rcsid[] = "$OpenBSD: cp.c,v 1.6 1997/01/15 23:40:20 millert Exp $";
#endif
#endif /* not lint */
char *target;
Hflag = Lflag = Pflag = Rflag = 0;
- while ((ch = getopt(argc, argv, "HLPRfipr")) != EOF)
+ while ((ch = getopt(argc, argv, "HLPRfipr")) != -1)
switch (ch) {
case 'H':
Hflag = 1;
-/* $OpenBSD: printf.c,v 1.5 1996/12/14 12:17:41 mickey Exp $ */
+/* $OpenBSD: printf.c,v 1.6 1997/01/15 23:40:22 millert Exp $ */
/* $NetBSD: printf.c,v 1.6 1995/03/21 09:03:15 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)printf.c 8.1 (Berkeley) 7/20/93";
#else
-static char rcsid[] = "$OpenBSD: printf.c,v 1.5 1996/12/14 12:17:41 mickey Exp $";
+static char rcsid[] = "$OpenBSD: printf.c,v 1.6 1997/01/15 23:40:22 millert Exp $";
#endif
#endif /* not lint */
int ch, end, fieldwidth, precision;
char convch, nextch, *format, *fmt, *start;
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
default:
usage();
-/* $OpenBSD: main.c,v 1.5 1996/12/14 12:17:56 mickey Exp $ */
+/* $OpenBSD: main.c,v 1.6 1997/01/15 23:40:23 millert Exp $ */
/* $NetBSD: main.c,v 1.3 1995/03/21 09:04:44 cgd Exp $ */
/* main.c: This file contains the main control and user-interface routines
#if 0
static char *rcsid = "@(#)main.c,v 1.1 1994/02/01 00:34:42 alm Exp";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.5 1996/12/14 12:17:56 mickey Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.6 1997/01/15 23:40:23 millert Exp $";
#endif
#endif /* not lint */
red = (n = strlen(argv[0])) > 2 && argv[0][n - 3] == 'r';
top:
- while ((c = getopt(argc, argv, "p:sx")) != EOF)
+ while ((c = getopt(argc, argv, "p:sx")) != -1)
switch(c) {
case 'p': /* set prompt */
prompt = optarg;
-/* $OpenBSD: pwd.c,v 1.4 1996/12/14 12:18:12 mickey Exp $ */
+/* $OpenBSD: pwd.c,v 1.5 1997/01/15 23:40:24 millert Exp $ */
/* $NetBSD: pwd.c,v 1.7 1995/03/21 09:08:18 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)pwd.c 8.3 (Berkeley) 4/1/94";
#else
-static char rcsid[] = "$OpenBSD: pwd.c,v 1.4 1996/12/14 12:18:12 mickey Exp $";
+static char rcsid[] = "$OpenBSD: pwd.c,v 1.5 1997/01/15 23:40:24 millert Exp $";
#endif
#endif /* not lint */
* there's no way to display a logical path after forking. We don't
* document either flag, only adding -P for future portability.
*/
- while ((ch = getopt(argc, argv, "P")) != EOF)
+ while ((ch = getopt(argc, argv, "P")) != -1)
switch (ch) {
case 'P':
break;
/* $NetBSD: rcp.c,v 1.9 1995/03/21 08:19:06 cgd Exp $ */
-/* $OpenBSD: rcp.c,v 1.8 1996/12/22 02:57:51 tholo Exp $ */
+/* $OpenBSD: rcp.c,v 1.9 1997/01/15 23:40:25 millert Exp $ */
/*
* Copyright (c) 1983, 1990, 1992, 1993
char *targ, *shell;
fflag = tflag = 0;
- while ((ch = getopt(argc, argv, OPTIONS)) != EOF)
+ while ((ch = getopt(argc, argv, OPTIONS)) != -1)
switch(ch) { /* User-visible flags. */
case 'K':
#ifdef KERBEROS
-/* $OpenBSD: rmail.c,v 1.4 1996/12/14 12:18:17 mickey Exp $ */
+/* $OpenBSD: rmail.c,v 1.5 1997/01/15 23:40:26 millert Exp $ */
/* $NetBSD: rmail.c,v 1.8 1995/09/07 06:51:50 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)rmail.c 8.3 (Berkeley) 5/15/95";
#else
-static char rcsid[] = "$OpenBSD: rmail.c,v 1.4 1996/12/14 12:18:17 mickey Exp $";
+static char rcsid[] = "$OpenBSD: rmail.c,v 1.5 1997/01/15 23:40:26 millert Exp $";
#endif
#endif /* not lint */
debug = 0;
domain = "UUCP"; /* Default "domain". */
- while ((ch = getopt(argc, argv, "D:T")) != EOF)
+ while ((ch = getopt(argc, argv, "D:T")) != -1)
switch (ch) {
case 'T':
debug = 1;
-/* $OpenBSD: histedit.c,v 1.6 1996/10/20 00:54:50 millert Exp $ */
+/* $OpenBSD: histedit.c,v 1.7 1997/01/15 23:40:28 millert Exp $ */
/* $NetBSD: histedit.c,v 1.8 1995/05/11 21:29:12 christos Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)histedit.c 8.2 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: histedit.c,v 1.6 1996/10/20 00:54:50 millert Exp $";
+static char rcsid[] = "$OpenBSD: histedit.c,v 1.7 1997/01/15 23:40:28 millert Exp $";
#endif
#endif /* not lint */
optreset = 1; optind = 1; /* initialize getopt */
while (not_fcnumber(argv[optind]) &&
- (ch = getopt(argc, argv, ":e:lnrs")) != EOF)
+ (ch = getopt(argc, argv, ":e:lnrs")) != -1)
switch ((char)ch) {
case 'e':
editor = optarg;
-/* $OpenBSD: sleep.c,v 1.3 1996/08/02 12:41:09 deraadt Exp $ */
+/* $OpenBSD: sleep.c,v 1.4 1997/01/15 23:40:28 millert Exp $ */
/* $NetBSD: sleep.c,v 1.8 1995/03/21 09:11:11 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)sleep.c 8.3 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: sleep.c,v 1.3 1996/08/02 12:41:09 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: sleep.c,v 1.4 1997/01/15 23:40:28 millert Exp $";
#endif
#endif /* not lint */
setlocale(LC_ALL, "");
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
default:
usage();
if(argc > 0) pname = argv[0];
- while ((ch = getopt(argc, argv, "k:f:")) != EOF)
+ while ((ch = getopt(argc, argv, "k:f:")) != -1)
switch(ch) {
case 'k':
add_to_keep_list(optarg);
int ch, cnt;
void intr();
- while ((ch = getopt(argc, argv, "r:o:")) != EOF)
+ while ((ch = getopt(argc, argv, "r:o:")) != -1)
switch(ch) {
case 'o': {
register char *p;
setegid(getgid());
setgid(getgid());
- while ((ch = getopt(argc, argv, "w:td")) != EOF)
+ while ((ch = getopt(argc, argv, "w:td")) != -1)
switch(ch) {
case 'w':
width = atoi(optarg);
minlength = 3;
tlimit = 180; /* 3 minutes is standard */
- while ((ch = getopt(argc, argv, "bds:t:w:")) != EOF)
+ while ((ch = getopt(argc, argv, "bds:t:w:")) != -1)
switch(ch) {
case 'b':
batch = 1;
egid = getegid();
setegid(getgid());
- while ((ch = getopt(argc, argv, "eqr")) != EOF)
+ while ((ch = getopt(argc, argv, "eqr")) != -1)
switch (ch) {
case 'e':
explain = TRUE;
setegid(getgid());
setgid(getgid());
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
case '?':
default:
{
int ch, move;
- while ((ch = getopt(argc, argv, "p")) != EOF)
+ while ((ch = getopt(argc, argv, "p")) != -1)
switch(ch) {
case 'p':
promode = 1;
ignore_case = FALSE;
# ifdef DEBUG
- while ((ch = getopt(argc, argv, "aDefilm:osw")) != EOF)
+ while ((ch = getopt(argc, argv, "aDefilm:osw")) != -1)
#else
- while ((ch = getopt(argc, argv, "aefilm:osw")) != EOF)
+ while ((ch = getopt(argc, argv, "aefilm:osw")) != -1)
#endif /* DEBUG */
switch(ch) {
case 'a': /* any fortune */
extern int optind;
int ch;
- while ((ch = getopt(argc, argv, "c:iorsx")) != EOF)
+ while ((ch = getopt(argc, argv, "c:iorsx")) != -1)
switch(ch) {
case 'c': /* new delimiting char */
Delimch = *optarg;
-/* $OpenBSD: main.c,v 1.5 1996/12/22 20:01:16 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.6 1997/01/15 23:40:49 millert Exp $ */
/*
* Copyright (c) 1994
* The Regents of the University of California. All rights reserved.
else
prog = argv[0];
- while ((ch = getopt(argc, argv, "bcdD:u")) != EOF) {
+ while ((ch = getopt(argc, argv, "bcdD:u")) != -1) {
switch (ch) {
case 'b': /* background */
interactive = 0;
setegid(getgid());
setgid(getgid());
- while ((ch = getopt(argc, argv, "s")) != EOF)
+ while ((ch = getopt(argc, argv, "s")) != -1)
switch((char)ch) {
case 's':
sflag = 1;
setgid(getgid());
lflag = 0;
- while ((ch = getopt(argc, argv, "l")) != EOF)
+ while ((ch = getopt(argc, argv, "l")) != -1)
switch (ch) {
case 'l':
lflag = 1;
int ch;
char path[MAXPATHLEN], *prefix;
- while ((ch = getopt(argc, argv, "m:")) != EOF)
+ while ((ch = getopt(argc, argv, "m:")) != -1)
switch(ch) {
case 'm':
monsterfile = optarg;
setegid(getgid());
setgid(getgid());
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
case '?':
default:
setegid(getgid());
setgid(getgid());
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
case '?':
default:
setgid(getgid());
indexfile = _PATH_QUIZIDX;
- while ((ch = getopt(argc, argv, "i:t")) != EOF)
+ while ((ch = getopt(argc, argv, "i:t")) != -1)
switch(ch) {
case 'i':
indexfile = optarg;
setgid(getgid());
random_exit = unbuffer_output = 0;
- while ((ch = getopt(argc, argv, "er")) != EOF)
+ while ((ch = getopt(argc, argv, "er")) != -1)
switch (ch) {
case 'e':
random_exit = 1;
(void)time(&tv);
srandom((int)tv);
- while ((ch = getopt(argc, argv, "l:w:")) != EOF)
+ while ((ch = getopt(argc, argv, "l:w:")) != -1)
switch((char)ch) {
#ifdef notdef
case 'd':
egid = getegid();
setegid(gid);
- while ((ch = getopt(argc, argv, "k:l:s")) != EOF)
+ while ((ch = getopt(argc, argv, "k:l:s")) != -1)
switch(ch) {
case 'k':
if (strlen(keys = optarg) != 6)
number = 3;
trail = ' ';
field = NULL;
- while ((ch = getopt(argc, argv, "fl:n:t")) != EOF)
+ while ((ch = getopt(argc, argv, "fl:n:t")) != -1)
switch(ch) {
case 'f':
field = "WORM";
setgid(getgid());
#ifdef DEBUG
- while ((c = getopt(argc, argv, "a:b:hp:r:t:d")) != EOF)
+ while ((c = getopt(argc, argv, "a:b:hp:r:t:d")) != -1)
#else
- while ((c = getopt(argc, argv, "a:b:hp:r:t:")) != EOF)
+ while ((c = getopt(argc, argv, "a:b:hp:r:t:")) != -1)
#endif
switch (c) {
case 'a':
-/* $Id: kadmin.c,v 1.3 1996/09/15 23:30:52 millert Exp $ */
+/* $Id: kadmin.c,v 1.4 1997/01/15 23:40:50 millert Exp $ */
/*
* Copyright (C) 1989 by the Massachusetts Institute of Technology
else
strcpy(krbrlm, default_realm);
- while ((c = getopt(argc, argv, OPTION_STRING)) != EOF)
+ while ((c = getopt(argc, argv, OPTION_STRING)) != -1)
switch (c) {
case 'u':
strncpy(myname, optarg, sizeof(myname) - 1);
-/* $Id: admin_server.c,v 1.1.1.1 1995/12/14 06:52:49 tholo Exp $ */
+/* $Id: admin_server.c,v 1.2 1997/01/15 23:40:51 millert Exp $ */
/*-
* Copyright (C) 1989 by the Massachusetts Institute of Technology
bzero(krbrlm, sizeof(krbrlm));
- while ((c = getopt(argc, argv, "f:hnd:a:r:")) != EOF)
+ while ((c = getopt(argc, argv, "f:hnd:a:r:")) != -1)
switch(c) {
case 'f': /* Syslog file name change */
prm.sysfile = optarg;
-/* $Id: kerberos.c,v 1.3 1996/09/17 23:29:37 deraadt Exp $ */
+/* $Id: kerberos.c,v 1.4 1997/01/15 23:40:52 millert Exp $ */
/*-
* Copyright 1987, 1988 by the Student Information Processing Board
progname = argv[0];
- while ((c = getopt(argc, argv, "snmp:a:l:r:")) != EOF) {
+ while ((c = getopt(argc, argv, "snmp:a:l:r:")) != -1) {
switch(c) {
case 's':
/*
-/* $Id: kpropd.c,v 1.3 1996/09/16 18:48:56 millert Exp $ */
+/* $Id: kpropd.c,v 1.4 1997/01/15 23:40:53 millert Exp $ */
/*-
* Copyright 1987 by the Massachusetts Institute of Technology.
if (argv[argc - 1][0] == 'k' && isdigit(argv[argc - 1][1])) {
argc--; /* ttys file hack */
}
- while ((c = getopt(argc, argv, "r:s:d:l:p:P:")) != EOF) {
+ while ((c = getopt(argc, argv, "r:s:d:l:p:P:")) != -1) {
switch(c) {
case 'r':
rflag++;
#if 0
static char elsieid[] = "@(#)zic.c 7.80";
#else
-static char rcsid[] = "$OpenBSD: zic.c,v 1.5 1997/01/14 03:16:58 millert Exp $";
+static char rcsid[] = "$OpenBSD: zic.c,v 1.6 1997/01/15 23:40:55 millert Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
(void) textdomain(TZ_DOMAIN);
#endif /* HAVE_GETTEXT - 0 */
progname = argv[0];
- while ((c = getopt(argc, argv, "d:l:p:L:vsy:")) != EOF)
+ while ((c = getopt(argc, argv, "d:l:p:L:vsy:")) != -1)
switch (c) {
default:
usage();
#ifndef lint
/*static char sccsid[] = "from: @(#)fingerd.c 8.1 (Berkeley) 6/4/93";*/
-static char rcsid[] = "$Id: fingerd.c,v 1.5 1996/12/08 13:29:54 downsj Exp $";
+static char rcsid[] = "$Id: fingerd.c,v 1.6 1997/01/15 23:40:56 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
logging = secure = user_required = short_list = 0;
openlog("fingerd", LOG_PID | LOG_CONS, LOG_DAEMON);
opterr = 0;
- while ((ch = getopt(argc, argv, "sluSmMpP:")) != EOF)
+ while ((ch = getopt(argc, argv, "sluSmMpP:")) != -1)
switch (ch) {
case 'l':
logging = 1;
-/* $OpenBSD: ftpd.c,v 1.30 1997/01/05 21:28:07 bitblt Exp $ */
+/* $OpenBSD: ftpd.c,v 1.31 1997/01/15 23:40:58 millert Exp $ */
/* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */
/*
/* set this here so klogin can use it... */
(void)snprintf(ttyline, sizeof(ttyline), "ftp%d", getpid());
- while ((ch = getopt(argc, argv, argstr)) != EOF) {
+ while ((ch = getopt(argc, argv, argstr)) != -1) {
switch (ch) {
case 'A':
anon_only = 1;
#ifndef lint
/*static char sccsid[] = "from: @(#)getNAME.c 5.4 (Berkeley) 1/20/91";*/
-static char rcsid[] = "$Id: getNAME.c,v 1.1.1.1 1995/10/18 08:43:16 deraadt Exp $";
+static char rcsid[] = "$Id: getNAME.c,v 1.2 1997/01/15 23:40:59 millert Exp $";
#endif /* not lint */
/*
extern int optind;
int ch;
- while ((ch = getopt(argc, argv, "it")) != EOF)
+ while ((ch = getopt(argc, argv, "it")) != -1)
switch(ch) {
case 'i':
intro = 1;
-/* $OpenBSD: cleanerd.c,v 1.2 1996/07/01 11:04:56 downsj Exp $ */
+/* $OpenBSD: cleanerd.c,v 1.3 1997/01/15 23:41:00 millert Exp $ */
/*-
* Copyright (c) 1992, 1993
#ifndef lint
/*static char sccsid[] = "@(#)cleanerd.c 8.5 (Berkeley) 6/10/95";*/
-static char rcsid[] = "$OpenBSD: cleanerd.c,v 1.2 1996/07/01 11:04:56 downsj Exp $";
+static char rcsid[] = "$OpenBSD: cleanerd.c,v 1.3 1997/01/15 23:41:00 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
cmd_err = nodaemon = 0;
clean_opts = 0;
segs_per_clean = 1;
- while ((opt = getopt(argc, argv, "bdmn:r:s")) != EOF) {
+ while ((opt = getopt(argc, argv, "bdmn:r:s")) != -1) {
switch (opt) {
case 'b': /*
* Use live bytes to determine
#ifndef lint
/*static char sccsid[] = "from: @(#)mail.local.c 5.6 (Berkeley) 6/19/91";*/
-static char rcsid[] = "$Id: mail.local.c,v 1.9 1996/12/24 19:42:03 deraadt Exp $";
+static char rcsid[] = "$Id: mail.local.c,v 1.10 1997/01/15 23:41:01 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
openlog("mail.local", LOG_PERROR, LOG_MAIL);
from = NULL;
- while ((ch = getopt(argc, argv, "lLdf:r:")) != EOF)
+ while ((ch = getopt(argc, argv, "lLdf:r:")) != -1)
switch(ch) {
case 'd': /* backward compatible */
break;
#ifndef lint
/* from: static char sccsid[] = "@(#)rlogind.c 8.1 (Berkeley) 6/4/93"; */
-static char *rcsid = "$Id: rlogind.c,v 1.11 1996/12/04 04:11:44 millert Exp $";
+static char *rcsid = "$Id: rlogind.c,v 1.12 1997/01/15 23:41:02 millert Exp $";
#endif /* not lint */
/*
openlog("rlogind", LOG_PID | LOG_CONS, LOG_AUTH);
opterr = 0;
- while ((ch = getopt(argc, argv, ARGSTR)) != EOF)
+ while ((ch = getopt(argc, argv, ARGSTR)) != -1)
switch (ch) {
case 'a':
/* check_all = 1; */
#ifndef lint
/* from: static char sccsid[] = "@(#)rshd.c 8.2 (Berkeley) 4/6/94"; */
-static char *rcsid = "$Id: rshd.c,v 1.9 1996/12/22 03:41:20 tholo Exp $";
+static char *rcsid = "$Id: rshd.c,v 1.10 1997/01/15 23:41:03 millert Exp $";
#endif /* not lint */
/*
openlog("rshd", LOG_PID | LOG_ODELAY, LOG_DAEMON);
opterr = 0;
- while ((ch = getopt(argc, argv, OPTIONS)) != EOF)
+ while ((ch = getopt(argc, argv, OPTIONS)) != -1)
switch (ch) {
case 'a':
check_all = 1;
-/* $OpenBSD: telnetd.c,v 1.5 1996/12/23 13:31:40 robin Exp $ */
+/* $OpenBSD: telnetd.c,v 1.6 1997/01/15 23:41:05 millert Exp $ */
/* $NetBSD: telnetd.c,v 1.6 1996/03/20 04:25:57 tls Exp $ */
/*
static char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95";
static char rcsid[] = "$NetBSD: telnetd.c,v 1.5 1996/02/28 20:38:23 thorpej Exp $";
#else
-static char rcsid[] = "$OpenBSD: telnetd.c,v 1.5 1996/12/23 13:31:40 robin Exp $";
+static char rcsid[] = "$OpenBSD: telnetd.c,v 1.6 1997/01/15 23:41:05 millert Exp $";
#endif
#endif /* not lint */
highpty = getnpty();
#endif /* CRAY */
- while ((ch = getopt(argc, argv, valid_opts)) != EOF) {
+ while ((ch = getopt(argc, argv, valid_opts)) != -1) {
switch(ch) {
#ifdef AUTHENTICATION
fname = NULL;
oflags = O_CREAT | O_RDWR;
sflag = 0;
- while ((ch = getopt(argc, argv, "f:i:lo:s")) != EOF)
+ while ((ch = getopt(argc, argv, "f:i:lo:s")) != -1)
switch (ch) {
case 'f':
fname = optarg;
-/* $OpenBSD: main.c,v 1.2 1996/12/21 22:23:42 millert Exp $ */
+/* $OpenBSD: main.c,v 1.3 1997/01/15 23:41:07 millert Exp $ */
/* $NetBSD: main.c,v 1.2 1995/04/20 22:39:51 cgd Exp $ */
#include <stdio.h>
progname = argv[0];
- while ((c = getopt(argc, argv, "c:e:S:E:x")) != EOF)
+ while ((c = getopt(argc, argv, "c:e:S:E:x")) != -1)
switch (c) {
case 'c': /* compile options */
copts = options('c', optarg);
exit(1);
}
- while ((ch = getopt(argc, argv, "v")) != EOF) {
+ while ((ch = getopt(argc, argv, "v")) != -1) {
switch (ch) {
case 'v':
verbose++;
-/* $OpenBSD: bim.c,v 1.2 1996/06/23 14:29:56 deraadt Exp $ */
+/* $OpenBSD: bim.c,v 1.3 1997/01/15 23:41:09 millert Exp $ */
/* $NetBSD: bim.c,v 1.4 1995/09/28 07:08:49 phil Exp $ */
/*
cmdscnt = 0;
opterr = TRUE;
fname = DEFAULT_DEVICE;
- while ((optchar = getopt (argc, argv, "c:")) != EOF)
+ while ((optchar = getopt (argc, argv, "c:")) != -1)
switch (optchar) {
case 'c': if (cmdscnt == MAXARGCMDS) usage();
argcmds[cmdscnt++] = optarg;
-/* $OpenBSD: dmesg.c,v 1.3 1996/12/22 03:00:49 deraadt Exp $ */
+/* $OpenBSD: dmesg.c,v 1.4 1997/01/15 23:41:10 millert Exp $ */
/* $NetBSD: dmesg.c,v 1.8 1995/03/18 14:54:49 cgd Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)dmesg.c 8.1 (Berkeley) 6/5/93";
#else
-static char rcsid[] = "$OpenBSD: dmesg.c,v 1.3 1996/12/22 03:00:49 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: dmesg.c,v 1.4 1997/01/15 23:41:10 millert Exp $";
#endif
#endif /* not lint */
char buf[5];
memf = nlistf = NULL;
- while ((ch = getopt(argc, argv, "M:N:")) != EOF)
+ while ((ch = getopt(argc, argv, "M:N:")) != -1)
switch(ch) {
case 'M':
memf = optarg;
-/* $OpenBSD: main.c,v 1.6 1996/10/20 08:36:35 tholo Exp $ */
+/* $OpenBSD: main.c,v 1.7 1997/01/15 23:41:46 millert Exp $ */
/* $NetBSD: main.c,v 1.22 1996/10/11 20:15:48 thorpej Exp $ */
/*
#if 0
static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/23/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.6 1996/10/20 08:36:35 tholo Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.7 1997/01/15 23:41:46 millert Exp $";
#endif
#endif /* not lint */
sync();
skipclean = 1;
- while ((ch = getopt(argc, argv, "dfpnNyYb:c:l:m:")) != EOF) {
+ while ((ch = getopt(argc, argv, "dfpnNyYb:c:l:m:")) != -1) {
switch (ch) {
case 'p':
preen++;
-/* $OpenBSD: main.c,v 1.3 1996/06/23 14:30:45 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.4 1997/01/15 23:41:47 millert Exp $ */
/* $NetBSD: main.c,v 1.1.4.1 1996/05/31 18:41:54 jtc Exp $ */
/*
#ifndef lint
-static char rcsid[] = "$OpenBSD: main.c,v 1.3 1996/06/23 14:30:45 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.4 1997/01/15 23:41:47 millert Exp $";
#endif /* not lint */
#include <stdlib.h>
int ret = 0, erg;
int ch;
- while ((ch = getopt(argc, argv, "vpyn")) != EOF) {
+ while ((ch = getopt(argc, argv, "vpyn")) != -1) {
switch (ch) {
case 'n':
alwaysno = 1;
-/* $OpenBSD: modload.c,v 1.9 1996/09/16 01:37:00 deraadt Exp $ */
+/* $OpenBSD: modload.c,v 1.10 1997/01/15 23:41:14 millert Exp $ */
/* $NetBSD: modload.c,v 1.13 1995/05/28 05:21:58 jtc Exp $ */
/*
char buf[MODIOBUF];
char *symbuf;
- while ((c = getopt(argc, argv, "dvsuqA:e:p:o:")) != EOF) {
+ while ((c = getopt(argc, argv, "dvsuqA:e:p:o:")) != -1) {
switch (c) {
case 'd':
debug = 1;
-/* $OpenBSD: modunload.c,v 1.4 1996/08/05 11:05:21 mickey Exp $ */
+/* $OpenBSD: modunload.c,v 1.5 1997/01/15 23:41:14 millert Exp $ */
/* $NetBSD: modunload.c,v 1.9 1995/05/28 05:23:05 jtc Exp $ */
/*
char *modname = NULL;
struct lmc_unload ulbuf;
- while ((c = getopt(argc, argv, "i:n:")) != EOF) {
+ while ((c = getopt(argc, argv, "i:n:")) != -1) {
switch (c) {
case 'i':
modnum = atoi(optarg);
-/* $OpenBSD: mount.c,v 1.12 1996/12/23 08:38:49 downsj Exp $ */
+/* $OpenBSD: mount.c,v 1.13 1997/01/15 23:41:15 millert Exp $ */
/* $NetBSD: mount.c,v 1.24 1995/11/18 03:34:29 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)mount.c 8.19 (Berkeley) 4/19/94";
#else
-static char rcsid[] = "$OpenBSD: mount.c,v 1.12 1996/12/23 08:38:49 downsj Exp $";
+static char rcsid[] = "$OpenBSD: mount.c,v 1.13 1997/01/15 23:41:15 millert Exp $";
#endif
#endif /* not lint */
all = forceall = init_flags = 0;
options = NULL;
vfstype = "ffs";
- while ((ch = getopt(argc, argv, "Aadfo:rwt:uv")) != EOF)
+ while ((ch = getopt(argc, argv, "Aadfo:rwt:uv")) != -1)
switch (ch) {
case 'A':
all = forceall = 1;
-/* $OpenBSD: mount_ados.c,v 1.4 1996/12/16 17:11:36 deraadt Exp $ */
+/* $OpenBSD: mount_ados.c,v 1.5 1997/01/15 23:41:16 millert Exp $ */
/* $NetBSD: mount_ados.c,v 1.5 1996/04/13 01:30:59 jtc Exp $ */
/*
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: mount_ados.c,v 1.4 1996/12/16 17:11:36 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount_ados.c,v 1.5 1997/01/15 23:41:16 millert Exp $";
#endif /* not lint */
#include <sys/cdefs.h>
mntflags = set_gid = set_uid = set_mask = 0;
(void)memset(&args, '\0', sizeof(args));
- while ((c = getopt(argc, argv, "u:g:m:o:")) != EOF) {
+ while ((c = getopt(argc, argv, "u:g:m:o:")) != -1) {
switch (c) {
case 'u':
args.uid = a_uid(optarg);
-/* $OpenBSD: mount_cd9660.c,v 1.3 1996/06/23 14:31:16 deraadt Exp $ */
+/* $OpenBSD: mount_cd9660.c,v 1.4 1997/01/15 23:41:17 millert Exp $ */
/* $NetBSD: mount_cd9660.c,v 1.3 1996/04/13 01:31:08 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)mount_cd9660.c 8.4 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_cd9660.c,v 1.3 1996/06/23 14:31:16 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount_cd9660.c,v 1.4 1997/01/15 23:41:17 millert Exp $";
#endif
#endif /* not lint */
char *dev, *dir;
mntflags = opts = 0;
- while ((ch = getopt(argc, argv, "ego:r")) != EOF)
+ while ((ch = getopt(argc, argv, "ego:r")) != -1)
switch (ch) {
case 'e':
opts |= ISOFSMNT_EXTATT;
-/* $OpenBSD: mount_ext2fs.c,v 1.1 1996/06/27 07:20:28 downsj Exp $ */
+/* $OpenBSD: mount_ext2fs.c,v 1.2 1997/01/15 23:41:18 millert Exp $ */
/* $NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)mount_ufs.c 8.2 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_ext2fs.c,v 1.1 1996/06/27 07:20:28 downsj Exp $";
+static char rcsid[] = "$OpenBSD: mount_ext2fs.c,v 1.2 1997/01/15 23:41:18 millert Exp $";
#endif
#endif /* not lint */
mntflags = 0;
optind = optreset = 1; /* Reset for parse of new argv. */
- while ((ch = getopt(argc, argv, "o:")) != EOF)
+ while ((ch = getopt(argc, argv, "o:")) != -1)
switch (ch) {
case 'o':
getmntopts(optarg, mopts, &mntflags);
-/* $OpenBSD: mount_fdesc.c,v 1.3 1996/06/23 14:31:19 deraadt Exp $ */
+/* $OpenBSD: mount_fdesc.c,v 1.4 1997/01/15 23:41:19 millert Exp $ */
/* $NetBSD: mount_fdesc.c,v 1.7 1996/04/13 01:31:15 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)mount_fdesc.c 8.2 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_fdesc.c,v 1.3 1996/06/23 14:31:19 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount_fdesc.c,v 1.4 1997/01/15 23:41:19 millert Exp $";
#endif
#endif /* not lint */
int ch, mntflags;
mntflags = 0;
- while ((ch = getopt(argc, argv, "o:")) != EOF)
+ while ((ch = getopt(argc, argv, "o:")) != -1)
switch (ch) {
case 'o':
getmntopts(optarg, mopts, &mntflags);
-/* $OpenBSD: mount_ffs.c,v 1.4 1996/06/23 14:31:20 deraadt Exp $ */
+/* $OpenBSD: mount_ffs.c,v 1.5 1997/01/15 23:41:20 millert Exp $ */
/* $NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)mount_ufs.c 8.2 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_ffs.c,v 1.4 1996/06/23 14:31:20 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount_ffs.c,v 1.5 1997/01/15 23:41:20 millert Exp $";
#endif
#endif /* not lint */
mntflags = 0;
optind = optreset = 1; /* Reset for parse of new argv. */
- while ((ch = getopt(argc, argv, "o:")) != EOF)
+ while ((ch = getopt(argc, argv, "o:")) != -1)
switch (ch) {
case 'o':
getmntopts(optarg, mopts, &mntflags);
-/* $OpenBSD: mount_kernfs.c,v 1.3 1996/06/23 14:31:22 deraadt Exp $ */
+/* $OpenBSD: mount_kernfs.c,v 1.4 1997/01/15 23:41:21 millert Exp $ */
/* $NetBSD: mount_kernfs.c,v 1.8 1996/04/13 05:35:39 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)mount_kernfs.c 8.2 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_kernfs.c,v 1.3 1996/06/23 14:31:22 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount_kernfs.c,v 1.4 1997/01/15 23:41:21 millert Exp $";
#endif
#endif /* not lint */
int ch, mntflags;
mntflags = 0;
- while ((ch = getopt(argc, argv, "o:")) != EOF)
+ while ((ch = getopt(argc, argv, "o:")) != -1)
switch (ch) {
case 'o':
getmntopts(optarg, mopts, &mntflags);
-/* $OpenBSD: mount_lfs.c,v 1.4 1996/12/09 13:38:47 deraadt Exp $ */
+/* $OpenBSD: mount_lfs.c,v 1.5 1997/01/15 23:41:22 millert Exp $ */
/* $NetBSD: mount_lfs.c,v 1.4 1996/04/13 05:35:44 cgd Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)mount_lfs.c 8.3 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_lfs.c,v 1.4 1996/12/09 13:38:47 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount_lfs.c,v 1.5 1997/01/15 23:41:22 millert Exp $";
#endif
#endif /* not lint */
options = NULL;
mntflags = noclean = 0;
- while ((ch = getopt(argc, argv, "dno:s")) != EOF)
+ while ((ch = getopt(argc, argv, "dno:s")) != -1)
switch (ch) {
case 'd':
cleaner_debug = 1;
-/* $OpenBSD: mount_msdos.c,v 1.8 1996/12/16 17:11:38 deraadt Exp $ */
+/* $OpenBSD: mount_msdos.c,v 1.9 1997/01/15 23:41:22 millert Exp $ */
/* $NetBSD: mount_msdos.c,v 1.16 1996/10/24 00:12:50 cgd Exp $ */
/*
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: mount_msdos.c,v 1.8 1996/12/16 17:11:38 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount_msdos.c,v 1.9 1997/01/15 23:41:22 millert Exp $";
#endif /* not lint */
#include <sys/cdefs.h>
mntflags = set_gid = set_uid = set_mask = 0;
(void)memset(&args, '\0', sizeof(args));
- while ((c = getopt(argc, argv, "Gsl9u:g:m:o:")) != EOF) {
+ while ((c = getopt(argc, argv, "Gsl9u:g:m:o:")) != -1) {
switch (c) {
case 'G':
args.flags |= MSDOSFSMNT_GEMDOSFS;
-/* $OpenBSD: mount_null.c,v 1.3 1996/06/23 14:31:29 deraadt Exp $ */
+/* $OpenBSD: mount_null.c,v 1.4 1997/01/15 23:41:23 millert Exp $ */
/* $NetBSD: mount_null.c,v 1.3 1996/04/13 01:31:49 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)mount_null.c 8.5 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_null.c,v 1.3 1996/06/23 14:31:29 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount_null.c,v 1.4 1997/01/15 23:41:23 millert Exp $";
#endif
#endif /* not lint */
char target[MAXPATHLEN];
mntflags = 0;
- while ((ch = getopt(argc, argv, "o:")) != EOF)
+ while ((ch = getopt(argc, argv, "o:")) != -1)
switch(ch) {
case 'o':
getmntopts(optarg, mopts, &mntflags);
-/* $OpenBSD: mount_portal.c,v 1.4 1996/06/25 21:31:26 deraadt Exp $ */
+/* $OpenBSD: mount_portal.c,v 1.5 1997/01/15 23:41:24 millert Exp $ */
/* $NetBSD: mount_portal.c,v 1.8 1996/04/13 01:31:54 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)mount_portal.c 8.4 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_portal.c,v 1.4 1996/06/25 21:31:26 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount_portal.c,v 1.5 1997/01/15 23:41:24 millert Exp $";
#endif
#endif /* not lint */
*/
int ch;
- while ((ch = getopt(argc, argv, "o:")) != EOF) {
+ while ((ch = getopt(argc, argv, "o:")) != -1) {
switch (ch) {
case 'o':
getmntopts(optarg, mopts, &mntflags);
-/* $OpenBSD: mount_procfs.c,v 1.3 1996/06/23 14:31:38 deraadt Exp $ */
+/* $OpenBSD: mount_procfs.c,v 1.4 1997/01/15 23:41:25 millert Exp $ */
/* $NetBSD: mount_procfs.c,v 1.7 1996/04/13 01:31:59 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)mount_procfs.c 8.3 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_procfs.c,v 1.3 1996/06/23 14:31:38 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount_procfs.c,v 1.4 1997/01/15 23:41:25 millert Exp $";
#endif
#endif /* not lint */
int ch, mntflags;
mntflags = 0;
- while ((ch = getopt(argc, argv, "o:")) != EOF)
+ while ((ch = getopt(argc, argv, "o:")) != -1)
switch (ch) {
case 'o':
getmntopts(optarg, mopts, &mntflags);
-/* $OpenBSD: mount_umap.c,v 1.4 1996/06/23 14:31:40 deraadt Exp $ */
+/* $OpenBSD: mount_umap.c,v 1.5 1997/01/15 23:41:26 millert Exp $ */
/* $NetBSD: mount_umap.c,v 1.5 1996/04/13 01:32:05 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)mount_umap.c 8.3 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_umap.c,v 1.4 1996/06/23 14:31:40 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount_umap.c,v 1.5 1997/01/15 23:41:26 millert Exp $";
#endif
#endif /* not lint */
mntflags = 0;
umapfile = gmapfile = NULL;
- while ((ch = getopt(argc, argv, "g:o:u:")) != EOF)
+ while ((ch = getopt(argc, argv, "g:o:u:")) != -1)
switch (ch) {
case 'g':
gmapfile = optarg;
-/* $OpenBSD: mount_union.c,v 1.3 1996/06/23 14:31:43 deraadt Exp $ */
+/* $OpenBSD: mount_union.c,v 1.4 1997/01/15 23:41:27 millert Exp $ */
/* $NetBSD: mount_union.c,v 1.3 1996/04/13 01:32:11 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)mount_union.c 8.5 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_union.c,v 1.3 1996/06/23 14:31:43 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount_union.c,v 1.4 1997/01/15 23:41:27 millert Exp $";
#endif
#endif /* not lint */
mntflags = 0;
args.mntflags = UNMNT_ABOVE;
- while ((ch = getopt(argc, argv, "bo:r")) != EOF)
+ while ((ch = getopt(argc, argv, "bo:r")) != -1)
switch (ch) {
case 'b':
args.mntflags &= ~UNMNT_OPMASK;
-/* $OpenBSD: mountd.c,v 1.13 1996/12/10 07:26:45 deraadt Exp $ */
+/* $OpenBSD: mountd.c,v 1.14 1997/01/15 23:41:28 millert Exp $ */
/* $NetBSD: mountd.c,v 1.31 1996/02/18 11:57:53 fvdl Exp $ */
/*
SVCXPRT *udptransp, *tcptransp;
int c;
- while ((c = getopt(argc, argv, "dnr")) != EOF)
+ while ((c = getopt(argc, argv, "dnr")) != -1)
switch (c) {
case 'd':
debug = 1;
-/* $OpenBSD: ncheck_ffs.c,v 1.4 1996/08/14 06:41:37 tholo Exp $ */
+/* $OpenBSD: ncheck_ffs.c,v 1.5 1997/01/15 23:41:30 millert Exp $ */
/*-
* Copyright (c) 1995, 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com>
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: ncheck_ffs.c,v 1.4 1996/08/14 06:41:37 tholo Exp $";
+static char rcsid[] = "$OpenBSD: ncheck_ffs.c,v 1.5 1997/01/15 23:41:30 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
int c;
ino_t ino;
- while ((c = getopt(argc, argv, "ai:ms")) != EOF)
+ while ((c = getopt(argc, argv, "ai:ms")) != -1)
switch (c) {
case 'a':
aflag++;
-/* $OpenBSD: newfs.c,v 1.9 1996/12/23 07:48:28 downsj Exp $ */
+/* $OpenBSD: newfs.c,v 1.10 1997/01/15 23:41:31 millert Exp $ */
/* $NetBSD: newfs.c,v 1.20 1996/05/16 07:13:03 thorpej Exp $ */
/*
#if 0
static char sccsid[] = "@(#)newfs.c 8.8 (Berkeley) 4/18/94";
#else
-static char rcsid[] = "$OpenBSD: newfs.c,v 1.9 1996/12/23 07:48:28 downsj Exp $";
+static char rcsid[] = "$OpenBSD: newfs.c,v 1.10 1997/01/15 23:41:31 millert Exp $";
#endif
#endif /* not lint */
opstring = mfs ?
"NT:a:b:c:d:e:f:i:m:o:s:" :
"NOS:T:a:b:c:d:e:f:i:k:l:m:n:o:p:r:s:t:u:x:z:";
- while ((ch = getopt(argc, argv, opstring)) != EOF) {
+ while ((ch = getopt(argc, argv, opstring)) != -1) {
switch (ch) {
case 'N':
Nflag = 1;
-/* $OpenBSD: newfs_msdos.c,v 1.3 1997/01/10 19:04:10 kstailey Exp $ */
+/* $OpenBSD: newfs_msdos.c,v 1.4 1997/01/15 23:41:32 millert Exp $ */
/*
* Copyright (c) 1995, 1996 Joerg Wunsch
int c, i, fd, format = 0, rootdirsize;
char *rdev;
- while ((c = getopt(argc, argv, "s:L:t:")) != EOF)
+ while ((c = getopt(argc, argv, "s:L:t:")) != -1)
switch (c) {
case 's':
format = atoi(optarg);
-/* $OpenBSD: newfs.c,v 1.5 1996/12/04 08:39:31 deraadt Exp $ */
+/* $OpenBSD: newfs.c,v 1.6 1997/01/15 23:41:33 millert Exp $ */
/* $NetBSD: newfs.c,v 1.5 1996/05/16 07:17:50 thorpej Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)newfs.c 8.5 (Berkeley) 5/24/95";
#else
-static char rcsid[] = "$OpenBSD: newfs.c,v 1.5 1996/12/04 08:39:31 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: newfs.c,v 1.6 1997/01/15 23:41:33 millert Exp $";
#endif
#endif /* not lint */
opstring += 2;
debug = lfs = segsize = 0;
- while ((ch = getopt(argc, argv, opstring)) != EOF)
+ while ((ch = getopt(argc, argv, opstring)) != -1)
switch(ch) {
case 'B': /* LFS segment size */
if ((segsize = atoi(optarg)) < LFS_MINSEGSIZE)
-/* $OpenBSD: nfsd.c,v 1.3 1996/09/16 20:41:28 deraadt Exp $ */
+/* $OpenBSD: nfsd.c,v 1.4 1997/01/15 23:41:34 millert Exp $ */
/* $NetBSD: nfsd.c,v 1.19 1996/02/18 23:18:56 mycroft Exp $ */
/*
#define GETOPT "n:rtu"
#define USAGE "[-rtu] [-n num_servers]"
#endif
- while ((ch = getopt(argc, argv, GETOPT)) != EOF)
+ while ((ch = getopt(argc, argv, GETOPT)) != -1)
switch (ch) {
case 'n':
nfsdcnt = atoi(optarg);
-/* $OpenBSD: nfsiod.c,v 1.3 1996/08/02 11:05:09 deraadt Exp $ */
+/* $OpenBSD: nfsiod.c,v 1.4 1997/01/15 23:41:35 millert Exp $ */
/* $NetBSD: nfsiod.c,v 1.12 1996/02/20 16:06:55 fvdl Exp $ */
/*
#define MAXNFSDCNT 20
#define DEFNFSDCNT 1
num_servers = DEFNFSDCNT;
- while ((ch = getopt(argc, argv, "n:")) != EOF)
+ while ((ch = getopt(argc, argv, "n:")) != -1)
switch (ch) {
case 'n':
num_servers = atoi(optarg);
-/* $OpenBSD: ping.c,v 1.12 1996/12/22 03:00:52 deraadt Exp $ */
+/* $OpenBSD: ping.c,v 1.13 1997/01/15 23:41:36 millert Exp $ */
/* $NetBSD: ping.c,v 1.20 1995/08/11 22:37:58 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93";
#else
-static char rcsid[] = "$OpenBSD: ping.c,v 1.12 1996/12/22 03:00:52 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ping.c,v 1.13 1997/01/15 23:41:36 millert Exp $";
#endif
#endif /* not lint */
preload = 0;
datap = &outpack[8 + sizeof(struct timeval)];
- while ((ch = getopt(argc, argv, "DI:LRS:c:dfh:i:l:np:qrs:T:t:vw:")) != EOF)
+ while ((ch = getopt(argc, argv, "DI:LRS:c:dfh:i:l:np:qrs:T:t:vw:")) != -1)
switch(ch) {
case 'c':
npackets = strtol(optarg, 0, NULL);
-/* $OpenBSD: reboot.c,v 1.4 1996/07/22 09:20:59 deraadt Exp $ */
+/* $OpenBSD: reboot.c,v 1.5 1997/01/15 23:41:38 millert Exp $ */
/* $NetBSD: reboot.c,v 1.8 1995/10/05 05:36:22 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)reboot.c 8.1 (Berkeley) 6/5/93";
#else
-static char rcsid[] = "$OpenBSD: reboot.c,v 1.4 1996/07/22 09:20:59 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: reboot.c,v 1.5 1997/01/15 23:41:38 millert Exp $";
#endif
#endif /* not lint */
} else
howto = 0;
lflag = nflag = qflag = 0;
- while ((ch = getopt(argc, argv, "lnqd")) != EOF)
+ while ((ch = getopt(argc, argv, "lnqd")) != -1)
switch(ch) {
case 'l': /* Undocumented; used by shutdown. */
lflag = 1;
-/* $OpenBSD: main.c,v 1.5 1996/09/16 02:32:34 millert Exp $ */
+/* $OpenBSD: main.c,v 1.6 1997/01/15 23:41:38 millert Exp $ */
/* $NetBSD: main.c,v 1.11 1996/03/15 22:39:39 scottr Exp $ */
/*
if ((inputdev = getenv("TAPE")) == NULL)
inputdev = _PATH_DEFTAPE;
obsolete(&argc, &argv);
- while ((ch = getopt(argc, argv, "b:cdf:himNRrs:tvxy")) != EOF)
+ while ((ch = getopt(argc, argv, "b:cdf:himNRrs:tvxy")) != -1)
switch(ch) {
case 'b':
/* Change default tape blocksize. */
-/* $OpenBSD: route.c,v 1.16 1996/12/22 03:00:53 deraadt Exp $ */
+/* $OpenBSD: route.c,v 1.17 1997/01/15 23:41:40 millert Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)route.c 8.3 (Berkeley) 3/19/94";
#else
-static char rcsid[] = "$OpenBSD: route.c,v 1.16 1996/12/22 03:00:53 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: route.c,v 1.17 1997/01/15 23:41:40 millert Exp $";
#endif
#endif /* not lint */
if (argc < 2)
usage((char *)NULL);
- while ((ch = getopt(argc, argv, "nqdtv")) != EOF)
+ while ((ch = getopt(argc, argv, "nqdtv")) != -1)
switch(ch) {
case 'n':
nflag = 1;
-/* $OpenBSD: main.c,v 1.4 1996/10/02 06:51:45 mickey Exp $ */
+/* $OpenBSD: main.c,v 1.5 1997/01/15 23:41:12 millert Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
#if !defined(lint)
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/5/93";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.4 1996/10/02 06:51:45 mickey Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.5 1997/01/15 23:41:12 millert Exp $";
#endif
#include "defs.h"
(void)gethostname(myname, sizeof(myname)-1);
(void)gethost(myname, &myaddr);
- while ((n = getopt(argc, argv, "sqdghmpAtT:F:P:")) != EOF) {
+ while ((n = getopt(argc, argv, "sqdghmpAtT:F:P:")) != -1) {
switch (n) {
case 's':
supplier = 1;
-/* $OpenBSD: rtquery.c,v 1.3 1996/10/02 06:51:49 mickey Exp $ */
+/* $OpenBSD: rtquery.c,v 1.4 1997/01/15 23:41:11 millert Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
OMSG.rip_nets[0].n_metric = htonl(HOPCNT_INFINITY);
pgmname = argv[0];
- while ((ch = getopt(argc, argv, "np1w:r:t:")) != EOF)
+ while ((ch = getopt(argc, argv, "np1w:r:t:")) != -1)
switch (ch) {
case 'n':
not_trace = 1;
-/* $OpenBSD: scsi.c,v 1.1 1996/06/12 11:21:43 deraadt Exp $ */
+/* $OpenBSD: scsi.c,v 1.2 1997/01/15 23:41:41 millert Exp $ */
/* $FreeBSD: scsi.c,v 1.11 1996/04/06 11:00:28 joerg Exp $ */
/*
fflag = 0;
commandflag = 0;
debugflag = 0;
- while ((ch = getopt(argc, argv, "ceprvf:d:b:t:l:z:m:P:s:")) != EOF) {
+ while ((ch = getopt(argc, argv, "ceprvf:d:b:t:l:z:m:P:s:")) != -1) {
switch (ch) {
#ifdef SCIOCADDR
case 'p':
-/* $OpenBSD: shutdown.c,v 1.6 1996/12/22 02:59:53 deraadt Exp $ */
+/* $OpenBSD: shutdown.c,v 1.7 1997/01/15 23:41:42 millert Exp $ */
/* $NetBSD: shutdown.c,v 1.9 1995/03/18 15:01:09 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)shutdown.c 8.2 (Berkeley) 2/16/94";
#else
-static char rcsid[] = "$OpenBSD: shutdown.c,v 1.6 1996/12/22 02:59:53 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: shutdown.c,v 1.7 1997/01/15 23:41:42 millert Exp $";
#endif
#endif /* not lint */
#endif
nosync = NULL;
readstdin = 0;
- while ((ch = getopt(argc, argv, "-fhknr")) != EOF)
+ while ((ch = getopt(argc, argv, "-fhknr")) != -1)
switch (ch) {
case '-':
readstdin = 1;
-/* $OpenBSD: swapon.c,v 1.2 1996/06/23 14:32:46 deraadt Exp $ */
+/* $OpenBSD: swapon.c,v 1.3 1997/01/15 23:41:43 millert Exp $ */
/* $NetBSD: swapon.c,v 1.7 1995/03/18 15:01:18 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)swapon.c 8.1 (Berkeley) 6/5/93";
#else
-static char rcsid[] = "$OpenBSD: swapon.c,v 1.2 1996/06/23 14:32:46 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: swapon.c,v 1.3 1997/01/15 23:41:43 millert Exp $";
#endif
#endif /* not lint */
int ch, doall;
doall = 0;
- while ((ch = getopt(argc, argv, "a")) != EOF)
+ while ((ch = getopt(argc, argv, "a")) != -1)
switch((char)ch) {
case 'a':
doall = 1;
char *path;
int ch;
- while ((ch = getopt(argc, argv, "Aan")) != EOF) {
+ while ((ch = getopt(argc, argv, "Aan")) != -1) {
switch (ch) {
case 'A':
-/* $OpenBSD: sysctl.c,v 1.4 1996/11/25 08:22:43 mickey Exp $ */
+/* $OpenBSD: sysctl.c,v 1.5 1997/01/15 23:44:22 millert Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
#if 0
static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93";
#else
-static char *rcsid = "$OpenBSD: sysctl.c,v 1.4 1996/11/25 08:22:43 mickey Exp $";
+static char *rcsid = "$OpenBSD: sysctl.c,v 1.5 1997/01/15 23:44:22 millert Exp $";
#endif
#endif /* not lint */
extern int optind;
int ch, lvl1;
- while ((ch = getopt(argc, argv, "Aanw")) != EOF) {
+ while ((ch = getopt(argc, argv, "Aanw")) != -1) {
switch (ch) {
case 'A':
-/* $OpenBSD: ttyflags.c,v 1.5 1996/10/30 08:17:05 tholo Exp $ */
+/* $OpenBSD: ttyflags.c,v 1.6 1997/01/15 23:41:44 millert Exp $ */
/* $NetBSD: ttyflags.c,v 1.8 1996/04/09 05:20:30 cgd Exp $ */
/*
#endif /* not lint */
#ifndef lint
-static char rcsid[] = "$OpenBSD: ttyflags.c,v 1.5 1996/10/30 08:17:05 tholo Exp $";
+static char rcsid[] = "$OpenBSD: ttyflags.c,v 1.6 1997/01/15 23:41:44 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
int aflag, ch, rval, pflag = 0;
aflag = nflag = vflag = 0;
- while ((ch = getopt(argc, argv, "panv")) != EOF)
+ while ((ch = getopt(argc, argv, "panv")) != -1)
switch (ch) {
case 'a':
aflag = 1;
-/* $OpenBSD: umount.c,v 1.4 1996/06/23 14:32:53 deraadt Exp $ */
+/* $OpenBSD: umount.c,v 1.5 1997/01/15 23:41:45 millert Exp $ */
/* $NetBSD: umount.c,v 1.16 1996/05/11 14:13:55 mycroft Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)umount.c 8.3 (Berkeley) 2/20/94";
#else
-static char rcsid[] = "$OpenBSD: umount.c,v 1.4 1996/06/23 14:32:53 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: umount.c,v 1.5 1997/01/15 23:41:45 millert Exp $";
#endif
#endif /* not lint */
sync();
all = 0;
- while ((ch = getopt(argc, argv, "aFfh:t:v")) != EOF)
+ while ((ch = getopt(argc, argv, "aFfh:t:v")) != -1)
switch (ch) {
case 'a':
all = 1;
-/* $OpenBSD: installboot.c,v 1.4 1996/10/30 22:40:31 niklas Exp $ */
+/* $OpenBSD: installboot.c,v 1.5 1997/01/15 23:41:48 millert Exp $ */
/* $NetBSD: installboot.c,v 1.2 1995/12/20 00:17:49 cgd Exp $ */
/*
int mib[2];
size_t size;
- while ((c = getopt(argc, argv, "vn")) != EOF) {
+ while ((c = getopt(argc, argv, "vn")) != -1) {
switch (c) {
case 'n':
/* Do not actually write the bootblock to disk */
-/* $OpenBSD: binpatch.c,v 1.2 1996/10/04 23:09:54 niklas Exp $ */
+/* $OpenBSD: binpatch.c,v 1.3 1997/01/15 23:41:49 millert Exp $ */
/* $NetBSD: binpatch.c,v 1.6 1995/08/18 15:28:28 chopps Exp $ */
/* Author: Markus Wild mw@eunet.ch ??? */
u_char cval;
- while ((c = getopt (argc, argv, "H:a:bwlr:s:o:")) != EOF)
+ while ((c = getopt (argc, argv, "H:a:bwlr:s:o:")) != -1)
switch (c)
{
case 'H':
-/* $OpenBSD: loadbsd.c,v 1.8 1996/10/10 07:08:16 niklas Exp $ */
+/* $OpenBSD: loadbsd.c,v 1.9 1997/01/15 23:41:50 millert Exp $ */
/* $NetBSD: loadbsd.c,v 1.19.4.2 1996/08/03 00:51:46 jtc Exp $ */
/*
if ((ExpansionBase=(void *)OpenLibrary(EXPANSIONNAME, 0)) == NULL)
err(20, "can't open expansion library");
- while ((ch = getopt(argc, argv, "aAbcC:DhI:km:n:ptsSVZ")) != EOF) {
+ while ((ch = getopt(argc, argv, "aAbcC:DhI:km:n:ptsSVZ")) != -1) {
switch (ch) {
case 'k':
k_flag = 1;
u_char cval;
- while ((c = getopt (argc, argv, "a:bwlr:s:o:")) != EOF)
+ while ((c = getopt (argc, argv, "a:bwlr:s:o:")) != -1)
switch (c)
{
case 'a':
int write_block PROTO((void *, int, int));
void set_csum PROTO((char *));
-const char version[] = "$Revision: 1.2 $";
+const char version[] = "$Revision: 1.3 $";
char *Progname = NULL; /* What are we called */
int t_flag = 0; /* Test -- don't actually do it */
init_toslib(argv[0]);
Progname = argv[0];
- while ((c = getopt(argc, argv, "htVwo:")) != EOF) {
+ while ((c = getopt(argc, argv, "htVwo:")) != -1) {
switch (c) {
case 'h':
h_flag = 1;
int t_flag = 0; /* Just test, do not execute */
int v_flag = 0; /* show version */
-const char version[] = "$Revision: 1.2 $";
+const char version[] = "$Revision: 1.3 $";
/*
* Default name of kernel to boot, large enough to patch
kparam.boothowto = RB_SINGLE;
- while ((ch = getopt(argc, argv, "abdhstVwDo:S:T:")) != EOF) {
+ while ((ch = getopt(argc, argv, "abdhstVwDo:S:T:")) != -1) {
switch (ch) {
case 'a':
kparam.boothowto &= ~(RB_SINGLE);
int V_flag = 0; /* Show version */
char *progname;
-const char version[] = "$Revision: 1.2 $";
+const char version[] = "$Revision: 1.3 $";
int
main(argc, argv)
progname = argv[0];
init_toslib(argv[0]);
- while ((ch = getopt(argc, argv, "hvVwo:")) != EOF) {
+ while ((ch = getopt(argc, argv, "hvVwo:")) != -1) {
switch (ch) {
case 'h':
h_flag = 1;
int dflag = -1;
char *device = NULL;
- while( (c = getopt(argc, argv, "d:n:s:e:")) != EOF)
+ while( (c = getopt(argc, argv, "d:n:s:e:")) != -1)
{
switch(c)
{
int fflag = -1;
char *filename;
- while( (c = getopt(argc, argv, "d:f:")) != EOF)
+ while( (c = getopt(argc, argv, "d:f:")) != -1)
{
switch(c)
{
int fd;
char *device = NULL;
- while( (c = getopt(argc, argv, "vcd:")) != EOF)
+ while( (c = getopt(argc, argv, "vcd:")) != -1)
{
switch(c)
{
char *map = NULL;
int kbfd;
- while((c = getopt(argc, argv, "Rd:lm:opr:st:x")) != EOF)
+ while((c = getopt(argc, argv, "Rd:lm:opr:st:x")) != -1)
{
switch(c)
{
int dflag = 0;
char *device = NULL;
- while( (c = getopt(argc, argv, "c:d:f:is:")) != EOF)
+ while( (c = getopt(argc, argv, "c:d:f:is:")) != -1)
{
switch(c)
{
int left = 0, mid = 0, right = 0, accel = 0, sticky = -1;
struct mousedefs mdef;
- while((c = getopt(argc, argv, "l:m:r:a:s:")) != EOF)
+ while((c = getopt(argc, argv, "l:m:r:a:s:")) != -1)
switch(c) {
case 'l':
left = nametoscan(optarg);
int c;
int fd;
- while( (c = getopt(argc, argv, "ac:d:f:HVlms:t:vp:18")) != EOF)
+ while( (c = getopt(argc, argv, "ac:d:f:HVlms:t:vp:18")) != -1)
{
switch(c)
{
long freq = -1;
int no = -1;
- while( (c = getopt(argc, argv, "f:n:")) != EOF)
+ while( (c = getopt(argc, argv, "f:n:")) != -1)
{
switch(c)
{
if(argc == 1) usage(); /* program requires options */
/* get options */
- while ((option = getopt(argc, argv, "cli")) != EOF)
+ while ((option = getopt(argc, argv, "cli")) != -1)
switch(option)
{
case 'c' :
char *protostore;
long protosize;
- while ((c = getopt(argc, argv, "vnh")) != EOF) {
+ while ((c = getopt(argc, argv, "vnh")) != -1) {
switch (c) {
case 'h':
/* Don't strip a.out header */
char block[DEV_BSIZE];
makebootfile = 0;
- while ((i = getopt(argc, argv, "b")) != EOF)
+ while ((i = getopt(argc, argv, "b")) != -1)
switch(i) {
case 'b':
makebootfile = 1;
int mib[2];
size_t size;
- while ((c = getopt(argc, argv, "a:vnh")) != EOF) {
+ while ((c = getopt(argc, argv, "a:vnh")) != -1) {
switch (c) {
case 'a':
karch = optarg;
char *protostore;
long protosize;
- while ((c = getopt(argc, argv, "vnh")) != EOF) {
+ while ((c = getopt(argc, argv, "vnh")) != -1) {
switch (c) {
case 'h':
/* Don't strip a.out header */
-/* $OpenBSD: aic7xxx_asm.c,v 1.6 1996/11/28 23:28:00 niklas Exp $ */
+/* $OpenBSD: aic7xxx_asm.c,v 1.7 1997/01/15 23:42:08 millert Exp $ */
/*+M*************************************************************************
* Adaptec AIC7770/AIC7870 sequencer code assembler.
* are token separators.
*
*-M*************************************************************************/
-static char id[] = "$Id: aic7xxx_asm.c,v 1.6 1996/11/28 23:28:00 niklas Exp $";
+static char id[] = "$Id: aic7xxx_asm.c,v 1.7 1997/01/15 23:42:08 millert Exp $";
#include <ctype.h>
#include <stdio.h>
#include <string.h>
int fd[2];
ofile = NULL;
- while ((c = getopt(argc, argv, "dho:vD:")) != EOF) {
+ while ((c = getopt(argc, argv, "dho:vD:")) != -1) {
switch (c) {
case 'd':
debug = !0;
-/* $OpenBSD: apply.c,v 1.2 1996/06/26 05:31:13 deraadt Exp $ */
+/* $OpenBSD: apply.c,v 1.3 1997/01/15 23:42:09 millert Exp $ */
/* $NetBSD: apply.c,v 1.3 1995/03/25 03:38:23 glass Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)apply.c 8.4 (Berkeley) 4/4/94";
#else
-static char rcsid[] = "$OpenBSD: apply.c,v 1.2 1996/06/26 05:31:13 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: apply.c,v 1.3 1997/01/15 23:42:09 millert Exp $";
#endif
#endif /* not lint */
debug = 0;
magic = '%'; /* Default magic char is `%'. */
nargs = -1;
- while ((ch = getopt(argc, argv, "a:d0123456789")) != EOF)
+ while ((ch = getopt(argc, argv, "a:d0123456789")) != -1)
switch (ch) {
case 'a':
if (optarg[1] != '\0')
-/* $OpenBSD: apropos.c,v 1.3 1996/10/25 06:27:42 downsj Exp $ */
+/* $OpenBSD: apropos.c,v 1.4 1997/01/15 23:42:10 millert Exp $ */
/* $NetBSD: apropos.c,v 1.5 1995/09/04 20:46:20 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)apropos.c 8.8 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: apropos.c,v 1.3 1996/10/25 06:27:42 downsj Exp $";
+static char rcsid[] = "$OpenBSD: apropos.c,v 1.4 1997/01/15 23:42:10 millert Exp $";
#endif
#endif /* not lint */
conffile = NULL;
p_augment = p_path = NULL;
- while ((ch = getopt(argc, argv, "C:M:m:P:")) != EOF)
+ while ((ch = getopt(argc, argv, "C:M:m:P:")) != -1)
switch (ch) {
case 'C':
conffile = optarg;
-/* $OpenBSD: ar.c,v 1.2 1996/06/26 05:31:18 deraadt Exp $ */
+/* $OpenBSD: ar.c,v 1.3 1997/01/15 23:42:11 millert Exp $ */
/* $NetBSD: ar.c,v 1.5 1995/03/26 03:27:44 glass Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)ar.c 8.3 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: ar.c,v 1.2 1996/06/26 05:31:18 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ar.c,v 1.3 1997/01/15 23:42:11 millert Exp $";
#endif
#endif /* not lint */
argv[1] = p;
}
- while ((c = getopt(argc, argv, "abcdilmopqrTtuvx")) != EOF) {
+ while ((c = getopt(argc, argv, "abcdilmopqrTtuvx")) != -1) {
switch(c) {
case 'a':
options |= AR_A;
-/* $OpenBSD: at.c,v 1.5 1996/10/26 20:06:50 millert Exp $ */
+/* $OpenBSD: at.c,v 1.6 1997/01/15 23:42:12 millert Exp $ */
/* $NetBSD: at.c,v 1.4 1995/03/25 18:13:31 glass Exp $ */
/*
/* File scope variables */
#ifndef lint
-static char rcsid[] = "$OpenBSD: at.c,v 1.5 1996/10/26 20:06:50 millert Exp $";
+static char rcsid[] = "$OpenBSD: at.c,v 1.6 1997/01/15 23:42:12 millert Exp $";
#endif
char *no_export[] =
/* process whatever options we can process */
opterr = 1;
- while ((c = getopt(argc, argv, options)) != EOF)
+ while ((c = getopt(argc, argv, options)) != -1)
switch (c) {
case 'v': /* verify time settings */
atverify = 1;
-/* $OpenBSD: bdes.c,v 1.2 1996/06/26 05:31:39 deraadt Exp $ */
+/* $OpenBSD: bdes.c,v 1.3 1997/01/15 23:42:13 millert Exp $ */
/* $NetBSD: bdes.c,v 1.2 1995/03/26 03:33:19 glass Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)bdes.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: bdes.c,v 1.2 1996/06/26 05:31:39 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: bdes.c,v 1.3 1997/01/15 23:42:13 millert Exp $";
#endif
#endif /* not lint */
/* process the argument list */
kflag = 0;
- while ((i = getopt(argc, argv, "abdF:f:k:m:o:pv:")) != EOF)
+ while ((i = getopt(argc, argv, "abdF:f:k:m:o:pv:")) != -1)
switch(i) {
case 'a': /* key is ASCII */
keybase = KEY_ASCII;
-/* $OpenBSD: biff.c,v 1.2 1996/06/26 05:31:41 deraadt Exp $ */
+/* $OpenBSD: biff.c,v 1.3 1997/01/15 23:42:14 millert Exp $ */
/* $NetBSD: biff.c,v 1.3 1995/03/26 02:34:22 glass Exp $ */
/*
#if 0
static char sccsid[] = "@(#)biff.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: biff.c,v 1.2 1996/06/26 05:31:41 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: biff.c,v 1.3 1997/01/15 23:42:14 millert Exp $";
#endif
#endif /* not lint */
char *name;
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
case '?':
default:
-/* $OpenBSD: cal.c,v 1.3 1996/08/11 00:46:44 deraadt Exp $ */
+/* $OpenBSD: cal.c,v 1.4 1997/01/15 23:42:15 millert Exp $ */
/* $NetBSD: cal.c,v 1.6 1995/03/26 03:10:24 glass Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cal.c 8.4 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: cal.c,v 1.3 1996/08/11 00:46:44 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cal.c,v 1.4 1997/01/15 23:42:15 millert Exp $";
#endif
#endif /* not lint */
int ch, month, year, yflag;
yflag = 0;
- while ((ch = getopt(argc, argv, "jy")) != EOF)
+ while ((ch = getopt(argc, argv, "jy")) != -1)
switch(ch) {
case 'j':
julian = 1;
-/* $OpenBSD: calendar.c,v 1.5 1996/12/05 06:04:38 millert Exp $ */
+/* $OpenBSD: calendar.c,v 1.6 1997/01/15 23:42:16 millert Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
#if 0
static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94";
#else
-static char rcsid[] = "$OpenBSD: calendar.c,v 1.5 1996/12/05 06:04:38 millert Exp $";
+static char rcsid[] = "$OpenBSD: calendar.c,v 1.6 1997/01/15 23:42:16 millert Exp $";
#endif
#endif /* not lint */
(void) setlocale(LC_ALL, "");
- while ((ch = getopt(argc, argv, "?-af:t:A:B:")) != EOF)
+ while ((ch = getopt(argc, argv, "?-af:t:A:B:")) != -1)
switch (ch) {
case '-': /* backward contemptible */
case 'a':
-/* $OpenBSD: cap_mkdb.c,v 1.2 1996/06/26 05:31:48 deraadt Exp $ */
+/* $OpenBSD: cap_mkdb.c,v 1.3 1997/01/15 23:42:17 millert Exp $ */
/* $NetBSD: cap_mkdb.c,v 1.5 1995/09/02 05:47:12 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)cap_mkdb.c 8.2 (Berkeley) 4/27/95";
#endif
-static char rcsid[] = "$OpenBSD: cap_mkdb.c,v 1.2 1996/06/26 05:31:48 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cap_mkdb.c,v 1.3 1997/01/15 23:42:17 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
int c;
capname = NULL;
- while ((c = getopt(argc, argv, "f:v")) != EOF) {
+ while ((c = getopt(argc, argv, "f:v")) != -1) {
switch(c) {
case 'f':
capname = optarg;
-/* $OpenBSD: chpass.c,v 1.6 1996/10/20 23:45:50 millert Exp $ */
+/* $OpenBSD: chpass.c,v 1.7 1997/01/15 23:42:18 millert Exp $ */
/* $NetBSD: chpass.c,v 1.8 1996/05/15 21:50:43 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)chpass.c 8.4 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: chpass.c,v 1.6 1996/10/20 23:45:50 millert Exp $";
+static char rcsid[] = "$OpenBSD: chpass.c,v 1.7 1997/01/15 23:42:18 millert Exp $";
#endif
#endif /* not lint */
#endif
op = EDITENTRY;
- while ((ch = getopt(argc, argv, "a:s:ly")) != EOF)
+ while ((ch = getopt(argc, argv, "a:s:ly")) != -1)
switch(ch) {
case 'a':
op = LOADENTRY;
-/* $OpenBSD: cmp.c,v 1.4 1996/08/01 00:29:10 michaels Exp $ */
+/* $OpenBSD: cmp.c,v 1.5 1997/01/15 23:42:19 millert Exp $ */
/* $NetBSD: cmp.c,v 1.7 1995/09/08 03:22:56 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cmp.c 8.3 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: cmp.c,v 1.4 1996/08/01 00:29:10 michaels Exp $";
+static char rcsid[] = "$OpenBSD: cmp.c,v 1.5 1997/01/15 23:42:19 millert Exp $";
#endif
#endif /* not lint */
setlocale(LC_ALL, "");
- while ((ch = getopt(argc, argv, "ls")) != EOF)
+ while ((ch = getopt(argc, argv, "ls")) != -1)
switch (ch) {
case 'l': /* print all differences */
lflag = 1;
-/* $OpenBSD: col.c,v 1.2 1996/06/26 05:32:10 deraadt Exp $ */
+/* $OpenBSD: col.c,v 1.3 1997/01/15 23:42:20 millert Exp $ */
/* $NetBSD: col.c,v 1.7 1995/09/02 05:48:50 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)col.c 8.5 (Berkeley) 5/4/95";
#endif
-static char rcsid[] = "$OpenBSD: col.c,v 1.2 1996/06/26 05:32:10 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: col.c,v 1.3 1997/01/15 23:42:20 millert Exp $";
#endif /* not lint */
#include <ctype.h>
max_bufd_lines = 128;
compress_spaces = 1; /* compress spaces into tabs */
- while ((opt = getopt(argc, argv, "bfhl:x")) != EOF)
+ while ((opt = getopt(argc, argv, "bfhl:x")) != -1)
switch (opt) {
case 'b': /* do not output backspaces */
no_backspaces = 1;
-/* $OpenBSD: colrm.c,v 1.2 1996/06/26 05:32:14 deraadt Exp $ */
+/* $OpenBSD: colrm.c,v 1.3 1997/01/15 23:42:21 millert Exp $ */
/* $NetBSD: colrm.c,v 1.4 1995/09/02 05:51:37 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)colrm.c 8.2 (Berkeley) 5/4/95";
#endif
-static char rcsid[] = "$OpenBSD: colrm.c,v 1.2 1996/06/26 05:32:14 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: colrm.c,v 1.3 1997/01/15 23:42:21 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
register int ch;
char *p;
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
case '?':
default:
-/* $OpenBSD: column.c,v 1.2 1996/06/26 05:32:16 deraadt Exp $ */
+/* $OpenBSD: column.c,v 1.3 1997/01/15 23:42:21 millert Exp $ */
/* $NetBSD: column.c,v 1.4 1995/09/02 05:53:03 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)column.c 8.4 (Berkeley) 5/4/95";
#endif
-static char rcsid[] = "$OpenBSD: column.c,v 1.2 1996/06/26 05:32:16 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: column.c,v 1.3 1997/01/15 23:42:21 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
termwidth = win.ws_col;
tflag = xflag = 0;
- while ((ch = getopt(argc, argv, "c:s:tx")) != EOF)
+ while ((ch = getopt(argc, argv, "c:s:tx")) != -1)
switch(ch) {
case 'c':
termwidth = atoi(optarg);
-/* $OpenBSD: compress.c,v 1.2 1996/06/26 05:32:20 deraadt Exp $ */
+/* $OpenBSD: compress.c,v 1.3 1997/01/15 23:42:22 millert Exp $ */
/* $NetBSD: compress.c,v 1.9 1995/03/26 09:44:38 glass Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94";
#else
-static char rcsid[] = "$OpenBSD: compress.c,v 1.2 1996/06/26 05:32:20 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: compress.c,v 1.3 1997/01/15 23:42:22 millert Exp $";
#endif
#endif /* not lint */
errx(1, "unknown program name");
bits = cat = 0;
- while ((ch = getopt(argc, argv, "b:cdfv")) != EOF)
+ while ((ch = getopt(argc, argv, "b:cdfv")) != -1)
switch(ch) {
case 'b':
bits = strtol(optarg, &p, 10);
-/* $OpenBSD: ctags.c,v 1.2 1996/06/26 05:32:28 deraadt Exp $ */
+/* $OpenBSD: ctags.c,v 1.3 1997/01/15 23:42:23 millert Exp $ */
/* $NetBSD: ctags.c,v 1.4 1995/09/02 05:57:23 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)ctags.c 8.4 (Berkeley) 2/7/95";
#endif
-static char rcsid[] = "$OpenBSD: ctags.c,v 1.2 1996/06/26 05:32:28 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ctags.c,v 1.3 1997/01/15 23:42:23 millert Exp $";
#endif /* not lint */
#include <err.h>
char cmd[100]; /* too ugly to explain */
aflag = uflag = NO;
- while ((ch = getopt(argc, argv, "BFadf:tuwvx")) != EOF)
+ while ((ch = getopt(argc, argv, "BFadf:tuwvx")) != -1)
switch(ch) {
case 'B':
searchar = '?';
-/* $OpenBSD: cut.c,v 1.2 1996/06/26 05:32:34 deraadt Exp $ */
+/* $OpenBSD: cut.c,v 1.3 1997/01/15 23:42:24 millert Exp $ */
/* $NetBSD: cut.c,v 1.9 1995/09/02 05:59:23 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cut.c 8.3 (Berkeley) 5/4/95";
#endif
-static char rcsid[] = "$OpenBSD: cut.c,v 1.2 1996/06/26 05:32:34 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cut.c,v 1.3 1997/01/15 23:42:24 millert Exp $";
#endif /* not lint */
#include <ctype.h>
/* Since we don't support multi-byte characters, the -c and -b
options are equivalent, and the -n option is meaningless. */
- while ((ch = getopt(argc, argv, "b:c:d:f:sn")) != EOF)
+ while ((ch = getopt(argc, argv, "b:c:d:f:sn")) != -1)
switch(ch) {
case 'b':
case 'c':
-/* $OpenBSD: du.c,v 1.3 1996/10/18 18:16:07 millert Exp $ */
+/* $OpenBSD: du.c,v 1.4 1997/01/15 23:42:25 millert Exp $ */
/* $NetBSD: du.c,v 1.11 1996/10/18 07:20:35 thorpej Exp $ */
/*
#if 0
static char sccsid[] = "@(#)du.c 8.5 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: du.c,v 1.3 1996/10/18 18:16:07 millert Exp $";
+static char rcsid[] = "$OpenBSD: du.c,v 1.4 1997/01/15 23:42:25 millert Exp $";
#endif
#endif /* not lint */
Hflag = Lflag = Pflag = aflag = cflag = kflag = sflag = 0;
totalblocks = 0;
ftsoptions = FTS_PHYSICAL;
- while ((ch = getopt(argc, argv, "HLPacksx")) != EOF)
+ while ((ch = getopt(argc, argv, "HLPacksx")) != -1)
switch (ch) {
case 'H':
Hflag = 1;
-/* $OpenBSD: elf2olf.c,v 1.3 1996/12/09 07:10:14 deraadt Exp $ */
+/* $OpenBSD: elf2olf.c,v 1.4 1997/01/15 23:42:46 millert Exp $ */
/*
* Copyright (c) 1996 Erik Theisen. All rights reserved.
*
#endif /* not lint */
#ifndef lint
-static char rcsid[] = "@(#) $Id: elf2olf.c,v 1.3 1996/12/09 07:10:14 deraadt Exp $";
+static char rcsid[] = "@(#) $Id: elf2olf.c,v 1.4 1997/01/15 23:42:46 millert Exp $";
#endif
#include <stdlib.h>
* Process cmdline
*/
opstring = olf2elf ? "v" : "vo:";
- while((ch = getopt(argc, argv, opstring)) != EOF)
+ while((ch = getopt(argc, argv, opstring)) != -1)
switch(ch) {
case 'v':
verbose = 1;
-/* $OpenBSD: file.c,v 1.3 1996/06/26 05:32:56 deraadt Exp $ */
+/* $OpenBSD: file.c,v 1.4 1997/01/15 23:42:26 millert Exp $ */
/*
* file - find type of a file or files - main program.
*
* 4. This notice may not be removed or altered.
*/
#ifndef lint
-static char *moduleid = "$OpenBSD: file.c,v 1.3 1996/06/26 05:32:56 deraadt Exp $";
+static char *moduleid = "$OpenBSD: file.c,v 1.4 1997/01/15 23:42:26 millert Exp $";
#endif /* lint */
#include <stdio.h>
if (!(magicfile = getenv("MAGIC")))
magicfile = MAGIC;
- while ((c = getopt(argc, argv, "vcdf:Lm:z")) != EOF)
+ while ((c = getopt(argc, argv, "vcdf:Lm:z")) != -1)
switch (c) {
case 'v':
(void) fprintf(stdout, "%s-%d.%d\n", progname,
-/* $OpenBSD: main.c,v 1.3 1996/10/24 03:46:04 tholo Exp $ */
+/* $OpenBSD: main.c,v 1.4 1997/01/15 23:42:27 millert Exp $ */
/*-
* Copyright (c) 1990, 1993
#ifndef lint
/*static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";*/
-static char rcsid[] = "$OpenBSD: main.c,v 1.3 1996/10/24 03:46:04 tholo Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.4 1997/01/15 23:42:27 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
p = start = argv;
ftsoptions = FTS_NOSTAT|FTS_PHYSICAL;
- while ((ch = getopt(argc, argv, "Hdf:hXx")) != EOF)
+ while ((ch = getopt(argc, argv, "Hdf:hXx")) != -1)
switch(ch) {
case 'H':
ftsoptions |= FTS_COMFOLLOW;
-/* $OpenBSD: finger.c,v 1.4 1996/12/08 13:29:19 downsj Exp $ */
+/* $OpenBSD: finger.c,v 1.5 1997/01/15 23:42:28 millert Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
#ifndef lint
/*static char sccsid[] = "from: @(#)finger.c 5.22 (Berkeley) 6/29/90";*/
-static char rcsid[] = "$OpenBSD: finger.c,v 1.4 1996/12/08 13:29:19 downsj Exp $";
+static char rcsid[] = "$OpenBSD: finger.c,v 1.5 1997/01/15 23:42:28 millert Exp $";
#endif /* not lint */
/*
char domain[256];
time_t time();
- while ((ch = getopt(argc, argv, "lmMps")) != EOF)
+ while ((ch = getopt(argc, argv, "lmMps")) != -1)
switch(ch) {
case 'l':
lflag = 1; /* long format */
-/* $OpenBSD: from.c,v 1.2 1996/06/26 05:33:27 deraadt Exp $ */
+/* $OpenBSD: from.c,v 1.3 1997/01/15 23:42:29 millert Exp $ */
/* $NetBSD: from.c,v 1.6 1995/09/01 01:39:10 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)from.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: from.c,v 1.2 1996/06/26 05:33:27 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: from.c,v 1.3 1997/01/15 23:42:29 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
#endif
file = sender = NULL;
- while ((ch = getopt(argc, argv, "f:s:")) != EOF)
+ while ((ch = getopt(argc, argv, "f:s:")) != -1)
switch((char)ch) {
case 'f':
file = optarg;
-/* $OpenBSD: fstat.c,v 1.7 1996/12/22 03:25:52 tholo Exp $ */
+/* $OpenBSD: fstat.c,v 1.8 1997/01/15 23:42:30 millert Exp $ */
/*-
* Copyright (c) 1988, 1993
#ifndef lint
/*static char sccsid[] = "from: @(#)fstat.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$OpenBSD: fstat.c,v 1.7 1996/12/22 03:25:52 tholo Exp $";
+static char *rcsid = "$OpenBSD: fstat.c,v 1.8 1997/01/15 23:42:30 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
arg = 0;
what = KERN_PROC_ALL;
nlistf = memf = NULL;
- while ((ch = getopt(argc, argv, "fnp:u:vN:M:")) != EOF)
+ while ((ch = getopt(argc, argv, "fnp:u:vN:M:")) != -1)
switch((char)ch) {
case 'f':
fsflg = 1;
-/* $OpenBSD: main.c,v 1.13 1997/01/09 11:22:16 niklas Exp $ */
+/* $OpenBSD: main.c,v 1.14 1997/01/15 23:42:31 millert Exp $ */
/*
* Copyright (c) 1985, 1989, 1993, 1994
#if 0
static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 10/9/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.13 1997/01/09 11:22:16 niklas Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.14 1997/01/15 23:42:31 millert Exp $";
#endif
#endif /* not lint */
autologin = 1;
mark = HASHBYTES;
- while ((ch = getopt(argc, argv, "p:r:dgintv")) != EOF) {
+ while ((ch = getopt(argc, argv, "p:r:dgintv")) != -1) {
switch (ch) {
case 'd':
options |= SO_DEBUG;
-/* $OpenBSD: getopt.c,v 1.2 1996/06/26 05:33:45 deraadt Exp $ */
+/* $OpenBSD: getopt.c,v 1.3 1997/01/15 23:42:32 millert Exp $ */
#ifndef lint
-static char rcsid[] = "$OpenBSD: getopt.c,v 1.2 1996/06/26 05:33:45 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: getopt.c,v 1.3 1997/01/15 23:42:32 millert Exp $";
#endif /* not lint */
#include <stdio.h>
int status = 0;
optind = 2; /* Past the program name and the option letters. */
- while ((c = getopt(argc, argv, argv[1])) != EOF)
+ while ((c = getopt(argc, argv, argv[1])) != -1)
switch (c) {
case '?':
status = 1; /* getopt routine gave message */
-/* $OpenBSD: head.c,v 1.2 1996/06/26 05:34:15 deraadt Exp $ */
+/* $OpenBSD: head.c,v 1.3 1997/01/15 23:42:33 millert Exp $ */
/*
* Copyright (c) 1980, 1987 Regents of the University of California.
#ifndef lint
/*static char sccsid[] = "from: @(#)head.c 5.5 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$OpenBSD: head.c,v 1.2 1996/06/26 05:34:15 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: head.c,v 1.3 1997/01/15 23:42:33 millert Exp $";
#endif /* not lint */
#include <stdio.h>
argc--; argv++;
}
- while ((ch = getopt (argc, argv, "n:")) != EOF)
+ while ((ch = getopt (argc, argv, "n:")) != -1)
switch (ch) {
case 'n':
if ((linecnt = atoi(optarg)) < 0)
-/* $OpenBSD: hexsyntax.c,v 1.2 1996/06/26 05:34:20 deraadt Exp $ */
+/* $OpenBSD: hexsyntax.c,v 1.3 1997/01/15 23:42:34 millert Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
#ifndef lint
/*static char sccsid[] = "from: @(#)hexsyntax.c 5.2 (Berkeley) 5/8/90";*/
-static char rcsid[] = "$OpenBSD: hexsyntax.c,v 1.2 1996/06/26 05:34:20 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: hexsyntax.c,v 1.3 1997/01/15 23:42:34 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
char *p, **argv;
argv = *argvp;
- while ((ch = getopt(argc, argv, "bcde:f:n:os:vx")) != EOF)
+ while ((ch = getopt(argc, argv, "bcde:f:n:os:vx")) != -1)
switch (ch) {
case 'b':
add("\"%07.7_Ax\n\"");
-/* $OpenBSD: odsyntax.c,v 1.2 1996/06/26 05:34:21 deraadt Exp $ */
+/* $OpenBSD: odsyntax.c,v 1.3 1997/01/15 23:42:34 millert Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
#ifndef lint
/*static char sccsid[] = "from: @(#)odsyntax.c 5.4 (Berkeley) 3/8/91";*/
-static char rcsid[] = "$OpenBSD: odsyntax.c,v 1.2 1996/06/26 05:34:21 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: odsyntax.c,v 1.3 1997/01/15 23:42:34 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
deprecated = 1;
argv = *argvp;
- while ((ch = getopt(argc, argv, "aBbcDdeFfHhIiLlOoPpswvXx")) != EOF)
+ while ((ch = getopt(argc, argv, "aBbcDdeFfHhIiLlOoPpswvXx")) != -1)
switch (ch) {
case 'a':
odprecede();
-/* $OpenBSD: id.c,v 1.2 1996/06/26 05:34:24 deraadt Exp $ */
+/* $OpenBSD: id.c,v 1.3 1997/01/15 23:42:35 millert Exp $ */
/*-
* Copyright (c) 1991, 1993
#ifndef lint
/*static char sccsid[] = "@(#)id.c 8.3 (Berkeley) 4/28/95";*/
-static char rcsid[] = "$OpenBSD: id.c,v 1.2 1996/06/26 05:34:24 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: id.c,v 1.3 1997/01/15 23:42:35 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
int Gflag, ch, gflag, id, nflag, pflag, rflag, uflag;
Gflag = gflag = nflag = pflag = rflag = uflag = 0;
- while ((ch = getopt(argc, argv, "Ggnpru")) != EOF)
+ while ((ch = getopt(argc, argv, "Ggnpru")) != -1)
switch(ch) {
case 'G':
Gflag = 1;
-/* $OpenBSD: info_mkdb.c,v 1.1 1996/07/22 03:16:31 tholo Exp $ */
+/* $OpenBSD: info_mkdb.c,v 1.2 1997/01/15 23:42:36 millert Exp $ */
/*-
* Copyright (c) 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com>
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: info_mkdb.c,v 1.1 1996/07/22 03:16:31 tholo Exp $";
+static char rcsid[] = "$OpenBSD: info_mkdb.c,v 1.2 1997/01/15 23:42:36 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
int c;
infoname = NULL;
- while ((c = getopt(argc, argv, "f:v")) != EOF) {
+ while ((c = getopt(argc, argv, "f:v")) != -1) {
switch(c) {
case 'f':
infoname = optarg;
-/* $OpenBSD: ipcs.c,v 1.6 1996/12/22 03:25:54 tholo Exp $ */
+/* $OpenBSD: ipcs.c,v 1.7 1997/01/15 23:42:37 millert Exp $ */
/* $NetBSD: ipcs.c,v 1.10.6.1 1996/06/07 01:53:47 thorpej Exp $ */
/*
char errbuf[_POSIX2_LINE_MAX];
int i;
- while ((i = getopt(argc, argv, "MmQqSsabC:cN:optT")) != EOF)
+ while ((i = getopt(argc, argv, "MmQqSsabC:cN:optT")) != -1)
switch (i) {
case 'M':
display = SHMTOTAL;
-/* $Id: join.c,v 1.5 1996/08/12 16:37:00 michaels Exp $
+/* $Id: join.c,v 1.6 1997/01/15 23:42:38 millert Exp $
/*-
* Copyright (c) 1991, 1993, 1994
#ifndef lint
/*static char sccsid[] = "@(#)join.c 8.6 (Berkeley) 5/4/95"; */
-static char rcsid[] = "$Id: join.c,v 1.5 1996/08/12 16:37:00 michaels Exp $";
+static char rcsid[] = "$Id: join.c,v 1.6 1997/01/15 23:42:38 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
aflag = vflag = 0;
obsolete(argv);
- while ((ch = getopt(argc, argv, "\01a:e:j:1:2:o:t:v:")) != EOF) {
+ while ((ch = getopt(argc, argv, "\01a:e:j:1:2:o:t:v:")) != -1) {
switch (ch) {
case '\01': /* See comment in obsolete(). */
aflag = 1;
-/* $OpenBSD: ktrace.c,v 1.3 1996/09/21 08:11:03 deraadt Exp $ */
+/* $OpenBSD: ktrace.c,v 1.4 1997/01/15 23:42:40 millert Exp $ */
/* $NetBSD: ktrace.c,v 1.4 1995/08/31 23:01:44 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)ktrace.c 8.2 (Berkeley) 4/28/95";
#endif
-static char *rcsid = "$OpenBSD: ktrace.c,v 1.3 1996/09/21 08:11:03 deraadt Exp $";
+static char *rcsid = "$OpenBSD: ktrace.c,v 1.4 1997/01/15 23:42:40 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
append = ops = pidset = inherit = 0;
trpoints = DEF_POINTS;
tracefile = DEF_TRACEFILE;
- while ((ch = getopt(argc,argv,"aCcdf:g:ip:t:")) != EOF)
+ while ((ch = getopt(argc,argv,"aCcdf:g:ip:t:")) != -1)
switch((char)ch) {
case 'a':
append = 1;
-/* $OpenBSD: last.c,v 1.2 1996/06/26 05:34:51 deraadt Exp $ */
+/* $OpenBSD: last.c,v 1.3 1997/01/15 23:42:41 millert Exp $ */
/* $NetBSD: last.c,v 1.6 1994/12/24 16:49:02 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)last.c 8.2 (Berkeley) 4/2/94";
#endif
-static char rcsid[] = "$OpenBSD: last.c,v 1.2 1996/06/26 05:34:51 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: last.c,v 1.3 1997/01/15 23:42:41 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
char *p;
maxrec = -1;
- while ((ch = getopt(argc, argv, "0123456789f:h:t:")) != EOF)
+ while ((ch = getopt(argc, argv, "0123456789f:h:t:")) != -1)
switch (ch) {
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
-/* $OpenBSD: lastcomm.c,v 1.3 1996/06/26 05:34:54 deraadt Exp $ */
+/* $OpenBSD: lastcomm.c,v 1.4 1997/01/15 23:42:41 millert Exp $ */
/* $NetBSD: lastcomm.c,v 1.9 1995/10/22 01:43:42 ghudson Exp $ */
/*
#if 0
static char sccsid[] = "@(#)lastcomm.c 8.2 (Berkeley) 4/29/95";
#endif
-static char rcsid[] = "$OpenBSD: lastcomm.c,v 1.3 1996/06/26 05:34:54 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: lastcomm.c,v 1.4 1997/01/15 23:42:41 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
char *acctfile;
acctfile = _PATH_ACCT;
- while ((ch = getopt(argc, argv, "f:")) != EOF)
+ while ((ch = getopt(argc, argv, "f:")) != -1)
switch((char)ch) {
case 'f':
acctfile = optarg;
/*
- * $OpenBSD: locate.code.c,v 1.6 1996/10/20 00:52:53 michaels Exp $
+ * $OpenBSD: locate.code.c,v 1.7 1997/01/15 23:42:42 millert Exp $
*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: locate.code.c,v 1.6 1996/10/20 00:52:53 michaels Exp $
+ * $Id: locate.code.c,v 1.7 1997/01/15 23:42:42 millert Exp $
*/
#ifndef lint
#if 0
static char sccsid[] = "@(#)locate.code.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: locate.code.c,v 1.6 1996/10/20 00:52:53 michaels Exp $";
+static char rcsid[] = "$OpenBSD: locate.code.c,v 1.7 1997/01/15 23:42:42 millert Exp $";
#endif
#endif /* not lint */
FILE *fp;
register int i, j;
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
default:
usage();
/*
- * $OpenBSD: locate.c,v 1.6 1996/10/20 00:52:56 michaels Exp $
+ * $OpenBSD: locate.c,v 1.7 1997/01/15 23:42:44 millert Exp $
*
* Copyright (c) 1995 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
* Copyright (c) 1989, 1993
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: locate.c,v 1.6 1996/10/20 00:52:56 michaels Exp $
+ * $Id: locate.c,v 1.7 1997/01/15 23:42:44 millert Exp $
*/
#ifndef lint
#if 0
static char sccsid[] = "@(#)locate.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: locate.c,v 1.6 1996/10/20 00:52:56 michaels Exp $";
+static char rcsid[] = "$OpenBSD: locate.c,v 1.7 1997/01/15 23:42:44 millert Exp $";
#endif
#endif /* not lint */
#endif
(void) setlocale(LC_ALL, "");
- while ((ch = getopt(argc, argv, "Scd:il:ms")) != EOF)
+ while ((ch = getopt(argc, argv, "Scd:il:ms")) != -1)
switch(ch) {
case 'S': /* statistic lines */
f_statistic = 1;
-/* $OpenBSD: lock.c,v 1.7 1996/10/16 00:09:20 millert Exp $ */
+/* $OpenBSD: lock.c,v 1.8 1997/01/15 23:42:45 millert Exp $ */
/* $NetBSD: lock.c,v 1.8 1996/05/07 18:32:31 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)lock.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: lock.c,v 1.7 1996/10/16 00:09:20 millert Exp $";
+static char rcsid[] = "$OpenBSD: lock.c,v 1.8 1997/01/15 23:42:45 millert Exp $";
#endif /* not lint */
/*
if (!(pw = getpwuid(getuid())))
errx(1, "unknown uid %d.", getuid());
- while ((ch = getopt(argc, argv, "npt:")) != EOF)
+ while ((ch = getopt(argc, argv, "npt:")) != -1)
switch((char)ch) {
case 't':
if ((sectimeout = atoi(optarg)) <= 0)
-/* $OpenBSD: logger.c,v 1.2 1996/06/26 05:35:58 deraadt Exp $ */
+/* $OpenBSD: logger.c,v 1.3 1997/01/15 23:42:45 millert Exp $ */
/* $NetBSD: logger.c,v 1.4 1994/12/22 06:27:00 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)logger.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: logger.c,v 1.2 1996/06/26 05:35:58 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: logger.c,v 1.3 1997/01/15 23:42:45 millert Exp $";
#endif /* not lint */
#include <errno.h>
tag = NULL;
pri = LOG_NOTICE;
logflags = 0;
- while ((ch = getopt(argc, argv, "f:ip:st:")) != EOF)
+ while ((ch = getopt(argc, argv, "f:ip:st:")) != -1)
switch((char)ch) {
case 'f': /* file to log */
if (freopen(optarg, "r", stdin) == NULL) {
-/* $OpenBSD: login.c,v 1.15 1996/12/22 03:25:55 tholo Exp $ */
+/* $OpenBSD: login.c,v 1.16 1997/01/15 23:43:03 millert Exp $ */
/* $NetBSD: login.c,v 1.13 1996/05/15 23:50:16 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94";
#endif
-static char rcsid[] = "$OpenBSD: login.c,v 1.15 1996/12/22 03:25:55 tholo Exp $";
+static char rcsid[] = "$OpenBSD: login.c,v 1.16 1997/01/15 23:43:03 millert Exp $";
#endif /* not lint */
/*
fflag = hflag = pflag = 0;
uid = getuid();
- while ((ch = getopt(argc, argv, "fh:u:p")) != EOF)
+ while ((ch = getopt(argc, argv, "fh:u:p")) != -1)
switch (ch) {
case 'f':
fflag = 1;
-/* $OpenBSD: logname.c,v 1.2 1996/06/26 05:36:04 deraadt Exp $ */
+/* $OpenBSD: logname.c,v 1.3 1997/01/15 23:42:47 millert Exp $ */
/* $NetBSD: logname.c,v 1.6 1994/12/22 06:39:32 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)logname.c 8.2 (Berkeley) 4/3/94";
#endif
-static char rcsid[] = "$OpenBSD: logname.c,v 1.2 1996/06/26 05:36:04 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: logname.c,v 1.3 1997/01/15 23:42:47 millert Exp $";
#endif /* not lint */
#include <stdio.h>
setlocale(LC_ALL, "");
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
case '?':
default:
-/* $OpenBSD: look.c,v 1.2 1996/06/26 05:36:06 deraadt Exp $ */
+/* $OpenBSD: look.c,v 1.3 1997/01/15 23:42:48 millert Exp $ */
/* $NetBSD: look.c,v 1.7 1995/08/31 22:41:02 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)look.c 8.2 (Berkeley) 5/4/95";
#endif
-static char rcsid[] = "$OpenBSD: look.c,v 1.2 1996/06/26 05:36:06 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: look.c,v 1.3 1997/01/15 23:42:48 millert Exp $";
#endif /* not lint */
/*
file = _PATH_WORDS;
termchar = '\0';
- while ((ch = getopt(argc, argv, "dft:")) != EOF)
+ while ((ch = getopt(argc, argv, "dft:")) != -1)
switch(ch) {
case 'd':
dflag = 1;
-/* $OpenBSD: main.c,v 1.4 1996/08/22 00:35:01 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.5 1997/01/15 23:42:49 millert Exp $ */
/* $NetBSD: main.c,v 1.11 1996/01/13 23:25:26 pk Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.4 1996/08/22 00:35:01 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.5 1997/01/15 23:42:49 millert Exp $";
#endif
#endif /* not lint */
initkwds();
- while ((c = getopt(argc, argv, "tD:U:o:")) != EOF)
+ while ((c = getopt(argc, argv, "tD:U:o:")) != -1)
switch(c) {
case 'D': /* define something..*/
-/* $OpenBSD: main.c,v 1.3 1996/09/16 02:26:09 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.4 1997/01/15 23:42:50 millert Exp $ */
/* $NetBSD: main.c,v 1.5 1996/06/08 19:48:31 christos Exp $ */
/*
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.3 1996/09/16 02:26:09 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.4 1997/01/15 23:42:50 millert Exp $";
#endif
#endif /* not lint */
bcc = NIL;
smopts = NIL;
subject = NOSTR;
- while ((i = getopt(argc, argv, "INT:b:c:dfins:u:v")) != EOF) {
+ while ((i = getopt(argc, argv, "INT:b:c:dfins:u:v")) != -1) {
switch (i) {
case 'T':
/*
-/* $OpenBSD: main.c,v 1.9 1996/11/30 21:08:59 millert Exp $ */
+/* $OpenBSD: main.c,v 1.10 1997/01/15 23:42:51 millert Exp $ */
/* $NetBSD: main.c,v 1.31 1996/11/06 17:59:12 christos Exp $ */
/*
#if 0
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.9 1996/11/30 21:08:59 millert Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.10 1997/01/15 23:42:51 millert Exp $";
#endif
#endif /* not lint */
#else
# define OPTFLAGS "BD:I:PSV:d:ef:ij:km:nqrst"
#endif
-rearg: while((c = getopt(argc, argv, OPTFLAGS)) != EOF) {
+rearg: while((c = getopt(argc, argv, OPTFLAGS)) != -1) {
switch(c) {
case 'D':
Var_Set(optarg, "1", VAR_GLOBAL);
-/* $OpenBSD: man.c,v 1.4 1996/09/16 02:26:10 deraadt Exp $ */
+/* $OpenBSD: man.c,v 1.5 1997/01/15 23:42:52 millert Exp $ */
/* $NetBSD: man.c,v 1.7 1995/09/28 06:05:34 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)man.c 8.17 (Berkeley) 1/31/95";
#else
-static char rcsid[] = "$OpenBSD: man.c,v 1.4 1996/09/16 02:26:10 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: man.c,v 1.5 1997/01/15 23:42:52 millert Exp $";
#endif
#endif /* not lint */
f_cat = f_how = 0;
conffile = p_add = p_path = NULL;
- while ((ch = getopt(argc, argv, "-aC:cfhkM:m:P:w")) != EOF)
+ while ((ch = getopt(argc, argv, "-aC:cfhkM:m:P:w")) != -1)
switch (ch) {
case 'a':
f_all = 1;
-/* $OpenBSD: mesg.c,v 1.2 1996/06/26 05:37:05 deraadt Exp $ */
+/* $OpenBSD: mesg.c,v 1.3 1997/01/15 23:42:53 millert Exp $ */
/* $NetBSD: mesg.c,v 1.4 1994/12/23 07:16:32 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)mesg.c 8.2 (Berkeley) 1/21/94";
#endif
-static char rcsid[] = "$OpenBSD: mesg.c,v 1.2 1996/06/26 05:37:05 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mesg.c,v 1.3 1997/01/15 23:42:53 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
char *tty;
int ch;
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
case '?':
default:
-/* $OpenBSD: modstat.c,v 1.6 1996/08/06 18:17:22 deraadt Exp $ */
+/* $OpenBSD: modstat.c,v 1.7 1997/01/15 23:42:54 millert Exp $ */
/*
* Copyright (c) 1993 Terrence R. Lambert.
int modnum = -1;
char *modname = NULL;
- while ((c = getopt(argc, argv, "i:n:")) != EOF) {
+ while ((c = getopt(argc, argv, "i:n:")) != -1) {
switch (c) {
case 'i':
modnum = atoi(optarg);
/* If your shitbox doesn't have getopt, step into the nineties already. */
/* optarg, optind = next-argv-component [i.e. flag arg]; optopt = last-char */
- while ((x = getopt (argc, argv, "ae:g:G:hi:lno:p:rs:tuvw:z")) != EOF) {
+ while ((x = getopt (argc, argv, "ae:g:G:hi:lno:p:rs:tuvw:z")) != -1) {
/* Debug (("in go: x now %c, optarg %x optind %d", x, optarg, optind)) */
switch (x) {
case 'a':
-/* $OpenBSD: main.c,v 1.5 1996/12/22 03:25:58 tholo Exp $ */
+/* $OpenBSD: main.c,v 1.6 1997/01/15 23:42:55 millert Exp $ */
/* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */
/*
#if 0
static char sccsid[] = "from: @(#)main.c 8.4 (Berkeley) 3/1/94";
#else
-static char *rcsid = "$OpenBSD: main.c,v 1.5 1996/12/22 03:25:58 tholo Exp $";
+static char *rcsid = "$OpenBSD: main.c,v 1.6 1997/01/15 23:42:55 millert Exp $";
#endif
#endif /* not lint */
af = AF_UNSPEC;
- while ((ch = getopt(argc, argv, "Aadf:ghI:iM:mN:np:rstuw:")) != EOF)
+ while ((ch = getopt(argc, argv, "Aadf:ghI:iM:mN:np:rstuw:")) != -1)
switch(ch) {
case 'A':
Aflag = 1;
-/* $OpenBSD: newsyslog.c,v 1.7 1996/12/07 08:00:45 deraadt Exp $ */
+/* $OpenBSD: newsyslog.c,v 1.8 1997/01/15 23:42:56 millert Exp $ */
/*
* This file contains changes from the Open Software Foundation.
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.7 1996/12/07 08:00:45 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.8 1997/01/15 23:42:56 millert Exp $";
#endif /* not lint */
#ifndef CONF
}
optind = 1; /* Start options parsing */
- while ((c=getopt(argc,argv,"nrvf:t:")) != EOF)
+ while ((c = getopt(argc,argv,"nrvf:t:")) != -1)
switch (c) {
case 'n':
noaction++; /* This implies needroot as off */
-/* $OpenBSD: nfsstat.c,v 1.5 1996/12/22 03:25:59 tholo Exp $ */
+/* $OpenBSD: nfsstat.c,v 1.6 1997/01/15 23:42:57 millert Exp $ */
/* $NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $ */
/*
static char sccsid[] = "from: @(#)nfsstat.c 8.1 (Berkeley) 6/6/93";
static char *rcsid = "$NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $";
#else
-static char *rcsid = "$OpenBSD: nfsstat.c,v 1.5 1996/12/22 03:25:59 tholo Exp $";
+static char *rcsid = "$OpenBSD: nfsstat.c,v 1.6 1997/01/15 23:42:57 millert Exp $";
#endif
#endif /* not lint */
interval = 0;
memf = nlistf = NULL;
- while ((ch = getopt(argc, argv, "M:N:w:sc")) != EOF)
+ while ((ch = getopt(argc, argv, "M:N:w:sc")) != -1)
switch(ch) {
case 'M':
memf = optarg;
-/* $OpenBSD: nm.c,v 1.3 1996/06/26 05:37:33 deraadt Exp $ */
+/* $OpenBSD: nm.c,v 1.4 1997/01/15 23:42:59 millert Exp $ */
/* $NetBSD: nm.c,v 1.7 1996/01/14 23:04:03 pk Exp $ */
/*
#if 0
static char sccsid[] = "@(#)nm.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: nm.c,v 1.3 1996/06/26 05:37:33 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: nm.c,v 1.4 1997/01/15 23:42:59 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
extern int optind;
int ch, errors;
- while ((ch = getopt(argc, argv, "agnopruw")) != EOF) {
+ while ((ch = getopt(argc, argv, "agnopruw")) != -1) {
switch (ch) {
case 'a':
print_all_symbols = 1;
-/* $OpenBSD: passwd.c,v 1.4 1996/06/26 05:37:47 deraadt Exp $ */
+/* $OpenBSD: passwd.c,v 1.5 1997/01/15 23:43:01 millert Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
#ifndef lint
/*static char sccsid[] = "from: @(#)passwd.c 5.5 (Berkeley) 7/6/91";*/
-static char rcsid[] = "$OpenBSD: passwd.c,v 1.4 1996/06/26 05:37:47 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: passwd.c,v 1.5 1997/01/15 23:43:01 millert Exp $";
#endif /* not lint */
#include <stdio.h>
if (basename == NULL)
basename = argv[0];
- while ((ch = getopt(argc, argv, "lky")) != EOF)
+ while ((ch = getopt(argc, argv, "lky")) != -1)
switch (ch) {
case 'l': /* change local password file */
use_kerberos = 0;
-/* $OpenBSD: paste.c,v 1.2 1996/06/26 05:37:50 deraadt Exp $ */
+/* $OpenBSD: paste.c,v 1.3 1997/01/15 23:43:02 millert Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
#ifndef lint
/*static char sccsid[] = "from: @(#)paste.c 5.7 (Berkeley) 10/30/90";*/
-static char rcsid[] = "$OpenBSD: paste.c,v 1.2 1996/06/26 05:37:50 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: paste.c,v 1.3 1997/01/15 23:43:02 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
int ch, seq;
seq = 0;
- while ((ch = getopt(argc, argv, "d:s")) != EOF)
+ while ((ch = getopt(argc, argv, "d:s")) != -1)
switch(ch) {
case 'd':
delimcnt = tr(delim = optarg);
-/* $OpenBSD: pr.c,v 1.3 1996/08/10 04:41:00 imp Exp $ */
+/* $OpenBSD: pr.c,v 1.4 1997/01/15 23:43:00 millert Exp $ */
/*-
* Copyright (c) 1991 Keith Muller.
#ifndef lint
/* from: static char sccsid[] = "@(#)pr.c 8.1 (Berkeley) 6/6/93"; */
-static char *rcsid = "$OpenBSD: pr.c,v 1.3 1996/08/10 04:41:00 imp Exp $";
+static char *rcsid = "$OpenBSD: pr.c,v 1.4 1997/01/15 23:43:00 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
}
} else
err = stderr;
- while ((c = egetopt(argc, argv, "#adFmrte?h:i?l:n?o:s?w:")) != EOF) {
+ while ((c = egetopt(argc, argv, "#adFmrte?h:i?l:n?o:s?w:")) != -1) {
switch (c) {
case '+':
if ((pgnm = atoi(eoptarg)) < 1) {
-/* $OpenBSD: ranlib.c,v 1.2 1996/06/26 05:38:06 deraadt Exp $ */
+/* $OpenBSD: ranlib.c,v 1.3 1997/01/15 23:43:04 millert Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
#ifndef lint
/*static char sccsid[] = "from: @(#)ranlib.c 5.6 (Berkeley) 2/26/91";*/
-static char rcsid[] = "$OpenBSD: ranlib.c,v 1.2 1996/06/26 05:38:06 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ranlib.c,v 1.3 1997/01/15 23:43:04 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
int ch, eval, tflag;
tflag = 0;
- while ((ch = getopt(argc, argv, "t")) != EOF)
+ while ((ch = getopt(argc, argv, "t")) != -1)
switch(ch) {
case 't':
tflag = 1;
-/* $OpenBSD: rev.c,v 1.2 1996/06/26 05:38:29 deraadt Exp $ */
+/* $OpenBSD: rev.c,v 1.3 1997/01/15 23:43:05 millert Exp $ */
/* $NetBSD: rev.c,v 1.5 1995/09/28 08:49:40 tls Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)rev.c 8.3 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: rev.c,v 1.2 1996/06/26 05:38:29 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rev.c,v 1.3 1997/01/15 23:43:05 millert Exp $";
#endif
#endif /* not lint */
size_t len;
int ch, rval;
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
case '?':
default:
-/* $OpenBSD: rlogin.c,v 1.10 1996/12/22 03:26:01 tholo Exp $ */
+/* $OpenBSD: rlogin.c,v 1.11 1997/01/15 23:43:06 millert Exp $ */
/* $NetBSD: rlogin.c,v 1.8 1995/10/05 09:07:22 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)rlogin.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: rlogin.c,v 1.10 1996/12/22 03:26:01 tholo Exp $";
+static char rcsid[] = "$OpenBSD: rlogin.c,v 1.11 1997/01/15 23:43:06 millert Exp $";
#endif
#endif /* not lint */
#else
#define OPTIONS "8EKLde:l:"
#endif
- while ((ch = getopt(argc - argoff, argv + argoff, OPTIONS)) != EOF)
+ while ((ch = getopt(argc - argoff, argv + argoff, OPTIONS)) != -1)
switch(ch) {
case '8':
eight = 1;
-/* $OpenBSD: rpcinfo.c,v 1.3 1996/06/29 01:07:33 deraadt Exp $ */
+/* $OpenBSD: rpcinfo.c,v 1.4 1997/01/15 23:43:08 millert Exp $ */
#ifndef lint
/*static char sccsid[] = "from: @(#)rpcinfo.c 1.22 87/08/12 SMI";*/
/*static char sccsid[] = "from: @(#)rpcinfo.c 2.2 88/08/11 4.0 RPCSRC";*/
-static char rcsid[] = "$OpenBSD: rpcinfo.c,v 1.3 1996/06/29 01:07:33 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rpcinfo.c,v 1.4 1997/01/15 23:43:08 millert Exp $";
#endif
/*
function = NONE;
portnum = 0;
errflg = 0;
- while ((c = getopt(argc, argv, "ptubdn:")) != EOF) {
+ while ((c = getopt(argc, argv, "ptubdn:")) != -1) {
switch (c) {
case 'p':
-/* $OpenBSD: rsh.c,v 1.10 1996/12/22 03:26:02 tholo Exp $ */
+/* $OpenBSD: rsh.c,v 1.11 1997/01/15 23:43:09 millert Exp $ */
/*-
* Copyright (c) 1983, 1990 The Regents of the University of California.
#ifndef lint
/*static char sccsid[] = "from: @(#)rsh.c 5.24 (Berkeley) 7/1/91";*/
-static char rcsid[] = "$OpenBSD: rsh.c,v 1.10 1996/12/22 03:26:02 tholo Exp $";
+static char rcsid[] = "$OpenBSD: rsh.c,v 1.11 1997/01/15 23:43:09 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
#else
#define OPTIONS "8KLdel:nw"
#endif
- while ((ch = getopt(argc - argoff, argv + argoff, OPTIONS)) != EOF)
+ while ((ch = getopt(argc - argoff, argv + argoff, OPTIONS)) != -1)
switch(ch) {
case 'K':
#ifdef KERBEROS
-/* $OpenBSD: ruptime.c,v 1.2 1996/06/26 05:38:54 deraadt Exp $ */
+/* $OpenBSD: ruptime.c,v 1.3 1997/01/15 23:43:10 millert Exp $ */
/*
* Copyright (c) 1983 The Regents of the University of California.
#ifndef lint
/*static char sccsid[] = "from: @(#)ruptime.c 5.8 (Berkeley) 7/21/90";*/
-static char rcsid[] = "$OpenBSD: ruptime.c,v 1.2 1996/06/26 05:38:54 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ruptime.c,v 1.3 1997/01/15 23:43:10 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
char *interval();
aflg = 0;
- while ((ch = getopt(argc, argv, "alrut")) != EOF)
+ while ((ch = getopt(argc, argv, "alrut")) != -1)
switch((char)ch) {
case 'a':
aflg = 1;
-/* $OpenBSD: rwho.c,v 1.4 1996/08/30 15:15:26 deraadt Exp $ */
+/* $OpenBSD: rwho.c,v 1.5 1997/01/15 23:43:10 millert Exp $ */
/*
* Copyright (c) 1983 The Regents of the University of California.
#ifndef lint
/*static char sccsid[] = "from: @(#)rwho.c 5.5 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$OpenBSD: rwho.c,v 1.4 1996/08/30 15:15:26 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rwho.c,v 1.5 1997/01/15 23:43:10 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
int f, n, i;
time_t time();
- while ((ch = getopt(argc, argv, "a")) != EOF)
+ while ((ch = getopt(argc, argv, "a")) != -1)
switch((char)ch) {
case 'a':
aflg = 1;
-/* $OpenBSD: script.c,v 1.2 1996/06/26 05:39:02 deraadt Exp $ */
+/* $OpenBSD: script.c,v 1.3 1997/01/15 23:43:11 millert Exp $ */
/* $NetBSD: script.c,v 1.3 1994/12/21 08:55:43 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: script.c,v 1.2 1996/06/26 05:39:02 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: script.c,v 1.3 1997/01/15 23:43:11 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
char ibuf[BUFSIZ];
aflg = 0;
- while ((ch = getopt(argc, argv, "a")) != EOF)
+ while ((ch = getopt(argc, argv, "a")) != -1)
switch(ch) {
case 'a':
aflg = 1;
-/* $OpenBSD: main.c,v 1.3 1996/06/26 05:39:07 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.4 1997/01/15 23:43:12 millert Exp $ */
/*-
* Copyright (c) 1992 Diomidis Spinellis.
#ifndef lint
/* from: static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/3/94"; */
-static char *rcsid = "$OpenBSD: main.c,v 1.3 1996/06/26 05:39:07 deraadt Exp $";
+static char *rcsid = "$OpenBSD: main.c,v 1.4 1997/01/15 23:43:12 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
int c, fflag;
fflag = 0;
- while ((c = getopt(argc, argv, "ae:f:n")) != EOF)
+ while ((c = getopt(argc, argv, "ae:f:n")) != -1)
switch (c) {
case 'a':
aflag = 1;
-/* $OpenBSD: size.c,v 1.4 1996/09/03 11:16:47 deraadt Exp $ */
+/* $OpenBSD: size.c,v 1.5 1997/01/15 23:43:13 millert Exp $ */
/* $NetBSD: size.c,v 1.7 1996/01/14 23:07:12 pk Exp $ */
/*
#if 0
static char sccsid[] = "@(#)size.c 8.2 (Berkeley) 12/9/93";
#endif
-static char rcsid[] = "$OpenBSD: size.c,v 1.4 1996/09/03 11:16:47 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: size.c,v 1.5 1997/01/15 23:43:13 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
{
int ch, eval;
- while ((ch = getopt(argc, argv, "w")) != EOF)
+ while ((ch = getopt(argc, argv, "w")) != -1)
switch(ch) {
case 'w':
ignore_bad_archive_entries = 0;
-/* $OpenBSD: split.c,v 1.2 1996/06/26 05:39:28 deraadt Exp $ */
+/* $OpenBSD: split.c,v 1.3 1997/01/15 23:43:14 millert Exp $ */
/* $NetBSD: split.c,v 1.5 1995/08/31 22:22:05 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)split.c 8.3 (Berkeley) 4/25/94";
#endif
-static char rcsid[] = "$OpenBSD: split.c,v 1.2 1996/06/26 05:39:28 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: split.c,v 1.3 1997/01/15 23:43:14 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
int ch;
char *ep, *p;
- while ((ch = getopt(argc, argv, "-0123456789b:l:")) != EOF)
+ while ((ch = getopt(argc, argv, "-0123456789b:l:")) != -1)
switch (ch) {
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
-/* $OpenBSD: strip.c,v 1.5 1997/01/14 10:33:00 downsj Exp $ */
+/* $OpenBSD: strip.c,v 1.6 1997/01/15 23:43:15 millert Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
#ifndef lint
/*static char sccsid[] = "from: @(#)strip.c 5.8 (Berkeley) 11/6/91";*/
-static char rcsid[] = "$OpenBSD: strip.c,v 1.5 1997/01/14 10:33:00 downsj Exp $";
+static char rcsid[] = "$OpenBSD: strip.c,v 1.6 1997/01/15 23:43:15 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
char *fn;
sfcn = s_sym;
- while ((ch = getopt(argc, argv, "dx")) != EOF)
+ while ((ch = getopt(argc, argv, "dx")) != -1)
switch(ch) {
case 'x':
xflag = 1;
-/* $OpenBSD: su.c,v 1.17 1996/12/22 03:26:03 tholo Exp $ */
+/* $OpenBSD: su.c,v 1.18 1997/01/15 23:43:16 millert Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
#ifndef lint
/*static char sccsid[] = "from: @(#)su.c 5.26 (Berkeley) 7/6/91";*/
-static char rcsid[] = "$OpenBSD: su.c,v 1.17 1996/12/22 03:26:03 tholo Exp $";
+static char rcsid[] = "$OpenBSD: su.c,v 1.18 1997/01/15 23:43:16 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
char shellbuf[MAXPATHLEN], avshellbuf[MAXPATHLEN];
asme = asthem = fastlogin = 0;
- while ((ch = getopt(argc, argv, ARGSTR)) != EOF)
+ while ((ch = getopt(argc, argv, ARGSTR)) != -1)
switch((char)ch) {
#ifdef KERBEROS
case 'K':
-/* $OpenBSD: main.c,v 1.8 1996/12/22 03:26:07 tholo Exp $ */
+/* $OpenBSD: main.c,v 1.9 1997/01/15 23:43:17 millert Exp $ */
/* $NetBSD: main.c,v 1.8 1996/05/10 23:16:36 thorpej Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: main.c,v 1.8 1996/12/22 03:26:07 tholo Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.9 1997/01/15 23:43:17 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
int ch;
char errbuf[_POSIX2_LINE_MAX];
- while ((ch = getopt(argc, argv, "M:N:w:")) != EOF)
+ while ((ch = getopt(argc, argv, "M:N:w:")) != -1)
switch(ch) {
case 'M':
memf = optarg;
-/* $OpenBSD: tail.c,v 1.3 1997/01/12 23:43:07 millert Exp $ */
+/* $OpenBSD: tail.c,v 1.4 1997/01/15 23:43:18 millert Exp $ */
/*-
* Copyright (c) 1991, 1993
#if 0
static char sccsid[] = "@(#)tail.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: tail.c,v 1.3 1997/01/12 23:43:07 millert Exp $";
+static char rcsid[] = "$OpenBSD: tail.c,v 1.4 1997/01/15 23:43:18 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
obsolete(argv);
style = NOTSET;
- while ((ch = getopt(argc, argv, "b:c:fn:r")) != EOF)
+ while ((ch = getopt(argc, argv, "b:c:fn:r")) != -1)
switch(ch) {
case 'b':
ARG(512, FBYTES, RBYTES);
-/* $OpenBSD: tcopy.c,v 1.2 1996/06/26 05:40:29 deraadt Exp $ */
+/* $OpenBSD: tcopy.c,v 1.3 1997/01/15 23:43:19 millert Exp $ */
/* $NetBSD: tcopy.c,v 1.4 1995/08/31 22:17:24 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)tcopy.c 8.3 (Berkeley) 1/23/95";
#endif
-static char rcsid[] = "$OpenBSD: tcopy.c,v 1.2 1996/06/26 05:40:29 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: tcopy.c,v 1.3 1997/01/15 23:43:19 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
char *buff, *inf;
guesslen = 1;
- while ((ch = getopt(argc, argv, "cs:vx")) != EOF)
+ while ((ch = getopt(argc, argv, "cs:vx")) != -1)
switch((char)ch) {
case 'c':
op = COPYVERIFY;
-/* $OpenBSD: main.c,v 1.3 1996/07/03 14:01:56 niklas Exp $ */
+/* $OpenBSD: main.c,v 1.4 1997/01/15 23:43:20 millert Exp $ */
/* $NetBSD: main.c,v 1.5 1996/02/28 21:04:05 thorpej Exp $ */
/*
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 5/30/95";
static char rcsid[] = "$NetBSD: main.c,v 1.5 1996/02/28 21:04:05 thorpej Exp $";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.3 1996/07/03 14:01:56 niklas Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.4 1997/01/15 23:43:20 millert Exp $";
#endif
#endif /* not lint */
rlogin = (strncmp(prompt, "rlog", 4) == 0) ? '~' : _POSIX_VDISABLE;
autologin = -1;
- while ((ch = getopt(argc, argv, "8EKLS:X:ab:cde:fFk:l:n:rt:x")) != EOF) {
+ while ((ch = getopt(argc, argv, "8EKLS:X:ab:cde:fFk:l:n:rt:x")) != -1) {
switch(ch) {
case '8':
eight = 3; /* binary output and input */
-/* $OpenBSD: time.c,v 1.3 1996/10/12 20:36:06 deraadt Exp $ */
+/* $OpenBSD: time.c,v 1.4 1997/01/15 23:43:21 millert Exp $ */
/* $NetBSD: time.c,v 1.7 1995/06/27 00:34:00 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)time.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: time.c,v 1.3 1996/10/12 20:36:06 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: time.c,v 1.4 1997/01/15 23:43:21 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
struct rusage ru;
lflag = 0;
- while ((ch = getopt(argc, argv, "lp")) != EOF)
+ while ((ch = getopt(argc, argv, "lp")) != -1)
switch((char)ch) {
case 'p':
portableflag = 1;
-/* $OpenBSD: touch.c,v 1.2 1996/06/26 05:41:45 deraadt Exp $ */
+/* $OpenBSD: touch.c,v 1.3 1997/01/15 23:43:22 millert Exp $ */
/* $NetBSD: touch.c,v 1.11 1995/08/31 22:10:06 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)touch.c 8.2 (Berkeley) 4/28/95";
#endif
-static char rcsid[] = "$OpenBSD: touch.c,v 1.2 1996/06/26 05:41:45 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: touch.c,v 1.3 1997/01/15 23:43:22 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
if (gettimeofday(&tv[0], NULL))
err(1, "gettimeofday");
- while ((ch = getopt(argc, argv, "acfmr:t:")) != EOF)
+ while ((ch = getopt(argc, argv, "acfmr:t:")) != -1)
switch(ch) {
case 'a':
aflag = 1;
-/* $OpenBSD: tput.c,v 1.2 1996/06/26 05:41:47 deraadt Exp $ */
+/* $OpenBSD: tput.c,v 1.3 1997/01/15 23:43:23 millert Exp $ */
/* $NetBSD: tput.c,v 1.8 1995/08/31 22:11:37 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)tput.c 8.3 (Berkeley) 4/28/95";
#endif
-static char rcsid[] = "$OpenBSD: tput.c,v 1.2 1996/06/26 05:41:47 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: tput.c,v 1.3 1997/01/15 23:43:23 millert Exp $";
#endif /* not lint */
#include <termios.h>
char *cptr, *p, *term, buf[1024], tbuf[1024];
term = NULL;
- while ((ch = getopt(argc, argv, "T:")) != EOF)
+ while ((ch = getopt(argc, argv, "T:")) != -1)
switch(ch) {
case 'T':
term = optarg;
-/* $OpenBSD: tr.c,v 1.2 1996/06/26 05:41:51 deraadt Exp $ */
+/* $OpenBSD: tr.c,v 1.3 1997/01/15 23:43:24 millert Exp $ */
/* $NetBSD: tr.c,v 1.5 1995/08/31 22:13:48 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)tr.c 8.2 (Berkeley) 5/4/95";
#endif
-static char rcsid[] = "$OpenBSD: tr.c,v 1.2 1996/06/26 05:41:51 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: tr.c,v 1.3 1997/01/15 23:43:24 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
int cflag, dflag, sflag, isstring2;
cflag = dflag = sflag = 0;
- while ((ch = getopt(argc, argv, "cds")) != EOF)
+ while ((ch = getopt(argc, argv, "cds")) != -1)
switch((char)ch) {
case 'c':
cflag = 1;
-/* $OpenBSD: tset.c,v 1.2 1996/06/26 05:41:58 deraadt Exp $ */
+/* $OpenBSD: tset.c,v 1.3 1997/01/15 23:43:25 millert Exp $ */
/* $NetBSD: tset.c,v 1.4 1994/12/07 05:08:15 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)tset.c 8.1 (Berkeley) 6/9/93";
#endif
-static char rcsid[] = "$OpenBSD: tset.c,v 1.2 1996/06/26 05:41:58 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: tset.c,v 1.3 1997/01/15 23:43:25 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
obsolete(argv);
noinit = noset = quiet = Sflag = sflag = showterm = 0;
- while ((ch = getopt(argc, argv, "-a:d:e:Ii:k:m:np:QSrs")) != EOF) {
+ while ((ch = getopt(argc, argv, "-a:d:e:Ii:k:m:np:QSrs")) != -1) {
switch (ch) {
case '-': /* display term only */
noset = 1;
-/* $OpenBSD: tsort.c,v 1.3 1996/06/26 05:42:00 deraadt Exp $ */
+/* $OpenBSD: tsort.c,v 1.4 1997/01/15 23:43:26 millert Exp $ */
/* $NetBSD: tsort.c,v 1.11 1996/01/17 20:37:53 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)tsort.c 8.3 (Berkeley) 5/4/95";
#endif
-static char rcsid[] = "$OpenBSD: tsort.c,v 1.3 1996/06/26 05:42:00 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: tsort.c,v 1.4 1997/01/15 23:43:26 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
int bsize, ch, nused;
BUF bufs[2];
- while ((ch = getopt(argc, argv, "dlq")) != EOF)
+ while ((ch = getopt(argc, argv, "dlq")) != -1)
switch (ch) {
case 'd':
debug = 1;
-/* $OpenBSD: ul.c,v 1.3 1996/06/26 05:42:05 deraadt Exp $ */
+/* $OpenBSD: ul.c,v 1.4 1997/01/15 23:43:27 millert Exp $ */
/* $NetBSD: ul.c,v 1.3 1994/12/07 00:28:24 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)ul.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: ul.c,v 1.3 1996/06/26 05:42:05 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ul.c,v 1.4 1997/01/15 23:43:27 millert Exp $";
#endif /* not lint */
#include <stdio.h>
termtype = getenv("TERM");
if (termtype == NULL || (argv[0][0] == 'c' && !isatty(1)))
termtype = "lpr";
- while ((c=getopt(argc, argv, "it:T:")) != EOF)
+ while ((c=getopt(argc, argv, "it:T:")) != -1)
switch(c) {
case 't':
-/* $OpenBSD: uniq.c,v 1.2 1996/06/26 05:42:13 deraadt Exp $ */
+/* $OpenBSD: uniq.c,v 1.3 1997/01/15 23:43:28 millert Exp $ */
/* $NetBSD: uniq.c,v 1.7 1995/08/31 22:03:48 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)uniq.c 8.3 (Berkeley) 5/4/95";
#endif
-static char rcsid[] = "$OpenBSD: uniq.c,v 1.2 1996/06/26 05:42:13 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: uniq.c,v 1.3 1997/01/15 23:43:28 millert Exp $";
#endif /* not lint */
#include <errno.h>
char *prevline, *thisline, *p;
obsolete(argv);
- while ((ch = getopt(argc, argv, "-cdf:s:u")) != EOF)
+ while ((ch = getopt(argc, argv, "-cdf:s:u")) != -1)
switch (ch) {
case '-':
--optind;
-/* $OpenBSD: unvis.c,v 1.2 1996/06/26 05:42:18 deraadt Exp $ */
+/* $OpenBSD: unvis.c,v 1.3 1997/01/15 23:43:29 millert Exp $ */
/*-
* Copyright (c) 1989, 1993
#if 0
static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: unvis.c,v 1.2 1996/06/26 05:42:18 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: unvis.c,v 1.3 1997/01/15 23:43:29 millert Exp $";
#endif /* not lint */
#include <stdio.h>
FILE *fp;
int ch;
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch((char)ch) {
case '?':
default:
-/* $OpenBSD: users.c,v 1.2 1996/06/26 05:42:20 deraadt Exp $ */
+/* $OpenBSD: users.c,v 1.3 1997/01/15 23:43:30 millert Exp $ */
/* $NetBSD: users.c,v 1.5 1994/12/20 15:58:19 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)users.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: users.c,v 1.2 1996/06/26 05:42:20 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: users.c,v 1.3 1997/01/15 23:43:30 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
struct utmp utmp;
int ch;
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
case '?':
default:
-/* $OpenBSD: vacation.c,v 1.3 1996/12/06 02:09:22 deraadt Exp $ */
+/* $OpenBSD: vacation.c,v 1.4 1997/01/15 23:43:31 millert Exp $ */
/* $NetBSD: vacation.c,v 1.7 1995/04/29 05:58:27 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)vacation.c 8.2 (Berkeley) 1/26/94";
#endif
-static char rcsid[] = "$OpenBSD: vacation.c,v 1.3 1996/12/06 02:09:22 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: vacation.c,v 1.4 1997/01/15 23:43:31 millert Exp $";
#endif /* not lint */
/*
opterr = iflag = 0;
interval = -1;
- while ((ch = getopt(argc, argv, "a:Iir:")) != EOF)
+ while ((ch = getopt(argc, argv, "a:Iir:")) != -1)
switch((char)ch) {
case 'a': /* alias */
if (!(cur = (ALIAS *)malloc((u_int)sizeof(ALIAS))))
F_SET(gp, G_SNAPSHOT);
#ifdef DEBUG
- while ((ch = getopt(argc, argv, "c:D:eFlRrSsT:t:vw:")) != EOF)
+ while ((ch = getopt(argc, argv, "c:D:eFlRrSsT:t:vw:")) != -1)
#else
- while ((ch = getopt(argc, argv, "c:eFlRrSst:vw:")) != EOF)
+ while ((ch = getopt(argc, argv, "c:eFlRrSst:vw:")) != -1)
#endif
switch (ch) {
case 'c': /* Run the command. */
-/* $OpenBSD: vis.c,v 1.2 1996/06/26 05:42:39 deraadt Exp $ */
+/* $OpenBSD: vis.c,v 1.3 1997/01/15 23:43:33 millert Exp $ */
/* $NetBSD: vis.c,v 1.4 1994/12/20 16:13:03 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)vis.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: vis.c,v 1.2 1996/06/26 05:42:39 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: vis.c,v 1.3 1997/01/15 23:43:33 millert Exp $";
#endif /* not lint */
#include <stdio.h>
FILE *fp;
int ch;
- while ((ch = getopt(argc, argv, "nwctsobfF:ld")) != EOF)
+ while ((ch = getopt(argc, argv, "nwctsobfF:ld")) != -1)
switch((char)ch) {
case 'n':
none++;
/* $NetBSD: vmstat.c,v 1.29.4.1 1996/06/05 00:21:05 cgd Exp $ */
-/* $OpenBSD: vmstat.c,v 1.15 1996/12/22 03:26:09 tholo Exp $ */
+/* $OpenBSD: vmstat.c,v 1.16 1997/01/15 23:43:34 millert Exp $ */
/*
* Copyright (c) 1980, 1986, 1991, 1993
memf = nlistf = NULL;
interval = reps = todo = 0;
- while ((c = getopt(argc, argv, "c:fiM:mN:stw:")) != EOF) {
+ while ((c = getopt(argc, argv, "c:fiM:mN:stw:")) != -1) {
switch (c) {
case 'c':
reps = atoi(optarg);
-/* $OpenBSD: w.c,v 1.11 1996/12/22 03:26:10 tholo Exp $ */
+/* $OpenBSD: w.c,v 1.12 1997/01/15 23:43:35 millert Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
}
memf = nlistf = NULL;
- while ((ch = getopt(argc, argv, p)) != EOF)
+ while ((ch = getopt(argc, argv, p)) != -1)
switch (ch) {
case 'h':
header = 0;
-/* $OpenBSD: wall.c,v 1.7 1996/09/16 02:26:18 deraadt Exp $ */
+/* $OpenBSD: wall.c,v 1.8 1997/01/15 23:43:36 millert Exp $ */
/* $NetBSD: wall.c,v 1.6 1994/11/17 07:17:58 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wall.c 8.2 (Berkeley) 11/16/93";
#endif
-static char rcsid[] = "$OpenBSD: wall.c,v 1.7 1996/09/16 02:26:18 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wall.c,v 1.8 1997/01/15 23:43:36 millert Exp $";
#endif /* not lint */
/*
char line[sizeof(utmp.ut_line) + 1];
struct wallgroup *g;
- while ((ch = getopt(argc, argv, "ng:")) != EOF)
+ while ((ch = getopt(argc, argv, "ng:")) != -1)
switch (ch) {
case 'n':
/* undoc option for shutdown: suppress banner */
-/* $OpenBSD: whatis.c,v 1.2 1996/06/26 05:42:54 deraadt Exp $ */
+/* $OpenBSD: whatis.c,v 1.3 1997/01/15 23:43:37 millert Exp $ */
/*
* Copyright (c) 1987, 1993
conffile = NULL;
p_augment = p_path = NULL;
- while ((ch = getopt(argc, argv, "C:M:m:P:")) != EOF)
+ while ((ch = getopt(argc, argv, "C:M:m:P:")) != -1)
switch (ch) {
case 'C':
conffile = optarg;
-/* $OpenBSD: whereis.c,v 1.2 1996/06/26 05:42:56 deraadt Exp $ */
+/* $OpenBSD: whereis.c,v 1.3 1997/01/15 23:43:38 millert Exp $ */
/* $NetBSD: whereis.c,v 1.6 1995/08/31 21:54:52 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)whereis.c 8.3 (Berkeley) 5/4/95";
#endif
-static char *rcsid = "$OpenBSD: whereis.c,v 1.2 1996/06/26 05:42:56 deraadt Exp $";
+static char *rcsid = "$OpenBSD: whereis.c,v 1.3 1997/01/15 23:43:38 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
int ch, sverrno, mib[2];
char *p, *t, *std, path[MAXPATHLEN];
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
case '?':
default:
-/* $OpenBSD: whois.c,v 1.2 1996/06/26 05:43:02 deraadt Exp $ */
+/* $OpenBSD: whois.c,v 1.3 1997/01/15 23:43:39 millert Exp $ */
/* $NetBSD: whois.c,v 1.5 1994/11/14 05:13:25 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)whois.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: whois.c,v 1.2 1996/06/26 05:43:02 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: whois.c,v 1.3 1997/01/15 23:43:39 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
char *host;
host = NICHOST;
- while ((ch = getopt(argc, argv, "h:")) != EOF)
+ while ((ch = getopt(argc, argv, "h:")) != -1)
switch((char)ch) {
case 'h':
host = optarg;
-/* $OpenBSD: xargs.c,v 1.3 1996/06/26 05:44:03 deraadt Exp $ */
+/* $OpenBSD: xargs.c,v 1.4 1997/01/15 23:43:40 millert Exp $ */
/* $NetBSD: xargs.c,v 1.7 1994/11/14 06:51:41 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)xargs.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: xargs.c,v 1.3 1996/06/26 05:44:03 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: xargs.c,v 1.4 1997/01/15 23:43:40 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
nargs = 5000;
nline = ARG_MAX - 4 * 1024;
nflag = xflag = 0;
- while ((ch = getopt(argc, argv, "0n:s:tx")) != EOF)
+ while ((ch = getopt(argc, argv, "0n:s:tx")) != -1)
switch(ch) {
case 'n':
nflag = 1;
-/* $OpenBSD: xinstall.c,v 1.9 1996/12/06 02:14:56 deraadt Exp $ */
+/* $OpenBSD: xinstall.c,v 1.10 1997/01/15 23:43:41 millert Exp $ */
/* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */
/*
#if 0
static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
#endif
-static char rcsid[] = "$OpenBSD: xinstall.c,v 1.9 1996/12/06 02:14:56 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: xinstall.c,v 1.10 1997/01/15 23:43:41 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
char *flags, *to_name, *group = NULL, *owner = NULL;
iflags = 0;
- while ((ch = getopt(argc, argv, "Ccdf:g:m:o:pSs")) != EOF)
+ while ((ch = getopt(argc, argv, "Ccdf:g:m:o:pSs")) != -1)
switch((char)ch) {
case 'C':
docompare = 1;
*/
#ifndef lint
-static char rcsid[] = "$Id: ac.c,v 1.2 1996/08/29 03:32:19 deraadt Exp $";
+static char rcsid[] = "$Id: ac.c,v 1.3 1997/01/15 23:43:44 millert Exp $";
#endif
#include <sys/types.h>
int c;
fp = NULL;
- while ((c = getopt(argc, argv, "Dc:dpt:w:")) != EOF) {
+ while ((c = getopt(argc, argv, "Dc:dpt:w:")) != -1) {
switch (c) {
#ifdef DEBUG
case 'D':
* SUCH DAMAGE.
*
* from: @(#)get_args.c 8.1 (Berkeley) 6/6/93
- * $Id: get_args.c,v 1.1.1.1 1995/10/18 08:47:10 deraadt Exp $
+ * $Id: get_args.c,v 1.2 1997/01/15 23:43:45 millert Exp $
*/
/*
char *logfile = 0;
char *sub_domain = 0;
- while ((opt_ch = getopt(c, v, "mnprva:c:d:h:k:l:t:w:x:y:C:D:")) != EOF)
+ while ((opt_ch = getopt(c, v, "mnprva:c:d:h:k:l:t:w:x:y:C:D:")) != -1)
switch (opt_ch) {
case 'a':
if (*optarg != '/') {
* SUCH DAMAGE.
*
* from: @(#)amq.c 8.1 (Berkeley) 6/7/93
- * $Id: amq.c,v 1.4 1996/08/13 06:06:53 deraadt Exp $
+ * $Id: amq.c,v 1.5 1997/01/15 23:43:46 millert Exp $
*/
/*
#endif /* not lint */
#ifndef lint
-static char rcsid[] = "$Id: amq.c,v 1.4 1996/08/13 06:06:53 deraadt Exp $";
+static char rcsid[] = "$Id: amq.c,v 1.5 1997/01/15 23:43:46 millert Exp $";
static char sccsid[] = "@(#)amq.c 8.1 (Berkeley) 6/7/93";
#endif /* not lint */
/*
* Parse arguments
*/
- while ((opt_ch = getopt(argc, argv, "fh:l:msuvx:D:M:")) != EOF)
+ while ((opt_ch = getopt(argc, argv, "fh:l:msuvx:D:M:")) != -1)
switch (opt_ch) {
case 'f':
flush_flag = 1;
* SUCH DAMAGE.
*
* from: @(#)fsinfo.c 8.1 (Berkeley) 6/6/93
- * $Id: fsinfo.c,v 1.2 1996/10/26 20:10:20 millert Exp $
+ * $Id: fsinfo.c,v 1.3 1997/01/15 23:43:47 millert Exp $
*/
#ifndef lint
if (!progname)
progname = "fsinfo";
- while ((ch = getopt(c, v, "a:b:d:e:f:h:m:D:U:I:qv")) != EOF)
+ while ((ch = getopt(c, v, "a:b:d:e:f:h:m:D:U:I:qv")) != -1)
switch (ch) {
case 'a':
autodir = optarg;
* SUCH DAMAGE.
*
* from: @(#)mk-amd-map.c 8.1 (Berkeley) 6/28/93
- * $Id: mk-amd-map.c,v 1.1.1.1 1995/10/18 08:47:22 deraadt Exp $
+ * $Id: mk-amd-map.c,v 1.2 1997/01/15 23:43:48 millert Exp $
*/
/*
#endif /* not lint */
#ifndef lint
-static char rcsid[] = "$Id: mk-amd-map.c,v 1.1.1.1 1995/10/18 08:47:22 deraadt Exp $";
+static char rcsid[] = "$Id: mk-amd-map.c,v 1.2 1997/01/15 23:43:48 millert Exp $";
static char sccsid[] = "@(#)mk-amd-map.c 8.1 (Berkeley) 6/28/93";
#endif /* not lint */
int ch;
extern int optind;
- while ((ch = getopt(argc, argv, "p")) != EOF)
+ while ((ch = getopt(argc, argv, "p")) != -1)
switch (ch) {
case 'p':
printit = 1;
int ch;
pid = getpid();
- while ((ch = getopt(argc, argv, "andsf")) != EOF)
+ while ((ch = getopt(argc, argv, "andsf")) != -1)
switch((char)ch) {
case 'a':
dump(0);
*/
#ifndef lint
-static char rcsid[] = "$Id: catman.c,v 1.1.1.1 1995/10/18 08:47:29 deraadt Exp $";
+static char rcsid[] = "$Id: catman.c,v 1.2 1997/01/15 23:43:49 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
{
int c;
- while ((c = getopt(argc, argv, "knpswM:")) != EOF) {
+ while ((c = getopt(argc, argv, "knpswM:")) != -1) {
switch (c) {
case 'k':
f_ignerr = 1;
#ifndef lint
/* from: static char sccsid[] = "@(#)chown.c 8.8 (Berkeley) 4/4/94"; */
-static char *rcsid = "$Id: chown.c,v 1.1.1.1 1995/10/18 08:47:29 deraadt Exp $";
+static char *rcsid = "$Id: chown.c,v 1.2 1997/01/15 23:43:52 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
ischown = myname[2] == 'o';
Hflag = Lflag = Pflag = hflag = 0;
- while ((ch = getopt(argc, argv, "HLPRfh")) != EOF)
+ while ((ch = getopt(argc, argv, "HLPRfh")) != -1)
switch (ch) {
case 'H':
Hflag = 1;
-/* $OpenBSD: main.c,v 1.2 1997/01/12 07:43:33 downsj Exp $ */
+/* $OpenBSD: main.c,v 1.3 1997/01/15 23:43:54 millert Exp $ */
/* $NetBSD: main.c,v 1.14 1996/06/10 02:32:24 thorpej Exp $ */
/*
char *p;
fatal_errors =1;
- while ((ch = getopt(argc, argv, "gpk")) != EOF)
+ while ((ch = getopt(argc, argv, "gpk")) != -1)
switch (ch) {
case 'g':
debugging++;
-/* $OpenBSD: main.c,v 1.8 1996/10/23 22:37:53 niklas Exp $ */
+/* $OpenBSD: main.c,v 1.9 1997/01/15 23:43:53 millert Exp $ */
/* $NetBSD: main.c,v 1.18 1996/08/31 20:58:20 mycroft Exp $ */
/*
int pflag, ch;
pflag = 0;
- while ((ch = getopt(argc, argv, "gpb:s:")) != EOF) {
+ while ((ch = getopt(argc, argv, "gpb:s:")) != -1) {
switch (ch) {
case 'g':
err(1,"Default regular expression argument to -I is botched");
flag_ignore = 1;
- while ((i = getopt(argc,argv,"D:I:B:qv")) != EOF)
+ while ((i = getopt(argc,argv,"D:I:B:qv")) != -1)
switch (i) {
case 'D':
damage_limit = strtol(optarg,0,0);
#ifndef lint
/*static char sccsid[] = "from: @(#)dev_mkdb.c 8.1 (Berkeley) 6/6/93";*/
-static char rcsid[] = "$Id: dev_mkdb.c,v 1.2 1996/08/29 03:33:19 deraadt Exp $";
+static char rcsid[] = "$Id: dev_mkdb.c,v 1.3 1997/01/15 23:43:55 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
u_char buf[MAXNAMLEN + 1];
char dbtmp[MAXPATHLEN + 1], dbname[MAXPATHLEN + 1];
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch((char)ch) {
case '?':
default:
* improvements that they make and grant CSS redistribution rights.
*
* from: Utah $Hdr: grfinfo.c 1.3 94/04/04$
- * $Id: grfinfo.c,v 1.1.1.1 1995/10/18 08:47:34 deraadt Exp $
+ * $Id: grfinfo.c,v 1.2 1997/01/15 23:43:56 millert Exp $
*/
#include <stdio.h>
register int c;
pname = argv[0];
- while ((c = getopt(argc, argv, "at")) != EOF)
+ while ((c = getopt(argc, argv, "at")) != -1)
switch (c) {
/* everything */
case 'a':
hex_name = list_name = 0;
/* parse options */
- while ((c = getopt(argc, argv, "o:l:")) != EOF) {
+ while ((c = getopt(argc, argv, "o:l:")) != -1) {
switch (c) {
case 'o':
if (hex_name)
* improvements that they make and grant CSS redistribution rights.
*
* from: Utah $Hdr: hilinfo.c 1.3 94/04/04$
- * $Id: hilinfo.c,v 1.1.1.1 1995/10/18 08:47:35 deraadt Exp $
+ * $Id: hilinfo.c,v 1.2 1997/01/15 23:43:58 millert Exp $
*/
#include <stdio.h>
int multi;
pname = argv[0];
- while ((c = getopt(argc, argv, "at")) != EOF)
+ while ((c = getopt(argc, argv, "at")) != -1)
switch (c) {
/* everything */
case 'a':
-/* $OpenBSD: inetd.c,v 1.23 1996/12/14 19:19:09 deraadt Exp $ */
+/* $OpenBSD: inetd.c,v 1.24 1997/01/15 23:43:59 millert Exp $ */
/* $NetBSD: inetd.c,v 1.11 1996/02/22 11:14:41 mycroft Exp $ */
/*
* Copyright (c) 1983,1991 The Regents of the University of California.
#ifndef lint
/*static char sccsid[] = "from: @(#)inetd.c 5.30 (Berkeley) 6/3/91";*/
-static char rcsid[] = "$OpenBSD: inetd.c,v 1.23 1996/12/14 19:19:09 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: inetd.c,v 1.24 1997/01/15 23:43:59 millert Exp $";
#endif /* not lint */
/*
progname = strrchr(argv[0], '/');
progname = progname ? progname + 1 : argv[0];
- while ((ch = getopt(argc, argv, "d")) != EOF)
+ while ((ch = getopt(argc, argv, "d")) != -1)
switch(ch) {
case 'd':
debug = 1;
-/* $OpenBSD: iostat.c,v 1.6 1996/12/22 03:28:56 deraadt Exp $ */
+/* $OpenBSD: iostat.c,v 1.7 1997/01/15 23:44:01 millert Exp $ */
/* $NetBSD: iostat.c,v 1.10 1996/10/25 18:21:58 scottr Exp $ */
/*
int ch, hdrcnt;
struct timeval tv;
- while ((ch = getopt(argc, argv, "Cc:dDIM:N:Tw:")) != EOF)
+ while ((ch = getopt(argc, argv, "Cc:dDIM:N:Tw:")) != -1)
switch(ch) {
case 'c':
if ((reps = atoi(optarg)) <= 0)
-/* $OpenBSD: kgmon.c,v 1.2 1996/05/01 22:15:24 niklas Exp $ */
+/* $OpenBSD: kgmon.c,v 1.3 1997/01/15 23:44:02 millert Exp $ */
/*
* Copyright (c) 1983, 1992, 1993
#ifndef lint
/*static char sccsid[] = "from: @(#)kgmon.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$OpenBSD: kgmon.c,v 1.2 1996/05/01 22:15:24 niklas Exp $";
+static char *rcsid = "$OpenBSD: kgmon.c,v 1.3 1997/01/15 23:44:02 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
seteuid(getuid());
kmemf = NULL;
system = NULL;
- while ((ch = getopt(argc, argv, "M:N:bhpr")) != EOF) {
+ while ((ch = getopt(argc, argv, "M:N:bhpr")) != -1) {
switch((char)ch) {
case 'M':
-/* $OpenBSD: mopchk.c,v 1.2 1996/09/21 19:12:18 maja Exp $
+/* $OpenBSD: mopchk.c,v 1.3 1997/01/15 23:44:27 millert Exp $
/*
* Copyright (c) 1995-96 Mats O Jansson. All rights reserved.
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: mopchk.c,v 1.2 1996/09/21 19:12:18 maja Exp $";
+static char rcsid[] = "$OpenBSD: mopchk.c,v 1.3 1997/01/15 23:44:27 millert Exp $";
#endif
/*
openlog(Program, LOG_PID | LOG_CONS, LOG_DAEMON);
opterr = 0;
- while ((op = getopt(argc, argv, "av")) != EOF) {
+ while ((op = getopt(argc, argv, "av")) != -1) {
switch (op) {
case 'a':
AllFlag++;
-/* $OpenBSD: mopd.c,v 1.2 1996/09/21 19:12:24 maja Exp $ */
+/* $OpenBSD: mopd.c,v 1.3 1997/01/15 23:44:28 millert Exp $ */
/*
* Copyright (c) 1993-96 Mats O Jansson. All rights reserved.
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: mopd.c,v 1.2 1996/09/21 19:12:24 maja Exp $";
+static char rcsid[] = "$OpenBSD: mopd.c,v 1.3 1997/01/15 23:44:28 millert Exp $";
#endif
/*
if (*Program == '-')
Program++;
- while ((c = getopt(argc, argv, "34adfv")) != EOF)
+ while ((c = getopt(argc, argv, "34adfv")) != -1)
switch (c) {
case '3':
Not3Flag++;
-/* $OpenBSD: mopprobe.c,v 1.2 1996/09/21 19:12:35 maja Exp $ */
+/* $OpenBSD: mopprobe.c,v 1.3 1997/01/15 23:44:29 millert Exp $ */
/*
* Copyright (c) 1993-96 Mats O Jansson. All rights reserved.
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: mopprobe.c,v 1.2 1996/09/21 19:12:35 maja Exp $";
+static char rcsid[] = "$OpenBSD: mopprobe.c,v 1.3 1997/01/15 23:44:29 millert Exp $";
#endif
/*
openlog(Program, LOG_PID | LOG_CONS, LOG_DAEMON);
opterr = 0;
- while ((op = getopt(argc, argv, "ado")) != EOF) {
+ while ((op = getopt(argc, argv, "ado")) != -1) {
switch (op) {
case '3':
Not3Flag++;
-/* $OpenBSD: moptrace.c,v 1.2 1996/09/21 19:12:39 maja Exp $ */
+/* $OpenBSD: moptrace.c,v 1.3 1997/01/15 23:44:30 millert Exp $ */
/*
* Copyright (c) 1993-95 Mats O Jansson. All rights reserved.
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: moptrace.c,v 1.2 1996/09/21 19:12:39 maja Exp $";
+static char rcsid[] = "$OpenBSD: moptrace.c,v 1.3 1997/01/15 23:44:30 millert Exp $";
#endif
/*
openlog(Program, LOG_PID | LOG_CONS, LOG_DAEMON);
opterr = 0;
- while ((op = getopt(argc, argv, "34ad")) != EOF) {
+ while ((op = getopt(argc, argv, "34ad")) != -1) {
switch (op) {
case '3':
Not3Flag++;
-/* $OpenBSD: mtree.c,v 1.4 1997/01/03 21:40:50 millert Exp $ */
+/* $OpenBSD: mtree.c,v 1.5 1997/01/15 23:44:03 millert Exp $ */
/* $NetBSD: mtree.c,v 1.7 1996/09/05 23:29:22 thorpej Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)mtree.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: mtree.c,v 1.4 1997/01/03 21:40:50 millert Exp $";
+static char rcsid[] = "$OpenBSD: mtree.c,v 1.5 1997/01/15 23:44:03 millert Exp $";
#endif
#endif /* not lint */
dir = NULL;
keys = KEYDEFAULT;
- while ((ch = getopt(argc, argv, "cdef:iK:k:np:rs:tUux")) != EOF)
+ while ((ch = getopt(argc, argv, "cdef:iK:k:np:rs:tUux")) != -1)
switch((char)ch) {
case 'c':
cflag = 1;
}
/* handle args */
- while ((c = getopt(argc, argv, "c:dh:n:p:r:st:u:v")) != EOF) {
+ while ((c = getopt(argc, argv, "c:dh:n:p:r:st:u:v")) != -1) {
switch (c) {
case 'r' : _res.retry = atoi(optarg);
openlog(ProgName, LOG_PID);
#endif
#ifdef STUBS
- while ((c = getopt(argc, argv, "C:d:l:s:t:z:f:p:P:qS")) != EOF)
+ while ((c = getopt(argc, argv, "C:d:l:s:t:z:f:p:P:qS")) != -1)
#else
- while ((c = getopt(argc, argv, "C:d:l:s:t:z:f:p:P:q")) != EOF)
+ while ((c = getopt(argc, argv, "C:d:l:s:t:z:f:p:P:q")) != -1)
#endif
switch (c) {
#ifdef GEN_AXFR
#ifndef lint
/*static char sccsid[] = "from: @(#)named-xfer.c 4.18 (Berkeley) 3/7/91";*/
-static char rcsid[] = "$Id: named-xfer.c,v 1.1.1.1 1995/10/18 08:47:56 deraadt Exp $";
+static char rcsid[] = "$Id: named-xfer.c,v 1.2 1997/01/15 23:44:07 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
#else
openlog("named-xfer", LOG_PID);
#endif
- while ((c = getopt(argc, argv, "d:l:s:t:z:f:p:P:q")) != EOF)
+ while ((c = getopt(argc, argv, "d:l:s:t:z:f:p:P:q")) != -1)
switch (c) {
case 'd':
debug = atoi(optarg);
* SUCH DAMAGE.
*/
#ifndef lint
-static char *rcsid = "$Id: netgroup_mkdb.c,v 1.2 1996/05/01 13:32:21 deraadt Exp $";
+static char *rcsid = "$Id: netgroup_mkdb.c,v 1.3 1997/01/15 23:44:08 millert Exp $";
#endif
#include <sys/types.h>
char *fname = _PATH_NETGROUP;
- while ((ch = getopt(argc, argv, "do:")) != EOF)
+ while ((ch = getopt(argc, argv, "do:")) != -1)
switch (ch) {
#ifdef DEBUG_NG
case 'd':
-/* $OpenBSD: main.c,v 1.2 1996/06/04 08:43:34 niklas Exp $ */
+/* $OpenBSD: main.c,v 1.3 1997/01/15 23:44:09 millert Exp $ */
#ifndef lint
-static char *rcsid = "$OpenBSD: main.c,v 1.2 1996/06/04 08:43:34 niklas Exp $";
+static char *rcsid = "$OpenBSD: main.c,v 1.3 1997/01/15 23:44:09 millert Exp $";
#endif
/*
char *prog_name = argv[0], *cp;
start = argv;
- while ((ch = getopt(argc, argv, Options)) != EOF) {
+ while ((ch = getopt(argc, argv, Options)) != -1) {
switch(ch) {
case 'v':
Verbose = TRUE;
-/* $OpenBSD: main.c,v 1.3 1996/12/29 12:18:27 graichen Exp $ */
+/* $OpenBSD: main.c,v 1.4 1997/01/15 23:44:10 millert Exp $ */
#ifndef lint
-static const char *rcsid = "$OpenBSD: main.c,v 1.3 1996/12/29 12:18:27 graichen Exp $";
+static const char *rcsid = "$OpenBSD: main.c,v 1.4 1997/01/15 23:44:10 millert Exp $";
#endif
/*
char *prog_name = argv[0];
pkgs = start = argv;
- while ((ch = getopt(argc, argv, Options)) != EOF)
+ while ((ch = getopt(argc, argv, Options)) != -1)
switch(ch) {
case 'v':
Verbose = TRUE;
-/* $OpenBSD: main.c,v 1.2 1996/06/04 08:43:37 niklas Exp $ */
+/* $OpenBSD: main.c,v 1.3 1997/01/15 23:44:10 millert Exp $ */
#ifndef lint
-static char *rcsid = "$OpenBSD: main.c,v 1.2 1996/06/04 08:43:37 niklas Exp $";
+static char *rcsid = "$OpenBSD: main.c,v 1.3 1997/01/15 23:44:10 millert Exp $";
#endif
/*
char *prog_name = argv[0];
pkgs = start = argv;
- while ((ch = getopt(argc, argv, Options)) != EOF)
+ while ((ch = getopt(argc, argv, Options)) != -1)
switch(ch) {
case 'v':
Verbose = TRUE;
-/* $OpenBSD: main.c,v 1.2 1996/06/04 08:43:39 niklas Exp $ */
+/* $OpenBSD: main.c,v 1.3 1997/01/15 23:44:11 millert Exp $ */
#ifndef lint
-static char *rcsid = "$OpenBSD: main.c,v 1.2 1996/06/04 08:43:39 niklas Exp $";
+static char *rcsid = "$OpenBSD: main.c,v 1.3 1997/01/15 23:44:11 millert Exp $";
#endif
/*
char *prog_name = argv[0];
pkgs = start = argv;
- while ((ch = getopt(argc, argv, Options)) != EOF)
+ while ((ch = getopt(argc, argv, Options)) != -1)
switch(ch) {
case 'a':
AllInstalled = TRUE;
#ifndef lint
/*static char sccsid[] = "from: @(#)portmap.c 5.4 (Berkeley) 4/19/91";*/
-static char rcsid[] = "$Id: portmap.c,v 1.11 1996/10/06 04:13:12 deraadt Exp $";
+static char rcsid[] = "$Id: portmap.c,v 1.12 1997/01/15 23:44:12 millert Exp $";
#endif /* not lint */
/*
int len = sizeof(struct sockaddr_in);
register struct pmaplist *pml;
- while ((c = getopt(argc, argv, "d")) != EOF) {
+ while ((c = getopt(argc, argv, "d")) != -1) {
switch (c) {
case 'd':
-/* $OpenBSD: pwd_mkdb.c,v 1.8 1996/10/16 09:16:14 downsj Exp $ */
+/* $OpenBSD: pwd_mkdb.c,v 1.9 1997/01/15 23:44:14 millert Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
#ifndef lint
/*static char sccsid[] = "from: @(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94";*/
-static char *rcsid = "$Id: pwd_mkdb.c,v 1.8 1996/10/16 09:16:14 downsj Exp $";
+static char *rcsid = "$Id: pwd_mkdb.c,v 1.9 1997/01/15 23:44:14 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
DBT ypdata, ypkey;
makeold = 0;
- while ((ch = getopt(argc, argv, "cpvd:")) != EOF)
+ while ((ch = getopt(argc, argv, "cpvd:")) != -1)
switch(ch) {
case 'c': /* verify only */
cflag = 1;
-/* $OpenBSD: rarpd.c,v 1.5 1996/08/12 23:42:12 deraadt Exp $ */
+/* $OpenBSD: rarpd.c,v 1.6 1997/01/15 23:44:15 millert Exp $ */
/* $NetBSD: rarpd.c,v 1.12 1996/03/21 18:28:23 jtc Exp $ */
/*
#endif /* not lint */
#ifndef lint
-static char rcsid[] = "$OpenBSD: rarpd.c,v 1.5 1996/08/12 23:42:12 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rarpd.c,v 1.6 1997/01/15 23:44:15 millert Exp $";
#endif
openlog(name, LOG_PID | LOG_CONS, LOG_DAEMON);
opterr = 0;
- while ((op = getopt(argc, argv, "adf")) != EOF) {
+ while ((op = getopt(argc, argv, "adf")) != -1) {
switch (op) {
case 'a':
++aflag;
/*
* Parse any arguments.
*/
- while ((c = getopt(argc, argv, "adi:")) != EOF)
+ while ((c = getopt(argc, argv, "adi:")) != -1)
switch(c) {
case 'a':
BootAny++;
{
int opt;
- while ((opt = getopt(argc, argv, "o:")) != EOF) {
+ while ((opt = getopt(argc, argv, "o:")) != -1) {
switch (opt) {
case 'o':
if (!freopen(optarg, "w", stdout)) {
cfile = _PATH_SENDMAILCF;
sfile = NULL;
mnames = TRUE;
- while ((ch = getopt(argc, argv, "C:f:o")) != EOF)
+ while ((ch = getopt(argc, argv, "C:f:o")) != -1)
{
switch (ch)
{
#else
#define OPTIONS "Ndforv"
#endif
- while ((opt = getopt(argc, argv, OPTIONS)) != EOF)
+ while ((opt = getopt(argc, argv, OPTIONS)) != -1)
{
switch (opt)
{
#endif
filename = "/etc/aliases";
- while ((ch = getopt(argc, argv, "f:")) != EOF)
+ while ((ch = getopt(argc, argv, "f:")) != -1)
switch((char)ch) {
case 'f':
filename = optarg;
# define OPTIONS "B:b:C:cd:e:F:f:h:IiM:mN:nO:o:p:q:R:r:sTtUV:vX:"
#endif
opterr = 0;
- while ((j = getopt(argc, argv, OPTIONS)) != EOF)
+ while ((j = getopt(argc, argv, OPTIONS)) != -1)
{
switch (j)
{
char *path;
int ch;
- while ((ch = getopt(argc, argv, "Aan")) != EOF) {
+ while ((ch = getopt(argc, argv, "Aan")) != -1) {
switch (ch) {
case 'A':
-/* $OpenBSD: sysctl.c,v 1.4 1996/11/25 08:22:43 mickey Exp $ */
+/* $OpenBSD: sysctl.c,v 1.5 1997/01/15 23:44:22 millert Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
#if 0
static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93";
#else
-static char *rcsid = "$OpenBSD: sysctl.c,v 1.4 1996/11/25 08:22:43 mickey Exp $";
+static char *rcsid = "$OpenBSD: sysctl.c,v 1.5 1997/01/15 23:44:22 millert Exp $";
#endif
#endif /* not lint */
extern int optind;
int ch, lvl1;
- while ((ch = getopt(argc, argv, "Aanw")) != EOF) {
+ while ((ch = getopt(argc, argv, "Aanw")) != -1) {
switch (ch) {
case 'A':
FILE *fp;
char *p, line[MSG_BSIZE + 1];
- while ((ch = getopt(argc, argv, "duf:m:p:")) != EOF)
+ while ((ch = getopt(argc, argv, "duf:m:p:")) != -1)
switch(ch) {
case 'd': /* debug */
Debug++;
"@(#) Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996\n\
The Regents of the University of California. All rights reserved.\n";
static const char rcsid[] =
- "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/tcpdump.c,v 1.6 1996/12/12 16:22:21 bitblt Exp $ (LBL)";
+ "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/tcpdump.c,v 1.7 1997/01/15 23:44:25 millert Exp $ (LBL)";
#endif
/*
error("%s", ebuf);
opterr = 0;
- while ((op = getopt(argc, argv, "c:defF:i:lnNOpqr:s:StT:vw:xY")) != EOF)
+ while ((op = getopt(argc, argv, "c:defF:i:lnNOpqr:s:StT:vw:xY")) != -1)
switch (op) {
case 'c':
cnt = atoi(optarg);
#ifndef lint
/*static char sccsid[] = "from: @(#)trpt.c 5.14 (Berkeley) 7/1/91";*/
-static char rcsid[] = "$Id: trpt.c,v 1.4 1996/12/22 03:29:10 deraadt Exp $";
+static char rcsid[] = "$Id: trpt.c,v 1.5 1997/01/15 23:44:26 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
off_t lseek();
jflag = npcbs = 0;
- while ((ch = getopt(argc, argv, "afjp:st")) != EOF)
+ while ((ch = getopt(argc, argv, "afjp:st")) != -1)
switch (ch) {
case 'a':
++aflag;
dump_mode(0);
return (0);
}
- while ((c = getopt(argc, argv, "as:")) != EOF) {
+ while ((c = getopt(argc, argv, "as:")) != -1) {
switch (c) {
case 'a':
if (optind < argc)
struct stat begin, end;
int ch;
- while ((ch = getopt(argc, argv, "")) != EOF) {
+ while ((ch = getopt(argc, argv, "")) != -1) {
switch (ch) {
case '?':
default:
-/* $OpenBSD: makedbm.c,v 1.4 1996/06/26 21:26:35 maja Exp $ */
+/* $OpenBSD: makedbm.c,v 1.5 1997/01/15 23:44:32 millert Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: makedbm.c,v 1.4 1996/06/26 21:26:35 maja Exp $";
+static char rcsid[] = "$OpenBSD: makedbm.c,v 1.5 1997/01/15 23:44:32 millert Exp $";
#endif
#include <stdio.h>
aflag = uflag = bflag = lflag = sflag = 0;
infile = outfile = NULL;
- while ((ch = getopt(argc, argv, "blsui:o:m:d:")) != EOF)
+ while ((ch = getopt(argc, argv, "blsui:o:m:d:")) != -1)
switch (ch) {
case 'b':
bflag++;
-/* $OpenBSD: mknetid.c,v 1.2 1996/05/30 09:53:09 deraadt Exp $ */
+/* $OpenBSD: mknetid.c,v 1.3 1997/01/15 23:44:33 millert Exp $ */
/*
* Copyright (c) 1996 Mats O Jansson <moj@stacken.kth.se>
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: mknetid.c,v 1.2 1996/05/30 09:53:09 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mknetid.c,v 1.3 1997/01/15 23:44:33 millert Exp $";
#endif
#include <sys/param.h>
qflag = usage = 0;
domain = NULL;
- while ((ch = getopt(argc, argv, "d:g:h:m:p:q")) != EOF)
+ while ((ch = getopt(argc, argv, "d:g:h:m:p:q")) != -1)
switch (ch) {
case 'd':
domain = optarg;
-/* $OpenBSD: ypserv.c,v 1.6 1996/10/02 23:44:56 deraadt Exp $ */
+/* $OpenBSD: ypserv.c,v 1.7 1997/01/15 23:44:34 millert Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypserv.c,v 1.6 1996/10/02 23:44:56 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ypserv.c,v 1.7 1997/01/15 23:44:34 millert Exp $";
#endif
#include "yp.h"
int ch;
extern char *optarg;
- while ((ch = getopt(argc, argv, "a:dx")) != EOF)
+ while ((ch = getopt(argc, argv, "a:dx")) != -1)
switch (ch) {
case 'a':
aclfile = optarg;
-/* $OpenBSD: ypxfr.c,v 1.10 1996/12/24 19:28:03 deraadt Exp $ */
+/* $OpenBSD: ypxfr.c,v 1.11 1997/01/15 23:44:35 millert Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypxfr.c,v 1.10 1996/12/24 19:28:03 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ypxfr.c,v 1.11 1997/01/15 23:44:35 millert Exp $";
#endif
#include <stdio.h>
yp_get_default_domain(&domain);
- while ((ch = getopt(argc, argv, "cd:fh:s:C:")) != EOF)
+ while ((ch = getopt(argc, argv, "cd:fh:s:C:")) != -1)
switch (ch) {
case 'c':
cflag++;