SCCS-vsn: usr.bin/file/file.c 4.17
-static char sccsid[] = "@(#)file.c 4.16 (Berkeley) %G%";
+static char sccsid[] = "@(#)file.c 4.17 (Berkeley) %G%";
#endif
/*
* file - determine type of file
#endif
/*
* file - determine type of file
int l = strlen(p);
if (l>0)
p[l-1] = '\0';
int l = strlen(p);
if (l>0)
p[l-1] = '\0';
type(p);
if (ifile>=0)
close(ifile);
type(p);
if (ifile>=0)
close(ifile);
exit(1);
}
while(argc > 1) {
exit(1);
}
while(argc > 1) {
- printf("%s: ", argv[1]);
type(argv[1]);
fflush(stdout);
argc--;
type(argv[1]);
fflush(stdout);
argc--;
fprintf(stderr, "file: %s: %s\n", file, strerror(errno));
return;
}
fprintf(stderr, "file: %s: %s\n", file, strerror(errno));
return;
}
switch (mbuf.st_mode & S_IFMT) {
case S_IFLNK:
switch (mbuf.st_mode & S_IFMT) {
case S_IFLNK: