summaryrefslogtreecommitdiff
path: root/system/strace/ipc64.patch
blob: a035b5d53c7c1e6a00482d52aeed8d671dc2032a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
--- strace-5.4/xlat/msgctl_flags.h.old	2019-11-28 22:53:27.000000000 +0000
+++ strace-5.4/xlat/msgctl_flags.h	2019-12-23 02:41:44.904239378 +0000
@@ -19,7 +19,7 @@
 #endif
 #if defined(IPC_STAT) || (defined(HAVE_DECL_IPC_STAT) && HAVE_DECL_IPC_STAT)
 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
-static_assert((IPC_STAT) == (2), "IPC_STAT != 2");
+static_assert((IPC_STAT & ~IPC_64) == (2), "IPC_STAT != 2");
 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 #else
 # define IPC_STAT 2
@@ -33,7 +33,7 @@
 #endif
 #if defined(MSG_STAT) || (defined(HAVE_DECL_MSG_STAT) && HAVE_DECL_MSG_STAT)
 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
-static_assert((MSG_STAT) == (11), "MSG_STAT != 11");
+static_assert((MSG_STAT & ~IPC_64) == (11), "MSG_STAT != 11");
 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 #else
 # define MSG_STAT 11
@@ -47,7 +47,7 @@
 #endif
 #if defined(MSG_STAT_ANY) || (defined(HAVE_DECL_MSG_STAT_ANY) && HAVE_DECL_MSG_STAT_ANY)
 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
-static_assert((MSG_STAT_ANY) == (13), "MSG_STAT_ANY != 13");
+static_assert((MSG_STAT_ANY & ~IPC_64) == (13), "MSG_STAT_ANY != 13");
 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 #else
 # define MSG_STAT_ANY 13
--- strace-5.4/xlat/semctl_flags.h.old	2019-11-28 22:53:27.000000000 +0000
+++ strace-5.4/xlat/semctl_flags.h	2019-12-23 02:42:10.811448260 +0000
@@ -19,7 +19,7 @@
 #endif
 #if defined(IPC_STAT) || (defined(HAVE_DECL_IPC_STAT) && HAVE_DECL_IPC_STAT)
 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
-static_assert((IPC_STAT) == (2), "IPC_STAT != 2");
+static_assert((IPC_STAT & ~IPC_64) == (2), "IPC_STAT != 2");
 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 #else
 # define IPC_STAT 2
@@ -82,7 +82,7 @@
 #endif
 #if defined(SEM_STAT) || (defined(HAVE_DECL_SEM_STAT) && HAVE_DECL_SEM_STAT)
 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
-static_assert((SEM_STAT) == (18), "SEM_STAT != 18");
+static_assert((SEM_STAT & ~IPC_64) == (18), "SEM_STAT != 18");
 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 #else
 # define SEM_STAT 18
@@ -96,7 +96,7 @@
 #endif
 #if defined(SEM_STAT_ANY) || (defined(HAVE_DECL_SEM_STAT_ANY) && HAVE_DECL_SEM_STAT_ANY)
 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
-static_assert((SEM_STAT_ANY) == (20), "SEM_STAT_ANY != 20");
+static_assert((SEM_STAT_ANY & ~IPC_64) == (20), "SEM_STAT_ANY != 20");
 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 #else
 # define SEM_STAT_ANY 20
--- strace-5.4/xlat/shmctl_flags.h.old	2019-11-28 22:53:27.000000000 +0000
+++ strace-5.4/xlat/shmctl_flags.h	2019-12-23 02:42:30.879286249 +0000
@@ -19,7 +19,7 @@
 #endif
 #if defined(IPC_STAT) || (defined(HAVE_DECL_IPC_STAT) && HAVE_DECL_IPC_STAT)
 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
-static_assert((IPC_STAT) == (2), "IPC_STAT != 2");
+static_assert((IPC_STAT & ~IPC_64) == (2), "IPC_STAT != 2");
 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 #else
 # define IPC_STAT 2
@@ -47,7 +47,7 @@
 #endif
 #if defined(SHM_STAT) || (defined(HAVE_DECL_SHM_STAT) && HAVE_DECL_SHM_STAT)
 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
-static_assert((SHM_STAT) == (13), "SHM_STAT != 13");
+static_assert((SHM_STAT & ~IPC_64) == (13), "SHM_STAT != 13");
 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 #else
 # define SHM_STAT 13
@@ -61,7 +61,7 @@
 #endif
 #if defined(SHM_STAT_ANY) || (defined(HAVE_DECL_SHM_STAT_ANY) && HAVE_DECL_SHM_STAT_ANY)
 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
-static_assert((SHM_STAT_ANY) == (15), "SHM_STAT_ANY != 15");
+static_assert((SHM_STAT_ANY & ~IPC_64) == (15), "SHM_STAT_ANY != 15");
 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 #else
 # define SHM_STAT_ANY 15