]>
Commit | Line | Data |
---|---|---|
ccbf5ac3 JB |
1 | --- strace-4.5.3/configure.ac.orig 2004-04-25 15:46:46.000000000 +0000 |
2 | +++ strace-4.5.3/configure.ac 2004-04-25 16:29:07.000000000 +0000 | |
3 | @@ -165,6 +165,14 @@ | |
4 | struct stat.st_level, | |
5 | struct stat.st_rdev]) | |
6 | AC_STAT64 | |
7 | +AC_CHECK_MEMBERS([struct stat64.st_blksize, | |
8 | + struct stat64.st_blocks, | |
9 | + struct stat64.st_aclcnt, | |
10 | + struct stat64.st_flags, | |
11 | + struct stat64.st_fstype, | |
12 | + struct stat64.st_gen, | |
13 | + struct stat64.st_level, | |
14 | + struct stat64.st_rdev],,,[#include <asm/stat.h>]) | |
de4e0a62 | 15 | |
ccbf5ac3 JB |
16 | AC_TYPE_SIGNAL |
17 | AC_TYPE_UID_T | |
18 | --- strace-4.5.3/file.c.orig 2004-01-13 10:16:47.000000000 +0000 | |
19 | +++ strace-4.5.3/file.c 2004-04-25 16:30:39.000000000 +0000 | |
20 | @@ -862,27 +862,27 @@ | |
21 | (unsigned long) statbuf.st_nlink, | |
22 | (unsigned long) statbuf.st_uid, | |
23 | (unsigned long) statbuf.st_gid); | |
24 | -#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE | |
25 | +#ifdef HAVE_STRUCT_STAT64_ST_BLKSIZE | |
26 | tprintf("st_blksize=%lu, ", | |
27 | (unsigned long) statbuf.st_blksize); | |
28 | -#endif /* HAVE_STRUCT_STAT_ST_BLKSIZE */ | |
29 | -#ifdef HAVE_STRUCT_STAT_ST_BLOCKS | |
30 | +#endif /* HAVE_STRUCT_STAT64_ST_BLKSIZE */ | |
31 | +#ifdef HAVE_STRUCT_STAT64_ST_BLOCKS | |
32 | tprintf("st_blocks=%lu, ", (unsigned long) statbuf.st_blocks); | |
33 | -#endif /* HAVE_STRUCT_STAT_ST_BLOCKS */ | |
34 | +#endif /* HAVE_STRUCT_STAT64_ST_BLOCKS */ | |
35 | } | |
de4e0a62 | 36 | else |
ccbf5ac3 JB |
37 | tprintf("{st_mode=%s, ", sprintmode(statbuf.st_mode)); |
38 | switch (statbuf.st_mode & S_IFMT) { | |
39 | case S_IFCHR: case S_IFBLK: | |
40 | -#ifdef HAVE_STRUCT_STAT_ST_RDEV | |
41 | +#ifdef HAVE_STRUCT_STAT64_ST_RDEV | |
42 | tprintf("st_rdev=makedev(%lu, %lu), ", | |
43 | (unsigned long) major(statbuf.st_rdev), | |
44 | (unsigned long) minor(statbuf.st_rdev)); | |
45 | -#else /* !HAVE_STRUCT_STAT_ST_RDEV */ | |
46 | +#else /* !HAVE_STRUCT_STAT64_ST_RDEV */ | |
47 | tprintf("st_size=makedev(%lu, %lu), ", | |
48 | (unsigned long) major(statbuf.st_size), | |
49 | (unsigned long) minor(statbuf.st_size)); | |
50 | -#endif /* !HAVE_STRUCT_STAT_ST_RDEV */ | |
51 | +#endif /* !HAVE_STRUCT_STAT64_ST_RDEV */ | |
52 | break; | |
53 | default: | |
54 | tprintf("st_size=%llu, ", statbuf.st_size); | |
55 | @@ -892,24 +892,24 @@ | |
56 | tprintf("st_atime=%s, ", sprinttime(statbuf.st_atime)); | |
57 | tprintf("st_mtime=%s, ", sprinttime(statbuf.st_mtime)); | |
58 | tprintf("st_ctime=%s", sprinttime(statbuf.st_ctime)); | |
59 | -#if HAVE_STRUCT_STAT_ST_FLAGS | |
60 | +#if HAVE_STRUCT_STAT64_ST_FLAGS | |
61 | tprintf(", st_flags="); | |
62 | if (statbuf.st_flags) { | |
63 | printflags(fileflags, statbuf.st_flags); | |
64 | } else | |
65 | tprintf("0"); | |
66 | #endif | |
67 | -#if HAVE_STRUCT_STAT_ST_ACLCNT | |
68 | +#if HAVE_STRUCT_STAT64_ST_ACLCNT | |
69 | tprintf(", st_aclcnt=%d", statbuf.st_aclcnt); | |
70 | #endif | |
71 | -#if HAVE_STRUCT_STAT_ST_LEVEL | |
72 | +#if HAVE_STRUCT_STAT64_ST_LEVEL | |
73 | tprintf(", st_level=%ld", statbuf.st_level); | |
74 | #endif | |
75 | -#if HAVE_STRUCT_STAT_ST_FSTYPE | |
76 | +#if HAVE_STRUCT_STAT64_ST_FSTYPE | |
77 | tprintf(", st_fstype=%.*s", | |
78 | (int) sizeof statbuf.st_fstype, statbuf.st_fstype); | |
79 | #endif | |
80 | -#if HAVE_STRUCT_STAT_ST_GEN | |
81 | +#if HAVE_STRUCT_STAT64_ST_GEN | |
82 | tprintf(", st_gen=%u", statbuf.st_gen); | |
83 | #endif | |
84 | tprintf("}"); |