]> git.pld-linux.org Git - packages/strace.git/blame - strace-getdents64.patch
4.3; need alpha && sparc testers
[packages/strace.git] / strace-getdents64.patch
CommitLineData
ed799d14
AM
1diff -urN strace-4.3.org/desc.c strace-4.3/desc.c
2--- strace-4.3.org/desc.c Wed Apr 4 21:38:47 2001
3+++ strace-4.3/desc.c Wed Apr 4 21:38:54 2001
4@@ -139,6 +139,11 @@
5 #ifdef F_UNSHARE
6 { F_UNSHARE, "F_UNSHARE" },
7 #endif
8+#if defined(F_GETLK64) && F_GETLK64 != F_GETLK
9+ { F_GETLK64, "F_GETLK64" },
10+ { F_SETLK64, "F_SETLK64" },
11+ { F_SETLKW64, "F_SETLKW64" },
12+#endif
13 { 0, NULL },
14 };
15
16@@ -334,6 +364,12 @@
17 #endif
18 default:
19 tprintf(", %#lx", tcp->u_arg[2]);
20+ break;
21+#if defined(F_GETLK64) && F_GETLK64 != F_GETLK
22+ case F_SETLK64: case F_SETLKW64:
23+ tprintf(", ");
24+ printflock64(tcp, tcp->u_arg[2], 0);
25+#endif
26 break;
27 }
28 }
29diff -urN strace-4.3.org/file.c strace-4.3/file.c
30--- strace-4.3.org/file.c Wed Apr 4 21:38:47 2001
31+++ strace-4.3/file.c Wed Apr 4 21:38:54 2001
32@@ -40,8 +40,10 @@
33 #include <linux/types.h>
34 #include <linux/dirent.h>
35 #undef dirent
36+#undef dirent64
37 #else
38 #define kernel_dirent dirent
39+#define kernel_dirent64 dirent64
40 #endif
41
42 #ifdef linux
43diff -urN strace-4.3.org/linux/alpha/syscallent.h strace-4.3/linux/alpha/syscallent.h
44--- strace-4.3.org/linux/alpha/syscallent.h Wed Apr 4 21:38:47 2001
45+++ strace-4.3/linux/alpha/syscallent.h Wed Apr 4 21:39:18 2001
de4e0a62 46@@ -406,3 +406,4 @@
ed799d14
AM
47 { 2, TF, sys_pivot_root, "pivot_root" }, /* 374 */
48 { 3, 0, sys_mincore, "mincore" }, /* 375 */
49 { 3, 0, printargs, "pciconfig_iobase" }, /* 376 */
50+ { 3, 0, sys_getdents64, "getdents64" }, /* 377 */
51diff -urN strace-4.3.org/linux/ia64/syscallent.h strace-4.3/linux/ia64/syscallent.h
52--- strace-4.3.org/linux/ia64/syscallent.h Wed Apr 4 21:38:47 2001
53+++ strace-4.3/linux/ia64/syscallent.h Wed Apr 4 21:38:54 2001
54@@ -1243,7 +1243,7 @@
55 { 8, 0, printargs, "SYS_1211" }, /* 1211 */
56 { 8, 0, printargs, "SYS_1212" }, /* 1212 */
57 { 8, 0, printargs, "SYS_1213" }, /* 1213 */
58- { 8, 0, printargs, "SYS_1214" }, /* 1214 */
59+ { 3, 0, sys_getdents64, "getdents64" }, /* 1214 */
60 { 8, 0, printargs, "SYS_1215" }, /* 1215 */
61 { 8, 0, printargs, "SYS_1216" }, /* 1216 */
62 { 8, 0, printargs, "SYS_1217" }, /* 1217 */
63diff -urN strace-4.3.org/linux/sparc/syscall.h strace-4.3/linux/sparc/syscall.h
64--- strace-4.3.org/linux/sparc/syscall.h Wed Apr 4 21:38:47 2001
65+++ strace-4.3/linux/sparc/syscall.h Wed Apr 4 21:38:54 2001
66@@ -87,7 +87,7 @@
de4e0a62
JR
67 /* 2.2 file system */
68 int sys_chdir(),sys_chroot();
69 int sys_fchdir(),sys_fchroot();
70-int sys_mkdir(),sys_rmdir(),sys_getdirentries(), sys_getdents(),sys_readdir();
71+int sys_mkdir(),sys_rmdir(),sys_getdirentries(), sys_getdents(),sys_getdents64(),sys_readdir();
72 int sys_creat(),sys_open(),sys_mknod(),sys_unlink(),sys_stat(),sys_fstat(),sys_lstat();
73 int sys_chown(),sys_fchown(),sys_chmod(),sys_fchmod(),sys_utimes();
74 int sys_link(),sys_symlink(),sys_readlink(),sys_rename();
ed799d14
AM
75diff -urN strace-4.3.org/linux/sparc/syscallent.h strace-4.3/linux/sparc/syscallent.h
76--- strace-4.3.org/linux/sparc/syscallent.h Wed Apr 4 21:38:47 2001
77+++ strace-4.3/linux/sparc/syscallent.h Wed Apr 4 21:38:54 2001
78@@ -153,8 +153,8 @@
de4e0a62
JR
79 { 4, TN, sys_getmsg, "getmsg" }, /* 151 */
80 { 4, TN, sys_putmsg, "putmsg" }, /* 152 */
81 { 3, 0, sys_poll, "poll" }, /* 153 */
82- { 0, 0, printargs, "SYS_154" }, /* 154 */
83- { 1, 0, printargs, "nfssvc" }, /* 155 */
84+ { 3, 0, sys_getdents64, "getdents64" }, /* 154 */
85+ { 3, 0, sys_fcntl, "fcntl64" }, /* 155 */
86 { 4, 0, printargs, "getdirentries" }, /* 156 */
87 { 2, TF, sys_statfs, "statfs" }, /* 157 */
88 { 2, 0, sys_fstatfs, "fstatfs" }, /* 158 */
ed799d14
AM
89diff -urN strace-4.3.org/linux/syscall.h strace-4.3/linux/syscall.h
90--- strace-4.3.org/linux/syscall.h Wed Apr 4 21:38:47 2001
91+++ strace-4.3/linux/syscall.h Wed Apr 4 21:38:54 2001
92@@ -69,7 +69,7 @@
de4e0a62
JR
93 int sys_getpgid(), sys_fchdir(), sys_bdflush();
94 int sys_sysfs(), sys_personality(), sys_afs_syscall();
95 int sys_setfsuid(), sys_setfsgid(), sys_llseek();
96-int sys_getdents(), sys_flock(), sys_msync();
97+int sys_getdents(), sys_getdents64(), sys_flock(), sys_msync();
98 int sys_readv(), sys_writev(), sys_select();
99 int sys_getsid(), sys_fdatasync(), sys_sysctl();
ed799d14
AM
100 int sys_mlock(), sys_munlock(), sys_mlockall(), sys_munlockall(), sys_madvise();
101diff -urN strace-4.3.org/linux/syscallent.h strace-4.3/linux/syscallent.h
102--- strace-4.3.org/linux/syscallent.h Wed Apr 4 21:38:47 2001
103+++ strace-4.3/linux/syscallent.h Wed Apr 4 21:45:03 2001
104@@ -265,9 +265,8 @@
105 { 2, TF, sys_pivotroot, "pivot_root" }, /* 217 */
de4e0a62
JR
106 { 3, 0, sys_mincore, "mincore" }, /* 218 */
107 { 3, 0, sys_madvise, "madvise" }, /* 219 */
ed799d14
AM
108-
109- { 5, 0, printargs, "SYS_220" }, /* 220 */
110- { 5, 0, printargs, "SYS_221" }, /* 221 */
111+ { 3, 0, sys_getdents64, "getdents64" }, /* 220 */
112+ { 3, 0, sys_fcntl, "fcntl64" }, /* 221 */
113 { 5, 0, printargs, "SYS_222" }, /* 222 */
114 { 5, 0, printargs, "SYS_223" }, /* 223 */
115 { 5, 0, printargs, "SYS_224" }, /* 224 */
116
This page took 0.096517 seconds and 4 git commands to generate.