kumquat-buildroot/package/strace/strace-fix-disabled-largefile-syscalls.patch
Chris Zankel 45ef34d5cf strace: upgrade to 4.8, supporting now aarch64, and xtensa
Remove 'strace-fix-arm-bad-syscall.patch'. This patch had been integrated
in v4.6 (commit: 9bc6340d2) and was later replaced with a generic solution
in v.7 (commit: 2ce12ed31c2).

Strace still cannot handle non-LFS environments, so a modified version of
strace-fix-disabled-largefile-syscalls.patch remains. The 64-bit syscalls
(sys_truncate64, etc.) are references in the sysent structure but the
functinon definitions are commented out becuase of the missing LFS support.

The workaround for the 'forced lfs mode' doesn't seem to be necessary anymore.

Build tested on arm w and w/o LFS support.

[Peter: arc still not supported]
Signed-off-by: Chris Zankel <chris@zankel.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-06-10 14:03:46 +02:00

22 lines
452 B
Diff

--- a/syscall.c
+++ b/syscall.c
@@ -125,6 +125,18 @@
#define NF SYSCALL_NEVER_FAILS
#define MA MAX_ARGS
+#ifndef HAVE_STATFS64
+/*
+ * Ugly hacks for systems that do not have LFS
+ */
+
+#define sys_truncate64 sys_truncate
+#define sys_ftruncate64 sys_ftruncate
+#define sys_getdents64 sys_getdents
+#define sys_statfs64 sys_statfs
+#define sys_fstatfs64 sys_fstatfs
+#endif
+
const struct_sysent sysent0[] = {
#include "syscallent.h"
};