=================================================================== RCS file: /cvs/djgpp/djgpp/tests/libc/posix/sys/stat/stat.c,v retrieving revision 1.1 retrieving revision 1.2 diff -p -u -r1.1 -r1.2 --- djgpp/tests/libc/posix/sys/stat/stat.c 1995/04/23 00:01:56 1.1 +++ /cvs/djgpp/djgpp/tests/libc/posix/sys/stat/stat.c 1996/09/11 22:48:04 1.2 @@ -6,8 +6,11 @@ void djstat(char *f) { struct stat s; - stat(f, &s); - printf("%d.%d %10d %24.24s %s\n", s.st_dev, s.st_ino, s.st_size, asctime(localtime(&s.st_mtime)), f); + if (stat(f, &s) < 0) + printf("stat(%s) failed\n", f); + printf("%2d.%-5d %10d %3d %24.24s %s\n", s.st_dev, s.st_ino, s.st_size, + s.st_nlink, + asctime(localtime(&s.st_mtime)), f); } int