summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace-4.7/0018-x32-update-g-s-etsockopt-syscall-numbers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/strace/strace-4.7/0018-x32-update-g-s-etsockopt-syscall-numbers.patch')
-rw-r--r--meta/recipes-devtools/strace/strace-4.7/0018-x32-update-g-s-etsockopt-syscall-numbers.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace-4.7/0018-x32-update-g-s-etsockopt-syscall-numbers.patch b/meta/recipes-devtools/strace/strace-4.7/0018-x32-update-g-s-etsockopt-syscall-numbers.patch
new file mode 100644
index 0000000000..4a1e2f7bec
--- /dev/null
+++ b/meta/recipes-devtools/strace/strace-4.7/0018-x32-update-g-s-etsockopt-syscall-numbers.patch
@@ -0,0 +1,43 @@
1Upstream-Status: Backport
2
3From f04b5de5a5a743f0b3ca0895379dd2ba702ea174 Mon Sep 17 00:00:00 2001
4From: Mike Frysinger <vapier@gentoo.org>
5Date: Wed, 22 Aug 2012 11:56:15 -0400
6Subject: [PATCH 18/31] x32: update {g,s}etsockopt syscall numbers
7
8Starting with linux 3.6 (and backported to earlier kernels), these two
9syscalls have changed numbers (moving from native to compat entry points).
10Update the strace syscall list accordingly.
11
12* linux/x32/syscallent.h: Move setsockopt from 54 to 541, and move
13getsockopt from 55 to 542.
14
15Signed-off-by: Mike Frysinger <vapier@gentoo.org>
16---
17 linux/x32/syscallent.h | 6 ++++--
18 1 file changed, 4 insertions(+), 2 deletions(-)
19
20diff --git a/linux/x32/syscallent.h b/linux/x32/syscallent.h
21index ee4c4ce..6385d45 100644
22--- a/linux/x32/syscallent.h
23+++ b/linux/x32/syscallent.h
24@@ -52,8 +52,8 @@
25 { 3, TN, sys_getsockname, "getsockname" }, /* 51 */
26 { 3, TN, sys_getpeername, "getpeername" }, /* 52 */
27 { 4, TN, sys_socketpair, "socketpair" }, /* 53 */
28- { 5, TN, sys_setsockopt, "setsockopt" }, /* 54 */
29- { 5, TN, sys_getsockopt, "getsockopt" }, /* 55 */
30+ { }, /* 54 */
31+ { }, /* 55 */
32 { 5, TP, sys_clone, "clone" }, /* 56 */
33 { 0, TP, sys_fork, "fork" }, /* 57 */
34 { 0, TP, sys_vfork, "vfork" }, /* 58 */
35@@ -342,3 +342,5 @@
36 { 4, TN, sys_sendmmsg, "sendmmsg" }, /* 538 */
37 { 6, 0, sys_process_vm_readv, "process_vm_readv" }, /* 539 */
38 { 6, 0, sys_process_vm_writev, "process_vm_writev" }, /* 540 */
39+ { 5, TN, sys_setsockopt, "setsockopt" }, /* 541 */
40+ { 5, TN, sys_getsockopt, "getsockopt" }, /* 542 */
41--
421.8.0
43