version 1.15, 2007/09/27 21:55:54 |
version 1.16, 2007/11/26 13:36:34 |
|
|
extern char *__progname; /* from crt0.o */ |
extern char *__progname; /* from crt0.o */ |
|
|
fprintf(stderr, |
fprintf(stderr, |
"usage: %s [-n] [-f file] -a\n" |
"usage: %s [-an] [-f file]\n" |
" %s [-n] [-f file] name ...\n" |
" %s [-n] [-f file] name ...\n" |
" %s [-n] [-f file] name=value ...\n", |
" %s [-n] [-f file] name=value ...\n", |
__progname, __progname, __progname); |
__progname, __progname, __progname); |
|
|
} |
} |
argc -= optind; |
argc -= optind; |
argv += optind; |
argv += optind; |
|
|
|
if (argc == 0) |
|
aflag++; |
|
|
if ((fd = open(file, O_RDWR)) < 0) { |
if ((fd = open(file, O_RDWR)) < 0) { |
if ((fd = open(file, O_RDONLY)) < 0) |
if ((fd = open(file, O_RDONLY)) < 0) |