version 1.8, 1997/04/03 19:33:50 |
version 1.9, 1997/09/11 11:21:54 |
|
|
|
|
int xflag = 0; |
int xflag = 0; |
|
|
|
int |
main(argc, argv) |
main(argc, argv) |
int argc; |
int argc; |
char *argv[]; |
char *argv[]; |
{ |
{ |
register int fd, nb; |
register int fd; |
EXEC *ep; |
EXEC *ep; |
struct stat sb; |
struct stat sb; |
int (*sfcn)__P((const char *, int, EXEC *, struct stat *)); |
int (*sfcn)__P((const char *, int, EXEC *, struct stat *)); |
|
|
|
|
errors = 0; |
errors = 0; |
#define ERROR(x) errors |= 1; warnx("%s: %s", fn, strerror(x)); continue; |
#define ERROR(x) errors |= 1; warnx("%s: %s", fn, strerror(x)); continue; |
while (fn = *argv++) { |
while ((fn = *argv++)) { |
if ((fd = open(fn, O_RDWR)) < 0) { |
if ((fd = open(fn, O_RDWR)) < 0) { |
ERROR(errno); |
ERROR(errno); |
} |
} |