version 1.25, 2007/09/27 21:55:54 |
version 1.26, 2007/11/26 13:36:34 |
|
|
case 't': |
case 't': |
tflag = 1; |
tflag = 1; |
break; |
break; |
case '?': |
|
default: |
default: |
usage(); |
usage(); |
} |
} |
|
|
argc -= optind; |
argc -= optind; |
argv += optind; |
argv += optind; |
|
|
|
if (argc == 0 && tflag == 0) |
|
aflag++; |
|
|
if ((fd = open(file, O_RDWR)) == -1) |
if ((fd = open(file, O_RDWR)) == -1) |
if ((fd = open(file, O_RDONLY)) == -1) |
if ((fd = open(file, O_RDONLY)) == -1) |
err(1, "%s", file); |
err(1, "%s", file); |
|
|
extern char *__progname; /* from crt0.o */ |
extern char *__progname; /* from crt0.o */ |
|
|
fprintf(stderr, |
fprintf(stderr, |
"usage: %s [-nv] [-f file] -a\n" |
"usage: %s [-anv] [-f file]\n" |
" %s [-nv] [-f file] name ...\n" |
" %s [-nv] [-f file] name ...\n" |
" %s [-qt] [-f file] name ...\n" |
" %s [-qt] [-f file] name ...\n" |
" %s [-q] [-f file] name=value ...\n", |
" %s [-q] [-f file] name=value ...\n", |