From 50e7cf943b73657d874a97dc587bcd8a7740cc00 Mon Sep 17 00:00:00 2001 From: Maxython Date: Mon, 1 Jan 2024 13:14:44 +0300 Subject: [PATCH] gpkg/glibc: experiment --- gpkg/glibc/ignore-syscall.h | 7 ------- gpkg/glibc/syscall.c.patch | 28 ++++++++++++++++++++-------- gpkg/glibc/unistd.h.patch | 10 ---------- 3 files changed, 20 insertions(+), 25 deletions(-) delete mode 100644 gpkg/glibc/unistd.h.patch diff --git a/gpkg/glibc/ignore-syscall.h b/gpkg/glibc/ignore-syscall.h index eb8395605..c5d369b8d 100644 --- a/gpkg/glibc/ignore-syscall.h +++ b/gpkg/glibc/ignore-syscall.h @@ -14,11 +14,4 @@ static struct IdSyscalls ListIgnoreSyscall[] = { #define count_ignore_syscall (sizeof(ListIgnoreSyscall) / sizeof(ListIgnoreSyscall[0])) -static int is_ignore_syscall(int id) { - for (int i=0; i #include @@ -9,14 +9,26 @@ long int syscall (long int number, ...) { -+ if (is_ignore_syscall(number)) -+ return 0; ++ for (int i=0; i