]> git.pld-linux.org Git - packages/strace.git/blame - strace-getdents64.patch
- added pl man page
[packages/strace.git] / strace-getdents64.patch
CommitLineData
f90d9891
JB
1diff -Nur strace-4.4.orig/desc.c strace-4.4/desc.c
2--- strace-4.4.orig/desc.c Tue Mar 13 00:29:05 2001
3+++ strace-4.4/desc.c Fri Oct 19 16:35:23 2001
ed799d14
AM
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
f90d9891 16@@ -335,6 +340,12 @@
ed799d14
AM
17 default:
18 tprintf(", %#lx", tcp->u_arg[2]);
f90d9891 19 break;
ed799d14
AM
20+#if defined(F_GETLK64) && F_GETLK64 != F_GETLK
21+ case F_SETLK64: case F_SETLKW64:
22+ tprintf(", ");
23+ printflock64(tcp, tcp->u_arg[2], 0);
24+#endif
f90d9891 25+ break;
ed799d14
AM
26 }
27 }
f90d9891
JB
28 return 0;
29diff -Nur strace-4.4.orig/file.c strace-4.4/file.c
30--- strace-4.4.orig/file.c Fri Oct 19 16:35:06 2001
31+++ strace-4.4/file.c Fri Oct 19 16:35:23 2001
ed799d14
AM
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
f90d9891
JB
43diff -Nur strace-4.4.orig/linux/alpha/syscallent.h strace-4.4/linux/alpha/syscallent.h
44--- strace-4.4.orig/linux/alpha/syscallent.h Fri Oct 19 16:35:06 2001
45+++ strace-4.4/linux/alpha/syscallent.h Fri Oct 19 16:35:23 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 */
f90d9891
JB
51diff -Nur strace-4.4.orig/linux/ia64/syscallent.h strace-4.4/linux/ia64/syscallent.h
52--- strace-4.4.orig/linux/ia64/syscallent.h Mon May 1 03:54:00 2000
53+++ strace-4.4/linux/ia64/syscallent.h Fri Oct 19 16:35:23 2001
ed799d14
AM
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 */
f90d9891
JB
63diff -Nur strace-4.4.orig/linux/sparc/syscall.h strace-4.4/linux/sparc/syscall.h
64--- strace-4.4.orig/linux/sparc/syscall.h Fri Oct 19 16:35:06 2001
65+++ strace-4.4/linux/sparc/syscall.h Fri Oct 19 16:35:23 2001
ed799d14 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();
f90d9891
JB
75diff -Nur strace-4.4.orig/linux/sparc/syscallent.h strace-4.4/linux/sparc/syscallent.h
76--- strace-4.4.orig/linux/sparc/syscallent.h Fri Oct 19 16:35:06 2001
77+++ strace-4.4/linux/sparc/syscallent.h Fri Oct 19 16:37:21 2001
ed799d14 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 */
f90d9891 82- { 4, 0, printargs, "getdents64" }, /* 154 */
de4e0a62
JR
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 */
f90d9891
JB
89diff -Nur strace-4.4.orig/linux/syscall.h strace-4.4/linux/syscall.h
90--- strace-4.4.orig/linux/syscall.h Fri Oct 19 16:35:06 2001
91+++ strace-4.4/linux/syscall.h Fri Oct 19 16:35:23 2001
ed799d14 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 100 int sys_mlock(), sys_munlock(), sys_mlockall(), sys_munlockall(), sys_madvise();
f90d9891
JB
101diff -Nur strace-4.4.orig/linux/syscallent.h strace-4.4/linux/syscallent.h
102--- strace-4.4.orig/linux/syscallent.h Fri Oct 19 16:35:06 2001
103+++ strace-4.4/linux/syscallent.h Fri Oct 19 16:36:24 2001
104@@ -266,7 +266,7 @@
ed799d14 105 { 2, TF, sys_pivotroot, "pivot_root" }, /* 217 */
de4e0a62
JR
106 { 3, 0, sys_mincore, "mincore" }, /* 218 */
107 { 3, 0, sys_madvise, "madvise" }, /* 219 */
f90d9891
JB
108- { 4, 0, printargs, "getdents64" }, /* 220 */
109+ { 3, 0, sys_getdents64, "getdents64" }, /* 220 */
110 { 3, 0, sys_fcntl, "fcntl64" }, /* 221 */
111 { 4, 0, printargs, "SYS_222" }, /* 222 */
112 { 4, 0, printargs, "SYS_223" }, /* 223 */
This page took 0.062723 seconds and 4 git commands to generate.