version 1.30, 2013/11/26 13:18:55 |
version 1.31, 2015/10/05 06:17:05 |
|
|
|
|
(void)setlocale(LC_CTYPE, ""); |
(void)setlocale(LC_CTYPE, ""); |
|
|
|
if (tame("stdio rpath", NULL) == -1) |
|
err(1, "tame"); |
|
|
/* 1. Grok parameters. */ |
/* 1. Grok parameters. */ |
while ((ch = getopt(argc, argv, "0123456789cd:hl:mnpst:w:")) != -1) { |
while ((ch = getopt(argc, argv, "0123456789cd:hl:mnpst:w:")) != -1) { |
switch (ch) { |
switch (ch) { |
|
|
while (argc-- > 0) |
while (argc-- > 0) |
process_named_file(*argv++); |
process_named_file(*argv++); |
} else { |
} else { |
|
if (tame("stdio", NULL) != 0) |
|
err(1, "tame"); |
process_stream(stdin, "standard input"); |
process_stream(stdin, "standard input"); |
} |
} |
|
|