Handle change in Linux 2.4.0-test6 stat structure

This commit is contained in:
Wichert Akkerman 2000-08-10 18:16:15 +00:00
parent 16a03d2e97
commit d077c451cd
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-08-09 Wichert Akkerman <wakkerma@debian.org>
* file.c: update to reflect that st_ino suddenly became a long long
in the in Linux 2.4.0-test6
2000-08-09 Wichert Akkerman <wakkerma@debian.org>
* test/clone.c: minor fixup

8
file.c
View File

@ -643,10 +643,18 @@ long addr;
}
if (!abbrev(tcp)) {
#ifdef HAVE_LONG_LONG
tprintf("{st_dev=makedev(%lu, %lu), st_ino=%llu, st_mode=%s, ",
#else
tprintf("{st_dev=makedev(%lu, %lu), st_ino=%lu, st_mode=%s, ",
#endif
(unsigned long) major(statbuf.st_dev),
(unsigned long) minor(statbuf.st_dev),
#ifdef HAVE_LONG_LONG
(unsigned long long) statbuf.st_ino,
#else
(unsigned long) statbuf.st_ino,
#endif
sprintmode(statbuf.st_mode));
tprintf("st_nlink=%lu, st_uid=%lu, st_gid=%lu, ",
(unsigned long) statbuf.st_nlink,