version 1.54, 2009/06/25 20:45:43 |
version 1.55, 2009/07/21 17:07:38 |
|
|
usage(void) |
usage(void) |
{ |
{ |
extern char *__progname; |
extern char *__progname; |
fprintf(stderr, "usage: %s [-abin] [-d count] " |
fprintf(stderr, "usage: %s [-abiNn] [-d count] " |
"[-s delay] [-w width] [view] [delay]\n", __progname); |
"[-s delay] [-w width] [view] [delay]\n", __progname); |
exit(1); |
exit(1); |
} |
} |
|
|
if (setresgid(gid, gid, gid) == -1) |
if (setresgid(gid, gid, gid) == -1) |
err(1, "setresgid"); |
err(1, "setresgid"); |
|
|
while ((ch = getopt(argc, argv, "abd:ins:w:")) != -1) { |
while ((ch = getopt(argc, argv, "Nabd:ins:w:")) != -1) { |
switch (ch) { |
switch (ch) { |
case 'a': |
case 'a': |
maxlines = -1; |
maxlines = -1; |
|
|
case 'i': |
case 'i': |
interactive = 1; |
interactive = 1; |
break; |
break; |
|
case 'N': |
|
nflag = 0; |
|
break; |
case 'n': |
case 'n': |
|
/* this is a noop, -n is the default */ |
nflag = 1; |
nflag = 1; |
break; |
break; |
case 's': |
case 's': |