diff options
author | Joe MacDonald <joe@deserted.net> | 2013-10-23 13:08:34 -0700 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2013-10-23 21:25:03 -0400 |
commit | dfdf551481ced8a8f24ac79addb209ebd90d5375 (patch) | |
tree | 87229c6258be1323183a3e2ea9e9436a48bd8839 | |
parent | ec09d839f965487d89cf1acf57f0683e990f12e8 (diff) | |
download | meta-selinux-dfdf551481ced8a8f24ac79addb209ebd90d5375.tar.gz |
audit: address x-compile issues
The previous approach works well for modern hosts but older ones still
require the pre-gen'd header files to behave nicely in a x-compile
environment. So we generate them, patch them in and remove the bits of
the Makefile that may take it upon itself to re-gen them again.
Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r-- | recipes-security/audit/audit/audit-for-cross-compiling.patch | 3349 |
1 files changed, 2933 insertions, 416 deletions
diff --git a/recipes-security/audit/audit/audit-for-cross-compiling.patch b/recipes-security/audit/audit/audit-for-cross-compiling.patch index 9a62488..60a23a8 100644 --- a/recipes-security/audit/audit/audit-for-cross-compiling.patch +++ b/recipes-security/audit/audit/audit-for-cross-compiling.patch | |||
@@ -1,421 +1,2938 @@ | |||
1 | Make dynamically generated files able to be generated in a cross environment | 1 | From f73f654734c5f0d1a6568c6c8fba232b01f919f4 Mon Sep 17 00:00:00 2001 |
2 | From: Joe MacDonald <joe@deserted.net> | ||
3 | Date: Wed, 23 Oct 2013 16:02:34 -0400 | ||
4 | Subject: [PATCH] audit: use generated headers for cross compiling | ||
2 | 5 | ||
3 | We define a way to generate the specific files in a cross compile friendly | 6 | In the same vein as the patch for audit 2.2.1 (commit: 6c77455b), we generate |
4 | way. | 7 | the headers which are inherently architecture specific but portable on a |
8 | convenient platform and use them for all platforms. | ||
5 | 9 | ||
6 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | 10 | Upstream-Status: Inappropriate [cross-compile specific] |
7 | 11 | ||
8 | Index: audit-2.3.2/auparse/Makefile.am | 12 | Signed-off-by: Joe MacDonald <joe@deserted.net> |
9 | =================================================================== | 13 | --- |
10 | --- audit-2.3.2.orig/auparse/Makefile.am | 14 | auparse/Makefile.am | 200 --------------------------------------------- |
11 | +++ audit-2.3.2/auparse/Makefile.am | 15 | auparse/accesstabs.h | 6 ++ |
12 | @@ -71,185 +71,257 @@ noinst_PROGRAMS = gen_accesstabs_h gen_c | 16 | auparse/captabs.h | 14 ++++ |
13 | 17 | auparse/clocktabs.h | 8 ++ | |
14 | gen_accesstabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h accesstab.h | 18 | auparse/clone-flagtabs.h | 10 +++ |
15 | gen_accesstabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="accesstab.h"' | 19 | auparse/epoll_ctls.h | 8 ++ |
16 | +gen_accesstabs_h: $(gen_accesstabs_h_SOURCES) | 20 | auparse/famtabs.h | 14 ++++ |
17 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_accesstabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 21 | auparse/fcntl-cmdtabs.h | 17 ++++ |
18 | accesstabs.h: gen_accesstabs_h Makefile | 22 | auparse/flagtabs.h | 6 ++ |
19 | ./gen_accesstabs_h --i2s-transtab access > $@ | 23 | auparse/icmptypetabs.h | 10 +++ |
20 | 24 | auparse/ip6optnametabs.h | 20 +++++ | |
21 | gen_captabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h captab.h | 25 | auparse/ipccmdtabs.h | 6 ++ |
22 | gen_captabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="captab.h"' | 26 | auparse/ipctabs.h | 11 +++ |
23 | +gen_captabs_h: $(gen_captabs_h_SOURCES) | 27 | auparse/ipoptnametabs.h | 17 ++++ |
24 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_captabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 28 | auparse/mmaptabs.h | 8 ++ |
25 | captabs.h: gen_captabs_h Makefile | 29 | auparse/mounttabs.h | 10 +++ |
26 | ./gen_captabs_h --i2s cap > $@ | 30 | auparse/nfprototabs.h | 9 ++ |
27 | 31 | auparse/open-flagtabs.h | 8 ++ | |
28 | gen_clock_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h clocktab.h | 32 | auparse/persontabs.h | 17 ++++ |
29 | gen_clock_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="clocktab.h"' | 33 | auparse/pktoptnametabs.h | 10 +++ |
30 | +gen_clock_h: $(gen_clock_h_SOURCES) | 34 | auparse/prctl_opttabs.h | 14 ++++ |
31 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_clock_h_CFLAGS) $(LDFLAGS) -o $@ $< | 35 | auparse/prottabs.h | 6 ++ |
32 | clocktabs.h: gen_clock_h Makefile | 36 | auparse/ptracetabs.h | 17 ++++ |
33 | ./gen_clock_h --i2s clock > $@ | 37 | auparse/recvtabs.h | 8 ++ |
34 | 38 | auparse/rlimittabs.h | 10 +++ | |
35 | gen_clone_flagtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h \ | 39 | auparse/schedtabs.h | 8 ++ |
36 | clone-flagtab.h | 40 | auparse/seccomptabs.h | 11 +++ |
37 | gen_clone_flagtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="clone-flagtab.h"' | 41 | auparse/seektabs.h | 8 ++ |
38 | +gen_clone-flagtabs_h: $(gen_clone_flagtabs_h_SOURCES) | 42 | auparse/shm_modetabs.h | 6 ++ |
39 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_clone_flagtabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 43 | auparse/signaltabs.h | 14 ++++ |
40 | clone-flagtabs.h: gen_clone-flagtabs_h Makefile | 44 | auparse/sockleveltabs.h | 12 +++ |
41 | ./gen_clone-flagtabs_h --i2s-transtab clone_flag > $@ | 45 | auparse/sockoptnametabs.h | 23 ++++++ |
42 | 46 | auparse/socktabs.h | 10 +++ | |
43 | gen_epoll_ctls_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h epoll_ctl.h | 47 | auparse/socktypetabs.h | 8 ++ |
44 | gen_epoll_ctls_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="epoll_ctl.h"' | 48 | auparse/tcpoptnametabs.h | 12 +++ |
45 | +gen_epoll_ctls_h: $(gen_epoll_ctls_h_SOURCES) | 49 | auparse/typetabs.h | 35 ++++++++ |
46 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_epoll_ctls_h_CFLAGS) $(LDFLAGS) -o $@ $< | 50 | auparse/umounttabs.h | 6 ++ |
47 | epoll_ctls.h: gen_epoll_ctls_h Makefile | 51 | lib/Makefile.am | 106 ------------------------ |
48 | ./gen_epoll_ctls_h --i2s epoll_ctl > $@ | 52 | lib/aarch64_tables.h | 125 ++++++++++++++++++++++++++++ |
49 | 53 | lib/actiontabs.h | 26 ++++++ | |
50 | gen_famtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h famtab.h | 54 | lib/alpha_tables.h | 196 ++++++++++++++++++++++++++++++++++++++++++++ |
51 | gen_famtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="famtab.h"' | 55 | lib/armeb_tables.h | 165 +++++++++++++++++++++++++++++++++++++ |
52 | +gen_famtabs_h: $(gen_famtabs_h_SOURCES) | 56 | lib/errtabs.h | 78 ++++++++++++++++++ |
53 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_famtabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 57 | lib/fieldtabs.h | 49 +++++++++++ |
54 | famtabs.h: gen_famtabs_h Makefile | 58 | lib/flagtabs.h | 26 ++++++ |
55 | ./gen_famtabs_h --i2s fam > $@ | 59 | lib/ftypetabs.h | 29 +++++++ |
56 | 60 | lib/i386_tables.h | 163 ++++++++++++++++++++++++++++++++++++ | |
57 | gen_flagtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h flagtab.h | 61 | lib/ia64_tables.h | 147 +++++++++++++++++++++++++++++++++ |
58 | # ../auparse/ is used to avoid using ../lib/flagtab.h | 62 | lib/machinetabs.h | 26 ++++++ |
59 | gen_flagtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="../auparse/flagtab.h"' | 63 | lib/msg_typetabs.h | 104 +++++++++++++++++++++++ |
60 | +gen_flagtabs_h: $(gen_flagtabs_h_SOURCES) | 64 | lib/optabs.h | 11 +++ |
61 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_flagtabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 65 | lib/ppc_tables.h | 163 ++++++++++++++++++++++++++++++++++++ |
62 | flagtabs.h: gen_flagtabs_h Makefile | 66 | lib/s390_tables.h | 153 ++++++++++++++++++++++++++++++++++ |
63 | ./gen_flagtabs_h --i2s-transtab flag > $@ | 67 | lib/s390x_tables.h | 144 ++++++++++++++++++++++++++++++++ |
64 | 68 | lib/x86_64_tables.h | 150 ++++++++++++++++++++++++++++++++++ | |
65 | gen_fcntl_cmdtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h \ | 69 | 55 files changed, 2172 insertions(+), 306 deletions(-) |
66 | fcntl-cmdtab.h | 70 | create mode 100644 auparse/accesstabs.h |
67 | gen_fcntl_cmdtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="fcntl-cmdtab.h"' | 71 | create mode 100644 auparse/captabs.h |
68 | +gen_fcntl-cmdtabs_h: $(gen_fcntl_cmdtabs_h_SOURCES) | 72 | create mode 100644 auparse/clocktabs.h |
69 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_fcntl_cmdtabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 73 | create mode 100644 auparse/clone-flagtabs.h |
70 | fcntl-cmdtabs.h: gen_fcntl-cmdtabs_h Makefile | 74 | create mode 100644 auparse/epoll_ctls.h |
71 | ./gen_fcntl-cmdtabs_h --i2s fcntl > $@ | 75 | create mode 100644 auparse/famtabs.h |
72 | 76 | create mode 100644 auparse/fcntl-cmdtabs.h | |
73 | gen_icmptypetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h icmptypetab.h | 77 | create mode 100644 auparse/flagtabs.h |
74 | gen_icmptypetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="icmptypetab.h"' | 78 | create mode 100644 auparse/icmptypetabs.h |
75 | +gen_icmptypetabs_h: $(gen_icmptypetabs_h_SOURCES) | 79 | create mode 100644 auparse/ip6optnametabs.h |
76 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_icmptypetabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 80 | create mode 100644 auparse/ipccmdtabs.h |
77 | icmptypetabs.h: gen_icmptypetabs_h Makefile | 81 | create mode 100644 auparse/ipctabs.h |
78 | ./gen_icmptypetabs_h --i2s icmptype > $@ | 82 | create mode 100644 auparse/ipoptnametabs.h |
79 | 83 | create mode 100644 auparse/mmaptabs.h | |
80 | gen_ipctabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ipctab.h | 84 | create mode 100644 auparse/mounttabs.h |
81 | gen_ipctabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ipctab.h"' | 85 | create mode 100644 auparse/nfprototabs.h |
82 | +gen_ipctabs_h: $(gen_ipctabs_h_SOURCES) | 86 | create mode 100644 auparse/open-flagtabs.h |
83 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_ipctabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 87 | create mode 100644 auparse/persontabs.h |
84 | ipctabs.h: gen_ipctabs_h Makefile | 88 | create mode 100644 auparse/pktoptnametabs.h |
85 | ./gen_ipctabs_h --i2s ipc > $@ | 89 | create mode 100644 auparse/prctl_opttabs.h |
86 | 90 | create mode 100644 auparse/prottabs.h | |
87 | gen_ipccmdtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ipccmdtab.h | 91 | create mode 100644 auparse/ptracetabs.h |
88 | gen_ipccmdtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ipccmdtab.h"' | 92 | create mode 100644 auparse/recvtabs.h |
89 | +gen_ipccmdtabs_h: $(gen_ipccmdtabs_h_SOURCES) | 93 | create mode 100644 auparse/rlimittabs.h |
90 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_ipccmdtabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 94 | create mode 100644 auparse/schedtabs.h |
91 | ipccmdtabs.h: gen_ipccmdtabs_h Makefile | 95 | create mode 100644 auparse/seccomptabs.h |
92 | ./gen_ipccmdtabs_h --i2s-transtab ipccmd > $@ | 96 | create mode 100644 auparse/seektabs.h |
93 | 97 | create mode 100644 auparse/shm_modetabs.h | |
94 | gen_ipoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ipoptnametab.h | 98 | create mode 100644 auparse/signaltabs.h |
95 | gen_ipoptnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ipoptnametab.h"' | 99 | create mode 100644 auparse/sockleveltabs.h |
96 | +gen_ipoptnametabs_h: $(gen_ipoptnametabs_h_SOURCES) | 100 | create mode 100644 auparse/sockoptnametabs.h |
97 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_ipoptnametabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 101 | create mode 100644 auparse/socktabs.h |
98 | ipoptnametabs.h: gen_ipoptnametabs_h Makefile | 102 | create mode 100644 auparse/socktypetabs.h |
99 | ./gen_ipoptnametabs_h --i2s ipoptname > $@ | 103 | create mode 100644 auparse/tcpoptnametabs.h |
100 | 104 | create mode 100644 auparse/typetabs.h | |
101 | gen_ip6optnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ip6optnametab.h | 105 | create mode 100644 auparse/umounttabs.h |
102 | gen_ip6optnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ip6optnametab.h"' | 106 | create mode 100644 lib/aarch64_tables.h |
103 | +gen_ip6optnametabs_h: $(gen_ip6optnametabs_h_SOURCES) | 107 | create mode 100644 lib/actiontabs.h |
104 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_ip6optnametabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 108 | create mode 100644 lib/alpha_tables.h |
105 | ip6optnametabs.h: gen_ip6optnametabs_h Makefile | 109 | create mode 100644 lib/armeb_tables.h |
106 | ./gen_ip6optnametabs_h --i2s ip6optname > $@ | 110 | create mode 100644 lib/errtabs.h |
107 | 111 | create mode 100644 lib/fieldtabs.h | |
108 | gen_mmaptabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h mmaptab.h | 112 | create mode 100644 lib/flagtabs.h |
109 | gen_mmaptabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="mmaptab.h"' | 113 | create mode 100644 lib/ftypetabs.h |
110 | +gen_mmaptabs_h: $(gen_mmaptabs_h_SOURCES) | 114 | create mode 100644 lib/i386_tables.h |
111 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_mmaptabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 115 | create mode 100644 lib/ia64_tables.h |
112 | mmaptabs.h: gen_mmaptabs_h Makefile | 116 | create mode 100644 lib/machinetabs.h |
113 | ./gen_mmaptabs_h --i2s-transtab mmap > $@ | 117 | create mode 100644 lib/msg_typetabs.h |
114 | 118 | create mode 100644 lib/optabs.h | |
115 | gen_mounttabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h mounttab.h | 119 | create mode 100644 lib/ppc_tables.h |
116 | gen_mounttabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="mounttab.h"' | 120 | create mode 100644 lib/s390_tables.h |
117 | +gen_mounttabs_h: $(gen_mounttabs_h_SOURCES) | 121 | create mode 100644 lib/s390x_tables.h |
118 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_mounttabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 122 | create mode 100644 lib/x86_64_tables.h |
119 | mounttabs.h: gen_mounttabs_h Makefile | 123 | |
120 | ./gen_mounttabs_h --i2s-transtab mount > $@ | 124 | diff --git a/auparse/Makefile.am b/auparse/Makefile.am |
121 | 125 | index f0ca18f..7d1527c 100644 | |
122 | gen_nfprototabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h nfprototab.h | 126 | --- a/auparse/Makefile.am |
123 | gen_nfprototabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="nfprototab.h"' | 127 | +++ b/auparse/Makefile.am |
124 | +gen_nfprototabs_h: $(gen_nfprototabs_h_SOURCES) | 128 | @@ -53,203 +53,3 @@ BUILT_SOURCES = accesstabs.h captabs.h clocktabs.h clone-flagtabs.h \ |
125 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_nfprototabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 129 | seektabs.h shm_modetabs.h signaltabs.h sockoptnametabs.h \ |
126 | nfprototabs.h: gen_nfprototabs_h Makefile | 130 | socktabs.h sockleveltabs.h socktypetabs.h \ |
127 | ./gen_nfprototabs_h --i2s nfproto > $@ | 131 | tcpoptnametabs.h typetabs.h umounttabs.h |
128 | 132 | -noinst_PROGRAMS = gen_accesstabs_h gen_captabs_h gen_clock_h \ | |
129 | gen_open_flagtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h \ | 133 | - gen_clone-flagtabs_h \ |
130 | open-flagtab.h | 134 | - gen_epoll_ctls_h gen_famtabs_h \ |
131 | gen_open_flagtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="open-flagtab.h"' | 135 | - gen_fcntl-cmdtabs_h gen_flagtabs_h \ |
132 | +gen_open-flagtabs_h: $(gen_open_flagtabs_h_SOURCES) | 136 | - gen_icmptypetabs_h gen_ipctabs_h gen_ipccmdtabs_h\ |
133 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_open_flagtabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 137 | - gen_ipoptnametabs_h gen_ip6optnametabs_h gen_nfprototabs_h \ |
134 | open-flagtabs.h: gen_open-flagtabs_h Makefile | 138 | - gen_mmaptabs_h gen_mounttabs_h \ |
135 | ./gen_open-flagtabs_h --i2s-transtab open_flag > $@ | 139 | - gen_open-flagtabs_h gen_persontabs_h \ |
136 | 140 | - gen_prctl_opttabs_h gen_pktoptnametabs_h gen_prottabs_h \ | |
137 | gen_persontabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h persontab.h | 141 | - gen_recvtabs_h gen_rlimit_h gen_ptracetabs_h \ |
138 | gen_persontabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="persontab.h"' | 142 | - gen_schedtabs_h gen_seccomptabs_h \ |
139 | +gen_persontabs_h: $(gen_persontabs_h_SOURCES) | 143 | - gen_seektabs_h gen_shm_modetabs_h gen_signals_h \ |
140 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_persontabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 144 | - gen_sockoptnametabs_h gen_socktabs_h gen_sockleveltabs_h \ |
141 | persontabs.h: gen_persontabs_h Makefile | 145 | - gen_socktypetabs_h gen_tcpoptnametabs_h gen_typetabs_h \ |
142 | ./gen_persontabs_h --i2s person > $@ | 146 | - gen_umounttabs_h |
143 | 147 | - | |
144 | gen_ptracetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ptracetab.h | 148 | -gen_accesstabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h accesstab.h |
145 | gen_ptracetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ptracetab.h"' | 149 | -gen_accesstabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="accesstab.h"' |
146 | +gen_ptracetabs_h: $(gen_ptracetabs_h_SOURCES) | 150 | -accesstabs.h: gen_accesstabs_h Makefile |
147 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_ptracetabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 151 | - ./gen_accesstabs_h --i2s-transtab access > $@ |
148 | ptracetabs.h: gen_ptracetabs_h Makefile | 152 | - |
149 | ./gen_ptracetabs_h --i2s ptrace > $@ | 153 | -gen_captabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h captab.h |
150 | 154 | -gen_captabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="captab.h"' | |
151 | gen_prctl_opttabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h prctl-opt-tab.h | 155 | -captabs.h: gen_captabs_h Makefile |
152 | gen_prctl_opttabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="prctl-opt-tab.h"' | 156 | - ./gen_captabs_h --i2s cap > $@ |
153 | +gen_prctl_opttabs_h: $(gen_prctl_opttabs_h_SOURCES) | 157 | - |
154 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_prctl_opttabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 158 | -gen_clock_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h clocktab.h |
155 | prctl_opttabs.h: gen_prctl_opttabs_h Makefile | 159 | -gen_clock_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="clocktab.h"' |
156 | ./gen_prctl_opttabs_h --i2s prctl_opt > $@ | 160 | -clocktabs.h: gen_clock_h Makefile |
157 | 161 | - ./gen_clock_h --i2s clock > $@ | |
158 | gen_pktoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h pktoptnametab.h | 162 | - |
159 | gen_pktoptnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="pktoptnametab.h"' | 163 | -gen_clone_flagtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h \ |
160 | +gen_pktoptnametabs_h: $(gen_pktoptnametabs_h_SOURCES) | 164 | - clone-flagtab.h |
161 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_pktoptnametabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 165 | -gen_clone_flagtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="clone-flagtab.h"' |
162 | pktoptnametabs.h: gen_pktoptnametabs_h Makefile | 166 | -clone-flagtabs.h: gen_clone-flagtabs_h Makefile |
163 | ./gen_pktoptnametabs_h --i2s pktoptname > $@ | 167 | - ./gen_clone-flagtabs_h --i2s-transtab clone_flag > $@ |
164 | 168 | - | |
165 | gen_prottabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h prottab.h | 169 | -gen_epoll_ctls_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h epoll_ctl.h |
166 | gen_prottabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="prottab.h"' | 170 | -gen_epoll_ctls_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="epoll_ctl.h"' |
167 | +gen_prottabs_h: $(gen_prottabs_h_SOURCES) | 171 | -epoll_ctls.h: gen_epoll_ctls_h Makefile |
168 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_prottabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 172 | - ./gen_epoll_ctls_h --i2s epoll_ctl > $@ |
169 | prottabs.h: gen_prottabs_h Makefile | 173 | - |
170 | ./gen_prottabs_h --i2s-transtab prot > $@ | 174 | -gen_famtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h famtab.h |
171 | 175 | -gen_famtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="famtab.h"' | |
172 | gen_recvtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h recvtab.h | 176 | -famtabs.h: gen_famtabs_h Makefile |
173 | gen_recvtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="recvtab.h"' | 177 | - ./gen_famtabs_h --i2s fam > $@ |
174 | +gen_recvtabs_h: $(gen_recvtabs_h_SOURCES) | 178 | - |
175 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_recvtabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 179 | -gen_flagtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h flagtab.h |
176 | recvtabs.h: gen_recvtabs_h Makefile | 180 | -# ../auparse/ is used to avoid using ../lib/flagtab.h |
177 | ./gen_recvtabs_h --i2s-transtab recv > $@ | 181 | -gen_flagtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="../auparse/flagtab.h"' |
178 | 182 | -flagtabs.h: gen_flagtabs_h Makefile | |
179 | gen_rlimit_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h rlimittab.h | 183 | - ./gen_flagtabs_h --i2s-transtab flag > $@ |
180 | gen_rlimit_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="rlimittab.h"' | 184 | - |
181 | +gen_rlimit_h: $(gen_rlimit_h_SOURCES) | 185 | -gen_fcntl_cmdtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h \ |
182 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_rlimit_h_CFLAGS) $(LDFLAGS) -o $@ $< | 186 | - fcntl-cmdtab.h |
183 | rlimittabs.h: gen_rlimit_h Makefile | 187 | -gen_fcntl_cmdtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="fcntl-cmdtab.h"' |
184 | ./gen_rlimit_h --i2s rlimit > $@ | 188 | -fcntl-cmdtabs.h: gen_fcntl-cmdtabs_h Makefile |
185 | 189 | - ./gen_fcntl-cmdtabs_h --i2s fcntl > $@ | |
186 | gen_schedtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h schedtab.h | 190 | - |
187 | gen_schedtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="schedtab.h"' | 191 | -gen_icmptypetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h icmptypetab.h |
188 | +gen_schedtabs_h: $(gen_schedtabs_h_SOURCES) | 192 | -gen_icmptypetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="icmptypetab.h"' |
189 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_schedtabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 193 | -icmptypetabs.h: gen_icmptypetabs_h Makefile |
190 | schedtabs.h: gen_schedtabs_h Makefile | 194 | - ./gen_icmptypetabs_h --i2s icmptype > $@ |
191 | ./gen_schedtabs_h --i2s sched > $@ | 195 | - |
192 | 196 | -gen_ipctabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ipctab.h | |
193 | gen_seccomptabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h seccomptab.h | 197 | -gen_ipctabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ipctab.h"' |
194 | gen_seccomptabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="seccomptab.h"' | 198 | -ipctabs.h: gen_ipctabs_h Makefile |
195 | +gen_seccomptabs_h: $(gen_seccomptabs_h_SOURCES) | 199 | - ./gen_ipctabs_h --i2s ipc > $@ |
196 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_seccomptabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 200 | - |
197 | seccomptabs.h: gen_seccomptabs_h Makefile | 201 | -gen_ipccmdtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ipccmdtab.h |
198 | ./gen_seccomptabs_h --i2s seccomp > $@ | 202 | -gen_ipccmdtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ipccmdtab.h"' |
199 | 203 | -ipccmdtabs.h: gen_ipccmdtabs_h Makefile | |
200 | gen_seektabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h seektab.h | 204 | - ./gen_ipccmdtabs_h --i2s-transtab ipccmd > $@ |
201 | gen_seektabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="seektab.h"' | 205 | - |
202 | +gen_seektabs_h: $(gen_seektabs_h_SOURCES) | 206 | -gen_ipoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ipoptnametab.h |
203 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_seektabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 207 | -gen_ipoptnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ipoptnametab.h"' |
204 | seektabs.h: gen_seektabs_h Makefile | 208 | -ipoptnametabs.h: gen_ipoptnametabs_h Makefile |
205 | ./gen_seektabs_h --i2s seek > $@ | 209 | - ./gen_ipoptnametabs_h --i2s ipoptname > $@ |
206 | 210 | - | |
207 | gen_shm_modetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h shm_modetab.h | 211 | -gen_ip6optnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ip6optnametab.h |
208 | gen_shm_modetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="shm_modetab.h"' | 212 | -gen_ip6optnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ip6optnametab.h"' |
209 | +gen_shm_modetabs_h: $(gen_shm_modetabs_h_SOURCES) | 213 | -ip6optnametabs.h: gen_ip6optnametabs_h Makefile |
210 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_shm_modetabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 214 | - ./gen_ip6optnametabs_h --i2s ip6optname > $@ |
211 | shm_modetabs.h: gen_shm_modetabs_h Makefile | 215 | - |
212 | ./gen_shm_modetabs_h --i2s-transtab shm_mode > $@ | 216 | -gen_mmaptabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h mmaptab.h |
213 | 217 | -gen_mmaptabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="mmaptab.h"' | |
214 | gen_signals_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h signaltab.h | 218 | -mmaptabs.h: gen_mmaptabs_h Makefile |
215 | gen_signals_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="signaltab.h"' | 219 | - ./gen_mmaptabs_h --i2s-transtab mmap > $@ |
216 | +gen_signals_h: $(gen_signals_h_SOURCES) | 220 | - |
217 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_signals_h_CFLAGS) $(LDFLAGS) -o $@ $< | 221 | -gen_mounttabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h mounttab.h |
218 | signaltabs.h: gen_signals_h Makefile | 222 | -gen_mounttabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="mounttab.h"' |
219 | ./gen_signals_h --i2s signal > $@ | 223 | -mounttabs.h: gen_mounttabs_h Makefile |
220 | 224 | - ./gen_mounttabs_h --i2s-transtab mount > $@ | |
221 | gen_sockleveltabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h sockleveltab.h | 225 | - |
222 | gen_sockleveltabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="sockleveltab.h"' | 226 | -gen_nfprototabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h nfprototab.h |
223 | +gen_sockleveltabs_h: $(gen_sockleveltabs_h_SOURCES) | 227 | -gen_nfprototabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="nfprototab.h"' |
224 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_sockleveltabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 228 | -nfprototabs.h: gen_nfprototabs_h Makefile |
225 | sockleveltabs.h: gen_sockleveltabs_h Makefile | 229 | - ./gen_nfprototabs_h --i2s nfproto > $@ |
226 | ./gen_sockleveltabs_h --i2s socklevel > $@ | 230 | - |
227 | 231 | -gen_open_flagtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h \ | |
228 | gen_sockoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h sockoptnametab.h | 232 | - open-flagtab.h |
229 | gen_sockoptnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="sockoptnametab.h"' | 233 | -gen_open_flagtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="open-flagtab.h"' |
230 | +gen_sockoptnametabs_h: $(gen_sockoptnametabs_h_SOURCES) | 234 | -open-flagtabs.h: gen_open-flagtabs_h Makefile |
231 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_sockoptnametabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 235 | - ./gen_open-flagtabs_h --i2s-transtab open_flag > $@ |
232 | sockoptnametabs.h: gen_sockoptnametabs_h Makefile | 236 | - |
233 | ./gen_sockoptnametabs_h --i2s sockoptname > $@ | 237 | -gen_persontabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h persontab.h |
234 | 238 | -gen_persontabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="persontab.h"' | |
235 | gen_socktabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h socktab.h | 239 | -persontabs.h: gen_persontabs_h Makefile |
236 | gen_socktabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="socktab.h"' | 240 | - ./gen_persontabs_h --i2s person > $@ |
237 | +gen_socktabs_h: $(gen_socktabs_h_SOURCES) | 241 | - |
238 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_socktabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 242 | -gen_ptracetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ptracetab.h |
239 | socktabs.h: gen_socktabs_h Makefile | 243 | -gen_ptracetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ptracetab.h"' |
240 | ./gen_socktabs_h --i2s sock > $@ | 244 | -ptracetabs.h: gen_ptracetabs_h Makefile |
241 | 245 | - ./gen_ptracetabs_h --i2s ptrace > $@ | |
242 | gen_socktypetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h socktypetab.h | 246 | - |
243 | gen_socktypetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="socktypetab.h"' | 247 | -gen_prctl_opttabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h prctl-opt-tab.h |
244 | +gen_socktypetabs_h: $(gen_socktypetabs_h_SOURCES) | 248 | -gen_prctl_opttabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="prctl-opt-tab.h"' |
245 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_socktypetabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 249 | -prctl_opttabs.h: gen_prctl_opttabs_h Makefile |
246 | socktypetabs.h: gen_socktypetabs_h Makefile | 250 | - ./gen_prctl_opttabs_h --i2s prctl_opt > $@ |
247 | ./gen_socktypetabs_h --i2s sock_type > $@ | 251 | - |
248 | 252 | -gen_pktoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h pktoptnametab.h | |
249 | gen_tcpoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h tcpoptnametab.h | 253 | -gen_pktoptnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="pktoptnametab.h"' |
250 | gen_tcpoptnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="tcpoptnametab.h"' | 254 | -pktoptnametabs.h: gen_pktoptnametabs_h Makefile |
251 | +gen_tcpoptnametabs_h: $(gen_tcpoptnametabs_h_SOURCES) | 255 | - ./gen_pktoptnametabs_h --i2s pktoptname > $@ |
252 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_tcpoptnametabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 256 | - |
253 | tcpoptnametabs.h: gen_tcpoptnametabs_h Makefile | 257 | -gen_prottabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h prottab.h |
254 | ./gen_tcpoptnametabs_h --i2s tcpoptname > $@ | 258 | -gen_prottabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="prottab.h"' |
255 | 259 | -prottabs.h: gen_prottabs_h Makefile | |
256 | gen_typetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h typetab.h | 260 | - ./gen_prottabs_h --i2s-transtab prot > $@ |
257 | gen_typetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="typetab.h"' | 261 | - |
258 | +gen_typetabs_h: $(gen_typetabs_h_SOURCES) | 262 | -gen_recvtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h recvtab.h |
259 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_typetabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 263 | -gen_recvtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="recvtab.h"' |
260 | typetabs.h: gen_typetabs_h Makefile | 264 | -recvtabs.h: gen_recvtabs_h Makefile |
261 | ./gen_typetabs_h --s2i type > $@ | 265 | - ./gen_recvtabs_h --i2s-transtab recv > $@ |
262 | 266 | - | |
263 | gen_umounttabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h umounttab.h | 267 | -gen_rlimit_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h rlimittab.h |
264 | gen_umounttabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="umounttab.h"' | 268 | -gen_rlimit_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="rlimittab.h"' |
265 | +gen_umounttabs_h: $(gen_umounttabs_h_SOURCES) | 269 | -rlimittabs.h: gen_rlimit_h Makefile |
266 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_umounttabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 270 | - ./gen_rlimit_h --i2s rlimit > $@ |
267 | umounttabs.h: gen_umounttabs_h Makefile | 271 | - |
268 | ./gen_umounttabs_h --i2s-transtab umount > $@ | 272 | -gen_schedtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h schedtab.h |
269 | 273 | -gen_schedtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="schedtab.h"' | |
270 | Index: audit-2.3.2/lib/Makefile.am | 274 | -schedtabs.h: gen_schedtabs_h Makefile |
271 | =================================================================== | 275 | - ./gen_schedtabs_h --i2s sched > $@ |
272 | --- audit-2.3.2.orig/lib/Makefile.am | 276 | - |
273 | +++ audit-2.3.2/lib/Makefile.am | 277 | -gen_seccomptabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h seccomptab.h |
274 | @@ -66,12 +66,16 @@ noinst_PROGRAMS += gen_aarch64_tables_h | 278 | -gen_seccomptabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="seccomptab.h"' |
275 | endif | 279 | -seccomptabs.h: gen_seccomptabs_h Makefile |
276 | gen_actiontabs_h_SOURCES = gen_tables.c gen_tables.h actiontab.h | 280 | - ./gen_seccomptabs_h --i2s seccomp > $@ |
277 | gen_actiontabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="actiontab.h"' | 281 | - |
278 | +gen_actiontabs_h: $(gen_actiontabs_h_SOURCES) | 282 | -gen_seektabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h seektab.h |
279 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_actiontabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 283 | -gen_seektabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="seektab.h"' |
280 | actiontabs.h: gen_actiontabs_h Makefile | 284 | -seektabs.h: gen_seektabs_h Makefile |
281 | ./gen_actiontabs_h --lowercase --i2s --s2i action > $@ | 285 | - ./gen_seektabs_h --i2s seek > $@ |
282 | 286 | - | |
283 | if USE_ALPHA | 287 | -gen_shm_modetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h shm_modetab.h |
284 | gen_alpha_tables_h_SOURCES = gen_tables.c gen_tables.h alpha_table.h | 288 | -gen_shm_modetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="shm_modetab.h"' |
285 | gen_alpha_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="alpha_table.h"' | 289 | -shm_modetabs.h: gen_shm_modetabs_h Makefile |
286 | +gen_alpha_tables_h: $(gen_alpha_tables_h_SOURCES) | 290 | - ./gen_shm_modetabs_h --i2s-transtab shm_mode > $@ |
287 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_alpha_tables_h_CFLAGS) $(LDFLAGS) -o $@ $< | 291 | - |
288 | alpha_tables.h: gen_alpha_tables_h Makefile | 292 | -gen_signals_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h signaltab.h |
289 | ./gen_alpha_tables_h --lowercase --i2s --s2i alpha_syscall > $@ | 293 | -gen_signals_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="signaltab.h"' |
290 | endif | 294 | -signaltabs.h: gen_signals_h Makefile |
291 | @@ -79,6 +83,8 @@ endif | 295 | - ./gen_signals_h --i2s signal > $@ |
292 | if USE_ARMEB | 296 | - |
293 | gen_armeb_tables_h_SOURCES = gen_tables.c gen_tables.h armeb_table.h | 297 | -gen_sockleveltabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h sockleveltab.h |
294 | gen_armeb_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="armeb_table.h"' | 298 | -gen_sockleveltabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="sockleveltab.h"' |
295 | +gen_armeb_tables_h: $(gen_armeb_tables_h_SOURCES) | 299 | -sockleveltabs.h: gen_sockleveltabs_h Makefile |
296 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_armeb_tables_h_CFLAGS) $(LDFLAGS) -o $@ $< | 300 | - ./gen_sockleveltabs_h --i2s socklevel > $@ |
297 | armeb_tables.h: gen_armeb_tables_h Makefile | 301 | - |
298 | ./gen_armeb_tables_h --lowercase --i2s --s2i armeb_syscall > $@ | 302 | -gen_sockoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h sockoptnametab.h |
299 | endif | 303 | -gen_sockoptnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="sockoptnametab.h"' |
300 | @@ -86,73 +92,101 @@ endif | 304 | -sockoptnametabs.h: gen_sockoptnametabs_h Makefile |
305 | - ./gen_sockoptnametabs_h --i2s sockoptname > $@ | ||
306 | - | ||
307 | -gen_socktabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h socktab.h | ||
308 | -gen_socktabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="socktab.h"' | ||
309 | -socktabs.h: gen_socktabs_h Makefile | ||
310 | - ./gen_socktabs_h --i2s sock > $@ | ||
311 | - | ||
312 | -gen_socktypetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h socktypetab.h | ||
313 | -gen_socktypetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="socktypetab.h"' | ||
314 | -socktypetabs.h: gen_socktypetabs_h Makefile | ||
315 | - ./gen_socktypetabs_h --i2s sock_type > $@ | ||
316 | - | ||
317 | -gen_tcpoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h tcpoptnametab.h | ||
318 | -gen_tcpoptnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="tcpoptnametab.h"' | ||
319 | -tcpoptnametabs.h: gen_tcpoptnametabs_h Makefile | ||
320 | - ./gen_tcpoptnametabs_h --i2s tcpoptname > $@ | ||
321 | - | ||
322 | -gen_typetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h typetab.h | ||
323 | -gen_typetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="typetab.h"' | ||
324 | -typetabs.h: gen_typetabs_h Makefile | ||
325 | - ./gen_typetabs_h --s2i type > $@ | ||
326 | - | ||
327 | -gen_umounttabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h umounttab.h | ||
328 | -gen_umounttabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="umounttab.h"' | ||
329 | -umounttabs.h: gen_umounttabs_h Makefile | ||
330 | - ./gen_umounttabs_h --i2s-transtab umount > $@ | ||
331 | - | ||
332 | diff --git a/auparse/accesstabs.h b/auparse/accesstabs.h | ||
333 | new file mode 100644 | ||
334 | index 0000000..867d99c | ||
335 | --- /dev/null | ||
336 | +++ b/auparse/accesstabs.h | ||
337 | @@ -0,0 +1,6 @@ | ||
338 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
339 | +static const char access_strings[] = "R_OK\0W_OK\0X_OK"; | ||
340 | +static const struct transtab access_table[] = { | ||
341 | + {1,10},{2,5},{4,0}, | ||
342 | +}; | ||
343 | +#define ACCESS_NUM_ENTRIES (sizeof(access_table) / sizeof(*access_table)) | ||
344 | diff --git a/auparse/captabs.h b/auparse/captabs.h | ||
345 | new file mode 100644 | ||
346 | index 0000000..9267466 | ||
347 | --- /dev/null | ||
348 | +++ b/auparse/captabs.h | ||
349 | @@ -0,0 +1,14 @@ | ||
350 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
351 | +static const char cap_strings[] = "audit_control\0audit_write\0block_suspend\0chown\0compromise_kernel\0dac_override\0dac_read_search\0fowner\0fsetid\0ipc_lock\0" | ||
352 | + "ipc_owner\0kill\0lease\0linux_immutable\0mac_admin\0mac_override\0mknod\0net_admin\0net_bind_service\0net_broadcast\0" | ||
353 | + "net_raw\0setfcap\0setgid\0setpcap\0setuid\0sys_admin\0sys_boot\0sys_chroot\0sys_module\0sys_nice\0" | ||
354 | + "sys_pacct\0sys_ptrace\0sys_rawio\0sys_resource\0sys_time\0sys_tty_config\0syslog\0wake_alarm"; | ||
355 | +static const unsigned cap_i2s_direct[] = { | ||
356 | + 40,64,77,93,100,126,239,254,246,137, | ||
357 | + 192,209,182,223,107,116,291,332,280,321, | ||
358 | + 311,261,271,302,342,355,364,176,131,14, | ||
359 | + 0,231,163,153,379,386,26,46, | ||
360 | +}; | ||
361 | +static const char *cap_i2s(int v) { | ||
362 | + return i2s_direct__(cap_strings, cap_i2s_direct, 0, 37, v); | ||
363 | +} | ||
364 | diff --git a/auparse/clocktabs.h b/auparse/clocktabs.h | ||
365 | new file mode 100644 | ||
366 | index 0000000..03f9f09 | ||
367 | --- /dev/null | ||
368 | +++ b/auparse/clocktabs.h | ||
369 | @@ -0,0 +1,8 @@ | ||
370 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
371 | +static const char clock_strings[] = "CLOCK_BOOTTIME\0CLOCK_BOOTTIME_ALARM\0CLOCK_MONOTONIC\0CLOCK_MONOTONIC_COARSE\0CLOCK_MONOTONIC_RAW\0CLOCK_PROCESS_CPUTIME_ID\0CLOCK_REALTIME\0CLOCK_REALTIME_ALARM\0CLOCK_REALTIME_COARSE\0CLOCK_THREAD_CPUTIME_ID"; | ||
372 | +static const unsigned clock_i2s_direct[] = { | ||
373 | + 120,36,95,178,75,156,52,0,135,15, | ||
374 | +}; | ||
375 | +static const char *clock_i2s(int v) { | ||
376 | + return i2s_direct__(clock_strings, clock_i2s_direct, 0, 9, v); | ||
377 | +} | ||
378 | diff --git a/auparse/clone-flagtabs.h b/auparse/clone-flagtabs.h | ||
379 | new file mode 100644 | ||
380 | index 0000000..b8f815d | ||
381 | --- /dev/null | ||
382 | +++ b/auparse/clone-flagtabs.h | ||
383 | @@ -0,0 +1,10 @@ | ||
384 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
385 | +static const char clone_flag_strings[] = "CLONE_CHILD_CLEARTID\0CLONE_CHILD_SETTID\0CLONE_DETACHED\0CLONE_FILES\0CLONE_FS\0CLONE_IO\0CLONE_NEWIPC\0CLONE_NEWNET\0CLONE_NEWNS\0CLONE_NEWPID\0" | ||
386 | + "CLONE_NEWUSER\0CLONE_NEWUTS\0CLONE_PARENT\0CLONE_PARENT_SETTID\0CLONE_PTRACE\0CLONE_SETTLS\0CLONE_SIGHAND\0CLONE_STOPPED\0CLONE_SYSVSEM\0CLONE_THREAD\0" | ||
387 | + "CLONE_UNTRACED\0CLONE_VFORK\0CLONE_VM"; | ||
388 | +static const struct transtab clone_flag_table[] = { | ||
389 | + {256,304},{512,67},{1024,55},{2048,222},{8192,196},{16384,292},{32768,163},{65536,264},{131072,111},{262144,250}, | ||
390 | + {524288,209},{1048576,176},{2097152,0},{4194304,40},{8388608,277},{16777216,21},{33554432,236},{67108864,150},{134217728,85},{268435456,136}, | ||
391 | + {536870912,123},{1073741824,98},{-2147483648,76}, | ||
392 | +}; | ||
393 | +#define CLONE_FLAG_NUM_ENTRIES (sizeof(clone_flag_table) / sizeof(*clone_flag_table)) | ||
394 | diff --git a/auparse/epoll_ctls.h b/auparse/epoll_ctls.h | ||
395 | new file mode 100644 | ||
396 | index 0000000..2787c18 | ||
397 | --- /dev/null | ||
398 | +++ b/auparse/epoll_ctls.h | ||
399 | @@ -0,0 +1,8 @@ | ||
400 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
401 | +static const char epoll_ctl_strings[] = "EPOLL_CTL_ADD\0EPOLL_CTL_DEL\0EPOLL_CTL_MOD"; | ||
402 | +static const unsigned epoll_ctl_i2s_direct[] = { | ||
403 | + 0,14,28, | ||
404 | +}; | ||
405 | +static const char *epoll_ctl_i2s(int v) { | ||
406 | + return i2s_direct__(epoll_ctl_strings, epoll_ctl_i2s_direct, 1, 3, v); | ||
407 | +} | ||
408 | diff --git a/auparse/famtabs.h b/auparse/famtabs.h | ||
409 | new file mode 100644 | ||
410 | index 0000000..cae396b | ||
411 | --- /dev/null | ||
412 | +++ b/auparse/famtabs.h | ||
413 | @@ -0,0 +1,14 @@ | ||
414 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
415 | +static const char fam_strings[] = "alg\0appletalk\0ash\0atmpvc\0atmsvc\0ax25\0bluetooth\0bridge\0caif\0can\0" | ||
416 | + "decnet\0econet\0ieee802154\0inet\0inet6\0ipx\0irda\0isdn\0iucv\0key\0" | ||
417 | + "llc\0local\0netbeui\0netlink\0netrom\0nfc\0packet\0phonet\0pppox\0rds\0" | ||
418 | + "rose\0rxrpc\0security\0sna\0tipc\0vsock\0wanpipe\0x25"; | ||
419 | +static const unsigned fam_i2s_direct[] = { | ||
420 | + 126,88,32,99,4,148,47,18,226,93, | ||
421 | + 183,63,132,194,118,140,159,14,70,25, | ||
422 | + 179,203,103,173,218,122,-1u,-1u,59,207, | ||
423 | + 37,113,188,108,166,77,54,0,155,212, | ||
424 | +}; | ||
425 | +static const char *fam_i2s(int v) { | ||
426 | + return i2s_direct__(fam_strings, fam_i2s_direct, 1, 40, v); | ||
427 | +} | ||
428 | diff --git a/auparse/fcntl-cmdtabs.h b/auparse/fcntl-cmdtabs.h | ||
429 | new file mode 100644 | ||
430 | index 0000000..18c6cc7 | ||
431 | --- /dev/null | ||
432 | +++ b/auparse/fcntl-cmdtabs.h | ||
433 | @@ -0,0 +1,17 @@ | ||
434 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
435 | +static const char fcntl_strings[] = "F_CANCELLK\0F_DUPFD\0F_DUPFD_CLOEXEC\0F_GETFD\0F_GETFL\0F_GETLEASE\0F_GETLK\0F_GETLK64\0F_GETOWN\0F_GETOWNER_UIDS\0" | ||
436 | + "F_GETOWN_EX\0F_GETPIPE_SZ\0F_GETSIG\0F_NOTIFY\0F_SETFD\0F_SETFL\0F_SETLEASE\0F_SETLK\0F_SETLK64\0F_SETLKW\0" | ||
437 | + "F_SETLKW64\0F_SETOWN\0F_SETOWN_EX\0F_SETPIPE_SZ\0F_SETSIG"; | ||
438 | +static const int fcntl_i2s_i[] = { | ||
439 | + 0,1,2,3,4,5,6,7,8,9, | ||
440 | + 10,11,12,13,14,15,16,17,1024,1025, | ||
441 | + 1026,1029,1030,1031,1032, | ||
442 | +}; | ||
443 | +static const unsigned fcntl_i2s_s[] = { | ||
444 | + 11,35,148,43,156,62,175,193,213,80, | ||
445 | + 247,130,70,183,202,222,105,89,164,51, | ||
446 | + 139,0,19,234,117, | ||
447 | +}; | ||
448 | +static const char *fcntl_i2s(int v) { | ||
449 | + return i2s_bsearch__(fcntl_strings, fcntl_i2s_i, fcntl_i2s_s, 25, v); | ||
450 | +} | ||
451 | diff --git a/auparse/flagtabs.h b/auparse/flagtabs.h | ||
452 | new file mode 100644 | ||
453 | index 0000000..5f57e14 | ||
454 | --- /dev/null | ||
455 | +++ b/auparse/flagtabs.h | ||
456 | @@ -0,0 +1,6 @@ | ||
457 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
458 | +static const char flag_strings[] = "access\0atomic\0continue\0create\0directory\0follow\0noalt\0open\0parent"; | ||
459 | +static const struct transtab flag_table[] = { | ||
460 | + {1,40},{2,30},{4,14},{16,58},{32,47},{64,7},{256,53},{512,23},{1024,0}, | ||
461 | +}; | ||
462 | +#define FLAG_NUM_ENTRIES (sizeof(flag_table) / sizeof(*flag_table)) | ||
463 | diff --git a/auparse/icmptypetabs.h b/auparse/icmptypetabs.h | ||
464 | new file mode 100644 | ||
465 | index 0000000..49b44bf | ||
466 | --- /dev/null | ||
467 | +++ b/auparse/icmptypetabs.h | ||
468 | @@ -0,0 +1,10 @@ | ||
469 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
470 | +static const char icmptype_strings[] = "address-mask-reply\0address-mask-request\0destination-unreachable\0echo\0echo-reply\0info-reply\0info-request\0parameter-problem\0redirect\0source-quench\0" | ||
471 | + "time-exceeded\0timestamp-reply\0timestamp-request"; | ||
472 | +static const unsigned icmptype_i2s_direct[] = { | ||
473 | + 69,-1u,-1u,40,131,122,-1u,-1u,64,-1u, | ||
474 | + -1u,145,104,175,159,91,80,19,0, | ||
475 | +}; | ||
476 | +static const char *icmptype_i2s(int v) { | ||
477 | + return i2s_direct__(icmptype_strings, icmptype_i2s_direct, 0, 18, v); | ||
478 | +} | ||
479 | diff --git a/auparse/ip6optnametabs.h b/auparse/ip6optnametabs.h | ||
480 | new file mode 100644 | ||
481 | index 0000000..4af11c2 | ||
482 | --- /dev/null | ||
483 | +++ b/auparse/ip6optnametabs.h | ||
484 | @@ -0,0 +1,20 @@ | ||
485 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
486 | +static const char ip6optname_strings[] = "IP6T_SO_GET_REVISION_MATCH\0IP6T_SO_GET_REVISION_TARGET\0IP6T_SO_ORIGINAL_DST\0IP6T_SO_SET_ADD_COUNTERS\0IP6T_SO_SET_REPLACE\0IPV6_2292DSTOPTS\0IPV6_2292HOPLIMIT\0IPV6_2292HOPOPTS\0IPV6_2292PKTINFO\0IPV6_2292PKTOPTIONS\0" | ||
487 | + "IPV6_2292RTHDR\0IPV6_ADDRFORM\0IPV6_ADDR_PREFERENCES\0IPV6_ADD_MEMBERSHIP\0IPV6_AUTHHDR\0IPV6_CHECKSUM\0IPV6_DONTFRAG\0IPV6_DROP_MEMBERSHIP\0IPV6_DSTOPTS\0IPV6_FLOWINFO\0" | ||
488 | + "IPV6_FLOWINFO_SEND\0IPV6_FLOWLABEL_MGR\0IPV6_HOPLIMIT\0IPV6_HOPOPTS\0IPV6_IPSEC_POLICY\0IPV6_JOIN_ANYCAST\0IPV6_LEAVE_ANYCAST\0IPV6_MINHOPCOUNT\0IPV6_MTU\0IPV6_MTU_DISCOVER\0" | ||
489 | + "IPV6_MULTICAST_HOPS\0IPV6_MULTICAST_IF\0IPV6_MULTICAST_LOOP\0IPV6_NEXTHOP\0IPV6_ORIGDSTADDR\0IPV6_PATHMTU\0IPV6_PKTINFO\0IPV6_RECVDSTOPTS\0IPV6_RECVERR\0IPV6_RECVHOPLIMIT\0" | ||
490 | + "IPV6_RECVHOPOPTS\0IPV6_RECVPATHMTU\0IPV6_RECVPKTINFO\0IPV6_RECVRTHDR\0IPV6_RECVTCLASS\0IPV6_ROUTER_ALERT\0IPV6_RTHDR\0IPV6_RTHDRDSTOPTS\0IPV6_TCLASS\0IPV6_TRANSPARENT\0" | ||
491 | + "IPV6_UNICAST_HOPS\0IPV6_UNICAST_IF\0IPV6_USE_MIN_MTU\0IPV6_V6ONLY\0IPV6_XFRM_POLICY"; | ||
492 | +static const unsigned ip6optname_i2s_direct[] = { | ||
493 | + 225,173,156,121,210,190,294,138,592,281, | ||
494 | + 356,-1u,-1u,-1u,-1u,854,554,534,572,261, | ||
495 | + 322,778,516,507,665,905,453,471,-1u,-1u, | ||
496 | + -1u,389,370,435,917,-1u,-1u,-1u,-1u,-1u, | ||
497 | + -1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,730,635, | ||
498 | + 678,408,696,422,807,747,796,648,343,713, | ||
499 | + 622,308,888,101,76,762,825,0,27,-1u, | ||
500 | + -1u,239,490,605,837,872,-1u,-1u,-1u,55, | ||
501 | +}; | ||
502 | +static const char *ip6optname_i2s(int v) { | ||
503 | + return i2s_direct__(ip6optname_strings, ip6optname_i2s_direct, 1, 80, v); | ||
504 | +} | ||
505 | diff --git a/auparse/ipccmdtabs.h b/auparse/ipccmdtabs.h | ||
506 | new file mode 100644 | ||
507 | index 0000000..ff43dbb | ||
508 | --- /dev/null | ||
509 | +++ b/auparse/ipccmdtabs.h | ||
510 | @@ -0,0 +1,6 @@ | ||
511 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
512 | +static const char ipccmd_strings[] = "IPC_CREAT\0IPC_EXCL\0IPC_NOWAIT"; | ||
513 | +static const struct transtab ipccmd_table[] = { | ||
514 | + {512,0},{1024,10},{2048,19}, | ||
515 | +}; | ||
516 | +#define IPCCMD_NUM_ENTRIES (sizeof(ipccmd_table) / sizeof(*ipccmd_table)) | ||
517 | diff --git a/auparse/ipctabs.h b/auparse/ipctabs.h | ||
518 | new file mode 100644 | ||
519 | index 0000000..4bf3bcd | ||
520 | --- /dev/null | ||
521 | +++ b/auparse/ipctabs.h | ||
522 | @@ -0,0 +1,11 @@ | ||
523 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
524 | +static const char ipc_strings[] = "msgctl\0msgget\0msgrcv\0msgsnd\0semctl\0semget\0semop\0semtimedop\0shmat\0shmctl\0" | ||
525 | + "shmdt\0shmget"; | ||
526 | +static const unsigned ipc_i2s_direct[] = { | ||
527 | + 42,35,28,48,-1u,-1u,-1u,-1u,-1u,-1u, | ||
528 | + 21,14,7,0,-1u,-1u,-1u,-1u,-1u,-1u, | ||
529 | + 59,72,78,65, | ||
530 | +}; | ||
531 | +static const char *ipc_i2s(int v) { | ||
532 | + return i2s_direct__(ipc_strings, ipc_i2s_direct, 1, 24, v); | ||
533 | +} | ||
534 | diff --git a/auparse/ipoptnametabs.h b/auparse/ipoptnametabs.h | ||
535 | new file mode 100644 | ||
536 | index 0000000..fb0b8b7 | ||
537 | --- /dev/null | ||
538 | +++ b/auparse/ipoptnametabs.h | ||
539 | @@ -0,0 +1,17 @@ | ||
540 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
541 | +static const char ipoptname_strings[] = "IPT_SO_GET_REVISION_TARGET\0IPT_SO_SET_ADD_COUNTERS\0IPT_SO_SET_REPLACE\0IP_ADD_MEMBERSHIP\0IP_ADD_SOURCE_MEMBERSHIP\0IP_BLOCK_SOURCE\0IP_DROP_MEMBERSHIP\0IP_DROP_SOURCE_MEMBERSHIP\0IP_FREEBIND\0IP_HDRINCL\0" | ||
542 | + "IP_IPSEC_POLICY\0IP_MINTTL\0IP_MSFILTER\0IP_MTU\0IP_MTU_DISCOVER\0IP_MULTICAST_ALL\0IP_MULTICAST_IF\0IP_MULTICAST_LOOP\0IP_MULTICAST_TTL\0IP_NODEFRAG\0" | ||
543 | + "IP_OPTIONS\0IP_ORIGDSTADDR\0IP_PASSSEC\0IP_PKTINFO\0IP_PKTOPTIONS\0IP_RECVERR\0IP_RECVOPTS\0IP_RECVTTL\0IP_RETOPTS\0IP_ROUTER_ALERT\0" | ||
544 | + "IP_TOS\0IP_TRANSPARENT\0IP_TTL\0IP_UNBLOCK_SOURCE\0IP_UNICAST_IF\0IP_XFRM_POLICY"; | ||
545 | +static const unsigned ipoptname_i2s_direct[] = { | ||
546 | + 461,483,186,338,445,411,434,375,386,242, | ||
547 | + 400,423,-1u,235,174,197,522,364,468,349, | ||
548 | + 213,326,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u, | ||
549 | + -1u,275,309,291,70,129,490,113,88,148, | ||
550 | + 223,-1u,-1u,-1u,-1u,-1u,-1u,-1u,258,508, | ||
551 | + -1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u, | ||
552 | + -1u,-1u,-1u,51,27,0, | ||
553 | +}; | ||
554 | +static const char *ipoptname_i2s(int v) { | ||
555 | + return i2s_direct__(ipoptname_strings, ipoptname_i2s_direct, 1, 66, v); | ||
556 | +} | ||
557 | diff --git a/auparse/mmaptabs.h b/auparse/mmaptabs.h | ||
558 | new file mode 100644 | ||
559 | index 0000000..386833c | ||
560 | --- /dev/null | ||
561 | +++ b/auparse/mmaptabs.h | ||
562 | @@ -0,0 +1,8 @@ | ||
563 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
564 | +static const char mmap_strings[] = "MAP_32BIT\0MAP_ANONYMOUS\0MAP_DENYWRITE\0MAP_EXECUTABLE\0MAP_FIXED\0MAP_GROWSDOWN\0MAP_HUGETLB\0MAP_LOCKED\0MAP_NONBLOCK\0MAP_NORESERVE\0" | ||
565 | + "MAP_POPULATE\0MAP_PRIVATE\0MAP_SHARED\0MAP_STACK"; | ||
566 | +static const struct transtab mmap_table[] = { | ||
567 | + {1,152},{2,140},{16,53},{32,10},{64,0},{256,63},{2048,24},{4096,38},{8192,89},{16384,113}, | ||
568 | + {32768,127},{65536,100},{131072,163},{262144,77}, | ||
569 | +}; | ||
570 | +#define MMAP_NUM_ENTRIES (sizeof(mmap_table) / sizeof(*mmap_table)) | ||
571 | diff --git a/auparse/mounttabs.h b/auparse/mounttabs.h | ||
572 | new file mode 100644 | ||
573 | index 0000000..ca66885 | ||
574 | --- /dev/null | ||
575 | +++ b/auparse/mounttabs.h | ||
576 | @@ -0,0 +1,10 @@ | ||
577 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
578 | +static const char mount_strings[] = "MS_ACTIVE\0MS_BIND\0MS_BORN\0MS_DIRSYNC\0MS_I_VERSION\0MS_KERNMOUNT\0MS_MANDLOCK\0MS_MOVE\0MS_NOATIME\0MS_NODEV\0" | ||
579 | + "MS_NODIRATIME\0MS_NOEXEC\0MS_NOSEC\0MS_NOSUID\0MS_NOUSER\0MS_POSIXACL\0MS_PRIVATE\0MS_RDONLY\0MS_REC\0MS_RELATIME\0" | ||
580 | + "MS_REMOUNT\0MS_SHARED\0MS_SILENT\0MS_SLAVE\0MS_SNAP_STABLE\0MS_STRICTATIME\0MS_SYNCHRONOUS\0MS_UNBINDABLE"; | ||
581 | +static const struct transtab mount_table[] = { | ||
582 | + {1,179},{2,136},{4,94},{8,117},{16,278},{32,208},{64,63},{128,26},{1024,83},{2048,103}, | ||
583 | + {4096,10},{8192,75},{16384,189},{32768,229},{65536,156},{131072,293},{262144,168},{524288,239},{1048576,219},{2097152,196}, | ||
584 | + {4194304,50},{8388608,37},{16777216,263},{134217728,248},{268435456,127},{536870912,18},{1073741824,0},{-2147483648,146}, | ||
585 | +}; | ||
586 | +#define MOUNT_NUM_ENTRIES (sizeof(mount_table) / sizeof(*mount_table)) | ||
587 | diff --git a/auparse/nfprototabs.h b/auparse/nfprototabs.h | ||
588 | new file mode 100644 | ||
589 | index 0000000..9bb2723 | ||
590 | --- /dev/null | ||
591 | +++ b/auparse/nfprototabs.h | ||
592 | @@ -0,0 +1,9 @@ | ||
593 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
594 | +static const char nfproto_strings[] = "arp\0bridge\0decnet\0ipv4\0ipv6\0unspecified"; | ||
595 | +static const unsigned nfproto_i2s_direct[] = { | ||
596 | + 28,-1u,18,0,-1u,-1u,-1u,4,-1u,-1u, | ||
597 | + 23,-1u,11, | ||
598 | +}; | ||
599 | +static const char *nfproto_i2s(int v) { | ||
600 | + return i2s_direct__(nfproto_strings, nfproto_i2s_direct, 0, 12, v); | ||
601 | +} | ||
602 | diff --git a/auparse/open-flagtabs.h b/auparse/open-flagtabs.h | ||
603 | new file mode 100644 | ||
604 | index 0000000..5e3c3eb | ||
605 | --- /dev/null | ||
606 | +++ b/auparse/open-flagtabs.h | ||
607 | @@ -0,0 +1,8 @@ | ||
608 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
609 | +static const char open_flag_strings[] = "O_APPEND\0O_ASYNC\0O_CLOEXEC\0O_CREAT\0O_DIRECT\0O_DIRECTORY\0O_DSYNC\0O_EXCL\0O_NOATIME\0O_NOCTTY\0" | ||
610 | + "O_NOFOLLOW\0O_NONBLOCK\0O_PATH\0O_RDWR\0O_TRUNC\0O_WRONLY\0__O_SYNC"; | ||
611 | +static const struct transtab open_flag_table[] = { | ||
612 | + {1,134},{2,119},{64,27},{128,64},{256,81},{512,126},{1024,0},{2048,101},{4096,56},{8192,9}, | ||
613 | + {16384,35},{65536,44},{131072,90},{262144,71},{524288,17},{1048576,143},{2097152,112}, | ||
614 | +}; | ||
615 | +#define OPEN_FLAG_NUM_ENTRIES (sizeof(open_flag_table) / sizeof(*open_flag_table)) | ||
616 | diff --git a/auparse/persontabs.h b/auparse/persontabs.h | ||
617 | new file mode 100644 | ||
618 | index 0000000..d099839 | ||
619 | --- /dev/null | ||
620 | +++ b/auparse/persontabs.h | ||
621 | @@ -0,0 +1,17 @@ | ||
622 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
623 | +static const char person_strings[] = "PER_BSD\0PER_HPUX\0PER_IRIX32\0PER_IRIX64\0PER_IRIXN32\0PER_ISCR4\0PER_LINUX\0PER_LINUX32\0PER_LINUX32_3GB\0PER_LINUX_32BIT\0" | ||
624 | + "PER_OSF4\0PER_OSR5\0PER_RISCOS\0PER_SCOSVR3\0PER_SOLARIS\0PER_SUNOS\0PER_SVR3\0PER_SVR4\0PER_UW7\0PER_WYSEV386\0" | ||
625 | + "PER_XENIX"; | ||
626 | +static const int person_i2s_i[] = { | ||
627 | + 0,6,8,12,15,16,8388608,67108869,67108870,67108873, | ||
628 | + 67108874,67108875,67108877,68157441,68157454,83886082,83886084,83886087,100663299,117440515, | ||
629 | + 134217736, | ||
630 | +}; | ||
631 | +static const unsigned person_i2s_s[] = { | ||
632 | + 61,0,71,133,115,8,99,51,168,17, | ||
633 | + 39,28,156,187,196,178,204,217,124,144, | ||
634 | + 83, | ||
635 | +}; | ||
636 | +static const char *person_i2s(int v) { | ||
637 | + return i2s_bsearch__(person_strings, person_i2s_i, person_i2s_s, 21, v); | ||
638 | +} | ||
639 | diff --git a/auparse/pktoptnametabs.h b/auparse/pktoptnametabs.h | ||
640 | new file mode 100644 | ||
641 | index 0000000..4613372 | ||
642 | --- /dev/null | ||
643 | +++ b/auparse/pktoptnametabs.h | ||
644 | @@ -0,0 +1,10 @@ | ||
645 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
646 | +static const char pktoptname_strings[] = "PACKET_ADD_MEMBERSHIP\0PACKET_AUXDATA\0PACKET_COPY_THRESH\0PACKET_DROP_MEMBERSHIP\0PACKET_FANOUT\0PACKET_HDRLEN\0PACKET_LOSS\0PACKET_ORIGDEV\0PACKET_RECV_OUTPUT\0PACKET_RESERVE\0" | ||
647 | + "PACKET_RX_RING\0PACKET_STATISTICS\0PACKET_TIMESTAMP\0PACKET_TX_HAS_OFF\0PACKET_TX_RING\0PACKET_TX_TIMESTAMP\0PACKET_VERSION\0PACKET_VNET_HDR"; | ||
648 | +static const unsigned pktoptname_i2s_direct[] = { | ||
649 | + 0,56,134,-1u,168,183,37,22,119,271, | ||
650 | + 93,153,236,107,286,251,201,79,218, | ||
651 | +}; | ||
652 | +static const char *pktoptname_i2s(int v) { | ||
653 | + return i2s_direct__(pktoptname_strings, pktoptname_i2s_direct, 1, 19, v); | ||
654 | +} | ||
655 | diff --git a/auparse/prctl_opttabs.h b/auparse/prctl_opttabs.h | ||
656 | new file mode 100644 | ||
657 | index 0000000..03707a8 | ||
658 | --- /dev/null | ||
659 | +++ b/auparse/prctl_opttabs.h | ||
660 | @@ -0,0 +1,14 @@ | ||
661 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
662 | +static const char prctl_opt_strings[] = "PR_CAPBSET_DROP\0PR_CAPBSET_READ\0PR_GET_CHILD_SUBREAPER\0PR_GET_DUMPABLE\0PR_GET_ENDIAN\0PR_GET_FPEMU\0PR_GET_FPEXC\0PR_GET_KEEPCAPS\0PR_GET_NAME\0PR_GET_NO_NEW_PRIVS\0" | ||
663 | + "PR_GET_PDEATHSIG\0PR_GET_SECCOMP\0PR_GET_SECUREBITS\0PR_GET_TID_ADDRESS\0PR_GET_TIMERSLACK\0PR_GET_TIMING\0PR_GET_TSC\0PR_GET_UNALIGN\0PR_MCE_KILL\0PR_MCE_KILL_GET\0" | ||
664 | + "PR_SET_CHILD_SUBREAPER\0PR_SET_DUMPABLE\0PR_SET_ENDIAN\0PR_SET_FPEMU\0PR_SET_FPEXC\0PR_SET_KEEPCAPS\0PR_SET_MM\0PR_SET_NAME\0PR_SET_NO_NEW_PRIVS\0PR_SET_PDEATHSIG\0" | ||
665 | + "PR_SET_SECCOMP\0PR_SET_SECUREBITS\0PR_SET_TIMERSLACK\0PR_SET_TIMING\0PR_SET_TSC\0PR_SET_UNALIGN\0PR_TASK_PERF_EVENTS_DISABLE\0PR_TASK_PERF_EVENTS_ENABLE"; | ||
666 | +static const unsigned prctl_opt_i2s_direct[] = { | ||
667 | + 451,159,55,337,271,544,111,393,85,367, | ||
668 | + 98,380,246,519,419,127,-1u,-1u,71,353, | ||
669 | + 176,468,16,0,260,533,191,483,501,228, | ||
670 | + 559,587,286,298,409,314,32,431,139,209, | ||
671 | +}; | ||
672 | +static const char *prctl_opt_i2s(int v) { | ||
673 | + return i2s_direct__(prctl_opt_strings, prctl_opt_i2s_direct, 1, 40, v); | ||
674 | +} | ||
675 | diff --git a/auparse/prottabs.h b/auparse/prottabs.h | ||
676 | new file mode 100644 | ||
677 | index 0000000..1727f43 | ||
678 | --- /dev/null | ||
679 | +++ b/auparse/prottabs.h | ||
680 | @@ -0,0 +1,6 @@ | ||
681 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
682 | +static const char prot_strings[] = "PROT_EXEC\0PROT_READ\0PROT_SEM\0PROT_WRITE"; | ||
683 | +static const struct transtab prot_table[] = { | ||
684 | + {1,10},{2,29},{4,0},{8,20}, | ||
685 | +}; | ||
686 | +#define PROT_NUM_ENTRIES (sizeof(prot_table) / sizeof(*prot_table)) | ||
687 | diff --git a/auparse/ptracetabs.h b/auparse/ptracetabs.h | ||
688 | new file mode 100644 | ||
689 | index 0000000..6bbfc9b | ||
690 | --- /dev/null | ||
691 | +++ b/auparse/ptracetabs.h | ||
692 | @@ -0,0 +1,17 @@ | ||
693 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
694 | +static const char ptrace_strings[] = "PTRACE_ATTACH\0PTRACE_CONT\0PTRACE_DETACH\0PTRACE_GETEVENTMSG\0PTRACE_GETFPREGS\0PTRACE_GETFPXREGS\0PTRACE_GETREGS\0PTRACE_GETREGSET\0PTRACE_GETSIGINFO\0PTRACE_INTERRUPT\0" | ||
695 | + "PTRACE_KILL\0PTRACE_LISTEN\0PTRACE_PEEKDATA\0PTRACE_PEEKTEXT\0PTRACE_PEEKUSER\0PTRACE_POKEDATA\0PTRACE_POKETEXT\0PTRACE_POKEUSER\0PTRACE_SEIZE\0PTRACE_SETFPREGS\0" | ||
696 | + "PTRACE_SETFPXREGS\0PTRACE_SETOPTIONS\0PTRACE_SETREGS\0PTRACE_SETREGSET\0PTRACE_SETSIGINFO\0PTRACE_SINGLESTEP\0PTRACE_SYSCALL\0PTRACE_TRACEME"; | ||
697 | +static const int ptrace_i2s_i[] = { | ||
698 | + 0,1,2,3,4,5,6,7,8,9, | ||
699 | + 12,13,14,15,16,17,18,19,24,16896, | ||
700 | + 16897,16898,16899,16900,16901,16902,16903,16904, | ||
701 | +}; | ||
702 | +static const unsigned ptrace_i2s_s[] = { | ||
703 | + 432,203,187,219,251,235,267,14,161,399, | ||
704 | + 94,349,59,296,0,26,76,313,417,331, | ||
705 | + 40,126,381,109,364,283,144,173, | ||
706 | +}; | ||
707 | +static const char *ptrace_i2s(int v) { | ||
708 | + return i2s_bsearch__(ptrace_strings, ptrace_i2s_i, ptrace_i2s_s, 28, v); | ||
709 | +} | ||
710 | diff --git a/auparse/recvtabs.h b/auparse/recvtabs.h | ||
711 | new file mode 100644 | ||
712 | index 0000000..9cab5a3 | ||
713 | --- /dev/null | ||
714 | +++ b/auparse/recvtabs.h | ||
715 | @@ -0,0 +1,8 @@ | ||
716 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
717 | +static const char recv_strings[] = "MSG_CMSG_CLOEXEC\0MSG_CONFIRM\0MSG_CTRUNC\0MSG_DONTROUTE\0MSG_DONTWAIT\0MSG_EOR\0MSG_ERRQUEUE\0MSG_FASTOPEN\0MSG_FIN\0MSG_MORE\0" | ||
718 | + "MSG_NOSIGNAL\0MSG_OOB\0MSG_PEEK\0MSG_PROXY\0MSG_RST\0MSG_SENDPAGE_NOTLAST\0MSG_SYN\0MSG_TRUNC\0MSG_WAITALL\0MSG_WAITFORONE"; | ||
719 | +static const struct transtab recv_table[] = { | ||
720 | + {1,131},{2,139},{4,40},{8,29},{16,148},{32,195},{64,54},{128,67},{256,205},{512,101}, | ||
721 | + {1024,187},{2048,17},{4096,158},{8192,75},{16384,118},{32768,109},{65536,217},{131072,166},{536870912,88},{1073741824,0}, | ||
722 | +}; | ||
723 | +#define RECV_NUM_ENTRIES (sizeof(recv_table) / sizeof(*recv_table)) | ||
724 | diff --git a/auparse/rlimittabs.h b/auparse/rlimittabs.h | ||
725 | new file mode 100644 | ||
726 | index 0000000..364ad69 | ||
727 | --- /dev/null | ||
728 | +++ b/auparse/rlimittabs.h | ||
729 | @@ -0,0 +1,10 @@ | ||
730 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
731 | +static const char rlimit_strings[] = "RLIMIT_AS\0RLIMIT_CORE\0RLIMIT_CPU\0RLIMIT_DATA\0RLIMIT_FSIZE\0RLIMIT_LOCKS\0RLIMIT_MEMLOCK\0RLIMIT_MSGQUEUE\0RLIMIT_NICE\0RLIMIT_NOFILE\0" | ||
732 | + "RLIMIT_NPROC\0RLIMIT_RSS\0RLIMIT_RTPRIO\0RLIMIT_RTTIME\0RLIMIT_SIGPENDING\0RLIMIT_STACK"; | ||
733 | +static const unsigned rlimit_i2s_direct[] = { | ||
734 | + 22,45,33,198,10,141,128,114,71,0, | ||
735 | + 58,180,86,102,152,166, | ||
736 | +}; | ||
737 | +static const char *rlimit_i2s(int v) { | ||
738 | + return i2s_direct__(rlimit_strings, rlimit_i2s_direct, 0, 15, v); | ||
739 | +} | ||
740 | diff --git a/auparse/schedtabs.h b/auparse/schedtabs.h | ||
741 | new file mode 100644 | ||
742 | index 0000000..875317f | ||
743 | --- /dev/null | ||
744 | +++ b/auparse/schedtabs.h | ||
745 | @@ -0,0 +1,8 @@ | ||
746 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
747 | +static const char sched_strings[] = "SCHED_BATCH\0SCHED_FIFO\0SCHED_IDLE\0SCHED_OTHER\0SCHED_RR"; | ||
748 | +static const unsigned sched_i2s_direct[] = { | ||
749 | + 34,12,46,0,-1u,23, | ||
750 | +}; | ||
751 | +static const char *sched_i2s(int v) { | ||
752 | + return i2s_direct__(sched_strings, sched_i2s_direct, 0, 5, v); | ||
753 | +} | ||
754 | diff --git a/auparse/seccomptabs.h b/auparse/seccomptabs.h | ||
755 | new file mode 100644 | ||
756 | index 0000000..5c6c911 | ||
757 | --- /dev/null | ||
758 | +++ b/auparse/seccomptabs.h | ||
759 | @@ -0,0 +1,11 @@ | ||
760 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
761 | +static const char seccomp_strings[] = "allow\0errno\0kill\0trace\0trap"; | ||
762 | +static const int seccomp_i2s_i[] = { | ||
763 | + 0,196608,327680,2146435072,2147418112, | ||
764 | +}; | ||
765 | +static const unsigned seccomp_i2s_s[] = { | ||
766 | + 12,23,6,17,0, | ||
767 | +}; | ||
768 | +static const char *seccomp_i2s(int v) { | ||
769 | + return i2s_bsearch__(seccomp_strings, seccomp_i2s_i, seccomp_i2s_s, 5, v); | ||
770 | +} | ||
771 | diff --git a/auparse/seektabs.h b/auparse/seektabs.h | ||
772 | new file mode 100644 | ||
773 | index 0000000..0d0f542 | ||
774 | --- /dev/null | ||
775 | +++ b/auparse/seektabs.h | ||
776 | @@ -0,0 +1,8 @@ | ||
777 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
778 | +static const char seek_strings[] = "SEEK_CUR\0SEEK_DATA\0SEEK_END\0SEEK_HOLE\0SEEK_SET"; | ||
779 | +static const unsigned seek_i2s_direct[] = { | ||
780 | + 38,0,19,9,28, | ||
781 | +}; | ||
782 | +static const char *seek_i2s(int v) { | ||
783 | + return i2s_direct__(seek_strings, seek_i2s_direct, 0, 4, v); | ||
784 | +} | ||
785 | diff --git a/auparse/shm_modetabs.h b/auparse/shm_modetabs.h | ||
786 | new file mode 100644 | ||
787 | index 0000000..ddd414d | ||
788 | --- /dev/null | ||
789 | +++ b/auparse/shm_modetabs.h | ||
790 | @@ -0,0 +1,6 @@ | ||
791 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
792 | +static const char shm_mode_strings[] = "SHM_DEST\0SHM_HUGETLB\0SHM_LOCKED\0SHM_NORESERVE"; | ||
793 | +static const struct transtab shm_mode_table[] = { | ||
794 | + {512,0},{1024,21},{2048,9},{4096,32}, | ||
795 | +}; | ||
796 | +#define SHM_MODE_NUM_ENTRIES (sizeof(shm_mode_table) / sizeof(*shm_mode_table)) | ||
797 | diff --git a/auparse/signaltabs.h b/auparse/signaltabs.h | ||
798 | new file mode 100644 | ||
799 | index 0000000..91ce38e | ||
800 | --- /dev/null | ||
801 | +++ b/auparse/signaltabs.h | ||
802 | @@ -0,0 +1,14 @@ | ||
803 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
804 | +static const char signal_strings[] = "IGPWR\0SIG0\0SIGABRT\0SIGALRM\0SIGBUS\0SIGCHLD\0SIGCONT\0SIGFPE\0SIGHUP\0SIGILL\0" | ||
805 | + "SIGINT\0SIGIO\0SIGKILL\0SIGPIPE\0SIGPROF\0SIGQUIT\0SIGSEGV\0SIGSTKFLT\0SIGSTOP\0SIGSYS\0" | ||
806 | + "SIGTERM\0SIGTRAP\0SIGTSTP\0SIGTTIN\0SIGTTOU\0SIGURG\0SIGUSR1\0SIGUSR2\0SIGVTALRM\0SIGWINCH\0" | ||
807 | + "SIGXCPU\0SIGXFSZ"; | ||
808 | +static const unsigned signal_i2s_direct[] = { | ||
809 | + 6,57,71,108,64,157,11,27,50,84, | ||
810 | + 196,116,204,92,19,149,124,34,42,134, | ||
811 | + 165,173,181,189,231,239,212,100,222,78, | ||
812 | + 0,142, | ||
813 | +}; | ||
814 | +static const char *signal_i2s(int v) { | ||
815 | + return i2s_direct__(signal_strings, signal_i2s_direct, 0, 31, v); | ||
816 | +} | ||
817 | diff --git a/auparse/sockleveltabs.h b/auparse/sockleveltabs.h | ||
818 | new file mode 100644 | ||
819 | index 0000000..4473d8c | ||
820 | --- /dev/null | ||
821 | +++ b/auparse/sockleveltabs.h | ||
822 | @@ -0,0 +1,12 @@ | ||
823 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
824 | +static const char socklevel_strings[] = "SOL_AAL\0SOL_ALG\0SOL_ATALK\0SOL_ATM\0SOL_AX25\0SOL_BLUETOOTH\0SOL_CAIF\0SOL_DCCP\0SOL_DECNET\0SOL_IPX\0" | ||
825 | + "SOL_IRDA\0SOL_IUCV\0SOL_LLC\0SOL_NETBEUI\0SOL_NETLINK\0SOL_NETROM\0SOL_PACKET\0SOL_PNPIPE\0SOL_PPPOL2TP\0SOL_RAW\0" | ||
826 | + "SOL_RDS\0SOL_ROSE\0SOL_RXRPC\0SOL_TIPC"; | ||
827 | +static const unsigned socklevel_i2s_direct[] = { | ||
828 | + 190,86,34,16,144,206,75,-1u,155,26, | ||
829 | + 0,94,120,112,66,132,225,215,177,43, | ||
830 | + 166,198,103,57,8, | ||
831 | +}; | ||
832 | +static const char *socklevel_i2s(int v) { | ||
833 | + return i2s_direct__(socklevel_strings, socklevel_i2s_direct, 255, 279, v); | ||
834 | +} | ||
835 | diff --git a/auparse/sockoptnametabs.h b/auparse/sockoptnametabs.h | ||
836 | new file mode 100644 | ||
837 | index 0000000..831a030 | ||
838 | --- /dev/null | ||
839 | +++ b/auparse/sockoptnametabs.h | ||
840 | @@ -0,0 +1,23 @@ | ||
841 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
842 | +static const char sockoptname_strings[] = "SO_ACCEPTCONN\0SO_ATTACH_FILTER\0SO_BINDTODEVICE\0SO_BROADCAST\0SO_BSDCOMPAT\0SO_DEBUG\0SO_DETACH_FILTER\0SO_DOMAIN\0SO_DONTROUTE\0SO_ERROR\0" | ||
843 | + "SO_KEEPALIVE\0SO_LINGER\0SO_LOCK_FILTER\0SO_MARK\0SO_NOFCS\0SO_NO_CHECK\0SO_OOBINLINE\0SO_PASSCRED\0SO_PASSCRED\0SO_PASSSEC\0" | ||
844 | + "SO_PEEK_OFF\0SO_PEERCRED\0SO_PEERCRED\0SO_PEERNAME\0SO_PEERSEC\0SO_PRIORITY\0SO_PROTOCOL\0SO_RCVBUF\0SO_RCVBUFFORCE\0SO_RCVLOWAT\0" | ||
845 | + "SO_RCVLOWAT\0SO_RCVTIMEO\0SO_RCVTIMEO\0SO_REUSEADDR\0SO_REUSEPORT\0SO_RXQ_OVFL\0SO_SECURITY_AUTHENTICATION\0SO_SECURITY_ENCRYPTION_NETWORK\0SO_SECURITY_ENCRYPTION_TRANSPORT\0SO_SNDBUF\0" | ||
846 | + "SO_SNDBUFFORCE\0SO_SNDLOWAT\0SO_SNDLOWAT\0SO_SNDTIMEO\0SO_SNDTIMEO\0SO_TIMESTAMP\0SO_TIMESTAMPING\0SO_TIMESTAMPNS\0SO_TYPE\0SO_WIFI_STATUS"; | ||
847 | +static const int sockoptname_i2s_i[] = { | ||
848 | + 1,2,3,4,5,6,7,8,9,10, | ||
849 | + 11,12,13,14,15,16,17,18,19,20, | ||
850 | + 21,22,23,24,25,26,27,28,29,30, | ||
851 | + 31,32,33,34,35,36,37,38,39,40, | ||
852 | + 41,42,43,44,116,117,118,119,120,121, | ||
853 | +}; | ||
854 | +static const unsigned sockoptname_i2s_s[] = { | ||
855 | + 73,402,648,122,109,47,531,329,131,198, | ||
856 | + 186,305,144,60,415,211,258,354,556,378, | ||
857 | + 580,440,498,467,31,14,82,282,604,0, | ||
858 | + 294,541,339,235,633,169,617,317,99,428, | ||
859 | + 656,246,177,154,366,568,390,592,223,270, | ||
860 | +}; | ||
861 | +static const char *sockoptname_i2s(int v) { | ||
862 | + return i2s_bsearch__(sockoptname_strings, sockoptname_i2s_i, sockoptname_i2s_s, 50, v); | ||
863 | +} | ||
864 | diff --git a/auparse/socktabs.h b/auparse/socktabs.h | ||
865 | new file mode 100644 | ||
866 | index 0000000..66a8235 | ||
867 | --- /dev/null | ||
868 | +++ b/auparse/socktabs.h | ||
869 | @@ -0,0 +1,10 @@ | ||
870 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
871 | +static const char sock_strings[] = "accept\0accept4\0bind\0connect\0getpeername\0getsockname\0getsockopt\0listen\0recv\0recvfrom\0" | ||
872 | + "recvmmsg\0recvmsg\0send\0sendmmsg\0sendmsg\0sendto\0setsockopt\0shutdown\0socket\0socketpair"; | ||
873 | +static const unsigned sock_i2s_direct[] = { | ||
874 | + 150,15,20,63,0,40,28,157,101,70, | ||
875 | + 123,75,141,130,52,115,93,7,84,106, | ||
876 | +}; | ||
877 | +static const char *sock_i2s(int v) { | ||
878 | + return i2s_direct__(sock_strings, sock_i2s_direct, 1, 20, v); | ||
879 | +} | ||
880 | diff --git a/auparse/socktypetabs.h b/auparse/socktypetabs.h | ||
881 | new file mode 100644 | ||
882 | index 0000000..05e8d36 | ||
883 | --- /dev/null | ||
884 | +++ b/auparse/socktypetabs.h | ||
885 | @@ -0,0 +1,8 @@ | ||
886 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
887 | +static const char sock_type_strings[] = "SOCK_DCCP\0SOCK_DGRAM\0SOCK_PACKET\0SOCK_RAW\0SOCK_RDM\0SOCK_SEQPACKET\0SOCK_STREAM"; | ||
888 | +static const unsigned sock_type_i2s_direct[] = { | ||
889 | + 66,10,33,42,51,0,-1u,-1u,-1u,21, | ||
890 | +}; | ||
891 | +static const char *sock_type_i2s(int v) { | ||
892 | + return i2s_direct__(sock_type_strings, sock_type_i2s_direct, 1, 10, v); | ||
893 | +} | ||
894 | diff --git a/auparse/tcpoptnametabs.h b/auparse/tcpoptnametabs.h | ||
895 | new file mode 100644 | ||
896 | index 0000000..061db3f | ||
897 | --- /dev/null | ||
898 | +++ b/auparse/tcpoptnametabs.h | ||
899 | @@ -0,0 +1,12 @@ | ||
900 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
901 | +static const char tcpoptname_strings[] = "TCP_CONGESTION\0TCP_COOKIE_TRANSACTIONS\0TCP_CORK\0TCP_DEFER_ACCEPT\0TCP_FASTOPEN\0TCP_INFO\0TCP_KEEPCNT\0TCP_KEEPIDLE\0TCP_KEEPINTVL\0TCP_LINGER2\0" | ||
902 | + "TCP_MAXSEG\0TCP_MD5SIG\0TCP_NODELAY\0TCP_QUEUE_SEQ\0TCP_QUICKACK\0TCP_REPAIR\0TCP_REPAIR_OPTIONS\0TCP_REPAIR_QUEUE\0TCP_SYNCNT\0TCP_THIN_DUPACK\0" | ||
903 | + "TCP_THIN_LINEAR_TIMEOUTS\0TCP_TIMESTAMP\0TCP_USER_TIMEOUT\0TCP_WINDOW_CLAMP"; | ||
904 | +static const unsigned tcpoptname_i2s_direct[] = { | ||
905 | + 160,138,39,99,112,87,246,126,48,329, | ||
906 | + 78,186,0,149,15,273,257,312,199,229, | ||
907 | + 172,210,65,298, | ||
908 | +}; | ||
909 | +static const char *tcpoptname_i2s(int v) { | ||
910 | + return i2s_direct__(tcpoptname_strings, tcpoptname_i2s_direct, 1, 24, v); | ||
911 | +} | ||
912 | diff --git a/auparse/typetabs.h b/auparse/typetabs.h | ||
913 | new file mode 100644 | ||
914 | index 0000000..a99d398 | ||
915 | --- /dev/null | ||
916 | +++ b/auparse/typetabs.h | ||
917 | @@ -0,0 +1,35 @@ | ||
918 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
919 | +static const char type_strings[] = "a0\0a1\0a2\0a3\0acct\0addr\0arch\0auid\0cap_fi\0cap_fp\0" | ||
920 | + "cap_pe\0cap_pi\0cap_pp\0capability\0cgroup\0cmd\0code\0comm\0cwd\0data\0" | ||
921 | + "device\0dir\0egid\0euid\0exe\0exit\0family\0fe\0fi\0file\0" | ||
922 | + "flags\0fp\0fsgid\0fsuid\0gid\0icmptype\0id\0igid\0inode_gid\0inode_uid\0" | ||
923 | + "iuid\0key\0list\0mode\0name\0new-disk\0new-fs\0new-rng\0new_gid\0new_pe\0" | ||
924 | + "new_pi\0new_pp\0oauid\0obj_gid\0obj_uid\0ocomm\0oflag\0ogid\0old-disk\0old-fs\0" | ||
925 | + "old-rng\0old_pe\0old_pi\0old_pp\0old_prom\0ouid\0path\0per\0perm\0perm_mask\0" | ||
926 | + "prom\0proto\0res\0result\0saddr\0sauid\0ses\0sgid\0sig\0sigev_signo\0" | ||
927 | + "suid\0syscall\0uid\0vm\0watch"; | ||
928 | +static const unsigned type_s2i_s[] = { | ||
929 | + 0,3,6,9,12,17,22,27,32,39, | ||
930 | + 46,53,60,67,78,85,89,94,99,103, | ||
931 | + 108,115,119,124,129,133,138,145,148,151, | ||
932 | + 156,162,165,171,177,181,190,193,198,208, | ||
933 | + 218,223,227,232,237,242,251,258,266,274, | ||
934 | + 281,288,295,301,309,317,323,329,334,343, | ||
935 | + 350,358,365,372,379,388,393,398,402,407, | ||
936 | + 417,422,428,432,439,445,451,455,460,464, | ||
937 | + 476,481,489,493,496, | ||
938 | +}; | ||
939 | +static const int type_s2i_i[] = { | ||
940 | + 14,15,16,17,6,26,4,1,22,22, | ||
941 | + 22,22,22,12,6,6,28,6,6,20, | ||
942 | + 6,6,2,1,6,5,23,22,22,6, | ||
943 | + 30,22,2,1,2,24,1,2,2,1, | ||
944 | + 1,6,19,8,6,6,6,6,2,22, | ||
945 | + 22,22,1,2,1,6,29,2,6,6, | ||
946 | + 6,22,22,22,11,1,6,27,7,7, | ||
947 | + 11,25,13,13,9,1,21,2,18,18, | ||
948 | + 1,3,1,6,6, | ||
949 | +}; | ||
950 | +static int type_s2i(const char *s, int *value) { | ||
951 | + return s2i__(type_strings, type_s2i_s, type_s2i_i, 85, s, value); | ||
952 | +} | ||
953 | diff --git a/auparse/umounttabs.h b/auparse/umounttabs.h | ||
954 | new file mode 100644 | ||
955 | index 0000000..e98118f | ||
956 | --- /dev/null | ||
957 | +++ b/auparse/umounttabs.h | ||
958 | @@ -0,0 +1,6 @@ | ||
959 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
960 | +static const char umount_strings[] = "MNT_DETACH\0MNT_EXPIRE\0MNT_FORCE\0UMOUNT_NOFOLLOW\0UMOUNT_UNUSED"; | ||
961 | +static const struct transtab umount_table[] = { | ||
962 | + {1,22},{2,0},{4,11},{8,32},{-2147483647,48}, | ||
963 | +}; | ||
964 | +#define UMOUNT_NUM_ENTRIES (sizeof(umount_table) / sizeof(*umount_table)) | ||
965 | diff --git a/lib/Makefile.am b/lib/Makefile.am | ||
966 | index 5e9f966..5a7d12b 100644 | ||
967 | --- a/lib/Makefile.am | ||
968 | +++ b/lib/Makefile.am | ||
969 | @@ -50,109 +50,3 @@ endif | ||
301 | if USE_AARCH64 | 970 | if USE_AARCH64 |
302 | gen_aarch64_tables_h_SOURCES = gen_tables.c gen_tables.h aarch64_table.h | 971 | BUILT_SOURCES += aarch64_tables.h |
303 | gen_aarch64_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="aarch64_table.h"' | ||
304 | +gen_aarch64_tables_h: $(gen_aarch64_tables_h_SOURCES) | ||
305 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_aarch64_tables_h_CFLAGS) $(LDFLAGS) -o $@ $< | ||
306 | aarch64_tables.h: gen_aarch64_tables_h Makefile | ||
307 | ./gen_aarch64_tables_h --lowercase --i2s --s2i aarch64_syscall > $@ | ||
308 | endif | 972 | endif |
309 | 973 | -noinst_PROGRAMS = gen_actiontabs_h gen_errtabs_h gen_fieldtabs_h \ | |
310 | gen_errtabs_h_SOURCES = gen_tables.c gen_tables.h errtab.h | 974 | - gen_flagtabs_h gen_ftypetabs_h gen_i386_tables_h \ |
311 | gen_errtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="errtab.h"' | 975 | - gen_ia64_tables_h gen_machinetabs_h gen_msg_typetabs_h \ |
312 | +gen_errtabs_h: $(gen_errtabs_h_SOURCES) | 976 | - gen_optabs_h gen_ppc_tables_h gen_s390_tables_h \ |
313 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_errtabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 977 | - gen_s390x_tables_h gen_x86_64_tables_h |
314 | errtabs.h: gen_errtabs_h Makefile | 978 | -if USE_ALPHA |
315 | ./gen_errtabs_h --duplicate-ints --uppercase --i2s --s2i err > $@ | 979 | -noinst_PROGRAMS += gen_alpha_tables_h |
316 | 980 | -endif | |
317 | gen_fieldtabs_h_SOURCES = gen_tables.c gen_tables.h fieldtab.h | 981 | -if USE_ARMEB |
318 | gen_fieldtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="fieldtab.h"' | 982 | -noinst_PROGRAMS += gen_armeb_tables_h |
319 | +gen_fieldtabs_h: $(gen_fieldtabs_h_SOURCES) | 983 | -endif |
320 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_fieldtabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 984 | -if USE_AARCH64 |
321 | fieldtabs.h: gen_fieldtabs_h Makefile | 985 | -noinst_PROGRAMS += gen_aarch64_tables_h |
322 | ./gen_fieldtabs_h --duplicate-ints --lowercase --i2s --s2i field > $@ | 986 | -endif |
323 | 987 | -gen_actiontabs_h_SOURCES = gen_tables.c gen_tables.h actiontab.h | |
324 | gen_flagtabs_h_SOURCES = gen_tables.c gen_tables.h flagtab.h | 988 | -gen_actiontabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="actiontab.h"' |
325 | gen_flagtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="flagtab.h"' | 989 | -actiontabs.h: gen_actiontabs_h Makefile |
326 | +gen_flagtabs_h: $(gen_flagtabs_h_SOURCES) | 990 | - ./gen_actiontabs_h --lowercase --i2s --s2i action > $@ |
327 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_flagtabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 991 | - |
328 | flagtabs.h: gen_flagtabs_h Makefile | 992 | -if USE_ALPHA |
329 | ./gen_flagtabs_h --lowercase --i2s --s2i flag > $@ | 993 | -gen_alpha_tables_h_SOURCES = gen_tables.c gen_tables.h alpha_table.h |
330 | 994 | -gen_alpha_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="alpha_table.h"' | |
331 | gen_ftypetabs_h_SOURCES = gen_tables.c gen_tables.h ftypetab.h | 995 | -alpha_tables.h: gen_alpha_tables_h Makefile |
332 | gen_ftypetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ftypetab.h"' | 996 | - ./gen_alpha_tables_h --lowercase --i2s --s2i alpha_syscall > $@ |
333 | +gen_ftypetabs_h: $(gen_ftypetabs_h_SOURCES) | 997 | -endif |
334 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_ftypetabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 998 | - |
335 | ftypetabs.h: gen_ftypetabs_h Makefile | 999 | -if USE_ARMEB |
336 | ./gen_ftypetabs_h --lowercase --i2s --s2i ftype > $@ | 1000 | -gen_armeb_tables_h_SOURCES = gen_tables.c gen_tables.h armeb_table.h |
337 | 1001 | -gen_armeb_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="armeb_table.h"' | |
338 | gen_i386_tables_h_SOURCES = gen_tables.c gen_tables.h i386_table.h | 1002 | -armeb_tables.h: gen_armeb_tables_h Makefile |
339 | gen_i386_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="i386_table.h"' | 1003 | - ./gen_armeb_tables_h --lowercase --i2s --s2i armeb_syscall > $@ |
340 | +gen_i386_tables_h: $(gen_i386_tables_h_SOURCES) | 1004 | -endif |
341 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_i386_tables_h_CFLAGS) $(LDFLAGS) -o $@ $< | 1005 | - |
342 | i386_tables.h: gen_i386_tables_h Makefile | 1006 | -if USE_AARCH64 |
343 | ./gen_i386_tables_h --duplicate-ints --lowercase --i2s --s2i \ | 1007 | -gen_aarch64_tables_h_SOURCES = gen_tables.c gen_tables.h aarch64_table.h |
344 | i386_syscall > $@ | 1008 | -gen_aarch64_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="aarch64_table.h"' |
345 | 1009 | -aarch64_tables.h: gen_aarch64_tables_h Makefile | |
346 | gen_ia64_tables_h_SOURCES = gen_tables.c gen_tables.h ia64_table.h | 1010 | - ./gen_aarch64_tables_h --lowercase --i2s --s2i aarch64_syscall > $@ |
347 | gen_ia64_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ia64_table.h"' | 1011 | -endif |
348 | +gen_ia64_tables_h: $(gen_ia64_tables_h_SOURCES) | 1012 | - |
349 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_ia64_tables_h_CFLAGS) $(LDFLAGS) -o $@ $< | 1013 | -gen_errtabs_h_SOURCES = gen_tables.c gen_tables.h errtab.h |
350 | ia64_tables.h: gen_ia64_tables_h Makefile | 1014 | -gen_errtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="errtab.h"' |
351 | ./gen_ia64_tables_h --lowercase --i2s --s2i ia64_syscall > $@ | 1015 | -errtabs.h: gen_errtabs_h Makefile |
352 | 1016 | - ./gen_errtabs_h --duplicate-ints --uppercase --i2s --s2i err > $@ | |
353 | gen_machinetabs_h_SOURCES = gen_tables.c gen_tables.h machinetab.h | 1017 | - |
354 | gen_machinetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="machinetab.h"' | 1018 | -gen_fieldtabs_h_SOURCES = gen_tables.c gen_tables.h fieldtab.h |
355 | +gen_machinetabs_h: $(gen_machinetabs_h_SOURCES) | 1019 | -gen_fieldtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="fieldtab.h"' |
356 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_machinetabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 1020 | -fieldtabs.h: gen_fieldtabs_h Makefile |
357 | machinetabs.h: gen_machinetabs_h Makefile | 1021 | - ./gen_fieldtabs_h --duplicate-ints --lowercase --i2s --s2i field > $@ |
358 | ./gen_machinetabs_h --duplicate-ints --lowercase --i2s --s2i machine \ | 1022 | - |
359 | > $@ | 1023 | -gen_flagtabs_h_SOURCES = gen_tables.c gen_tables.h flagtab.h |
360 | 1024 | -gen_flagtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="flagtab.h"' | |
361 | gen_msg_typetabs_h_SOURCES = gen_tables.c gen_tables.h msg_typetab.h | 1025 | -flagtabs.h: gen_flagtabs_h Makefile |
362 | gen_msg_typetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="msg_typetab.h"' | 1026 | - ./gen_flagtabs_h --lowercase --i2s --s2i flag > $@ |
363 | +gen_msg_typetabs_h: $(gen_msg_typetabs_h_SOURCES) | 1027 | - |
364 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_msg_typetabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 1028 | -gen_ftypetabs_h_SOURCES = gen_tables.c gen_tables.h ftypetab.h |
365 | msg_typetabs.h: gen_msg_typetabs_h Makefile | 1029 | -gen_ftypetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ftypetab.h"' |
366 | ./gen_msg_typetabs_h --uppercase --i2s --s2i msg_type > $@ | 1030 | -ftypetabs.h: gen_ftypetabs_h Makefile |
367 | 1031 | - ./gen_ftypetabs_h --lowercase --i2s --s2i ftype > $@ | |
368 | gen_optabs_h_SOURCES = gen_tables.c gen_tables.h optab.h | 1032 | - |
369 | gen_optabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="optab.h"' | 1033 | -gen_i386_tables_h_SOURCES = gen_tables.c gen_tables.h i386_table.h |
370 | +gen_optabs_h: $(gen_optabs_h_SOURCES) | 1034 | -gen_i386_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="i386_table.h"' |
371 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_optabs_h_CFLAGS) $(LDFLAGS) -o $@ $< | 1035 | -i386_tables.h: gen_i386_tables_h Makefile |
372 | optabs.h: gen_optabs_h Makefile | 1036 | - ./gen_i386_tables_h --duplicate-ints --lowercase --i2s --s2i \ |
373 | ./gen_optabs_h --i2s op > $@ | 1037 | - i386_syscall > $@ |
374 | 1038 | - | |
375 | gen_ppc_tables_h_SOURCES = gen_tables.c gen_tables.h ppc_table.h | 1039 | -gen_ia64_tables_h_SOURCES = gen_tables.c gen_tables.h ia64_table.h |
376 | gen_ppc_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ppc_table.h"' | 1040 | -gen_ia64_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ia64_table.h"' |
377 | +gen_ppc_tables_h: $(gen_ppc_tables_h_SOURCES) | 1041 | -ia64_tables.h: gen_ia64_tables_h Makefile |
378 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_ppc_tables_h_CFLAGS) $(LDFLAGS) -o $@ $< | 1042 | - ./gen_ia64_tables_h --lowercase --i2s --s2i ia64_syscall > $@ |
379 | ppc_tables.h: gen_ppc_tables_h Makefile | 1043 | - |
380 | ./gen_ppc_tables_h --lowercase --i2s --s2i ppc_syscall > $@ | 1044 | -gen_machinetabs_h_SOURCES = gen_tables.c gen_tables.h machinetab.h |
381 | 1045 | -gen_machinetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="machinetab.h"' | |
382 | gen_s390_tables_h_SOURCES = gen_tables.c gen_tables.h s390_table.h | 1046 | -machinetabs.h: gen_machinetabs_h Makefile |
383 | gen_s390_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="s390_table.h"' | 1047 | - ./gen_machinetabs_h --duplicate-ints --lowercase --i2s --s2i machine \ |
384 | +gen_s390_tables_h: $(gen_s390_tables_h_SOURCES) | 1048 | - > $@ |
385 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_s390_tables_h_CFLAGS) $(LDFLAGS) -o $@ $< | 1049 | - |
386 | s390_tables.h: gen_s390_tables_h Makefile | 1050 | -gen_msg_typetabs_h_SOURCES = gen_tables.c gen_tables.h msg_typetab.h |
387 | ./gen_s390_tables_h --lowercase --i2s --s2i s390_syscall > $@ | 1051 | -gen_msg_typetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="msg_typetab.h"' |
388 | 1052 | -msg_typetabs.h: gen_msg_typetabs_h Makefile | |
389 | gen_s390x_tables_h_SOURCES = gen_tables.c gen_tables.h s390x_table.h | 1053 | - ./gen_msg_typetabs_h --uppercase --i2s --s2i msg_type > $@ |
390 | gen_s390x_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="s390x_table.h"' | 1054 | - |
391 | +gen_s390x_tables_h: $(gen_s390x_tables_h_SOURCES) | 1055 | -gen_optabs_h_SOURCES = gen_tables.c gen_tables.h optab.h |
392 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_s390x_tables_h_CFLAGS) $(LDFLAGS) -o $@ $< | 1056 | -gen_optabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="optab.h"' |
393 | s390x_tables.h: gen_s390x_tables_h Makefile | 1057 | -optabs.h: gen_optabs_h Makefile |
394 | ./gen_s390x_tables_h --lowercase --i2s --s2i s390x_syscall > $@ | 1058 | - ./gen_optabs_h --i2s op > $@ |
395 | 1059 | - | |
396 | gen_x86_64_tables_h_SOURCES = gen_tables.c gen_tables.h x86_64_table.h | 1060 | -gen_ppc_tables_h_SOURCES = gen_tables.c gen_tables.h ppc_table.h |
397 | gen_x86_64_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="x86_64_table.h"' | 1061 | -gen_ppc_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ppc_table.h"' |
398 | +gen_x86_64_tables_h: $(gen_x86_64_tables_h_SOURCES) | 1062 | -ppc_tables.h: gen_ppc_tables_h Makefile |
399 | + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_x86_64_tables_h_CFLAGS) $(LDFLAGS) -o $@ $< | 1063 | - ./gen_ppc_tables_h --lowercase --i2s --s2i ppc_syscall > $@ |
400 | x86_64_tables.h: gen_x86_64_tables_h Makefile | 1064 | - |
401 | ./gen_x86_64_tables_h --lowercase --i2s --s2i x86_64_syscall > $@ | 1065 | -gen_s390_tables_h_SOURCES = gen_tables.c gen_tables.h s390_table.h |
402 | Index: audit-2.3.2/configure.ac | 1066 | -gen_s390_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="s390_table.h"' |
403 | =================================================================== | 1067 | -s390_tables.h: gen_s390_tables_h Makefile |
404 | --- audit-2.3.2.orig/configure.ac | 1068 | - ./gen_s390_tables_h --lowercase --i2s --s2i s390_syscall > $@ |
405 | +++ audit-2.3.2/configure.ac | 1069 | - |
406 | @@ -79,6 +79,15 @@ if test x"$GCC" = x"yes"; then | 1070 | -gen_s390x_tables_h_SOURCES = gen_tables.c gen_tables.h s390x_table.h |
407 | esac | 1071 | -gen_s390x_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="s390x_table.h"' |
408 | fi | 1072 | -s390x_tables.h: gen_s390x_tables_h Makefile |
409 | 1073 | - ./gen_s390x_tables_h --lowercase --i2s --s2i s390x_syscall > $@ | |
410 | +if test -z "$CC_FOR_BUILD"; then | 1074 | - |
411 | + if test "x$cross_compiling" = "xno"; then | 1075 | -gen_x86_64_tables_h_SOURCES = gen_tables.c gen_tables.h x86_64_table.h |
412 | + CC_FOR_BUILD='$(CC)' | 1076 | -gen_x86_64_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="x86_64_table.h"' |
413 | + else | 1077 | -x86_64_tables.h: gen_x86_64_tables_h Makefile |
414 | + CC_FOR_BUILD=gcc | 1078 | - ./gen_x86_64_tables_h --lowercase --i2s --s2i x86_64_syscall > $@ |
415 | + fi | 1079 | diff --git a/lib/aarch64_tables.h b/lib/aarch64_tables.h |
416 | +fi | 1080 | new file mode 100644 |
417 | +AC_SUBST(CC_FOR_BUILD) | 1081 | index 0000000..571d6ee |
418 | + | 1082 | --- /dev/null |
419 | AC_MSG_CHECKING(whether to create python bindings) | 1083 | +++ b/lib/aarch64_tables.h |
420 | AC_ARG_WITH(python, | 1084 | @@ -0,0 +1,125 @@ |
421 | AS_HELP_STRING([--with-python],[enable building python bindings]), | 1085 | +/* This is a generated file, see Makefile.am for its inputs. */ |
1086 | +static const char aarch64_syscall_strings[] = "accept\0accept4\0acct\0add_key\0adjtimex\0bind\0brk\0capget\0capset\0chdir\0" | ||
1087 | + "chroot\0clock_adjtime\0clock_getres\0clock_gettime\0clock_nanosleep\0clock_settime\0clone\0close\0connect\0delete_module\0" | ||
1088 | + "dup\0dup3\0epoll_create1\0epoll_ctl\0epoll_pwait\0eventfd2\0execve\0exit\0exit_group\0faccessat\0" | ||
1089 | + "fallocate\0fanotify_init\0fanotify_mark\0fchdir\0fchmod\0fchmodat\0fchown\0fchownat\0fdatasync\0fgetxattr\0" | ||
1090 | + "finit_module\0flistxattr\0flock\0fremovexattr\0fsetxattr\0fsync\0futex\0get_mempolicy\0get_robust_list\0getcpu\0" | ||
1091 | + "getcwd\0getdents64\0getegid\0geteuid\0getgid\0getgroups\0getitimer\0getpeername\0getpgid\0getpid\0" | ||
1092 | + "getppid\0getpriority\0getresgid\0getresuid\0getrlimit\0getrusage\0getsid\0getsockname\0getsockopt\0gettid\0" | ||
1093 | + "gettimeofday\0getuid\0getxattr\0init_module\0inotify_add_watch\0inotify_init1\0inotify_rm_watch\0io_cancel\0io_destroy\0io_getevents\0" | ||
1094 | + "io_setup\0io_submit\0ioctl\0ioprio_get\0ioprio_set\0kcmp\0kexec_load\0keyctl\0kill\0lgetxattr\0" | ||
1095 | + "linkat\0listen\0listxattr\0llistxattr\0lookup_dcookie\0lremovexattr\0lsetxattr\0madvise\0mbind\0migrate_pages\0" | ||
1096 | + "mincore\0mkdirat\0mknodat\0mlock\0mlockall\0mount\0move_pages\0mprotect\0mq_getsetattr\0mq_notify\0" | ||
1097 | + "mq_open\0mq_timedreceive\0mq_timedsend\0mq_unlink\0mremap\0msgctl\0msgget\0msgrcv\0msgsnd\0msync\0" | ||
1098 | + "munlock\0munlockall\0munmap\0name_to_handle_at\0nanosleep\0nfsservctl\0open_by_handle_at\0openat\0perf_event_open\0personality\0" | ||
1099 | + "pipe2\0pivot_root\0ppoll\0prctl\0pread64\0preadv\0prlimit64\0process_vm_readv\0process_vm_writev\0pselect6\0" | ||
1100 | + "ptrace\0pwrite64\0pwritev\0quotactl\0read\0readahead\0readlinkat\0readv\0reboot\0recvfrom\0" | ||
1101 | + "recvmmsg\0recvmsg\0remap_file_pages\0removexattr\0renameat\0request_key\0restart_syscall\0rt_sigaction\0rt_sigpending\0rt_sigprocmask\0" | ||
1102 | + "rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0rt_sigtimedwait\0rt_tgsigqueueinfo\0sched_get_priority_max\0sched_get_priority_min\0sched_getaffinity\0sched_getparam\0sched_getscheduler\0" | ||
1103 | + "sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0sched_setscheduler\0sched_yield\0semctl\0semget\0semop\0semtimedop\0sendmmsg\0" | ||
1104 | + "sendmsg\0sendto\0set_mempolicy\0set_robust_list\0set_tid_address\0setdomainname\0setfsgid\0setfsuid\0setgid\0setgroups\0" | ||
1105 | + "sethostname\0setitimer\0setns\0setpgid\0setpriority\0setregid\0setresgid\0setresuid\0setreuid\0setrlimit\0" | ||
1106 | + "setsid\0setsockopt\0settimeofday\0setuid\0setxattr\0shmat\0shmctl\0shmdt\0shmget\0shutdown\0" | ||
1107 | + "sigaltstack\0signalfd4\0socket\0socketpair\0splice\0swapoff\0swapon\0symlinkat\0sync\0sync_file_range\0" | ||
1108 | + "syncfs\0sysinfo\0syslog\0tee\0tgkill\0timer_create\0timer_delete\0timer_getoverrun\0timer_gettime\0timer_settime\0" | ||
1109 | + "timerfd_create\0timerfd_gettime\0timerfd_settime\0times\0tkill\0umask\0umount2\0uname\0unlinkat\0unshare\0" | ||
1110 | + "utimensat\0vhangup\0vmsplice\0wait4\0waitid\0write\0writev"; | ||
1111 | +static const unsigned aarch64_syscall_s2i_s[] = { | ||
1112 | + 0,7,15,20,28,37,42,46,53,60, | ||
1113 | + 66,73,87,100,114,130,144,150,156,164, | ||
1114 | + 178,182,187,201,211,223,232,239,244,255, | ||
1115 | + 265,275,289,303,310,317,326,333,342,352, | ||
1116 | + 362,375,386,392,405,415,421,427,441,457, | ||
1117 | + 464,471,482,490,498,505,515,525,537,545, | ||
1118 | + 552,560,572,582,592,602,612,619,631,642, | ||
1119 | + 649,662,669,678,690,708,722,739,749,760, | ||
1120 | + 773,782,792,798,809,820,825,836,843,848, | ||
1121 | + 858,865,872,882,893,908,921,931,939,945, | ||
1122 | + 959,967,975,983,989,998,1004,1015,1024,1038, | ||
1123 | + 1048,1056,1072,1085,1095,1102,1109,1116,1123,1130, | ||
1124 | + 1136,1144,1155,1162,1180,1190,1201,1219,1226,1242, | ||
1125 | + 1254,1260,1271,1277,1283,1291,1298,1308,1325,1343, | ||
1126 | + 1352,1359,1368,1376,1385,1390,1400,1411,1417,1424, | ||
1127 | + 1433,1442,1450,1467,1479,1488,1500,1516,1529,1543, | ||
1128 | + 1558,1574,1587,1601,1617,1635,1658,1681,1699,1714, | ||
1129 | + 1733,1755,1773,1788,1807,1819,1826,1833,1839,1850, | ||
1130 | + 1859,1867,1874,1888,1904,1920,1934,1943,1952,1959, | ||
1131 | + 1969,1981,1991,1997,2005,2017,2026,2036,2046,2055, | ||
1132 | + 2065,2072,2083,2096,2103,2112,2118,2125,2131,2138, | ||
1133 | + 2147,2159,2169,2176,2187,2194,2202,2209,2219,2224, | ||
1134 | + 2240,2247,2255,2262,2266,2273,2286,2299,2316,2330, | ||
1135 | + 2344,2359,2375,2391,2397,2403,2409,2417,2423,2432, | ||
1136 | + 2440,2450,2458,2467,2473,2480,2486, | ||
1137 | +}; | ||
1138 | +static const int aarch64_syscall_s2i_i[] = { | ||
1139 | + 202,242,89,217,171,200,214,90,91,49, | ||
1140 | + 51,266,114,113,115,112,220,57,203,106, | ||
1141 | + 23,24,20,21,22,19,221,93,94,48, | ||
1142 | + 47,262,263,50,52,53,55,54,83,10, | ||
1143 | + 273,13,32,16,7,82,98,236,100,168, | ||
1144 | + 17,61,177,175,176,158,102,205,155,172, | ||
1145 | + 173,141,150,148,163,165,156,204,209,178, | ||
1146 | + 169,174,8,105,27,26,28,3,1,4, | ||
1147 | + 0,2,29,31,30,272,104,219,129,9, | ||
1148 | + 37,201,11,12,18,15,6,233,235,238, | ||
1149 | + 232,34,33,228,230,40,239,226,185,184, | ||
1150 | + 180,183,182,181,216,187,186,188,189,227, | ||
1151 | + 229,231,215,264,101,42,265,56,241,92, | ||
1152 | + 59,41,73,167,67,69,261,270,271,72, | ||
1153 | + 117,68,70,60,63,213,78,65,142,207, | ||
1154 | + 243,212,234,14,38,218,128,134,136,135, | ||
1155 | + 138,139,133,137,240,125,126,123,121,120, | ||
1156 | + 127,122,118,119,124,191,190,193,192,269, | ||
1157 | + 211,206,237,99,96,162,152,151,144,159, | ||
1158 | + 161,103,268,154,140,143,149,147,145,164, | ||
1159 | + 157,208,170,146,5,196,195,197,194,210, | ||
1160 | + 132,74,198,199,76,225,224,36,81,84, | ||
1161 | + 267,179,116,77,131,107,111,109,108,110, | ||
1162 | + 85,87,86,153,130,166,39,160,35,97, | ||
1163 | + 88,58,75,260,95,64,66, | ||
1164 | +}; | ||
1165 | +static int aarch64_syscall_s2i(const char *s, int *value) { | ||
1166 | + size_t len, i; | ||
1167 | + len = strlen(s); | ||
1168 | + { char copy[len + 1]; | ||
1169 | + for (i = 0; i < len; i++) { | ||
1170 | + char c = s[i]; | ||
1171 | + copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; | ||
1172 | + } | ||
1173 | + copy[i] = 0; | ||
1174 | + return s2i__(aarch64_syscall_strings, aarch64_syscall_s2i_s, aarch64_syscall_s2i_i, 247, copy, value); | ||
1175 | + } | ||
1176 | +} | ||
1177 | +static const unsigned aarch64_syscall_i2s_direct[] = { | ||
1178 | + 773,749,782,739,760,2103,921,405,669,848, | ||
1179 | + 352,872,882,375,1467,908,392,464,893,223, | ||
1180 | + 187,201,211,178,182,-1u,708,690,722,792, | ||
1181 | + 809,798,386,975,967,2423,2209,858,1479,2409, | ||
1182 | + 998,1260,1190,-1u,-1u,-1u,-1u,265,255,60, | ||
1183 | + 303,66,310,317,333,326,1219,150,2450,1254, | ||
1184 | + 1376,471,-1u,1385,2480,1411,2486,1283,1359,1291, | ||
1185 | + 1368,-1u,1343,1271,2159,2458,2187,2262,1400,-1u, | ||
1186 | + -1u,2219,415,342,2224,2344,2375,2359,2440,15, | ||
1187 | + 46,53,1242,239,244,2473,1904,2432,421,1888, | ||
1188 | + 441,1180,515,1981,825,678,164,2273,2316,2299, | ||
1189 | + 2330,2286,130,100,87,114,2255,1352,1773,1788, | ||
1190 | + 1714,1699,1755,1681,1807,1635,1658,1733,1500,843, | ||
1191 | + 2397,2266,2147,1587,1516,1543,1529,1601,1558,1574, | ||
1192 | + 2005,560,1417,2017,1952,2046,2096,2036,582,2026, | ||
1193 | + 572,1943,1934,2391,1997,537,612,2065,505,1959, | ||
1194 | + 2417,1969,1920,592,2055,602,2403,1277,457,649, | ||
1195 | + 2083,28,545,552,662,490,498,482,642,2247, | ||
1196 | + 1048,1085,1072,1056,1038,1024,1109,1102,1116,1123, | ||
1197 | + 1826,1819,1839,1833,2131,2118,2112,2125,2169,2176, | ||
1198 | + 37,865,0,156,619,525,1867,1424,2072,631, | ||
1199 | + 2138,1859,1442,1390,42,1155,1095,20,1488,836, | ||
1200 | + 144,232,-1u,-1u,2202,2194,1015,1130,983,1136, | ||
1201 | + 989,1144,959,931,1450,939,427,1874,945,1004, | ||
1202 | + 1617,1226,7,1433,-1u,-1u,-1u,-1u,-1u,-1u, | ||
1203 | + -1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u, | ||
1204 | + 2467,1298,275,289,1162,1201,73,2240,1991,1850, | ||
1205 | + 1308,1325,820,362, | ||
1206 | +}; | ||
1207 | +static const char *aarch64_syscall_i2s(int v) { | ||
1208 | + return i2s_direct__(aarch64_syscall_strings, aarch64_syscall_i2s_direct, 0, 273, v); | ||
1209 | +} | ||
1210 | diff --git a/lib/actiontabs.h b/lib/actiontabs.h | ||
1211 | new file mode 100644 | ||
1212 | index 0000000..a7a9e62 | ||
1213 | --- /dev/null | ||
1214 | +++ b/lib/actiontabs.h | ||
1215 | @@ -0,0 +1,26 @@ | ||
1216 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
1217 | +static const char action_strings[] = "always\0never\0possible"; | ||
1218 | +static const unsigned action_s2i_s[] = { | ||
1219 | + 0,7,13, | ||
1220 | +}; | ||
1221 | +static const int action_s2i_i[] = { | ||
1222 | + 2,0,1, | ||
1223 | +}; | ||
1224 | +static int action_s2i(const char *s, int *value) { | ||
1225 | + size_t len, i; | ||
1226 | + len = strlen(s); | ||
1227 | + { char copy[len + 1]; | ||
1228 | + for (i = 0; i < len; i++) { | ||
1229 | + char c = s[i]; | ||
1230 | + copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; | ||
1231 | + } | ||
1232 | + copy[i] = 0; | ||
1233 | + return s2i__(action_strings, action_s2i_s, action_s2i_i, 3, copy, value); | ||
1234 | + } | ||
1235 | +} | ||
1236 | +static const unsigned action_i2s_direct[] = { | ||
1237 | + 7,13,0, | ||
1238 | +}; | ||
1239 | +static const char *action_i2s(int v) { | ||
1240 | + return i2s_direct__(action_strings, action_i2s_direct, 0, 2, v); | ||
1241 | +} | ||
1242 | diff --git a/lib/alpha_tables.h b/lib/alpha_tables.h | ||
1243 | new file mode 100644 | ||
1244 | index 0000000..b57e54c | ||
1245 | --- /dev/null | ||
1246 | +++ b/lib/alpha_tables.h | ||
1247 | @@ -0,0 +1,196 @@ | ||
1248 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
1249 | +static const char alpha_syscall_strings[] = "_sysctl\0accept\0accept4\0access\0acct\0add_key\0adjtimex\0afs_syscall\0bdflush\0bind\0" | ||
1250 | + "brk\0capget\0capset\0chdir\0chmod\0chown\0chroot\0clock_adjtime\0clone\0close\0" | ||
1251 | + "connect\0create_module\0delete_module\0dipc\0dup\0dup2\0dup3\0epoll_create\0epoll_create1\0epoll_ctl\0" | ||
1252 | + "epoll_pwait\0epoll_wait\0eventfd\0eventfd2\0exec_with_loader\0execve\0exit\0exit_group\0faccessat\0fadvise64\0" | ||
1253 | + "fallocate\0fanotify_init\0fanotify_mark\0fchdir\0fchmod\0fchmodat\0fchown\0fchownat\0fcntl\0fdatasync\0" | ||
1254 | + "fgetxattr\0flistxattr\0flock\0fork\0fremovexattr\0fsetxattr\0fstat\0fstat64\0fstatat64\0fstatfs\0" | ||
1255 | + "fsync\0ftruncate\0futex\0futimesat\0get_kernel_syms\0get_mempolicy\0get_robust_list\0getcpu\0getcwd\0getdents\0" | ||
1256 | + "getdents64\0getdtablesize\0getgroups\0gethostname\0getitimer\0getpagesize\0getpeername\0getpgid\0getpgrp\0getpriority\0" | ||
1257 | + "getresgid\0getresuid\0getrlimit\0getrusage\0getsid\0getsockname\0getsockopt\0gettid\0gettimeofday\0getxattr\0" | ||
1258 | + "getxgid\0getxpid\0getxuid\0init_module\0inotify_add_watch\0inotify_init\0inotify_init1\0inotify_rm_watch\0io_cancel\0io_destroy\0" | ||
1259 | + "io_getevents\0io_setup\0io_submit\0ioctl\0ioprio_get\0ioprio_set\0kexec_load\0keyctl\0kill\0lchown\0" | ||
1260 | + "lgetxattr\0link\0linkat\0listen\0listxattr\0llistxattr\0lookup_dcookie\0lremovexattr\0lseek\0lsetxattr\0" | ||
1261 | + "lstat\0lstat64\0madvise\0mbind\0migrate_pages\0mincore\0mkdir\0mkdirat\0mknod\0mknodat\0" | ||
1262 | + "mlock\0mlockall\0mmap\0mount\0move_pages\0mprotect\0mq_getsetattr\0mq_notify\0mq_open\0mq_timedreceive\0" | ||
1263 | + "mq_timedsend\0mq_unlink\0mremap\0msgctl\0msgget\0msgrcv\0msgsnd\0msync\0munlock\0munlockall\0" | ||
1264 | + "munmap\0name_to_handle_at\0nanosleep\0nfsservctl\0old_adjtimex\0oldumount\0open\0open_by_handle_at\0openat\0osf_adjtime\0" | ||
1265 | + "osf_afs_syscall\0osf_alt_plock\0osf_alt_setsid\0osf_alt_sigpending\0osf_asynch_daemon\0osf_audcntl\0osf_audgen\0osf_chflags\0osf_execve\0osf_exportfs\0" | ||
1266 | + "osf_fchflags\0osf_fdatasync\0osf_fpathconf\0osf_fstatfs\0osf_fuser\0osf_getaddressconf\0osf_getdirentries\0osf_getdomainname\0osf_getfh\0osf_getfsstat\0" | ||
1267 | + "osf_gethostid\0osf_getitimer\0osf_getlogin\0osf_getmnt\0osf_getrusage\0osf_getsysinfo\0osf_gettimeofday\0osf_kloadcall\0osf_kmodcall\0osf_memcntl\0" | ||
1268 | + "osf_mincore\0osf_mount\0osf_mremap\0osf_msfs_syscall\0osf_msleep\0osf_mvalid\0osf_mwakeup\0osf_naccept\0osf_nfssvc\0osf_ngetpeername\0" | ||
1269 | + "osf_ngetsockname\0osf_nrecvfrom\0osf_nrecvmsg\0osf_nsendmsg\0osf_ntp_adjtime\0osf_ntp_gettime\0osf_old_creat\0osf_old_fstat\0osf_old_getpgrp\0osf_old_killpg\0" | ||
1270 | + "osf_old_lstat\0osf_old_open\0osf_old_sigaction\0osf_old_sigblock\0osf_old_sigreturn\0osf_old_sigsetmask\0osf_old_sigvec\0osf_old_stat\0osf_old_vadvise\0osf_old_vtrace\0" | ||
1271 | + "osf_old_wait\0osf_oldquota\0osf_pathconf\0osf_pid_block\0osf_pid_unblock\0osf_plock\0osf_priocntlset\0osf_profil\0osf_proplist_syscall\0osf_reboot\0" | ||
1272 | + "osf_revoke\0osf_sbrk\0osf_security\0osf_select\0osf_set_program_attributes\0osf_set_speculative\0osf_sethostid\0osf_setitimer\0osf_setlogin\0osf_setsysinfo\0" | ||
1273 | + "osf_settimeofday\0osf_shmat\0osf_signal\0osf_sigprocmask\0osf_sigsendset\0osf_sigstack\0osf_sigwaitprim\0osf_sstk\0osf_statfs\0osf_subsys_info\0" | ||
1274 | + "osf_swapctl\0osf_swapon\0osf_syscall\0osf_sysinfo\0osf_table\0osf_uadmin\0osf_usleep_thread\0osf_uswitch\0osf_utc_adjtime\0osf_utc_gettime\0" | ||
1275 | + "osf_utimes\0osf_utsname\0osf_wait4\0osf_waitid\0pciconfig_iobase\0pciconfig_read\0pciconfig_write\0perf_event_open\0personality\0pipe\0" | ||
1276 | + "pipe2\0pivot_root\0poll\0ppoll\0prctl\0pread\0preadv\0prlimit64\0process_vm_readv\0process_vm_writev\0" | ||
1277 | + "pselect6\0ptrace\0pwrite\0pwritev\0query_module\0quotactl\0read\0readahead\0readlink\0readlinkat\0" | ||
1278 | + "readv\0reboot\0recv\0recvfrom\0recvmmsg\0recvmsg\0remap_file_pages\0removexattr\0rename\0renameat\0" | ||
1279 | + "request_key\0restart_syscall\0rmdir\0rt_sigaction\0rt_sigpending\0rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0rt_sigtimedwait\0" | ||
1280 | + "rt_tgsigqueueinfo\0sched_get_priority_max\0sched_get_priority_min\0sched_getaffinity\0sched_getparam\0sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0sched_setscheduler\0" | ||
1281 | + "sched_yield\0select\0semctl\0semget\0semop\0send\0sendfile\0sendmmsg\0sendmsg\0sendto\0" | ||
1282 | + "set_mempolicy\0set_robust_list\0set_tid_address\0setdomainname\0setfsgid\0setfsuid\0setgid\0setgroups\0sethae\0sethostname\0" | ||
1283 | + "setitimer\0setns\0setpgid\0setpgrp\0setpriority\0setregid\0setresgid\0setresuid\0setreuid\0setrlimit\0" | ||
1284 | + "setsid\0setsockopt\0settimeofday\0setuid\0setxattr\0shmctl\0shmdt\0shmget\0shutdown\0sigaction\0" | ||
1285 | + "sigaltstack\0signalfd\0signalfd4\0sigpending\0sigreturn\0sigsuspend\0socket\0socketpair\0splice\0stat\0" | ||
1286 | + "stat64\0statfs\0swapoff\0swapon\0symlink\0symlinkat\0sync\0sync_file_range\0syncfs\0sysfs\0" | ||
1287 | + "sysinfo\0syslog\0tee\0tgkill\0timerfd\0timerfd_create\0timerfd_gettime\0timerfd_settime\0times\0tkill\0" | ||
1288 | + "truncate\0tuxcall\0umask\0umount\0uname\0unlink\0unlinkat\0unshare\0uselib\0ustat\0" | ||
1289 | + "utimensat\0utimes\0vfork\0vhangup\0vmsplice\0vserver\0wait4\0waitid\0write\0writev"; | ||
1290 | +static const unsigned alpha_syscall_s2i_s[] = { | ||
1291 | + 0,8,15,23,30,35,43,52,64,72, | ||
1292 | + 77,81,88,95,101,107,113,120,134,140, | ||
1293 | + 146,154,168,182,187,191,196,201,214,228, | ||
1294 | + 238,250,261,269,278,295,302,307,318,328, | ||
1295 | + 338,348,362,376,383,390,399,406,415,421, | ||
1296 | + 431,441,452,458,463,476,486,492,500,510, | ||
1297 | + 518,524,534,540,550,566,580,596,603,610, | ||
1298 | + 619,630,644,654,666,676,688,700,708,716, | ||
1299 | + 728,738,748,758,768,775,787,798,805,818, | ||
1300 | + 827,835,843,851,863,881,894,908,925,935, | ||
1301 | + 946,959,968,978,984,995,1006,1017,1024,1029, | ||
1302 | + 1036,1046,1051,1058,1065,1075,1086,1101,1114,1120, | ||
1303 | + 1130,1136,1144,1152,1158,1172,1180,1186,1194,1200, | ||
1304 | + 1208,1214,1223,1228,1234,1245,1254,1268,1278,1286, | ||
1305 | + 1302,1315,1325,1332,1339,1346,1353,1360,1366,1374, | ||
1306 | + 1385,1392,1410,1420,1431,1444,1454,1459,1477,1484, | ||
1307 | + 1496,1512,1526,1541,1560,1578,1590,1601,1613,1624, | ||
1308 | + 1637,1650,1664,1678,1690,1700,1719,1737,1755,1765, | ||
1309 | + 1779,1793,1807,1820,1831,1845,1860,1877,1891,1904, | ||
1310 | + 1916,1928,1938,1949,1966,1977,1988,2000,2012,2023, | ||
1311 | + 2040,2057,2071,2084,2097,2113,2129,2143,2157,2173, | ||
1312 | + 2188,2202,2215,2233,2250,2268,2287,2302,2315,2331, | ||
1313 | + 2346,2359,2372,2385,2399,2415,2425,2441,2452,2473, | ||
1314 | + 2484,2495,2504,2517,2528,2555,2575,2589,2603,2616, | ||
1315 | + 2631,2648,2658,2669,2685,2700,2713,2729,2738,2749, | ||
1316 | + 2765,2777,2788,2800,2812,2822,2833,2851,2863,2879, | ||
1317 | + 2895,2906,2918,2928,2939,2956,2971,2987,3003,3015, | ||
1318 | + 3020,3026,3037,3042,3048,3054,3060,3067,3077,3094, | ||
1319 | + 3112,3121,3128,3135,3143,3156,3165,3170,3180,3189, | ||
1320 | + 3200,3206,3213,3218,3227,3236,3244,3261,3273,3280, | ||
1321 | + 3289,3301,3317,3323,3336,3350,3365,3381,3394,3408, | ||
1322 | + 3424,3442,3465,3488,3506,3521,3540,3562,3580,3595, | ||
1323 | + 3614,3626,3633,3640,3647,3653,3658,3667,3676,3684, | ||
1324 | + 3691,3705,3721,3737,3751,3760,3769,3776,3786,3793, | ||
1325 | + 3805,3815,3821,3829,3837,3849,3858,3868,3878,3887, | ||
1326 | + 3897,3904,3915,3928,3935,3944,3951,3957,3964,3973, | ||
1327 | + 3983,3995,4004,4014,4025,4035,4046,4053,4064,4071, | ||
1328 | + 4076,4083,4090,4098,4105,4113,4123,4128,4144,4151, | ||
1329 | + 4157,4165,4172,4176,4183,4191,4206,4222,4238,4244, | ||
1330 | + 4250,4259,4267,4273,4280,4286,4293,4302,4310,4317, | ||
1331 | + 4323,4333,4340,4346,4354,4363,4371,4377,4384,4390, | ||
1332 | +}; | ||
1333 | +static const int alpha_syscall_s2i_i[] = { | ||
1334 | + 319,99,502,33,51,439,366,338,300,104, | ||
1335 | + 17,368,369,12,15,16,61,499,312,6, | ||
1336 | + 98,306,308,373,41,90,487,407,486,408, | ||
1337 | + 474,409,478,485,25,59,1,405,462,413, | ||
1338 | + 480,494,495,13,124,461,123,453,92,447, | ||
1339 | + 387,390,131,2,393,384,91,427,455,329, | ||
1340 | + 95,130,394,454,309,430,467,473,367,305, | ||
1341 | + 377,89,79,87,361,64,141,233,63,100, | ||
1342 | + 372,344,144,364,234,150,118,378,359,385, | ||
1343 | + 47,20,24,307,445,444,489,446,402,399, | ||
1344 | + 400,398,401,54,443,442,448,441,37,208, | ||
1345 | + 386,9,458,106,388,389,406,392,19,383, | ||
1346 | + 68,426,75,429,449,375,136,451,14,452, | ||
1347 | + 314,316,71,302,472,74,437,436,432,435, | ||
1348 | + 434,433,341,200,201,202,203,217,315,317, | ||
1349 | + 73,497,340,342,303,321,45,498,450,140, | ||
1350 | + 258,181,188,187,163,252,253,34,11,169, | ||
1351 | + 35,261,248,161,243,214,159,165,164,18, | ||
1352 | + 142,86,49,184,117,256,116,223,77,260, | ||
1353 | + 78,21,65,240,215,213,216,30,158,31, | ||
1354 | + 32,29,27,28,245,246,8,62,81,146, | ||
1355 | + 40,5,46,109,139,110,108,38,72,115, | ||
1356 | + 84,149,247,153,154,107,237,44,244,55, | ||
1357 | + 56,69,222,93,43,239,143,83,50,257, | ||
1358 | + 122,209,218,48,238,112,157,70,160,255, | ||
1359 | + 259,199,0,241,85,242,251,250,220,219, | ||
1360 | + 138,207,7,236,376,345,346,493,324,42, | ||
1361 | + 488,374,94,464,348,349,490,496,504,505, | ||
1362 | + 463,26,350,491,347,148,3,379,58,460, | ||
1363 | + 120,311,102,125,479,113,410,391,128,457, | ||
1364 | + 440,412,137,352,354,353,356,351,357,355, | ||
1365 | + 492,335,336,396,331,333,337,395,330,332, | ||
1366 | + 334,358,204,205,206,101,370,503,114,133, | ||
1367 | + 431,466,411,166,326,325,132,80,301,88, | ||
1368 | + 362,501,39,82,96,127,371,343,126,145, | ||
1369 | + 147,105,360,23,382,210,211,212,134,156, | ||
1370 | + 235,476,484,52,103,111,97,135,468,67, | ||
1371 | + 425,328,304,322,57,459,36,469,500,254, | ||
1372 | + 318,310,470,424,477,481,483,482,323,381, | ||
1373 | + 129,397,60,22,339,10,456,465,313,327, | ||
1374 | + 475,363,66,76,471,428,365,438,4,121, | ||
1375 | +}; | ||
1376 | +static int alpha_syscall_s2i(const char *s, int *value) { | ||
1377 | + size_t len, i; | ||
1378 | + len = strlen(s); | ||
1379 | + { char copy[len + 1]; | ||
1380 | + for (i = 0; i < len; i++) { | ||
1381 | + char c = s[i]; | ||
1382 | + copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; | ||
1383 | + } | ||
1384 | + copy[i] = 0; | ||
1385 | + return s2i__(alpha_syscall_strings, alpha_syscall_s2i_s, alpha_syscall_s2i_i, 410, copy, value); | ||
1386 | + } | ||
1387 | +} | ||
1388 | +static const unsigned alpha_syscall_i2s_direct[] = { | ||
1389 | + 2788,302,458,3165,4384,2202,140,2918,2129,1046, | ||
1390 | + 4286,1613,95,376,1194,101,107,77,1765,1114, | ||
1391 | + 835,1928,4273,3928,843,278,3121,2071,2084,2057, | ||
1392 | + 2000,2023,2040,23,1601,1637,4123,1024,2302,3821, | ||
1393 | + 2188,187,3015,2528,2441,1454,2215,827,2669,1807, | ||
1394 | + 2603,30,4014,-1u,978,2473,2484,4105,3180,295, | ||
1395 | + 4267,113,2143,708,676,1938,4340,4071,1130,2495, | ||
1396 | + 2729,1223,2315,1385,1245,1144,4346,1891,1916,644, | ||
1397 | + 3776,2157,3829,2589,2346,2812,1793,654,3793,630, | ||
1398 | + 191,486,415,2517,3037,518,3837,4046,146,8, | ||
1399 | + 716,3653,3213,4025,72,3904,1058,2415,2287,2233, | ||
1400 | + 2268,4035,2700,3236,3676,2331,1860,1831,787,-1u, | ||
1401 | + 3200,4390,2631,399,383,3218,3878,3849,3273,4250, | ||
1402 | + 524,452,3769,3684,3964,4053,1180,3317,2895,2250, | ||
1403 | + 1484,688,1779,2575,748,3887,2173,3897,3156,2359, | ||
1404 | + 775,-1u,-1u,2385,2399,-1u,3973,2713,2012,1719, | ||
1405 | + 2738,1678,-1u,1560,1755,1737,3737,-1u,-1u,1624, | ||
1406 | + -1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u, | ||
1407 | + -1u,1512,-1u,-1u,1820,-1u,-1u,1541,1526,-1u, | ||
1408 | + -1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,2777, | ||
1409 | + 1332,1339,1346,1353,3633,3640,3647,2906,1029,2648, | ||
1410 | + 3944,3951,3957,1977,1700,1966,1988,1360,2658,2879, | ||
1411 | + 2863,-1u,2504,1877,-1u,-1u,-1u,-1u,-1u,-1u, | ||
1412 | + -1u,-1u,-1u,700,768,3983,2928,2425,2685,2555, | ||
1413 | + 1949,2800,2822,1690,2452,2097,2113,2372,1664,-1u, | ||
1414 | + 2851,2833,1578,1590,4151,2749,1845,2616,1496,2765, | ||
1415 | + 1904,1650,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u, | ||
1416 | + -1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u, | ||
1417 | + -1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u, | ||
1418 | + -1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u, | ||
1419 | + 64,3786,1228,1431,4090,610,154,851,168,550, | ||
1420 | + 4165,3206,134,4310,1208,1366,1214,1374,4157,0, | ||
1421 | + -1u,1444,4098,4238,3003,3760,3751,4317,4083,510, | ||
1422 | + 3580,3506,3595,3521,3614,3442,3465,3540,52,4280, | ||
1423 | + 1410,1325,1420,3868,738,2956,2971,3143,3048,3054, | ||
1424 | + 3128,3381,3323,3350,3336,3408,3365,3394,3626,805, | ||
1425 | + 3915,666,3805,4333,758,4371,43,603,81,88, | ||
1426 | + 3658,3858,728,182,3026,1172,2939,619,798,3170, | ||
1427 | + -1u,4244,3935,1120,476,818,1036,431,1065,1075, | ||
1428 | + 441,3261,1101,463,534,3562,3488,4259,959,935, | ||
1429 | + 946,968,925,-1u,-1u,307,1086,201,228,250, | ||
1430 | + 3244,3721,3301,328,-1u,-1u,-1u,-1u,-1u,-1u, | ||
1431 | + -1u,-1u,-1u,-1u,4176,4076,1136,492,4363,1152, | ||
1432 | + 566,3691,1278,1315,1302,1286,1268,1254,4377,35, | ||
1433 | + 3289,1017,995,984,881,863,908,421,1006,1158, | ||
1434 | + 1477,1186,1200,406,540,500,4293,3280,1051,4113, | ||
1435 | + 3189,390,318,3112,3042,4302,3705,580,4064,4128, | ||
1436 | + 4172,4354,1234,596,238,4323,3995,4183,261,3227, | ||
1437 | + 338,4191,4222,4206,4004,269,214,196,3020,894, | ||
1438 | + 3060,3135,3424,2987,348,362,3067,1392,1459,120, | ||
1439 | + 4144,3815,15,3667,3077,3094, | ||
1440 | +}; | ||
1441 | +static const char *alpha_syscall_i2s(int v) { | ||
1442 | + return i2s_direct__(alpha_syscall_strings, alpha_syscall_i2s_direct, 0, 505, v); | ||
1443 | +} | ||
1444 | diff --git a/lib/armeb_tables.h b/lib/armeb_tables.h | ||
1445 | new file mode 100644 | ||
1446 | index 0000000..dd2bf5f | ||
1447 | --- /dev/null | ||
1448 | +++ b/lib/armeb_tables.h | ||
1449 | @@ -0,0 +1,165 @@ | ||
1450 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
1451 | +static const char armeb_syscall_strings[] = "accept\0accept4\0access\0acct\0add_key\0adjtimex\0alarm\0bdflush\0bind\0brk\0" | ||
1452 | + "capget\0capset\0chdir\0chmod\0chown\0chown32\0chroot\0clock_adjtime\0clock_getres\0clock_gettime\0" | ||
1453 | + "clock_nanosleep\0clock_settime\0clone\0close\0connect\0creat\0delete_module\0dup\0dup2\0dup3\0" | ||
1454 | + "epoll_create\0epoll_create1\0epoll_ctl\0epoll_wait\0eventfd\0eventfd2\0execve\0exit\0exit_group\0faccessat\0" | ||
1455 | + "fadvise64_64\0fallocate\0fanotify_init\0fanotify_mark\0fchdir\0fchmod\0fchmodat\0fchown\0fchown32\0fchownat\0" | ||
1456 | + "fcntl\0fcntl64\0fdatasync\0fgetxattr\0finit_module\0flistxattr\0flock\0fork\0fremovexattr\0fsetxattr\0" | ||
1457 | + "fstat\0fstat64\0fstatat64\0fstatfs\0fstatfs64\0fsync\0ftruncate\0ftruncate64\0futex\0futimesat\0" | ||
1458 | + "get_mempolicy\0get_robust_list\0getcpu\0getcwd\0getdents\0getdents64\0getegid\0getegid32\0geteuid\0geteuid32\0" | ||
1459 | + "getgid\0getgid32\0getgroups\0getgroups32\0getitimer\0getpeername\0getpgid\0getpgrp\0getpid\0getppid\0" | ||
1460 | + "getpriority\0getresgid\0getresgid32\0getresuid\0getresuid32\0getrlimit\0getrusage\0getsid\0getsockname\0getsockopt\0" | ||
1461 | + "gettid\0gettimeofday\0getuid\0getuid32\0getxattr\0init_module\0inotify_add_watch\0inotify_init\0inotify_init1\0inotify_rm_watch\0" | ||
1462 | + "io_cancel\0io_destroy\0io_getevents\0io_setup\0io_submit\0ioctl\0ioprio_get\0ioprio_set\0ipc\0kcmp\0" | ||
1463 | + "kexec_load\0keyctl\0kill\0lchown\0lchown32\0lgetxattr\0link\0linkat\0listen\0listxattr\0" | ||
1464 | + "llistxattr\0llseek\0lookup_dcookie\0lremovexattr\0lseek\0lsetxattr\0lstat\0lstat64\0madvise\0mbind\0" | ||
1465 | + "mincore\0mkdir\0mkdirat\0mknod\0mknodat\0mlock\0mlockall\0mmap\0mmap2\0mount\0" | ||
1466 | + "move_pages\0mprotect\0mq_getsetattr\0mq_notify\0mq_open\0mq_timedreceive\0mq_timedsend\0mq_unlink\0mremap\0msgctl\0" | ||
1467 | + "msgget\0msgrcv\0msgsnd\0msync\0munlock\0munlockall\0munmap\0name_to_handle_at\0nanosleep\0newselect\0" | ||
1468 | + "nfsservctl\0nice\0open\0open_by_handle_at\0openat\0pause\0pciconfig_iobase\0pciconfig_read\0pciconfig_write\0perf_event_open\0" | ||
1469 | + "personality\0pipe\0pipe2\0pivot_root\0poll\0prctl\0pread64\0preadv\0prlimit64\0process_vm_readv\0" | ||
1470 | + "process_vm_writev\0ptrace\0pwrite64\0pwritev\0quotactl\0read\0readahead\0readdir\0readlink\0readlinkat\0" | ||
1471 | + "readv\0reboot\0recv\0recvfrom\0recvmmsg\0recvmsg\0remap_file_pages\0removexattr\0rename\0renameat\0" | ||
1472 | + "request_key\0restart_syscall\0rmdir\0rt_sigaction\0rt_sigpending\0rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0rt_sigtimedwait\0" | ||
1473 | + "rt_tgsigqueueinfo\0sched_get_priority_max\0sched_get_priority_min\0sched_getaffinity\0sched_getparam\0sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0sched_setscheduler\0" | ||
1474 | + "sched_yield\0select\0semctl\0semget\0semop\0semtimedop\0send\0sendfile\0sendfile64\0sendmmsg\0" | ||
1475 | + "sendmsg\0sendto\0set_mempolicy\0set_robust_list\0set_tid_address\0setdomainname\0setfsgid\0setfsgid32\0setfsuid\0setfsuid32\0" | ||
1476 | + "setgid\0setgid32\0setgroups\0setgroups32\0sethostname\0setitimer\0setns\0setpgid\0setpriority\0setregid\0" | ||
1477 | + "setregid32\0setresgid\0setresgid32\0setresuid\0setresuid32\0setreuid\0setreuid32\0setrlimit\0setsid\0setsockopt\0" | ||
1478 | + "settimeofday\0setuid\0setuid32\0setxattr\0shmat\0shmctl\0shmdt\0shmget\0shutdown\0sigaction\0" | ||
1479 | + "sigaltstack\0signalfd\0signalfd4\0sigpending\0sigprocmask\0sigreturn\0sigsuspend\0socket\0socketcall\0socketpair\0" | ||
1480 | + "splice\0stat\0stat64\0statfs\0statfs64\0stime\0swapoff\0swapon\0symlink\0symlinkat\0" | ||
1481 | + "sync\0sync_file_range\0syncfs\0syscall\0sysctl\0sysfs\0sysinfo\0syslog\0tee\0tgkill\0" | ||
1482 | + "time\0timer_create\0timer_delete\0timer_getoverrun\0timer_gettime\0timer_settime\0timerfd_create\0timerfd_gettime\0timerfd_settime\0times\0" | ||
1483 | + "tkill\0truncate\0truncate64\0ugetrlimit\0umask\0umount\0umount2\0uname\0unlink\0unlinkat\0" | ||
1484 | + "unshare\0uselib\0ustat\0utime\0utimensat\0utimes\0vfork\0vhangup\0vmsplice\0vserver\0" | ||
1485 | + "wait4\0waitid\0write\0writev"; | ||
1486 | +static const unsigned armeb_syscall_s2i_s[] = { | ||
1487 | + 0,7,15,22,27,35,44,50,58,63, | ||
1488 | + 67,74,81,87,93,99,107,114,128,141, | ||
1489 | + 155,171,185,191,197,205,211,225,229,234, | ||
1490 | + 239,252,266,276,287,295,304,311,316,327, | ||
1491 | + 337,350,360,374,388,395,402,411,418,427, | ||
1492 | + 436,442,450,460,470,483,494,500,505,518, | ||
1493 | + 528,534,542,552,560,570,576,586,598,604, | ||
1494 | + 614,628,644,651,658,667,678,686,696,704, | ||
1495 | + 714,721,730,740,752,762,774,782,790,797, | ||
1496 | + 805,817,827,839,849,861,871,881,888,900, | ||
1497 | + 911,918,931,938,947,956,968,986,999,1013, | ||
1498 | + 1030,1040,1051,1064,1073,1083,1089,1100,1111,1115, | ||
1499 | + 1120,1131,1138,1143,1150,1159,1169,1174,1181,1188, | ||
1500 | + 1198,1209,1216,1231,1244,1250,1260,1266,1274,1282, | ||
1501 | + 1288,1296,1302,1310,1316,1324,1330,1339,1344,1350, | ||
1502 | + 1356,1367,1376,1390,1400,1408,1424,1437,1447,1454, | ||
1503 | + 1461,1468,1475,1482,1488,1496,1507,1514,1532,1542, | ||
1504 | + 1552,1563,1568,1573,1591,1598,1604,1621,1636,1652, | ||
1505 | + 1668,1680,1685,1691,1702,1707,1713,1721,1728,1738, | ||
1506 | + 1755,1773,1780,1789,1797,1806,1811,1821,1829,1838, | ||
1507 | + 1849,1855,1862,1867,1876,1885,1893,1910,1922,1929, | ||
1508 | + 1938,1950,1966,1972,1985,1999,2014,2030,2043,2057, | ||
1509 | + 2073,2091,2114,2137,2155,2170,2189,2211,2229,2244, | ||
1510 | + 2263,2275,2282,2289,2296,2302,2313,2318,2327,2338, | ||
1511 | + 2347,2355,2362,2376,2392,2408,2422,2431,2442,2451, | ||
1512 | + 2462,2469,2478,2488,2500,2512,2522,2528,2536,2548, | ||
1513 | + 2557,2568,2578,2590,2600,2612,2621,2632,2642,2649, | ||
1514 | + 2660,2673,2680,2689,2698,2704,2711,2717,2724,2733, | ||
1515 | + 2743,2755,2764,2774,2785,2797,2807,2818,2825,2836, | ||
1516 | + 2847,2854,2859,2866,2873,2882,2888,2896,2903,2911, | ||
1517 | + 2921,2926,2942,2949,2957,2964,2970,2978,2985,2989, | ||
1518 | + 2996,3001,3014,3027,3044,3058,3072,3087,3103,3119, | ||
1519 | + 3125,3131,3140,3151,3162,3168,3175,3183,3189,3196, | ||
1520 | + 3205,3213,3220,3226,3232,3242,3249,3255,3263,3272, | ||
1521 | + 3280,3286,3293,3299, | ||
1522 | +}; | ||
1523 | +static const int armeb_syscall_s2i_i[] = { | ||
1524 | + 285,366,33,51,309,124,27,134,282,45, | ||
1525 | + 184,185,12,15,182,212,61,372,264,263, | ||
1526 | + 265,262,120,6,283,8,129,41,63,358, | ||
1527 | + 250,357,251,252,351,356,11,1,248,334, | ||
1528 | + 270,352,367,368,133,94,333,95,207,325, | ||
1529 | + 55,221,148,231,379,234,143,2,237,228, | ||
1530 | + 108,197,327,100,267,118,93,194,240,326, | ||
1531 | + 320,339,345,183,141,217,50,202,49,201, | ||
1532 | + 47,200,80,205,105,287,132,65,20,64, | ||
1533 | + 96,171,211,165,209,76,77,147,286,295, | ||
1534 | + 224,78,24,199,229,128,317,316,360,318, | ||
1535 | + 247,244,245,243,246,54,315,314,117,378, | ||
1536 | + 347,311,37,16,198,230,9,330,284,232, | ||
1537 | + 233,140,249,236,19,227,107,196,220,319, | ||
1538 | + 219,39,323,14,324,150,152,90,192,21, | ||
1539 | + 344,125,279,278,274,277,276,275,163,304, | ||
1540 | + 303,302,301,144,151,153,91,370,162,142, | ||
1541 | + 169,34,5,371,322,29,271,272,273,364, | ||
1542 | + 136,42,359,218,168,172,180,361,369,376, | ||
1543 | + 377,26,181,362,131,3,225,89,85,332, | ||
1544 | + 145,88,291,292,365,297,253,235,38,329, | ||
1545 | + 310,0,40,174,176,175,178,173,179,177, | ||
1546 | + 363,159,160,242,155,157,161,241,154,156, | ||
1547 | + 158,82,300,299,298,312,289,187,239,374, | ||
1548 | + 296,290,321,338,256,121,139,216,138,215, | ||
1549 | + 46,214,81,206,74,104,375,57,97,71, | ||
1550 | + 204,170,210,164,208,70,203,75,66,294, | ||
1551 | + 79,23,213,226,305,308,306,307,293,67, | ||
1552 | + 186,349,355,73,126,119,72,281,102,288, | ||
1553 | + 340,106,195,99,266,25,115,87,83,331, | ||
1554 | + 36,341,373,113,149,135,116,103,342,268, | ||
1555 | + 13,257,261,260,259,258,350,354,353,43, | ||
1556 | + 238,92,193,191,60,22,52,122,10,328, | ||
1557 | + 337,86,62,30,348,269,190,111,343,313, | ||
1558 | + 114,280,4,146, | ||
1559 | +}; | ||
1560 | +static int armeb_syscall_s2i(const char *s, int *value) { | ||
1561 | + size_t len, i; | ||
1562 | + len = strlen(s); | ||
1563 | + { char copy[len + 1]; | ||
1564 | + for (i = 0; i < len; i++) { | ||
1565 | + char c = s[i]; | ||
1566 | + copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; | ||
1567 | + } | ||
1568 | + copy[i] = 0; | ||
1569 | + return s2i__(armeb_syscall_strings, armeb_syscall_s2i_s, armeb_syscall_s2i_i, 344, copy, value); | ||
1570 | + } | ||
1571 | +} | ||
1572 | +static const unsigned armeb_syscall_i2s_direct[] = { | ||
1573 | + 1950,311,500,1806,3293,1568,191,-1u,205,1169, | ||
1574 | + 3189,304,81,2996,1310,87,1143,-1u,-1u,1244, | ||
1575 | + 790,1350,3168,2673,931,2882,1773,44,-1u,1598, | ||
1576 | + 3226,-1u,-1u,15,1563,-1u,2921,1138,1922,1296, | ||
1577 | + 1966,225,1680,3119,-1u,63,2462,714,-1u,696, | ||
1578 | + 678,22,3175,-1u,1083,436,-1u,2528,-1u,-1u, | ||
1579 | + 3162,107,3220,229,797,782,2642,2733,-1u,-1u, | ||
1580 | + 2612,2548,2807,2774,2500,2632,861,871,918,2660, | ||
1581 | + 730,2478,2275,2903,-1u,1829,3213,2896,1855,1821, | ||
1582 | + 1339,1507,3131,576,395,411,805,2536,-1u,2866, | ||
1583 | + 552,-1u,2825,2978,2512,752,2854,1260,528,-1u, | ||
1584 | + -1u,3255,-1u,2949,3280,2888,2970,1111,570,2797, | ||
1585 | + 185,2408,3183,-1u,35,1367,2785,-1u,956,211, | ||
1586 | + -1u,1797,774,388,50,2964,1668,-1u,2442,2422, | ||
1587 | + 1209,658,1542,494,1482,1849,3299,881,450,2957, | ||
1588 | + 1324,1488,1330,1496,2229,2155,2244,2170,2263,2091, | ||
1589 | + 2114,2189,1532,1447,2590,839,-1u,-1u,1702,1552, | ||
1590 | + 2568,817,1707,2030,1972,1999,1985,2057,2014,2043, | ||
1591 | + 1713,1780,93,651,67,74,2743,2318,-1u,-1u, | ||
1592 | + 3249,3151,1344,3140,586,2859,1266,534,1150,938, | ||
1593 | + 721,704,686,2621,2557,740,2488,418,2600,849, | ||
1594 | + 2578,827,99,2680,2469,2451,2431,667,1691,1288, | ||
1595 | + 1274,442,-1u,-1u,911,1811,2689,1250,518,947, | ||
1596 | + 1159,460,1188,1198,483,1910,1231,505,3125,2327, | ||
1597 | + 598,2211,2137,1064,1040,1051,1073,1030,316,1216, | ||
1598 | + 239,266,276,1893,-1u,-1u,2392,3001,3058,3044, | ||
1599 | + 3027,3014,171,141,128,155,2873,560,2989,3242, | ||
1600 | + 337,1604,1621,1636,1400,1437,1424,1408,1390,1376, | ||
1601 | + 3286,2818,58,197,1181,0,888,762,2836,2313, | ||
1602 | + 2355,1862,1867,2724,2649,900,2347,1885,2296,2289, | ||
1603 | + 2282,1475,1468,1461,1454,2698,2711,2717,2704,27, | ||
1604 | + 1938,1131,2302,3272,1100,1089,986,968,1013,1282, | ||
1605 | + 614,2362,1591,1302,1316,427,604,542,3196,1929, | ||
1606 | + 1174,2911,1838,402,327,-1u,-1u,3205,2376,628, | ||
1607 | + 2847,2926,2985,3263,1356,644,-1u,1120,3232,2755, | ||
1608 | + 3072,287,350,3103,3087,2764,295,252,234,1685, | ||
1609 | + 999,1721,1789,2073,1652,1876,7,360,374,1728, | ||
1610 | + 1514,1573,114,2942,2338,2522,1738,1755,1115,470, | ||
1611 | +}; | ||
1612 | +static const char *armeb_syscall_i2s(int v) { | ||
1613 | + return i2s_direct__(armeb_syscall_strings, armeb_syscall_i2s_direct, 0, 379, v); | ||
1614 | +} | ||
1615 | diff --git a/lib/errtabs.h b/lib/errtabs.h | ||
1616 | new file mode 100644 | ||
1617 | index 0000000..53deac2 | ||
1618 | --- /dev/null | ||
1619 | +++ b/lib/errtabs.h | ||
1620 | @@ -0,0 +1,78 @@ | ||
1621 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
1622 | +static const char err_strings[] = "E2BIG\0EACCES\0EADDRINUSE\0EADDRNOTAVAIL\0EADV\0EAFNOSUPPORT\0EAGAIN\0EALREADY\0EBADE\0EBADF\0" | ||
1623 | + "EBADFD\0EBADMSG\0EBADR\0EBADRQC\0EBADSLT\0EBFONT\0EBUSY\0ECANCELED\0ECHILD\0ECHRNG\0" | ||
1624 | + "ECOMM\0ECONNABORTED\0ECONNREFUSED\0ECONNRESET\0EDEADLK\0EDEADLOCK\0EDESTADDRREQ\0EDOM\0EDOTDOT\0EDQUOT\0" | ||
1625 | + "EEXIST\0EFAULT\0EFBIG\0EHOSTDOWN\0EHOSTUNREACH\0EIDRM\0EILSEQ\0EINPROGRESS\0EINTR\0EINVAL\0" | ||
1626 | + "EIO\0EISCONN\0EISDIR\0EISNAM\0EKEYEXPIRED\0EKEYREJECTED\0EKEYREVOKED\0EL2HLT\0EL2NSYNC\0EL3HLT\0" | ||
1627 | + "EL3RST\0ELIBACC\0ELIBBAD\0ELIBEXEC\0ELIBMAX\0ELIBSCN\0ELNRNG\0ELOOP\0EMEDIUMTYPE\0EMFILE\0" | ||
1628 | + "EMLINK\0EMSGSIZE\0EMULTIHOP\0ENAMETOOLONG\0ENAVAIL\0ENETDOWN\0ENETRESET\0ENETUNREACH\0ENFILE\0ENOANO\0" | ||
1629 | + "ENOBUFS\0ENOCSI\0ENODATA\0ENODEV\0ENOENT\0ENOEXEC\0ENOKEY\0ENOLCK\0ENOLINK\0ENOMEDIUM\0" | ||
1630 | + "ENOMEM\0ENOMSG\0ENONET\0ENOPKG\0ENOPROTOOPT\0ENOSPC\0ENOSR\0ENOSTR\0ENOSYS\0ENOTBLK\0" | ||
1631 | + "ENOTCONN\0ENOTDIR\0ENOTEMPTY\0ENOTNAM\0ENOTRECOVERABLE\0ENOTSOCK\0ENOTTY\0ENOTUNIQ\0ENXIO\0EOPNOTSUPP\0" | ||
1632 | + "EOVERFLOW\0EOWNERDEAD\0EPERM\0EPFNOSUPPORT\0EPIPE\0EPROTO\0EPROTONOSUPPORT\0EPROTOTYPE\0ERANGE\0EREMCHG\0" | ||
1633 | + "EREMOTE\0EREMOTEIO\0ERESTART\0EROFS\0ESHUTDOWN\0ESOCKTNOSUPPORT\0ESPIPE\0ESRCH\0ESRMNT\0ESTALE\0" | ||
1634 | + "ESTRPIPE\0ETIME\0ETIMEDOUT\0ETOOMANYREFS\0ETXTBSY\0EUCLEAN\0EUNATCH\0EUSERS\0EWOULDBLOCK\0EXDEV\0" | ||
1635 | + "EXFULL"; | ||
1636 | +static const unsigned err_s2i_s[] = { | ||
1637 | + 0,6,13,24,38,43,56,63,72,78, | ||
1638 | + 84,91,99,105,113,121,128,134,144,151, | ||
1639 | + 158,164,177,190,201,209,219,232,237,245, | ||
1640 | + 252,259,266,272,282,295,301,308,320,326, | ||
1641 | + 333,337,345,352,359,371,384,396,403,412, | ||
1642 | + 419,426,434,442,451,459,467,474,480,492, | ||
1643 | + 499,506,515,525,538,546,555,565,577,584, | ||
1644 | + 591,599,606,614,621,628,636,643,650,658, | ||
1645 | + 668,675,682,689,696,708,715,721,728,735, | ||
1646 | + 743,752,760,770,778,794,803,810,819,825, | ||
1647 | + 836,846,857,863,876,882,889,905,916,923, | ||
1648 | + 931,939,949,958,964,974,990,997,1003,1010, | ||
1649 | + 1017,1026,1032,1042,1055,1063,1071,1079,1086,1098, | ||
1650 | + 1104, | ||
1651 | +}; | ||
1652 | +static const int err_s2i_i[] = { | ||
1653 | + 7,13,98,99,68,97,11,114,52,9, | ||
1654 | + 77,74,53,56,57,59,16,125,10,44, | ||
1655 | + 70,103,111,104,35,35,89,33,73,122, | ||
1656 | + 17,14,27,112,113,43,84,115,4,22, | ||
1657 | + 5,106,21,120,127,129,128,51,45,46, | ||
1658 | + 47,79,80,83,82,81,48,40,124,24, | ||
1659 | + 31,90,72,36,119,100,102,101,23,55, | ||
1660 | + 105,50,61,19,2,8,126,37,67,123, | ||
1661 | + 12,42,64,65,92,28,63,60,38,15, | ||
1662 | + 107,20,39,118,131,88,25,76,6,95, | ||
1663 | + 75,130,1,96,32,71,93,91,34,78, | ||
1664 | + 66,121,85,30,108,94,29,3,69,116, | ||
1665 | + 86,62,110,109,26,117,49,87,11,18, | ||
1666 | + 54, | ||
1667 | +}; | ||
1668 | +static int err_s2i(const char *s, int *value) { | ||
1669 | + size_t len, i; | ||
1670 | + len = strlen(s); | ||
1671 | + { char copy[len + 1]; | ||
1672 | + for (i = 0; i < len; i++) { | ||
1673 | + char c = s[i]; | ||
1674 | + copy[i] = GT_ISLOWER(c) ? c - 'a' + 'A' : c; | ||
1675 | + } | ||
1676 | + copy[i] = 0; | ||
1677 | + return s2i__(err_strings, err_s2i_s, err_s2i_i, 131, copy, value); | ||
1678 | + } | ||
1679 | +} | ||
1680 | +static const unsigned err_i2s_direct[] = { | ||
1681 | + 857,621,997,320,333,819,0,628,78,144, | ||
1682 | + 56,668,6,259,735,128,252,1098,614,752, | ||
1683 | + 345,326,577,492,803,1055,266,708,990,958, | ||
1684 | + 499,876,232,916,201,525,643,728,760,474, | ||
1685 | + -1u,675,295,151,403,412,419,467,1071,599, | ||
1686 | + 396,72,99,1104,584,105,113,-1u,121,721, | ||
1687 | + 606,1026,715,682,689,931,650,38,1003,158, | ||
1688 | + 882,515,237,91,836,810,84,923,426,434, | ||
1689 | + 459,451,442,301,949,1017,1079,794,219,506, | ||
1690 | + 905,696,889,974,825,863,43,13,24,546, | ||
1691 | + 565,555,164,190,591,337,743,964,1042,1032, | ||
1692 | + 177,272,282,63,308,1010,1063,770,538,352, | ||
1693 | + 939,245,658,480,134,636,359,384,371,846, | ||
1694 | + 778, | ||
1695 | +}; | ||
1696 | +static const char *err_i2s(int v) { | ||
1697 | + return i2s_direct__(err_strings, err_i2s_direct, 1, 131, v); | ||
1698 | +} | ||
1699 | diff --git a/lib/fieldtabs.h b/lib/fieldtabs.h | ||
1700 | new file mode 100644 | ||
1701 | index 0000000..fb50e08 | ||
1702 | --- /dev/null | ||
1703 | +++ b/lib/fieldtabs.h | ||
1704 | @@ -0,0 +1,49 @@ | ||
1705 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
1706 | +static const char field_strings[] = "a0\0a1\0a2\0a3\0arch\0auid\0devmajor\0devminor\0dir\0egid\0" | ||
1707 | + "euid\0exit\0field_compare\0filetype\0fsgid\0fsuid\0gid\0inode\0key\0loginuid\0" | ||
1708 | + "msgtype\0obj_gid\0obj_lev_high\0obj_lev_low\0obj_role\0obj_type\0obj_uid\0obj_user\0path\0perm\0" | ||
1709 | + "pers\0pid\0ppid\0sgid\0subj_clr\0subj_role\0subj_sen\0subj_type\0subj_user\0success\0" | ||
1710 | + "suid\0uid"; | ||
1711 | +static const unsigned field_s2i_s[] = { | ||
1712 | + 0,3,6,9,12,17,22,31,40,44, | ||
1713 | + 49,54,59,73,82,88,94,98,104,108, | ||
1714 | + 117,125,133,146,158,167,176,184,193,198, | ||
1715 | + 203,208,212,217,222,231,241,250,260,270, | ||
1716 | + 278,283, | ||
1717 | +}; | ||
1718 | +static const int field_s2i_i[] = { | ||
1719 | + 200,201,202,203,11,9,100,101,107,6, | ||
1720 | + 2,103,111,108,8,4,5,102,210,9, | ||
1721 | + 12,110,23,22,20,21,109,19,105,106, | ||
1722 | + 10,0,18,7,17,14,16,15,13,104, | ||
1723 | + 3,1, | ||
1724 | +}; | ||
1725 | +static int field_s2i(const char *s, int *value) { | ||
1726 | + size_t len, i; | ||
1727 | + len = strlen(s); | ||
1728 | + { char copy[len + 1]; | ||
1729 | + for (i = 0; i < len; i++) { | ||
1730 | + char c = s[i]; | ||
1731 | + copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; | ||
1732 | + } | ||
1733 | + copy[i] = 0; | ||
1734 | + return s2i__(field_strings, field_s2i_s, field_s2i_i, 42, copy, value); | ||
1735 | + } | ||
1736 | +} | ||
1737 | +static const int field_i2s_i[] = { | ||
1738 | + 0,1,2,3,4,5,6,7,8,9, | ||
1739 | + 10,11,12,13,14,15,16,17,18,19, | ||
1740 | + 20,21,22,23,100,101,102,103,104,105, | ||
1741 | + 106,107,108,109,110,111,200,201,202,203, | ||
1742 | + 210, | ||
1743 | +}; | ||
1744 | +static const unsigned field_i2s_s[] = { | ||
1745 | + 208,283,49,278,88,94,44,217,82,17, | ||
1746 | + 203,12,117,260,231,250,241,222,212,184, | ||
1747 | + 158,167,146,133,22,31,98,54,270,193, | ||
1748 | + 198,40,73,176,125,59,0,3,6,9, | ||
1749 | + 104, | ||
1750 | +}; | ||
1751 | +static const char *field_i2s(int v) { | ||
1752 | + return i2s_bsearch__(field_strings, field_i2s_i, field_i2s_s, 41, v); | ||
1753 | +} | ||
1754 | diff --git a/lib/flagtabs.h b/lib/flagtabs.h | ||
1755 | new file mode 100644 | ||
1756 | index 0000000..e191db3 | ||
1757 | --- /dev/null | ||
1758 | +++ b/lib/flagtabs.h | ||
1759 | @@ -0,0 +1,26 @@ | ||
1760 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
1761 | +static const char flag_strings[] = "entry\0exclude\0exit\0task\0user"; | ||
1762 | +static const unsigned flag_s2i_s[] = { | ||
1763 | + 0,6,14,19,24, | ||
1764 | +}; | ||
1765 | +static const int flag_s2i_i[] = { | ||
1766 | + 2,5,4,1,0, | ||
1767 | +}; | ||
1768 | +static int flag_s2i(const char *s, int *value) { | ||
1769 | + size_t len, i; | ||
1770 | + len = strlen(s); | ||
1771 | + { char copy[len + 1]; | ||
1772 | + for (i = 0; i < len; i++) { | ||
1773 | + char c = s[i]; | ||
1774 | + copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; | ||
1775 | + } | ||
1776 | + copy[i] = 0; | ||
1777 | + return s2i__(flag_strings, flag_s2i_s, flag_s2i_i, 5, copy, value); | ||
1778 | + } | ||
1779 | +} | ||
1780 | +static const unsigned flag_i2s_direct[] = { | ||
1781 | + 24,19,0,-1u,14,6, | ||
1782 | +}; | ||
1783 | +static const char *flag_i2s(int v) { | ||
1784 | + return i2s_direct__(flag_strings, flag_i2s_direct, 0, 5, v); | ||
1785 | +} | ||
1786 | diff --git a/lib/ftypetabs.h b/lib/ftypetabs.h | ||
1787 | new file mode 100644 | ||
1788 | index 0000000..04aaa46 | ||
1789 | --- /dev/null | ||
1790 | +++ b/lib/ftypetabs.h | ||
1791 | @@ -0,0 +1,29 @@ | ||
1792 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
1793 | +static const char ftype_strings[] = "block\0character\0dir\0fifo\0file\0link\0socket"; | ||
1794 | +static const unsigned ftype_s2i_s[] = { | ||
1795 | + 0,6,16,20,25,30,35, | ||
1796 | +}; | ||
1797 | +static const int ftype_s2i_i[] = { | ||
1798 | + 24576,8192,16384,4096,32768,40960,49152, | ||
1799 | +}; | ||
1800 | +static int ftype_s2i(const char *s, int *value) { | ||
1801 | + size_t len, i; | ||
1802 | + len = strlen(s); | ||
1803 | + { char copy[len + 1]; | ||
1804 | + for (i = 0; i < len; i++) { | ||
1805 | + char c = s[i]; | ||
1806 | + copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; | ||
1807 | + } | ||
1808 | + copy[i] = 0; | ||
1809 | + return s2i__(ftype_strings, ftype_s2i_s, ftype_s2i_i, 7, copy, value); | ||
1810 | + } | ||
1811 | +} | ||
1812 | +static const int ftype_i2s_i[] = { | ||
1813 | + 4096,8192,16384,24576,32768,40960,49152, | ||
1814 | +}; | ||
1815 | +static const unsigned ftype_i2s_s[] = { | ||
1816 | + 20,6,16,0,25,30,35, | ||
1817 | +}; | ||
1818 | +static const char *ftype_i2s(int v) { | ||
1819 | + return i2s_bsearch__(ftype_strings, ftype_i2s_i, ftype_i2s_s, 7, v); | ||
1820 | +} | ||
1821 | diff --git a/lib/i386_tables.h b/lib/i386_tables.h | ||
1822 | new file mode 100644 | ||
1823 | index 0000000..6703ffc | ||
1824 | --- /dev/null | ||
1825 | +++ b/lib/i386_tables.h | ||
1826 | @@ -0,0 +1,163 @@ | ||
1827 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
1828 | +static const char i386_syscall_strings[] = "_llseek\0_newselect\0_sysctl\0access\0acct\0add_key\0adjtimex\0afs_syscall\0alarm\0bdflush\0" | ||
1829 | + "break\0brk\0capget\0capset\0chdir\0chmod\0chown\0chown32\0chroot\0clock_adjtime\0" | ||
1830 | + "clock_getres\0clock_gettime\0clock_nanosleep\0clock_settime\0clone\0close\0creat\0create_module\0delete_module\0dup\0" | ||
1831 | + "dup2\0dup3\0epoll_create\0epoll_create1\0epoll_ctl\0epoll_pwait\0epoll_wait\0eventfd\0eventfd2\0execve\0" | ||
1832 | + "exit\0exit_group\0faccessat\0fadvise64\0fadvise64_64\0fallocate\0fanotify_init\0fanotify_mark\0fchdir\0fchmod\0" | ||
1833 | + "fchmodat\0fchown\0fchown32\0fchownat\0fcntl\0fcntl64\0fdatasync\0fgetxattr\0finit_module\0flistxattr\0" | ||
1834 | + "flock\0fork\0fremovexattr\0fsetxattr\0fstat\0fstat64\0fstatat64\0fstatfs\0fstatfs64\0fsync\0" | ||
1835 | + "ftime\0ftruncate\0ftruncate64\0futex\0futimesat\0get_kernel_syms\0get_mempolicy\0get_robust_list\0get_thread_area\0getcpu\0" | ||
1836 | + "getcwd\0getdents\0getdents64\0getegid\0getegid32\0geteuid\0geteuid32\0getgid\0getgid32\0getgroups\0" | ||
1837 | + "getgroups32\0getitimer\0getpgid\0getpgrp\0getpid\0getpmsg\0getppid\0getpriority\0getresgid\0getresgid32\0" | ||
1838 | + "getresuid\0getresuid32\0getrlimit\0getrusage\0getsid\0gettid\0gettimeofday\0getuid\0getuid32\0getxattr\0" | ||
1839 | + "gtty\0idle\0init_module\0inotify_add_watch\0inotify_init\0inotify_init1\0inotify_rm_watch\0io_cancel\0io_destroy\0io_getevents\0" | ||
1840 | + "io_setup\0io_submit\0ioctl\0ioperm\0iopl\0ioprio_get\0ioprio_set\0ipc\0kcmp\0keyctl\0" | ||
1841 | + "kill\0lchown\0lchown32\0lgetxattr\0link\0linkat\0listxattr\0llistxattr\0lock\0lookup_dcookie\0" | ||
1842 | + "lremovexattr\0lseek\0lsetxattr\0lstat\0lstat64\0madvise\0madvise1\0mbind\0migrate_pages\0mincore\0" | ||
1843 | + "mkdir\0mkdirat\0mknod\0mknodat\0mlock\0mlockall\0mmap\0mmap2\0modify_ldt\0mount\0" | ||
1844 | + "move_pages\0mprotect\0mpx\0mq_getsetattr\0mq_notify\0mq_open\0mq_timedreceive\0mq_timedsend\0mq_unlink\0mremap\0" | ||
1845 | + "msync\0munlock\0munlockall\0munmap\0name_to_handle_at\0nanosleep\0nfsservctl\0nice\0oldfstat\0oldlstat\0" | ||
1846 | + "oldolduname\0oldstat\0olduname\0open\0open_by_handle_at\0openat\0pause\0perf_event_open\0personality\0pipe\0" | ||
1847 | + "pipe2\0pivot_root\0poll\0ppoll\0prctl\0pread64\0preadv\0prlimit64\0process_vm_readv\0process_vm_writev\0" | ||
1848 | + "prof\0profil\0pselect6\0ptrace\0putpmsg\0pwrite64\0pwritev\0query_module\0quotactl\0read\0" | ||
1849 | + "readahead\0readdir\0readlink\0readlinkat\0readv\0reboot\0recvmmsg\0remap_file_pages\0removexattr\0rename\0" | ||
1850 | + "renameat\0request_key\0restart_syscall\0rmdir\0rt_sigaction\0rt_sigpending\0rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0" | ||
1851 | + "rt_sigtimedwait\0rt_tgsigqueueinfo\0sched_get_priority_max\0sched_get_priority_min\0sched_getaffinity\0sched_getparam\0sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0" | ||
1852 | + "sched_setscheduler\0sched_yield\0select\0sendfile\0sendfile64\0sendmmsg\0set_mempolicy\0set_robust_list\0set_thread_area\0set_tid_address\0" | ||
1853 | + "setdomainname\0setfsgid\0setfsgid32\0setfsuid\0setfsuid32\0setgid\0setgid32\0setgroups\0setgroups32\0sethostname\0" | ||
1854 | + "setitimer\0setns\0setpgid\0setpriority\0setregid\0setregid32\0setresgid\0setresgid32\0setresuid\0setresuid32\0" | ||
1855 | + "setreuid\0setreuid32\0setrlimit\0setsid\0settimeofday\0setuid\0setuid32\0setxattr\0sgetmask\0sigaction\0" | ||
1856 | + "sigaltstack\0signal\0signalfd\0signalfd4\0sigpending\0sigprocmask\0sigreturn\0sigsuspend\0socketcall\0splice\0" | ||
1857 | + "ssetmask\0stat\0stat64\0statfs\0statfs64\0stime\0stty\0swapoff\0swapon\0symlink\0" | ||
1858 | + "symlinkat\0sync\0sync_file_range\0syncfs\0sys_kexec_load\0sysfs\0sysinfo\0syslog\0tee\0tgkill\0" | ||
1859 | + "time\0timer_create\0timer_delete\0timer_getoverrun\0timer_gettime\0timer_settime\0timerfd\0timerfd_gettime\0timerfd_settime\0times\0" | ||
1860 | + "tkill\0truncate\0truncate64\0ugetrlimit\0ulimit\0umask\0umount\0umount2\0uname\0unlink\0" | ||
1861 | + "unlinkat\0unshare\0uselib\0ustat\0utime\0utimensat\0utimes\0vfork\0vhangup\0vm86\0" | ||
1862 | + "vm86old\0vmsplice\0vserver\0wait4\0waitid\0waitpid\0write\0writev"; | ||
1863 | +static const unsigned i386_syscall_s2i_s[] = { | ||
1864 | + 0,8,19,27,34,39,47,56,68,74, | ||
1865 | + 82,88,92,99,106,112,118,124,132,139, | ||
1866 | + 153,166,180,196,210,216,222,228,242,256, | ||
1867 | + 260,265,270,283,297,307,319,330,338,347, | ||
1868 | + 354,359,370,380,390,403,413,427,441,448, | ||
1869 | + 455,464,471,480,489,495,503,513,523,536, | ||
1870 | + 547,553,558,571,581,587,595,605,613,623, | ||
1871 | + 629,635,645,657,663,673,689,703,719,735, | ||
1872 | + 742,749,758,769,777,787,795,805,812,821, | ||
1873 | + 831,843,853,861,869,876,884,892,904,914, | ||
1874 | + 926,936,948,958,968,975,982,995,1002,1011, | ||
1875 | + 1020,1025,1030,1042,1060,1073,1087,1104,1114,1125, | ||
1876 | + 1138,1147,1157,1163,1170,1175,1186,1197,1201,1206, | ||
1877 | + 1213,1218,1225,1234,1244,1249,1256,1266,1277,1282, | ||
1878 | + 1297,1310,1316,1326,1332,1340,1348,1357,1363,1377, | ||
1879 | + 1385,1391,1399,1405,1413,1419,1428,1433,1439,1450, | ||
1880 | + 1456,1467,1476,1480,1494,1504,1512,1528,1541,1551, | ||
1881 | + 1558,1564,1572,1583,1590,1608,1618,1629,1634,1643, | ||
1882 | + 1652,1664,1672,1681,1686,1704,1711,1717,1733,1745, | ||
1883 | + 1750,1756,1767,1772,1778,1784,1792,1799,1809,1826, | ||
1884 | + 1844,1849,1856,1865,1872,1880,1889,1897,1910,1919, | ||
1885 | + 1924,1934,1942,1951,1962,1968,1975,1984,2001,2013, | ||
1886 | + 2020,2029,2041,2057,2063,2076,2090,2105,2121,2134, | ||
1887 | + 2148,2164,2182,2205,2228,2246,2261,2280,2302,2320, | ||
1888 | + 2335,2354,2366,2373,2382,2393,2402,2416,2432,2448, | ||
1889 | + 2464,2478,2487,2498,2507,2518,2525,2534,2544,2556, | ||
1890 | + 2568,2578,2584,2592,2604,2613,2624,2634,2646,2656, | ||
1891 | + 2668,2677,2688,2698,2705,2718,2725,2734,2743,2752, | ||
1892 | + 2762,2774,2781,2790,2800,2811,2823,2833,2844,2855, | ||
1893 | + 2862,2871,2876,2883,2890,2899,2905,2910,2918,2925, | ||
1894 | + 2933,2943,2948,2964,2971,2986,2992,3000,3007,3011, | ||
1895 | + 3018,3023,3036,3049,3066,3080,3094,3102,3118,3134, | ||
1896 | + 3140,3146,3155,3166,3177,3184,3190,3197,3205,3211, | ||
1897 | + 3218,3227,3235,3242,3248,3254,3264,3271,3277,3285, | ||
1898 | + 3290,3298,3307,3315,3321,3328,3336,3342, | ||
1899 | +}; | ||
1900 | +static const int i386_syscall_s2i_i[] = { | ||
1901 | + 140,142,149,33,51,286,124,137,27,134, | ||
1902 | + 17,45,184,185,12,15,182,212,61,343, | ||
1903 | + 266,265,267,264,120,6,8,127,129,41, | ||
1904 | + 63,330,254,329,255,319,256,323,328,11, | ||
1905 | + 1,252,307,250,272,324,338,339,133,94, | ||
1906 | + 306,95,207,298,55,221,148,231,350,234, | ||
1907 | + 143,2,237,228,108,197,300,100,269,118, | ||
1908 | + 35,93,194,240,299,130,275,312,244,318, | ||
1909 | + 183,141,220,50,202,49,201,47,200,80, | ||
1910 | + 205,105,132,65,20,188,64,96,171,211, | ||
1911 | + 165,209,76,77,147,224,78,24,199,229, | ||
1912 | + 32,112,128,292,291,332,293,249,246,247, | ||
1913 | + 245,248,54,101,110,290,289,117,349,288, | ||
1914 | + 37,16,198,230,9,303,232,233,53,253, | ||
1915 | + 236,19,227,107,196,219,219,274,294,218, | ||
1916 | + 39,296,14,297,150,152,90,192,123,21, | ||
1917 | + 317,125,56,282,281,277,280,279,278,163, | ||
1918 | + 144,151,153,91,341,162,169,34,28,84, | ||
1919 | + 59,18,109,5,342,295,29,336,136,42, | ||
1920 | + 331,217,168,309,172,180,333,340,347,348, | ||
1921 | + 44,98,308,26,189,181,334,167,131,3, | ||
1922 | + 225,89,85,305,145,88,337,257,235,38, | ||
1923 | + 302,287,0,40,174,176,175,178,173,179, | ||
1924 | + 177,335,159,160,242,155,157,161,241,154, | ||
1925 | + 156,158,82,187,239,345,276,311,243,258, | ||
1926 | + 121,139,216,138,215,46,214,81,206,74, | ||
1927 | + 104,346,57,97,71,204,170,210,164,208, | ||
1928 | + 70,203,75,66,79,23,213,226,68,67, | ||
1929 | + 186,48,321,327,73,126,119,72,102,313, | ||
1930 | + 69,106,195,99,268,25,31,115,87,83, | ||
1931 | + 304,36,314,344,283,135,116,103,315,270, | ||
1932 | + 13,259,263,262,261,260,322,326,325,43, | ||
1933 | + 238,92,193,191,58,60,22,52,122,10, | ||
1934 | + 301,310,86,62,30,320,271,190,111,166, | ||
1935 | + 113,316,273,114,284,7,4,146, | ||
1936 | +}; | ||
1937 | +static int i386_syscall_s2i(const char *s, int *value) { | ||
1938 | + size_t len, i; | ||
1939 | + len = strlen(s); | ||
1940 | + { char copy[len + 1]; | ||
1941 | + for (i = 0; i < len; i++) { | ||
1942 | + char c = s[i]; | ||
1943 | + copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; | ||
1944 | + } | ||
1945 | + copy[i] = 0; | ||
1946 | + return s2i__(i386_syscall_strings, i386_syscall_s2i_s, i386_syscall_s2i_i, 348, copy, value); | ||
1947 | + } | ||
1948 | +} | ||
1949 | +static const unsigned i386_syscall_i2s_direct[] = { | ||
1950 | + 2041,354,553,1919,3336,1681,216,3328,222,1244, | ||
1951 | + 3211,347,106,3018,1399,112,1218,82,1664,1310, | ||
1952 | + 869,1450,3190,2718,995,2899,1865,68,1634,1711, | ||
1953 | + 3248,2905,1020,27,1629,629,2943,1213,2013,1385, | ||
1954 | + 2057,256,1745,3134,1844,88,2518,805,2774,787, | ||
1955 | + 769,34,3197,1277,1157,489,1476,2584,3177,1652, | ||
1956 | + 3184,132,3242,260,884,861,2698,2752,2743,2862, | ||
1957 | + 2668,2604,2833,2800,2556,2688,948,958,982,2705, | ||
1958 | + 821,2534,2366,2925,1643,1942,3235,2918,1968,1934, | ||
1959 | + 1428,1583,3146,635,448,464,892,2592,1849,2883, | ||
1960 | + 605,1163,2844,3000,2568,843,2871,1326,581,1672, | ||
1961 | + 1170,3277,1025,3290,3315,2910,2992,1197,623,2823, | ||
1962 | + 210,2464,3205,1439,47,1467,2811,228,1030,242, | ||
1963 | + 673,1910,853,441,74,2986,1733,56,2498,2478, | ||
1964 | + 0,749,8,547,1558,1962,3342,968,503,19, | ||
1965 | + 1413,1564,1419,1572,2320,2246,2335,2261,2354,2182, | ||
1966 | + 2205,2280,1608,1551,2646,926,3285,1897,1767,1618, | ||
1967 | + 2624,904,1778,2121,2063,2090,2076,2148,2105,2134, | ||
1968 | + 1784,1880,118,742,92,99,2762,2373,876,1872, | ||
1969 | + 3271,3166,1433,3155,645,2876,1332,587,1225,1002, | ||
1970 | + 812,795,777,2677,2613,831,2544,471,2656,936, | ||
1971 | + 2634,914,124,2725,2525,2507,2487,1756,1377,1340, | ||
1972 | + 758,495,-1u,-1u,975,1924,2734,1316,571,1011, | ||
1973 | + 1234,513,1256,1266,536,2001,1297,558,3140,2382, | ||
1974 | + 657,2302,2228,2432,719,1138,1114,1125,1147,1104, | ||
1975 | + 380,-1u,359,1282,270,297,319,1984,2448,3023, | ||
1976 | + 3080,3066,3049,3036,196,166,153,180,2890,613, | ||
1977 | + 3011,3264,390,3307,1357,689,2402,1504,1541,1528, | ||
1978 | + 1512,1494,1480,2971,3321,-1u,39,2029,1206,1186, | ||
1979 | + 1175,1060,1042,1087,1363,1704,1391,1405,480,663, | ||
1980 | + 595,3218,2020,1249,2933,1951,455,370,1856,1772, | ||
1981 | + 3227,2416,703,2855,2948,3007,3298,1456,735,307, | ||
1982 | + 3254,2781,3094,330,403,3118,3102,2790,338,283, | ||
1983 | + 265,1750,1073,1792,1889,2164,1717,1975,413,427, | ||
1984 | + 1799,1590,1686,139,2964,2393,2578,1809,1826,1201, | ||
1985 | + 523, | ||
1986 | +}; | ||
1987 | +static const char *i386_syscall_i2s(int v) { | ||
1988 | + return i2s_direct__(i386_syscall_strings, i386_syscall_i2s_direct, 0, 350, v); | ||
1989 | +} | ||
1990 | diff --git a/lib/ia64_tables.h b/lib/ia64_tables.h | ||
1991 | new file mode 100644 | ||
1992 | index 0000000..9e127a0 | ||
1993 | --- /dev/null | ||
1994 | +++ b/lib/ia64_tables.h | ||
1995 | @@ -0,0 +1,147 @@ | ||
1996 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
1997 | +static const char ia64_syscall_strings[] = "_sysctl\0accept\0accept4\0access\0acct\0add_key\0adjtimex\0afs_syscall\0bdflush\0bind\0" | ||
1998 | + "brk\0capget\0capset\0chdir\0chmod\0chown\0chroot\0clock_adjtime\0clock_getres\0clock_gettime\0" | ||
1999 | + "clock_nanosleep\0clock_settime\0clone\0clone2\0close\0connect\0creat\0delete_module\0dup\0dup2\0" | ||
2000 | + "dup3\0epoll_create\0epoll_create1\0epoll_ctl\0epoll_pwait\0epoll_wait\0eventfd\0eventfd2\0execve\0exit\0" | ||
2001 | + "exit_group\0faccessat\0fadvise64\0fallocate\0fanotify_init\0fanotify_mark\0fchdir\0fchmod\0fchmodat\0fchown\0" | ||
2002 | + "fchownat\0fcntl\0fdatasync\0fgetxattr\0finit_module\0flistxattr\0flock\0fremovexattr\0fsetxattr\0fstat\0" | ||
2003 | + "fstatfs\0fstatfs64\0fsync\0ftruncate\0futex\0futimesat\0get_mempolicy\0get_robust_list\0getcpu\0getcwd\0" | ||
2004 | + "getdents\0getdents64\0getegid\0geteuid\0getgid\0getgroups\0getitimer\0getpeername\0getpgid\0getpid\0" | ||
2005 | + "getpmsg\0getppid\0getpriority\0getresgid\0getresuid\0getrlimit\0getrusage\0getsid\0getsockname\0getsockopt\0" | ||
2006 | + "gettid\0gettimeofday\0getuid\0getunwind\0getxattr\0init_module\0inotify_add_watch\0inotify_init\0inotify_init1\0inotify_rm_watch\0" | ||
2007 | + "io_cancel\0io_destroy\0io_getevents\0io_setup\0io_submit\0ioctl\0ioprio_get\0ioprio_set\0kexec_load\0keyctl\0" | ||
2008 | + "kill\0lchown\0lgetxattr\0link\0linkat\0listen\0listxattr\0llistxattr\0lookup_dcookie\0lremovexattr\0" | ||
2009 | + "lseek\0lsetxattr\0lstat\0madvise\0mbind\0migrate_pages\0mincore\0mkdir\0mkdirat\0mknod\0" | ||
2010 | + "mknodat\0mlock\0mlockall\0mmap\0mmap2\0mount\0mprotect\0mq_getsetattr\0mq_notify\0mq_open\0" | ||
2011 | + "mq_timedreceive\0mq_timedsend\0mq_unlink\0mremap\0msgctl\0msgget\0msgrcv\0msgsnd\0msync\0munlock\0" | ||
2012 | + "munlockall\0munmap\0name_to_handle_at\0nanosleep\0newfstatat\0nfsservctl\0ni_syscall\0open\0open_by_handle_at\0openat\0" | ||
2013 | + "pciconfig_read\0pciconfig_write\0perfmonctl\0personality\0pipe\0pipe2\0pivot_root\0poll\0ppoll\0prctl\0" | ||
2014 | + "pread64\0preadv\0prlimit64\0process_vm_readv\0process_vm_writev\0pselect\0ptrace\0putpmsg\0pwrite64\0pwritev\0" | ||
2015 | + "quotactl\0read\0readahead\0readlink\0readlinkat\0readv\0reboot\0recv\0recvfrom\0recvmmsg\0" | ||
2016 | + "recvmsg\0remap_file_pages\0removexattr\0rename\0renameat\0request_key\0restart_syscall\0rmdir\0rt_sigaction\0rt_sigpending\0" | ||
2017 | + "rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0rt_sigtimedwait\0rt_tgsigqueueinfo\0sched_get_priority_max\0sched_get_priority_min\0sched_getaffinity\0sched_getparam\0" | ||
2018 | + "sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0sched_setscheduler\0sched_yield\0select\0semctl\0semget\0semop\0" | ||
2019 | + "semtimedop\0send\0sendfile\0sendmmsg\0sendmsg\0sendto\0set_mempolicy\0set_robust_list\0set_tid_address\0set_zone_reclaim\0" | ||
2020 | + "setdomainname\0setfsgid\0setfsuid\0setgid\0setgroups\0sethostname\0setitimer\0setns\0setpgid\0setpriority\0" | ||
2021 | + "setregid\0setresgid\0setresuid\0setreuid\0setrlimit\0setsid\0setsockopt\0settimeofday\0setuid\0setxattr\0" | ||
2022 | + "shmat\0shmctl\0shmdt\0shmget\0shutdown\0sigaltstack\0signalfd\0signalfd4\0socket\0socketpair\0" | ||
2023 | + "splice\0stat\0statfs\0statfs64\0swapoff\0swapon\0symlink\0symlinkat\0sync\0sync_file_range\0" | ||
2024 | + "syncfs\0sysfs\0sysinfo\0syslog\0tee\0tgkill\0timer_create\0timer_delete\0timer_getoverrun\0timer_gettime\0" | ||
2025 | + "timer_settime\0timerfd\0timerfd_create\0timerfd_gettime\0timerfd_settime\0times\0tkill\0truncate\0tux\0umask\0" | ||
2026 | + "umount\0uname\0unlink\0unlinkat\0unshare\0uselib\0ustat\0utimensat\0utimes\0vhangup\0" | ||
2027 | + "vmsplice\0vserver\0wait4\0waitid\0write\0writev"; | ||
2028 | +static const unsigned ia64_syscall_s2i_s[] = { | ||
2029 | + 0,8,15,23,30,35,43,52,64,72, | ||
2030 | + 77,81,88,95,101,107,113,120,134,147, | ||
2031 | + 161,177,191,197,204,210,218,224,238,242, | ||
2032 | + 247,252,265,279,289,301,312,320,329,336, | ||
2033 | + 341,352,362,372,382,396,410,417,424,433, | ||
2034 | + 440,449,455,465,475,488,499,505,518,528, | ||
2035 | + 534,542,552,558,568,574,584,598,614,621, | ||
2036 | + 628,637,648,656,664,671,681,691,703,711, | ||
2037 | + 718,726,734,746,756,766,776,786,793,805, | ||
2038 | + 816,823,836,843,853,862,874,892,905,919, | ||
2039 | + 936,946,957,970,979,989,995,1006,1017,1028, | ||
2040 | + 1035,1040,1047,1057,1062,1069,1076,1086,1097,1112, | ||
2041 | + 1125,1131,1141,1147,1155,1161,1175,1183,1189,1197, | ||
2042 | + 1203,1211,1217,1226,1231,1237,1243,1252,1266,1276, | ||
2043 | + 1284,1300,1313,1323,1330,1337,1344,1351,1358,1364, | ||
2044 | + 1372,1383,1390,1408,1418,1429,1440,1451,1456,1474, | ||
2045 | + 1481,1496,1512,1523,1535,1540,1546,1557,1562,1568, | ||
2046 | + 1574,1582,1589,1599,1616,1634,1642,1649,1657,1666, | ||
2047 | + 1674,1683,1688,1698,1707,1718,1724,1731,1736,1745, | ||
2048 | + 1754,1762,1779,1791,1798,1807,1819,1835,1841,1854, | ||
2049 | + 1868,1883,1899,1912,1926,1942,1960,1983,2006,2024, | ||
2050 | + 2039,2058,2080,2098,2113,2132,2144,2151,2158,2165, | ||
2051 | + 2171,2182,2187,2196,2205,2213,2220,2234,2250,2266, | ||
2052 | + 2283,2297,2306,2315,2322,2332,2344,2354,2360,2368, | ||
2053 | + 2380,2389,2399,2409,2418,2428,2435,2446,2459,2466, | ||
2054 | + 2475,2481,2488,2494,2501,2510,2522,2531,2541,2548, | ||
2055 | + 2559,2566,2571,2578,2587,2595,2602,2610,2620,2625, | ||
2056 | + 2641,2648,2654,2662,2669,2673,2680,2693,2706,2723, | ||
2057 | + 2737,2751,2759,2774,2790,2806,2812,2818,2827,2831, | ||
2058 | + 2837,2844,2850,2857,2866,2874,2881,2887,2897,2904, | ||
2059 | + 2912,2921,2929,2935,2942,2948, | ||
2060 | +}; | ||
2061 | +static const int ia64_syscall_s2i_i[] = { | ||
2062 | + 1150,1194,1334,1049,1064,1271,1131,1141,1138,1191, | ||
2063 | + 1060,1185,1186,1034,1038,1039,1068,1328,1255,1254, | ||
2064 | + 1256,1253,1128,1213,1029,1192,1030,1134,1057,1070, | ||
2065 | + 1316,1243,1315,1244,1305,1245,1309,1314,1033,1025, | ||
2066 | + 1236,1293,1234,1303,1323,1324,1035,1099,1292,1100, | ||
2067 | + 1284,1066,1052,1222,1335,1225,1145,1228,1219,1212, | ||
2068 | + 1104,1257,1051,1098,1230,1285,1260,1299,1304,1184, | ||
2069 | + 1144,1214,1063,1047,1062,1077,1119,1196,1079,1041, | ||
2070 | + 1188,1042,1101,1075,1073,1085,1086,1082,1195,1204, | ||
2071 | + 1105,1087,1046,1215,1220,1133,1278,1277,1318,1279, | ||
2072 | + 1242,1239,1240,1238,1241,1065,1275,1274,1268,1273, | ||
2073 | + 1053,1124,1221,1031,1289,1193,1223,1224,1237,1227, | ||
2074 | + 1040,1218,1211,1209,1259,1280,1208,1055,1282,1037, | ||
2075 | + 1283,1153,1154,1151,1172,1043,1155,1267,1266,1262, | ||
2076 | + 1265,1264,1263,1156,1112,1109,1111,1110,1157,1158, | ||
2077 | + 1159,1152,1326,1168,1286,1169,1024,1028,1327,1281, | ||
2078 | + 1173,1174,1175,1140,1058,1317,1207,1090,1295,1170, | ||
2079 | + 1148,1319,1325,1332,1333,1294,1048,1189,1149,1320, | ||
2080 | + 1137,1026,1216,1092,1291,1146,1096,1200,1201,1322, | ||
2081 | + 1206,1125,1226,1054,1288,1272,1246,1056,1177,1178, | ||
2082 | + 1179,1180,1181,1182,1183,1321,1165,1166,1232,1160, | ||
2083 | + 1162,1167,1231,1161,1163,1164,1089,1108,1106,1107, | ||
2084 | + 1247,1198,1187,1331,1205,1199,1261,1298,1233,1276, | ||
2085 | + 1129,1143,1142,1061,1078,1083,1118,1330,1080,1102, | ||
2086 | + 1072,1076,1074,1071,1084,1081,1203,1088,1045,1217, | ||
2087 | + 1114,1116,1115,1113,1202,1176,1307,1313,1190,1197, | ||
2088 | + 1297,1210,1103,1258,1095,1094,1091,1290,1050,1300, | ||
2089 | + 1329,1139,1127,1117,1301,1235,1248,1252,1251,1250, | ||
2090 | + 1249,1308,1310,1312,1311,1059,1229,1097,1120,1067, | ||
2091 | + 1044,1130,1032,1287,1296,1093,1069,1306,1036,1123, | ||
2092 | + 1302,1269,1126,1270,1027,1147, | ||
2093 | +}; | ||
2094 | +static int ia64_syscall_s2i(const char *s, int *value) { | ||
2095 | + size_t len, i; | ||
2096 | + len = strlen(s); | ||
2097 | + { char copy[len + 1]; | ||
2098 | + for (i = 0; i < len; i++) { | ||
2099 | + char c = s[i]; | ||
2100 | + copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; | ||
2101 | + } | ||
2102 | + copy[i] = 0; | ||
2103 | + return s2i__(ia64_syscall_strings, ia64_syscall_s2i_s, ia64_syscall_s2i_i, 306, copy, value); | ||
2104 | + } | ||
2105 | +} | ||
2106 | +static const unsigned ia64_syscall_i2s_direct[] = { | ||
2107 | + 1440,336,1683,2942,1451,204,218,1057,2850,329, | ||
2108 | + 95,410,2897,1197,101,107,1125,711,726,1237, | ||
2109 | + 2837,2459,836,656,1642,23,2620,552,455,1035, | ||
2110 | + 1791,1183,1835,238,1535,2806,77,2315,664,648, | ||
2111 | + 30,989,449,2831,113,2881,242,2409,2380,756, | ||
2112 | + 2399,746,2389,671,2322,703,2360,2428,786,2332, | ||
2113 | + 2418,766,776,823,2446,2144,1557,2602,1698,2874, | ||
2114 | + 2595,2587,1724,2818,558,417,433,734,2368,2571, | ||
2115 | + 534,816,2158,2165,2151,1337,1351,1344,1330,2494, | ||
2116 | + 2475,2488,2481,2662,2344,681,2827,-1u,-1u,2904, | ||
2117 | + 1040,1762,2929,2654,191,2283,2844,43,-1u,862, | ||
2118 | + 224,-1u,-1u,1674,64,2648,1523,52,2306,2297, | ||
2119 | + 628,499,1718,2948,1574,1657,0,1226,1383,1211, | ||
2120 | + 1217,1243,1323,1358,1364,1372,2024,2098,2039,2113, | ||
2121 | + 2132,1960,1983,2058,1408,1429,1568,-1u,1231,1481, | ||
2122 | + 1496,1512,2510,1841,1854,1868,1883,1899,1912,1926, | ||
2123 | + 621,81,88,2187,718,1649,2541,72,210,1069, | ||
2124 | + 8,793,691,2548,2182,2213,1731,1736,2501,2435, | ||
2125 | + 805,2205,1754,1546,1175,1147,2566,1141,528,197, | ||
2126 | + 637,843,1688,2466,1131,518,853,1047,465,1076, | ||
2127 | + 1086,488,1779,1112,505,2812,568,2080,2006,2250, | ||
2128 | + 362,2673,341,1097,970,946,957,979,936,252, | ||
2129 | + 279,301,1819,2171,2680,2737,2723,2706,2693,177, | ||
2130 | + 147,134,161,542,2578,1155,584,2220,1276,1313, | ||
2131 | + 1300,1284,1266,1252,1017,2921,2935,35,1807,1028, | ||
2132 | + 1006,995,2266,892,874,919,1161,1474,1189,1203, | ||
2133 | + 440,574,1418,2857,1798,1062,2610,1707,424,352, | ||
2134 | + 1634,1562,2866,2559,2234,598,2625,2669,2912,372, | ||
2135 | + 614,289,2887,2522,2751,312,2759,2790,2774,2531, | ||
2136 | + 320,265,247,1540,905,1582,1666,1942,1745,382, | ||
2137 | + 396,1589,1390,1456,120,2641,2354,2196,1599,1616, | ||
2138 | + 15,475, | ||
2139 | +}; | ||
2140 | +static const char *ia64_syscall_i2s(int v) { | ||
2141 | + return i2s_direct__(ia64_syscall_strings, ia64_syscall_i2s_direct, 1024, 1335, v); | ||
2142 | +} | ||
2143 | diff --git a/lib/machinetabs.h b/lib/machinetabs.h | ||
2144 | new file mode 100644 | ||
2145 | index 0000000..ec2d033 | ||
2146 | --- /dev/null | ||
2147 | +++ b/lib/machinetabs.h | ||
2148 | @@ -0,0 +1,26 @@ | ||
2149 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
2150 | +static const char machine_strings[] = "i386\0i486\0i586\0i686\0ia64\0ppc\0ppc64\0s390\0s390x\0x86_64"; | ||
2151 | +static const unsigned machine_s2i_s[] = { | ||
2152 | + 0,5,10,15,20,25,29,35,40,46, | ||
2153 | +}; | ||
2154 | +static const int machine_s2i_i[] = { | ||
2155 | + 0,0,0,0,2,4,3,6,5,1, | ||
2156 | +}; | ||
2157 | +static int machine_s2i(const char *s, int *value) { | ||
2158 | + size_t len, i; | ||
2159 | + len = strlen(s); | ||
2160 | + { char copy[len + 1]; | ||
2161 | + for (i = 0; i < len; i++) { | ||
2162 | + char c = s[i]; | ||
2163 | + copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; | ||
2164 | + } | ||
2165 | + copy[i] = 0; | ||
2166 | + return s2i__(machine_strings, machine_s2i_s, machine_s2i_i, 10, copy, value); | ||
2167 | + } | ||
2168 | +} | ||
2169 | +static const unsigned machine_i2s_direct[] = { | ||
2170 | + 0,46,20,29,25,40,35, | ||
2171 | +}; | ||
2172 | +static const char *machine_i2s(int v) { | ||
2173 | + return i2s_direct__(machine_strings, machine_i2s_direct, 0, 6, v); | ||
2174 | +} | ||
2175 | diff --git a/lib/msg_typetabs.h b/lib/msg_typetabs.h | ||
2176 | new file mode 100644 | ||
2177 | index 0000000..770ec21 | ||
2178 | --- /dev/null | ||
2179 | +++ b/lib/msg_typetabs.h | ||
2180 | @@ -0,0 +1,104 @@ | ||
2181 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
2182 | +static const char msg_type_strings[] = "ADD_GROUP\0ADD_USER\0ANOM_ABEND\0ANOM_ACCESS_FS\0ANOM_ADD_ACCT\0ANOM_AMTU_FAIL\0ANOM_CRYPTO_FAIL\0ANOM_DEL_ACCT\0ANOM_EXEC\0ANOM_LINK\0" | ||
2183 | + "ANOM_LOGIN_ACCT\0ANOM_LOGIN_FAILURES\0ANOM_LOGIN_LOCATION\0ANOM_LOGIN_SESSIONS\0ANOM_LOGIN_TIME\0ANOM_MAX_DAC\0ANOM_MAX_MAC\0ANOM_MK_EXEC\0ANOM_MOD_ACCT\0ANOM_PROMISCUOUS\0" | ||
2184 | + "ANOM_RBAC_FAIL\0ANOM_RBAC_INTEGRITY_FAIL\0ANOM_ROOT_TRANS\0AVC\0AVC_PATH\0BPRM_FCAPS\0CAPSET\0CHGRP_ID\0CHUSER_ID\0CONFIG_CHANGE\0" | ||
2185 | + "CRED_ACQ\0CRED_DISP\0CRED_REFR\0CRYPTO_FAILURE_USER\0CRYPTO_KEY_USER\0CRYPTO_LOGIN\0CRYPTO_LOGOUT\0CRYPTO_PARAM_CHANGE_USER\0CRYPTO_REPLAY_USER\0CRYPTO_SESSION\0" | ||
2186 | + "CRYPTO_TEST_USER\0CWD\0DAC_CHECK\0DAEMON_ABORT\0DAEMON_ACCEPT\0DAEMON_CLOSE\0DAEMON_CONFIG\0DAEMON_END\0DAEMON_RESUME\0DAEMON_ROTATE\0" | ||
2187 | + "DAEMON_START\0DEL_GROUP\0DEL_USER\0DEV_ALLOC\0DEV_DEALLOC\0EOE\0EXECVE\0FD_PAIR\0FS_RELABEL\0GRP_AUTH\0" | ||
2188 | + "INTEGRITY_DATA\0INTEGRITY_HASH\0INTEGRITY_METADATA\0INTEGRITY_PCR\0INTEGRITY_RULE\0INTEGRITY_STATUS\0IPC\0IPC_SET_PERM\0KERNEL\0KERNEL_OTHER\0" | ||
2189 | + "LABEL_LEVEL_CHANGE\0LABEL_OVERRIDE\0LIST_RULES\0LOGIN\0MAC_CIPSOV4_ADD\0MAC_CIPSOV4_DEL\0MAC_CONFIG_CHANGE\0MAC_IPSEC_ADDSA\0MAC_IPSEC_ADDSPD\0MAC_IPSEC_DELSA\0" | ||
2190 | + "MAC_IPSEC_DELSPD\0MAC_IPSEC_EVENT\0MAC_MAP_ADD\0MAC_MAP_DEL\0MAC_POLICY_LOAD\0MAC_STATUS\0MAC_UNLBL_ALLOW\0MAC_UNLBL_STCADD\0MAC_UNLBL_STCDEL\0MMAP\0" | ||
2191 | + "MQ_GETSETATTR\0MQ_NOTIFY\0MQ_OPEN\0MQ_SENDRECV\0NETFILTER_CFG\0NETFILTER_PKT\0OBJ_PID\0PATH\0RESP_ACCT_LOCK\0RESP_ACCT_LOCK_TIMED\0" | ||
2192 | + "RESP_ACCT_REMOTE\0RESP_ACCT_UNLOCK_TIMED\0RESP_ALERT\0RESP_ANOMALY\0RESP_EXEC\0RESP_HALT\0RESP_KILL_PROC\0RESP_SEBOOL\0RESP_SINGLE\0RESP_TERM_ACCESS\0" | ||
2193 | + "RESP_TERM_LOCK\0ROLE_ASSIGN\0ROLE_MODIFY\0ROLE_REMOVE\0SECCOMP\0SELINUX_ERR\0SERVICE_START\0SERVICE_STOP\0SOCKADDR\0SOCKETCALL\0" | ||
2194 | + "SYSCALL\0SYSTEM_BOOT\0SYSTEM_RUNLEVEL\0SYSTEM_SHUTDOWN\0TEST\0TRUSTED_APP\0TTY\0TTY_GET\0TTY_SET\0USER\0" | ||
2195 | + "USER_ACCT\0USER_AUTH\0USER_AVC\0USER_CHAUTHTOK\0USER_CMD\0USER_END\0USER_ERR\0USER_LABELED_EXPORT\0USER_LOGIN\0USER_LOGOUT\0" | ||
2196 | + "USER_MAC_POLICY_LOAD\0USER_MGMT\0USER_ROLE_CHANGE\0USER_SELINUX_ERR\0USER_START\0USER_TTY\0USER_UNLABELED_EXPORT\0USYS_CONFIG\0VIRT_CONTROL\0VIRT_MACHINE_ID\0" | ||
2197 | + "VIRT_RESOURCE"; | ||
2198 | +static const unsigned msg_type_s2i_s[] = { | ||
2199 | + 0,10,19,30,45,59,74,91,105,115, | ||
2200 | + 125,141,161,181,201,217,230,243,256,270, | ||
2201 | + 287,302,327,343,347,356,367,374,383,393, | ||
2202 | + 407,416,426,436,456,472,485,499,524,543, | ||
2203 | + 558,575,579,589,602,616,629,643,654,668, | ||
2204 | + 682,695,705,714,724,736,740,747,755,766, | ||
2205 | + 775,790,805,824,838,853,870,874,887,894, | ||
2206 | + 907,926,941,952,958,974,990,1008,1024,1041, | ||
2207 | + 1057,1074,1090,1102,1114,1130,1141,1157,1174,1191, | ||
2208 | + 1196,1210,1220,1228,1240,1254,1268,1276,1281,1296, | ||
2209 | + 1317,1334,1357,1368,1381,1391,1401,1416,1428,1440, | ||
2210 | + 1457,1472,1484,1496,1508,1516,1528,1542,1555,1564, | ||
2211 | + 1575,1583,1595,1611,1627,1632,1644,1648,1656,1664, | ||
2212 | + 1669,1679,1689,1698,1713,1722,1731,1740,1760,1771, | ||
2213 | + 1783,1804,1814,1831,1848,1859,1868,1890,1902,1915, | ||
2214 | + 1931, | ||
2215 | +}; | ||
2216 | +static const int msg_type_s2i_i[] = { | ||
2217 | + 1116,1114,1701,2111,2114,2107,2110,2115,2112,1702, | ||
2218 | + 2103,2100,2104,2102,2101,2105,2106,2113,2116,1700, | ||
2219 | + 2108,2109,2117,1400,1402,1321,1322,1119,1125,1305, | ||
2220 | + 1103,1104,1110,2405,2404,2402,2403,2401,2406,2407, | ||
2221 | + 2400,1307,1118,1202,1207,1208,1203,1201,1206,1205, | ||
2222 | + 1200,1117,1115,2307,2308,1320,1309,1317,2309,1126, | ||
2223 | + 1800,1803,1801,1804,1805,1802,1303,1311,2000,1316, | ||
2224 | + 2304,2303,1013,1006,1407,1408,1405,1411,1413,1412, | ||
2225 | + 1414,1415,1409,1410,1403,1404,1406,1416,1417,1323, | ||
2226 | + 1315,1314,1312,1313,1325,1324,1318,1302,2207,2205, | ||
2227 | + 2204,2206,2201,2200,2210,2212,2202,2209,2211,2203, | ||
2228 | + 2208,2301,2311,2302,1326,1401,1130,1131,1306,1304, | ||
2229 | + 1300,1127,1129,1128,1120,1121,1319,1016,1017,1005, | ||
2230 | + 1101,1100,1107,1108,1123,1106,1109,2305,1112,1113, | ||
2231 | + 2310,1102,2300,1122,1105,1124,2306,1111,2500,2502, | ||
2232 | + 2501, | ||
2233 | +}; | ||
2234 | +static int msg_type_s2i(const char *s, int *value) { | ||
2235 | + size_t len, i; | ||
2236 | + len = strlen(s); | ||
2237 | + { char copy[len + 1]; | ||
2238 | + for (i = 0; i < len; i++) { | ||
2239 | + char c = s[i]; | ||
2240 | + copy[i] = GT_ISLOWER(c) ? c - 'a' + 'A' : c; | ||
2241 | + } | ||
2242 | + copy[i] = 0; | ||
2243 | + return s2i__(msg_type_strings, msg_type_s2i_s, msg_type_s2i_i, 151, copy, value); | ||
2244 | + } | ||
2245 | +} | ||
2246 | +static const int msg_type_i2s_i[] = { | ||
2247 | + 1005,1006,1013,1016,1017,1100,1101,1102,1103,1104, | ||
2248 | + 1105,1106,1107,1108,1109,1110,1111,1112,1113,1114, | ||
2249 | + 1115,1116,1117,1118,1119,1120,1121,1122,1123,1124, | ||
2250 | + 1125,1126,1127,1128,1129,1130,1131,1200,1201,1202, | ||
2251 | + 1203,1205,1206,1207,1208,1300,1302,1303,1304,1305, | ||
2252 | + 1306,1307,1309,1311,1312,1313,1314,1315,1316,1317, | ||
2253 | + 1318,1319,1320,1321,1322,1323,1324,1325,1326,1400, | ||
2254 | + 1401,1402,1403,1404,1405,1406,1407,1408,1409,1410, | ||
2255 | + 1411,1412,1413,1414,1415,1416,1417,1700,1701,1702, | ||
2256 | + 1800,1801,1802,1803,1804,1805,2000,2100,2101,2102, | ||
2257 | + 2103,2104,2105,2106,2107,2108,2109,2110,2111,2112, | ||
2258 | + 2113,2114,2115,2116,2117,2200,2201,2202,2203,2204, | ||
2259 | + 2205,2206,2207,2208,2209,2210,2211,2212,2300,2301, | ||
2260 | + 2302,2303,2304,2305,2306,2307,2308,2309,2310,2311, | ||
2261 | + 2400,2401,2402,2403,2404,2405,2406,2407,2500,2501, | ||
2262 | + 2502, | ||
2263 | +}; | ||
2264 | +static const unsigned msg_type_i2s_s[] = { | ||
2265 | + 1664,952,941,1648,1656,1679,1669,1804,407,416, | ||
2266 | + 1848,1722,1689,1698,1731,426,1890,1760,1771,10, | ||
2267 | + 705,0,695,579,374,1627,1632,1831,1713,1859, | ||
2268 | + 383,766,1583,1611,1595,1528,1542,682,643,589, | ||
2269 | + 629,668,654,602,616,1575,1276,870,1564,393, | ||
2270 | + 1555,575,740,874,1220,1228,1210,1196,894,747, | ||
2271 | + 1268,1644,736,356,367,1191,1254,1240,1508,343, | ||
2272 | + 1516,347,1114,1130,990,1141,958,974,1090,1102, | ||
2273 | + 1008,1041,1024,1057,1074,1157,1174,270,19,115, | ||
2274 | + 775,805,853,790,824,838,887,141,201,181, | ||
2275 | + 125,161,217,230,59,287,302,74,30,105, | ||
2276 | + 243,45,91,256,327,1368,1357,1401,1440,1317, | ||
2277 | + 1296,1334,1281,1457,1416,1381,1428,1391,1814,1472, | ||
2278 | + 1496,926,907,1740,1868,714,724,755,1783,1484, | ||
2279 | + 558,499,472,485,456,436,524,543,1902,1931, | ||
2280 | + 1915, | ||
2281 | +}; | ||
2282 | +static const char *msg_type_i2s(int v) { | ||
2283 | + return i2s_bsearch__(msg_type_strings, msg_type_i2s_i, msg_type_i2s_s, 151, v); | ||
2284 | +} | ||
2285 | diff --git a/lib/optabs.h b/lib/optabs.h | ||
2286 | new file mode 100644 | ||
2287 | index 0000000..d79b665 | ||
2288 | --- /dev/null | ||
2289 | +++ b/lib/optabs.h | ||
2290 | @@ -0,0 +1,11 @@ | ||
2291 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
2292 | +static const char op_strings[] = "!=\0&\0&=\0<\0<=\0=\0>\0>="; | ||
2293 | +static const int op_i2s_i[] = { | ||
2294 | + 134217728,268435456,536870912,805306368,1073741824,1207959552,1342177280,1610612736, | ||
2295 | +}; | ||
2296 | +static const unsigned op_i2s_s[] = { | ||
2297 | + 3,8,15,0,13,5,10,17, | ||
2298 | +}; | ||
2299 | +static const char *op_i2s(int v) { | ||
2300 | + return i2s_bsearch__(op_strings, op_i2s_i, op_i2s_s, 8, v); | ||
2301 | +} | ||
2302 | diff --git a/lib/ppc_tables.h b/lib/ppc_tables.h | ||
2303 | new file mode 100644 | ||
2304 | index 0000000..778fae3 | ||
2305 | --- /dev/null | ||
2306 | +++ b/lib/ppc_tables.h | ||
2307 | @@ -0,0 +1,163 @@ | ||
2308 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
2309 | +static const char ppc_syscall_strings[] = "_llseek\0_newselect\0_sysctl\0accept\0accept4\0access\0acct\0add_key\0adjtimex\0afs_syscall\0" | ||
2310 | + "alarm\0bdflush\0bind\0break\0brk\0capget\0capset\0chdir\0chmod\0chown\0" | ||
2311 | + "chroot\0clock_adjtime\0clock_getres\0clock_gettime\0clock_nanosleep\0clock_settime\0clone\0close\0connect\0creat\0" | ||
2312 | + "create_module\0delete_module\0dup\0dup2\0dup3\0epoll_create\0epoll_create1\0epoll_ctl\0epoll_pwait\0epoll_wait\0" | ||
2313 | + "eventfd\0eventfd2\0execve\0exit\0exit_group\0faccessat\0fadvise64\0fadvise64_64\0fallocate\0fanotify_init\0" | ||
2314 | + "fanotify_mark\0fchdir\0fchmod\0fchmodat\0fchown\0fchownat\0fcntl\0fcntl64\0fdatasync\0fgetxattr\0" | ||
2315 | + "finit_module\0flistxattr\0flock\0fork\0fremovexattr\0fsetxattr\0fstat\0fstat64\0fstatat\0fstatfs\0" | ||
2316 | + "fstatfs64\0fsync\0ftime\0ftruncate\0ftruncate64\0futex\0futimesat\0get_kernel_syms\0get_robust_list\0getcpu\0" | ||
2317 | + "getcwd\0getdents\0getdents64\0getegid\0geteuid\0getgid\0getgroups\0getitimer\0getpeername\0getpgid\0" | ||
2318 | + "getpgrp\0getpid\0getpmsg\0getppid\0getpriority\0getresgid\0getresuid\0getrlimit\0getrusage\0getsid\0" | ||
2319 | + "getsockname\0getsockopt\0gettid\0gettimeofday\0getuid\0getxattr\0gtty\0idle\0init_module\0inotify_add_watch\0" | ||
2320 | + "inotify_init\0inotify_init1\0inotify_rm_watch\0io_cancel\0io_destroy\0io_getevents\0io_setup\0io_submit\0ioctl\0ioperm\0" | ||
2321 | + "iopl\0ioprio_get\0ioprio_set\0ipc\0kcmp\0kexec_load\0keyctl\0kill\0lchown\0lgetxattr\0" | ||
2322 | + "link\0linkat\0listen\0listxattr\0llistxattr\0lock\0lookup_dcookie\0lremovexattr\0lseek\0lsetxattr\0" | ||
2323 | + "lstat\0lstat64\0madvise\0mincore\0mkdir\0mkdirat\0mknod\0mknodat\0mlock\0mlockall\0" | ||
2324 | + "mmap\0mmap2\0modify_ldt\0mount\0move_pages\0mprotect\0mpx\0mq_getsetattr\0mq_notify\0mq_open\0" | ||
2325 | + "mq_timedreceive\0mq_timedsend\0mq_unlink\0mremap\0msync\0multiplexer\0munlock\0munlockall\0munmap\0name_to_handle_at\0" | ||
2326 | + "nanosleep\0nfsservctl\0nice\0oldfstat\0oldlstat\0oldolduname\0oldstat\0olduname\0open\0open_by_handle_at\0" | ||
2327 | + "openat\0pause\0pciconfig_iobase\0pciconfig_read\0pciconfig_write\0perf_counter_open\0personality\0pipe\0pipe2\0pivot_root\0" | ||
2328 | + "poll\0ppoll\0prctl\0pread\0preadv\0prlimit64\0process_vm_readv\0process_vm_writev\0prof\0profil\0" | ||
2329 | + "pselect6\0ptrace\0putpmsg\0pwrite\0pwritev\0query_module\0quotactl\0read\0readahead\0readdir\0" | ||
2330 | + "readlink\0readlinkat\0readv\0reboot\0recv\0recvfrom\0recvmmsg\0recvmsg\0remap_file_pages\0removexattr\0" | ||
2331 | + "rename\0renameat\0request_key\0rmdir\0rt_sigaction\0rt_sigpending\0rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0" | ||
2332 | + "rt_sigtimedwait\0rt_tgsigqueueinfo\0rtas\0sched_get_priority_max\0sched_get_priority_min\0sched_getaffinity\0sched_getparam\0sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0" | ||
2333 | + "sched_setparam\0sched_setscheduler\0sched_yield\0select\0send\0sendfile\0sendfile64\0sendmmsg\0sendmsg\0sendto\0" | ||
2334 | + "set_robust_list\0set_tid_address\0setdomainname\0setfsgid\0setfsuid\0setgid\0setgroups\0sethostname\0setitimer\0setns\0" | ||
2335 | + "setpgid\0setpriority\0setregid\0setresgid\0setresuid\0setreuid\0setrlimit\0setsid\0setsockopt\0settimeofday\0" | ||
2336 | + "setuid\0setxattr\0sgetmask\0shutdown\0sigaction\0sigaltstack\0signal\0signalfd\0signalfd4\0sigpending\0" | ||
2337 | + "sigprocmask\0sigreturn\0sigsuspend\0socket\0socketcall\0socketpair\0splice\0spu_create\0spu_run\0ssetmask\0" | ||
2338 | + "stat\0stat64\0statfs\0statfs64\0stime\0stty\0subpage_prot\0swapcontext\0swapoff\0swapon\0" | ||
2339 | + "symlink\0symlinkat\0sync\0sync_file_range2\0syncfs\0sysfs\0sysinfo\0syslog\0tee\0tgkill\0" | ||
2340 | + "time\0timer_create\0timer_delete\0timer_getoverrun\0timer_gettime\0timer_settime\0timerfd\0timerfd_gettime\0timerfd_settime\0times\0" | ||
2341 | + "tkill\0truncate\0truncate64\0tuxcall\0ugetrlimit\0ulimit\0umask\0umount\0umount2\0uname\0" | ||
2342 | + "unlink\0unlinkat\0unshare\0uselib\0ustat\0utime\0utimensat\0utimes\0vfork\0vhangup\0" | ||
2343 | + "vm86\0vmsplice\0wait4\0waitid\0waitpid\0write\0writev"; | ||
2344 | +static const unsigned ppc_syscall_s2i_s[] = { | ||
2345 | + 0,8,19,27,34,42,49,54,62,71, | ||
2346 | + 83,89,97,102,108,112,119,126,132,138, | ||
2347 | + 144,151,165,178,192,208,222,228,234,242, | ||
2348 | + 248,262,276,280,285,290,303,317,327,339, | ||
2349 | + 350,358,367,374,379,390,400,410,423,433, | ||
2350 | + 447,461,468,475,484,491,500,506,514,524, | ||
2351 | + 534,547,558,564,569,582,592,598,606,614, | ||
2352 | + 622,632,638,644,654,666,672,682,698,714, | ||
2353 | + 721,728,737,748,756,764,771,781,791,803, | ||
2354 | + 811,819,826,834,842,854,864,874,884,894, | ||
2355 | + 901,913,924,931,944,951,960,965,970,982, | ||
2356 | + 1000,1013,1027,1044,1054,1065,1078,1087,1097,1103, | ||
2357 | + 1110,1115,1126,1137,1141,1146,1157,1164,1169,1176, | ||
2358 | + 1186,1191,1198,1205,1215,1226,1231,1246,1259,1265, | ||
2359 | + 1275,1281,1289,1297,1305,1311,1319,1325,1333,1339, | ||
2360 | + 1348,1353,1359,1370,1376,1387,1396,1400,1414,1424, | ||
2361 | + 1432,1448,1461,1471,1478,1484,1496,1504,1515,1522, | ||
2362 | + 1540,1550,1561,1566,1575,1584,1596,1604,1613,1618, | ||
2363 | + 1636,1643,1649,1666,1681,1697,1715,1727,1732,1738, | ||
2364 | + 1749,1754,1760,1766,1772,1779,1789,1806,1824,1829, | ||
2365 | + 1836,1845,1852,1860,1867,1875,1888,1897,1902,1912, | ||
2366 | + 1920,1929,1940,1946,1953,1958,1967,1976,1984,2001, | ||
2367 | + 2013,2020,2029,2041,2047,2060,2074,2089,2105,2118, | ||
2368 | + 2132,2148,2166,2171,2194,2217,2235,2250,2269,2291, | ||
2369 | + 2309,2324,2343,2355,2362,2367,2376,2387,2396,2404, | ||
2370 | + 2411,2427,2443,2457,2466,2475,2482,2492,2504,2514, | ||
2371 | + 2520,2528,2540,2549,2559,2569,2578,2588,2595,2606, | ||
2372 | + 2619,2626,2635,2644,2653,2663,2675,2682,2691,2701, | ||
2373 | + 2712,2724,2734,2745,2752,2763,2774,2781,2792,2800, | ||
2374 | + 2809,2814,2821,2828,2837,2843,2848,2861,2873,2881, | ||
2375 | + 2888,2896,2906,2911,2928,2935,2941,2949,2956,2960, | ||
2376 | + 2967,2972,2985,2998,3015,3029,3043,3051,3067,3083, | ||
2377 | + 3089,3095,3104,3115,3123,3134,3141,3147,3154,3162, | ||
2378 | + 3168,3175,3184,3192,3199,3205,3211,3221,3228,3234, | ||
2379 | + 3242,3247,3256,3262,3269,3277,3283, | ||
2380 | +}; | ||
2381 | +static const int ppc_syscall_s2i_i[] = { | ||
2382 | + 140,142,149,330,344,33,51,269,124,137, | ||
2383 | + 27,134,327,17,45,183,184,12,15,181, | ||
2384 | + 61,347,247,246,248,245,120,6,328,8, | ||
2385 | + 127,129,41,63,316,236,315,237,303,238, | ||
2386 | + 307,314,11,1,234,298,233,254,309,323, | ||
2387 | + 324,133,94,297,95,289,55,204,148,214, | ||
2388 | + 353,217,143,2,220,211,108,197,291,100, | ||
2389 | + 253,118,35,93,194,221,290,130,299,302, | ||
2390 | + 182,141,202,50,49,47,80,105,332,132, | ||
2391 | + 65,20,187,64,96,170,165,76,77,147, | ||
2392 | + 331,340,207,78,24,212,32,112,128,276, | ||
2393 | + 275,318,277,231,228,229,227,230,54,101, | ||
2394 | + 110,274,273,117,354,268,271,37,16,213, | ||
2395 | + 9,294,329,215,216,53,235,219,19,210, | ||
2396 | + 107,196,205,206,39,287,14,288,150,152, | ||
2397 | + 90,192,123,21,301,125,56,267,266,262, | ||
2398 | + 265,264,263,163,144,201,151,153,91,345, | ||
2399 | + 162,168,34,28,84,59,18,109,5,346, | ||
2400 | + 286,29,200,198,199,319,136,42,317,203, | ||
2401 | + 167,281,171,179,320,325,351,352,44,98, | ||
2402 | + 280,26,188,180,321,166,131,3,191,89, | ||
2403 | + 85,296,145,88,336,337,343,342,239,218, | ||
2404 | + 38,293,270,40,173,175,174,177,172,178, | ||
2405 | + 176,322,255,159,160,223,155,157,161,222, | ||
2406 | + 154,156,158,82,334,186,226,349,341,335, | ||
2407 | + 300,232,121,139,138,46,81,74,104,350, | ||
2408 | + 57,97,71,169,164,70,75,66,339,79, | ||
2409 | + 23,209,68,338,67,185,48,305,313,73, | ||
2410 | + 126,119,72,326,102,333,283,279,278,69, | ||
2411 | + 106,195,99,252,25,31,310,249,115,87, | ||
2412 | + 83,295,36,308,348,135,116,103,284,250, | ||
2413 | + 13,240,244,243,242,241,306,312,311,43, | ||
2414 | + 208,92,193,225,190,58,60,22,52,122, | ||
2415 | + 10,292,282,86,62,30,304,251,189,111, | ||
2416 | + 113,285,114,272,7,4,146, | ||
2417 | +}; | ||
2418 | +static int ppc_syscall_s2i(const char *s, int *value) { | ||
2419 | + size_t len, i; | ||
2420 | + len = strlen(s); | ||
2421 | + { char copy[len + 1]; | ||
2422 | + for (i = 0; i < len; i++) { | ||
2423 | + char c = s[i]; | ||
2424 | + copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; | ||
2425 | + } | ||
2426 | + copy[i] = 0; | ||
2427 | + return s2i__(ppc_syscall_strings, ppc_syscall_s2i_s, ppc_syscall_s2i_i, 347, copy, value); | ||
2428 | + } | ||
2429 | +} | ||
2430 | +static const unsigned ppc_syscall_i2s_direct[] = { | ||
2431 | + 374,564,1897,3277,1613,228,3269,242,1186,3168, | ||
2432 | + 367,126,2967,1319,132,1169,102,1596,1259,819, | ||
2433 | + 1370,3147,2619,944,2837,1845,83,1566,1643,3205, | ||
2434 | + 2843,960,42,1561,638,2906,1164,2013,1305,2041, | ||
2435 | + 276,1727,3083,1824,108,2475,764,2675,756,748, | ||
2436 | + 49,3154,1226,1097,500,1396,2520,3134,1584,3141, | ||
2437 | + 144,3199,280,834,811,2588,2653,2635,2800,2569, | ||
2438 | + 2540,2734,2701,2492,2578,874,884,931,2606,771, | ||
2439 | + 2482,2355,2888,1575,1920,3192,2881,1946,1912,1348, | ||
2440 | + 1515,3095,644,468,484,842,2528,1829,2821,614, | ||
2441 | + 1103,2752,2949,2504,781,2809,1275,592,1604,1110, | ||
2442 | + 3234,965,3242,3256,2873,2941,1137,632,2724,222, | ||
2443 | + 2443,3162,1359,62,1387,2712,248,970,262,682, | ||
2444 | + 1888,803,461,89,2935,1715,71,2466,2457,0, | ||
2445 | + 728,8,558,1478,1940,3283,894,514,19,1333, | ||
2446 | + 1496,1339,1504,2309,2235,2324,2250,2343,2171,2194, | ||
2447 | + 2269,1540,1471,2559,864,1875,1749,1550,2549,854, | ||
2448 | + 1760,2105,2047,2074,2060,2132,2089,2118,1766,1860, | ||
2449 | + 138,721,112,119,2663,2367,826,1852,3228,3123, | ||
2450 | + 1902,1353,3104,654,2814,1281,598,1666,1681,1649, | ||
2451 | + 1484,737,1738,506,1289,1297,924,3089,2626,1265, | ||
2452 | + 582,951,1176,524,1205,1215,547,2001,1246,569, | ||
2453 | + 666,2291,2217,-1u,3115,2376,1078,1054,1065,1087, | ||
2454 | + 1044,2427,400,379,1231,290,317,339,1984,2972, | ||
2455 | + 3029,3015,2998,2985,208,178,165,192,2861,2960, | ||
2456 | + 3221,2828,622,410,2166,-1u,-1u,-1u,-1u,-1u, | ||
2457 | + -1u,1424,1461,1448,1432,1414,1400,1146,54,2029, | ||
2458 | + 1157,3262,1126,1115,1000,982,1027,2792,2781,1836, | ||
2459 | + 1754,3184,2774,2956,3247,1636,1311,1325,491,672, | ||
2460 | + 606,3175,2020,1191,2896,1929,475,390,698,2411, | ||
2461 | + 1376,714,327,3211,2682,3043,350,2911,423,2848, | ||
2462 | + 3067,3051,2691,358,303,285,1732,1013,1697,1772, | ||
2463 | + 1867,2148,433,447,1779,2745,97,234,1198,27, | ||
2464 | + 901,791,2763,2362,2404,1953,1958,2644,2595,913, | ||
2465 | + 2396,1976,1967,34,1522,1618,151,2928,2387,2514, | ||
2466 | + 1789,1806,534,1141, | ||
2467 | +}; | ||
2468 | +static const char *ppc_syscall_i2s(int v) { | ||
2469 | + return i2s_direct__(ppc_syscall_strings, ppc_syscall_i2s_direct, 1, 354, v); | ||
2470 | +} | ||
2471 | diff --git a/lib/s390_tables.h b/lib/s390_tables.h | ||
2472 | new file mode 100644 | ||
2473 | index 0000000..218482e | ||
2474 | --- /dev/null | ||
2475 | +++ b/lib/s390_tables.h | ||
2476 | @@ -0,0 +1,153 @@ | ||
2477 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
2478 | +static const char s390_syscall_strings[] = "_llseek\0_newselect\0_sysctl\0access\0acct\0add_key\0adjtimex\0afs_syscall\0alarm\0bdflush\0" | ||
2479 | + "brk\0capget\0capset\0chdir\0chmod\0chown\0chown32\0chroot\0clock_adjtime\0clock_getres\0" | ||
2480 | + "clock_gettime\0clock_nanosleep\0clock_settime\0clone\0close\0creat\0create_module\0delete_module\0dup\0dup2\0" | ||
2481 | + "dup3\0epoll_create\0epoll_create1\0epoll_ctl\0epoll_pwait\0epoll_wait\0eventfd\0eventfd2\0execve\0exit\0" | ||
2482 | + "exit_group\0faccessat\0fadvise64\0fadvise64_64\0fallocate\0fanotify_init\0fanotify_mark\0fchdir\0fchmod\0fchmodat\0" | ||
2483 | + "fchown\0fchown32\0fchownat\0fcntl\0fcntl64\0fdatasync\0fgetxattr\0finit_module\0flistxattr\0flock\0" | ||
2484 | + "fork\0fremovexattr\0fsetxattr\0fstat\0fstat64\0fstatat\0fstatfs\0fstatfs64\0fsync\0ftruncate\0" | ||
2485 | + "ftruncate64\0futex\0futimesat\0get_kernel_syms\0get_robust_list\0getcpu\0getcwd\0getdents\0getdents64\0getegid\0" | ||
2486 | + "getegid32\0geteuid\0geteuid32\0getgid\0getgid32\0getgroups\0getgroups32\0getitimer\0getpgid\0getpgrp\0" | ||
2487 | + "getpid\0getpmsg\0getppid\0getpriority\0getresgid\0getresgid32\0getresuid\0getresuid32\0getrlimit\0getrusage\0" | ||
2488 | + "getsid\0gettid\0gettimeofday\0getuid\0getuid32\0getxattr\0idle\0init_module\0inotify_add_watch\0inotify_init\0" | ||
2489 | + "inotify_init1\0inotify_rm_watch\0io_cancel\0io_destroy\0io_getevents\0io_setup\0io_submit\0ioctl\0ioperm\0ioprio_get\0" | ||
2490 | + "ioprio_set\0ipc\0kcmp\0kexec_load\0keyctl\0kill\0lchown\0lchown32\0lgetxattr\0link\0" | ||
2491 | + "linkat\0listxattr\0llistxattr\0lremovexattr\0lseek\0lsetxattr\0lstat\0lstat64\0madvise\0mincore\0" | ||
2492 | + "mkdir\0mkdirat\0mknod\0mknodat\0mlock\0mlockall\0mmap\0mmap2\0mount\0mprotect\0" | ||
2493 | + "mq_getsetattr\0mq_notify\0mq_open\0mq_timedreceive\0mq_timedsend\0mq_unlink\0mremap\0msync\0munlock\0munlockall\0" | ||
2494 | + "munmap\0name_to_handle_at\0nanosleep\0nfsservctl\0nice\0open\0open_by_handle_at\0openat\0pause\0perf_event_open\0" | ||
2495 | + "personality\0pipe\0pipe2\0pivot_root\0poll\0ppoll\0prctl\0pread\0preadv\0prlimit64\0" | ||
2496 | + "process_vm_readv\0process_vm_writev\0pselect6\0ptrace\0putpmsg\0pwrite\0pwritev\0query_module\0quotactl\0read\0" | ||
2497 | + "readahead\0readdir\0readlink\0readlinkat\0readv\0reboot\0remap_file_pages\0removexattr\0rename\0renameat\0" | ||
2498 | + "request_key\0rmdir\0rt_sigaction\0rt_sigpending\0rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0rt_sigtimedwait\0rt_tgsigqueueinfo\0" | ||
2499 | + "s390_runtime_instr\0sched_get_priority_max\0sched_get_priority_min\0sched_getaffinity\0sched_getparam\0sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0sched_setscheduler\0" | ||
2500 | + "sched_yield\0sendfile\0sendfile64\0set_robust_list\0set_tid_address\0setdomainname\0setfsgid\0setfsgid32\0setfsuid\0setfsuid32\0" | ||
2501 | + "setgid\0setgid32\0setgroups\0setgroups32\0sethostname\0setitimer\0setns\0setpgid\0setpriority\0setregid\0" | ||
2502 | + "setregid32\0setresgid\0setresgid32\0setresuid\0setresuid32\0setreuid\0setreuid32\0setrlimit\0setsid\0settimeofday\0" | ||
2503 | + "setuid\0setuid32\0setxattr\0sigaction\0sigaltstack\0signal\0signalfd\0signalfd4\0sigpending\0sigprocmask\0" | ||
2504 | + "sigreturn\0sigsuspend\0socketcall\0splice\0stat\0stat64\0statfs\0statfs64\0stime\0swapoff\0" | ||
2505 | + "swapon\0symlink\0symlinkat\0sync\0sync_file_range\0syncfs\0sysfs\0sysinfo\0syslog\0tee\0" | ||
2506 | + "tgkill\0time\0timer_create\0timer_delete\0timer_getoverrun\0timer_gettime\0timer_settime\0timerfd\0timerfd_create\0timerfd_gettime\0" | ||
2507 | + "timerfd_settime\0times\0tkill\0truncate\0truncate64\0ugetrlimit\0umask\0umount\0umount2\0uname\0" | ||
2508 | + "unlink\0unlinkat\0unshare\0uselib\0ustat\0utime\0utimensat\0utimes\0vfork\0vhangup\0" | ||
2509 | + "vmsplice\0wait4\0waitid\0write\0writev"; | ||
2510 | +static const unsigned s390_syscall_s2i_s[] = { | ||
2511 | + 0,8,19,27,34,39,47,56,68,74, | ||
2512 | + 82,86,93,100,106,112,118,126,133,147, | ||
2513 | + 160,174,190,204,210,216,222,236,250,254, | ||
2514 | + 259,264,277,291,301,313,324,332,341,348, | ||
2515 | + 353,364,374,384,397,407,421,435,442,449, | ||
2516 | + 458,465,474,483,489,497,507,517,530,541, | ||
2517 | + 547,552,565,575,581,589,597,605,615,621, | ||
2518 | + 631,643,649,659,675,691,698,705,714,725, | ||
2519 | + 733,743,751,761,768,777,787,799,809,817, | ||
2520 | + 825,832,840,848,860,870,882,892,904,914, | ||
2521 | + 924,931,938,951,958,967,976,981,993,1011, | ||
2522 | + 1024,1038,1055,1065,1076,1089,1098,1108,1114,1121, | ||
2523 | + 1132,1143,1147,1152,1163,1170,1175,1182,1191,1201, | ||
2524 | + 1206,1213,1223,1234,1247,1253,1263,1269,1277,1285, | ||
2525 | + 1293,1299,1307,1313,1321,1327,1336,1341,1347,1353, | ||
2526 | + 1362,1376,1386,1394,1410,1423,1433,1440,1446,1454, | ||
2527 | + 1465,1472,1490,1500,1511,1516,1521,1539,1546,1552, | ||
2528 | + 1568,1580,1585,1591,1602,1607,1613,1619,1625,1632, | ||
2529 | + 1642,1659,1677,1686,1693,1701,1708,1716,1729,1738, | ||
2530 | + 1743,1753,1761,1770,1781,1787,1794,1811,1823,1830, | ||
2531 | + 1839,1851,1857,1870,1884,1899,1915,1928,1942,1958, | ||
2532 | + 1976,1995,2018,2041,2059,2074,2093,2115,2133,2148, | ||
2533 | + 2167,2179,2188,2199,2215,2231,2245,2254,2265,2274, | ||
2534 | + 2285,2292,2301,2311,2323,2335,2345,2351,2359,2371, | ||
2535 | + 2380,2391,2401,2413,2423,2435,2444,2455,2465,2472, | ||
2536 | + 2485,2492,2501,2510,2520,2532,2539,2548,2558,2569, | ||
2537 | + 2581,2591,2602,2613,2620,2625,2632,2639,2648,2654, | ||
2538 | + 2662,2669,2677,2687,2692,2708,2715,2721,2729,2736, | ||
2539 | + 2740,2747,2752,2765,2778,2795,2809,2823,2831,2846, | ||
2540 | + 2862,2878,2884,2890,2899,2910,2921,2927,2934,2942, | ||
2541 | + 2948,2955,2964,2972,2979,2985,2991,3001,3008,3014, | ||
2542 | + 3022,3031,3037,3044,3050, | ||
2543 | +}; | ||
2544 | +static const int s390_syscall_s2i_i[] = { | ||
2545 | + 140,142,149,33,51,278,124,137,27,134, | ||
2546 | + 45,184,185,12,15,182,212,61,337,261, | ||
2547 | + 260,262,259,120,6,8,127,129,41,63, | ||
2548 | + 326,249,327,250,312,251,318,323,11,1, | ||
2549 | + 248,300,253,264,314,332,333,133,94,299, | ||
2550 | + 95,207,291,55,221,148,229,344,232,143, | ||
2551 | + 2,235,226,108,197,293,100,266,118,93, | ||
2552 | + 194,238,292,130,305,311,183,141,220,50, | ||
2553 | + 202,49,201,47,200,80,205,105,132,65, | ||
2554 | + 20,188,64,96,171,211,165,209,76,77, | ||
2555 | + 147,236,78,24,199,227,112,128,285,284, | ||
2556 | + 324,286,247,244,245,243,246,54,101,283, | ||
2557 | + 282,117,343,277,280,37,16,198,228,9, | ||
2558 | + 296,230,231,234,19,225,107,196,219,218, | ||
2559 | + 39,289,14,290,150,152,90,192,21,125, | ||
2560 | + 276,275,271,274,273,272,163,144,151,153, | ||
2561 | + 91,335,162,169,34,5,336,288,29,331, | ||
2562 | + 136,42,325,217,168,302,172,180,328,334, | ||
2563 | + 340,341,301,26,189,181,329,167,131,3, | ||
2564 | + 222,89,85,298,145,88,267,233,38,295, | ||
2565 | + 279,40,174,176,175,178,173,179,177,330, | ||
2566 | + 342,159,160,240,155,157,161,239,154,156, | ||
2567 | + 158,187,223,304,252,121,139,216,138,215, | ||
2568 | + 46,214,81,206,74,104,339,57,97,71, | ||
2569 | + 204,170,210,164,208,70,203,75,66,79, | ||
2570 | + 23,213,224,67,186,48,316,322,73,126, | ||
2571 | + 119,72,102,306,106,195,99,265,25,115, | ||
2572 | + 87,83,297,36,307,338,135,116,103,308, | ||
2573 | + 241,13,254,258,257,256,255,317,319,321, | ||
2574 | + 320,43,237,92,193,191,60,22,52,122, | ||
2575 | + 10,294,303,86,62,30,315,313,190,111, | ||
2576 | + 309,114,281,4,146, | ||
2577 | +}; | ||
2578 | +static int s390_syscall_s2i(const char *s, int *value) { | ||
2579 | + size_t len, i; | ||
2580 | + len = strlen(s); | ||
2581 | + { char copy[len + 1]; | ||
2582 | + for (i = 0; i < len; i++) { | ||
2583 | + char c = s[i]; | ||
2584 | + copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; | ||
2585 | + } | ||
2586 | + copy[i] = 0; | ||
2587 | + return s2i__(s390_syscall_strings, s390_syscall_s2i_s, s390_syscall_s2i_i, 315, copy, value); | ||
2588 | + } | ||
2589 | +} | ||
2590 | +static const unsigned s390_syscall_i2s_direct[] = { | ||
2591 | + 348,547,1738,3044,1516,210,-1u,216,1201,2948, | ||
2592 | + 341,100,2747,1307,106,1175,-1u,-1u,1247,825, | ||
2593 | + 1347,2927,2485,951,2648,1686,68,-1u,1546,2985, | ||
2594 | + -1u,-1u,27,1511,-1u,2687,1170,1823,1293,1851, | ||
2595 | + 250,1580,2878,-1u,82,2285,761,2532,743,725, | ||
2596 | + 34,2934,-1u,1108,483,-1u,2351,-1u,-1u,2921, | ||
2597 | + 126,2979,254,840,817,2465,2510,-1u,-1u,2435, | ||
2598 | + 2371,2591,2558,2323,2455,904,914,938,2472,777, | ||
2599 | + 2301,-1u,2669,-1u,1761,2972,2662,1787,1753,1336, | ||
2600 | + 1465,2890,621,442,458,848,2359,-1u,2632,597, | ||
2601 | + 1114,2602,2729,2335,799,2620,1263,575,-1u,-1u, | ||
2602 | + 3014,976,-1u,3031,2654,2721,1143,615,2581,204, | ||
2603 | + 2231,2942,-1u,47,1353,2569,222,981,236,659, | ||
2604 | + 1729,809,435,74,2715,1568,56,2265,2245,0, | ||
2605 | + 705,8,541,1440,1781,3050,924,497,19,1321, | ||
2606 | + 1446,1327,1454,2133,2059,2148,2074,2167,1995,2018, | ||
2607 | + 2093,1490,1433,2413,882,-1u,1716,1602,1500,2391, | ||
2608 | + 860,1613,1915,1857,1884,1870,1942,1899,1928,1619, | ||
2609 | + 1701,112,698,86,93,2520,2179,832,1693,3008, | ||
2610 | + 2910,1341,2899,631,2625,1269,581,1182,958,768, | ||
2611 | + 751,733,2444,2380,787,2311,465,2423,892,2401, | ||
2612 | + 870,118,2492,2292,2274,2254,1591,1285,1277,714, | ||
2613 | + 489,1743,2188,2501,1253,565,967,1191,507,1213, | ||
2614 | + 1223,530,1811,1234,552,931,2884,643,2115,2041, | ||
2615 | + 2740,-1u,1089,1065,1076,1098,1055,353,264,291, | ||
2616 | + 313,2215,374,2752,2809,2795,2778,2765,190,160, | ||
2617 | + 147,174,-1u,384,2639,605,1794,-1u,-1u,-1u, | ||
2618 | + 1386,1423,1410,1394,1376,1362,1152,39,1839,1163, | ||
2619 | + 3037,1132,1121,1011,993,1038,-1u,1539,1299,1313, | ||
2620 | + 474,649,589,2955,1830,1206,2677,1770,449,364, | ||
2621 | + 1677,1607,2964,2199,675,2613,2692,2736,3022,-1u, | ||
2622 | + 691,301,3001,397,2991,2539,2823,324,2831,2862, | ||
2623 | + 2846,2548,332,1024,1585,259,277,1625,1708,1958, | ||
2624 | + 1552,407,421,1632,1472,1521,133,2708,2345,1642, | ||
2625 | + 1659,1976,1147,517, | ||
2626 | +}; | ||
2627 | +static const char *s390_syscall_i2s(int v) { | ||
2628 | + return i2s_direct__(s390_syscall_strings, s390_syscall_i2s_direct, 1, 344, v); | ||
2629 | +} | ||
2630 | diff --git a/lib/s390x_tables.h b/lib/s390x_tables.h | ||
2631 | new file mode 100644 | ||
2632 | index 0000000..36099fc | ||
2633 | --- /dev/null | ||
2634 | +++ b/lib/s390x_tables.h | ||
2635 | @@ -0,0 +1,144 @@ | ||
2636 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
2637 | +static const char s390x_syscall_strings[] = "_sysctl\0access\0acct\0add_key\0adjtimex\0afs_syscall\0alarm\0bdflush\0brk\0capget\0" | ||
2638 | + "capset\0chdir\0chmod\0chown\0chroot\0clock_adjtime\0clock_getres\0clock_gettime\0clock_nanosleep\0clock_settime\0" | ||
2639 | + "clone\0close\0creat\0create_module\0delete_module\0dup\0dup2\0dup3\0epoll_create\0epoll_create1\0" | ||
2640 | + "epoll_ctl\0epoll_pwait\0epoll_wait\0eventfd\0eventfd2\0execve\0exit\0exit_group\0faccessat\0fadvise64\0" | ||
2641 | + "fallocate\0fanotify_init\0fanotify_mark\0fchdir\0fchmod\0fchmodat\0fchown\0fchownat\0fcntl\0fdatasync\0" | ||
2642 | + "fgetxattr\0finit_module\0flistxattr\0flock\0fork\0fremovexattr\0fsetxattr\0fstat\0fstatfs\0fstatfs64\0" | ||
2643 | + "fsync\0ftruncate\0futex\0futimesat\0get_kernel_syms\0get_robust_list\0getcpu\0getcwd\0getdents\0getegid\0" | ||
2644 | + "geteuid\0getgid\0getgroups\0getitimer\0getpgid\0getpgrp\0getpid\0getpmsg\0getppid\0getpriority\0" | ||
2645 | + "getresgid\0getresuid\0getrlimit\0getrusage\0getsid\0gettid\0gettimeofday\0getuid\0getxattr\0idle\0" | ||
2646 | + "init_module\0inotify_add_watch\0inotify_init\0inotify_init1\0inotify_rm_watch\0io_cancel\0io_destroy\0io_getevents\0io_setup\0io_submit\0" | ||
2647 | + "ioctl\0ioprio_get\0ioprio_set\0ipc\0kcmp\0kexec_load\0keyctl\0kill\0lchown\0lgetxattr\0" | ||
2648 | + "link\0linkat\0listxattr\0llistxattr\0lremovexattr\0lseek\0lsetxattr\0lstat\0madvise\0mincore\0" | ||
2649 | + "mkdir\0mkdirat\0mknod\0mknodat\0mlock\0mlockall\0mmap\0mount\0mprotect\0mq_getsetattr\0" | ||
2650 | + "mq_notify\0mq_open\0mq_timedreceive\0mq_timedsend\0mq_unlink\0mremap\0msync\0munlock\0munlockall\0munmap\0" | ||
2651 | + "name_to_handle_at\0nanosleep\0newfstatat\0nfsservctl\0nice\0open\0open_by_handle_at\0openat\0pause\0perf_event_open\0" | ||
2652 | + "personality\0pipe\0pipe2\0pivot_root\0poll\0ppoll\0prctl\0pread\0preadv\0prlimit64\0" | ||
2653 | + "process_vm_readv\0process_vm_writev\0pselect6\0ptrace\0putpmsg\0pwrite\0pwritev\0query_module\0quotactl\0read\0" | ||
2654 | + "readahead\0readdir\0readlink\0readlinkat\0readv\0reboot\0remap_file_pages\0removexattr\0rename\0renameat\0" | ||
2655 | + "request_key\0rmdir\0rt_sigaction\0rt_sigpending\0rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0rt_sigtimedwait\0rt_tgsigqueueinfo\0" | ||
2656 | + "s390_runtime_instr\0sched_get_priority_max\0sched_get_priority_min\0sched_getaffinity\0sched_getparam\0sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0sched_setscheduler\0" | ||
2657 | + "sched_yield\0select\0sendfile\0set_robust_list\0set_tid_address\0setdomainname\0setfsgid\0setfsuid\0setgid\0setgroups\0" | ||
2658 | + "sethostname\0setitimer\0setns\0setpgid\0setpriority\0setregid\0setresgid\0setresuid\0setreuid\0setrlimit\0" | ||
2659 | + "setsid\0settimeofday\0setuid\0setxattr\0sigaction\0sigaltstack\0signal\0signalfd\0signalfd4\0sigpending\0" | ||
2660 | + "sigprocmask\0sigreturn\0sigsuspend\0socketcall\0splice\0stat\0statfs\0statfs64\0swapoff\0swapon\0" | ||
2661 | + "symlink\0symlinkat\0sync\0sync_file_range\0syncfs\0sysfs\0sysinfo\0syslog\0tee\0tgkill\0" | ||
2662 | + "timer_create\0timer_delete\0timer_getoverrun\0timer_gettime\0timer_settime\0timerfd\0timerfd_create\0timerfd_gettime\0timerfd_settime\0times\0" | ||
2663 | + "tkill\0truncate\0umask\0umount\0umount2\0uname\0unlink\0unlinkat\0unshare\0uselib\0" | ||
2664 | + "ustat\0utime\0utimensat\0utimes\0vfork\0vhangup\0vmsplice\0wait4\0waitid\0write\0" | ||
2665 | + "writev"; | ||
2666 | +static const unsigned s390x_syscall_s2i_s[] = { | ||
2667 | + 0,8,15,20,28,37,49,55,63,67, | ||
2668 | + 74,81,87,93,99,106,120,133,147,163, | ||
2669 | + 177,183,189,195,209,223,227,232,237,250, | ||
2670 | + 264,274,286,297,305,314,321,326,337,347, | ||
2671 | + 357,367,381,395,402,409,418,425,434,440, | ||
2672 | + 450,460,473,484,490,495,508,518,524,532, | ||
2673 | + 542,548,558,564,574,590,606,613,620,629, | ||
2674 | + 637,645,652,662,672,680,688,695,703,711, | ||
2675 | + 723,733,743,753,763,770,777,790,797,806, | ||
2676 | + 811,823,841,854,868,885,895,906,919,928, | ||
2677 | + 938,944,955,966,970,975,986,993,998,1005, | ||
2678 | + 1015,1020,1027,1037,1048,1061,1067,1077,1083,1091, | ||
2679 | + 1099,1105,1113,1119,1127,1133,1142,1147,1153,1162, | ||
2680 | + 1176,1186,1194,1210,1223,1233,1240,1246,1254,1265, | ||
2681 | + 1272,1290,1300,1311,1322,1327,1332,1350,1357,1363, | ||
2682 | + 1379,1391,1396,1402,1413,1418,1424,1430,1436,1443, | ||
2683 | + 1453,1470,1488,1497,1504,1512,1519,1527,1540,1549, | ||
2684 | + 1554,1564,1572,1581,1592,1598,1605,1622,1634,1641, | ||
2685 | + 1650,1662,1668,1681,1695,1710,1726,1739,1753,1769, | ||
2686 | + 1787,1806,1829,1852,1870,1885,1904,1926,1944,1959, | ||
2687 | + 1978,1990,1997,2006,2022,2038,2052,2061,2070,2077, | ||
2688 | + 2087,2099,2109,2115,2123,2135,2144,2154,2164,2173, | ||
2689 | + 2183,2190,2203,2210,2219,2229,2241,2248,2257,2267, | ||
2690 | + 2278,2290,2300,2311,2322,2329,2334,2341,2350,2358, | ||
2691 | + 2365,2373,2383,2388,2404,2411,2417,2425,2432,2436, | ||
2692 | + 2443,2456,2469,2486,2500,2514,2522,2537,2553,2569, | ||
2693 | + 2575,2581,2590,2596,2603,2611,2617,2624,2633,2641, | ||
2694 | + 2648,2654,2660,2670,2677,2683,2691,2700,2706,2713, | ||
2695 | + 2719, | ||
2696 | +}; | ||
2697 | +static const int s390x_syscall_s2i_i[] = { | ||
2698 | + 149,33,51,278,124,137,27,134,45,184, | ||
2699 | + 185,12,15,212,61,337,261,260,262,259, | ||
2700 | + 120,6,8,127,129,41,63,326,249,327, | ||
2701 | + 250,312,251,318,323,11,1,248,300,253, | ||
2702 | + 314,332,333,133,94,299,207,291,55,148, | ||
2703 | + 229,344,232,143,2,235,226,108,100,266, | ||
2704 | + 118,93,238,292,130,305,311,183,141,202, | ||
2705 | + 201,200,205,105,132,65,20,188,64,96, | ||
2706 | + 211,209,191,77,147,236,78,199,227,112, | ||
2707 | + 128,285,284,324,286,247,244,245,243,246, | ||
2708 | + 54,283,282,117,343,277,280,37,198,228, | ||
2709 | + 9,296,230,231,234,19,225,107,219,218, | ||
2710 | + 39,289,14,290,150,152,90,21,125,276, | ||
2711 | + 275,271,274,273,272,163,144,151,153,91, | ||
2712 | + 335,162,293,169,34,5,336,288,29,331, | ||
2713 | + 136,42,325,217,168,302,172,180,328,334, | ||
2714 | + 340,341,301,26,189,181,329,167,131,3, | ||
2715 | + 222,89,85,298,145,88,267,233,38,295, | ||
2716 | + 279,40,174,176,175,178,173,179,177,330, | ||
2717 | + 342,159,160,240,155,157,161,239,154,156, | ||
2718 | + 158,142,187,304,252,121,216,215,214,206, | ||
2719 | + 74,104,339,57,97,204,210,208,203,75, | ||
2720 | + 66,79,213,224,67,186,48,316,322,73, | ||
2721 | + 126,119,72,102,306,106,99,265,115,87, | ||
2722 | + 83,297,36,307,338,135,116,103,308,241, | ||
2723 | + 254,258,257,256,255,317,319,321,320,43, | ||
2724 | + 237,92,60,22,52,122,10,294,303,86, | ||
2725 | + 62,30,315,313,190,111,309,114,281,4, | ||
2726 | + 146, | ||
2727 | +}; | ||
2728 | +static int s390x_syscall_s2i(const char *s, int *value) { | ||
2729 | + size_t len, i; | ||
2730 | + len = strlen(s); | ||
2731 | + { char copy[len + 1]; | ||
2732 | + for (i = 0; i < len; i++) { | ||
2733 | + char c = s[i]; | ||
2734 | + copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; | ||
2735 | + } | ||
2736 | + copy[i] = 0; | ||
2737 | + return s2i__(s390x_syscall_strings, s390x_syscall_s2i_s, s390x_syscall_s2i_i, 281, copy, value); | ||
2738 | + } | ||
2739 | +} | ||
2740 | +static const unsigned s390x_syscall_i2s_direct[] = { | ||
2741 | + 321,490,1549,2713,1327,183,-1u,189,1015,2617, | ||
2742 | + 314,81,-1u,1113,87,-1u,-1u,-1u,1061,688, | ||
2743 | + 1147,2596,-1u,-1u,-1u,1497,49,-1u,1357,2654, | ||
2744 | + -1u,-1u,8,1322,-1u,2383,993,1634,1099,1662, | ||
2745 | + 223,1391,2569,-1u,63,-1u,-1u,2241,-1u,-1u, | ||
2746 | + 15,2603,-1u,938,434,-1u,2115,-1u,-1u,2590, | ||
2747 | + 99,2648,227,703,680,2183,2219,-1u,-1u,-1u, | ||
2748 | + -1u,2300,2267,2087,2173,-1u,753,777,2190,-1u, | ||
2749 | + -1u,-1u,2365,-1u,1572,2641,2358,1598,1564,1142, | ||
2750 | + 1265,2581,548,402,-1u,711,2123,-1u,2334,524, | ||
2751 | + -1u,2311,2425,2099,662,2329,1077,518,-1u,-1u, | ||
2752 | + 2683,806,-1u,2700,2350,2417,966,542,2290,177, | ||
2753 | + 2038,2611,-1u,28,1153,2278,195,811,209,574, | ||
2754 | + 1540,672,395,55,2411,1379,37,-1u,-1u,-1u, | ||
2755 | + 620,1990,484,1240,1592,2719,763,440,0,1127, | ||
2756 | + 1246,1133,1254,1944,1870,1959,1885,1978,1806,1829, | ||
2757 | + 1904,1290,1233,-1u,-1u,-1u,1527,1413,1311,-1u, | ||
2758 | + -1u,1424,1726,1668,1695,1681,1753,1710,1739,1430, | ||
2759 | + 1512,-1u,613,67,74,2229,1997,695,1504,2677, | ||
2760 | + 743,-1u,-1u,-1u,-1u,-1u,-1u,998,790,645, | ||
2761 | + 637,629,2164,2135,652,2077,418,2154,733,2144, | ||
2762 | + 723,93,2203,2070,2061,2052,1402,1091,1083,-1u, | ||
2763 | + -1u,1554,-1u,2210,1067,508,797,1005,450,1027, | ||
2764 | + 1037,473,1622,1048,495,770,2575,558,1926,1852, | ||
2765 | + 2436,-1u,919,895,906,928,885,326,237,264, | ||
2766 | + 286,2022,347,2443,2500,2486,2469,2456,163,133, | ||
2767 | + 120,147,-1u,-1u,2341,532,1605,-1u,-1u,-1u, | ||
2768 | + 1186,1223,1210,1194,1176,1162,975,20,1650,986, | ||
2769 | + 2706,955,944,841,823,868,-1u,1350,1105,1119, | ||
2770 | + 425,564,1300,2624,1641,1020,2373,1581,409,337, | ||
2771 | + 1488,1418,2633,2006,590,2322,2388,2432,2691,-1u, | ||
2772 | + 606,274,2670,357,2660,2248,2514,297,2522,2553, | ||
2773 | + 2537,2257,305,854,1396,232,250,1436,1519,1769, | ||
2774 | + 1363,367,381,1443,1272,1332,106,2404,2109,1453, | ||
2775 | + 1470,1787,970,460, | ||
2776 | +}; | ||
2777 | +static const char *s390x_syscall_i2s(int v) { | ||
2778 | + return i2s_direct__(s390x_syscall_strings, s390x_syscall_i2s_direct, 1, 344, v); | ||
2779 | +} | ||
2780 | diff --git a/lib/x86_64_tables.h b/lib/x86_64_tables.h | ||
2781 | new file mode 100644 | ||
2782 | index 0000000..d2a5673 | ||
2783 | --- /dev/null | ||
2784 | +++ b/lib/x86_64_tables.h | ||
2785 | @@ -0,0 +1,150 @@ | ||
2786 | +/* This is a generated file, see Makefile.am for its inputs. */ | ||
2787 | +static const char x86_64_syscall_strings[] = "_sysctl\0accept\0accept4\0access\0acct\0add_key\0adjtimex\0afs_syscall\0alarm\0arch_prctl\0" | ||
2788 | + "bind\0brk\0capget\0capset\0chdir\0chmod\0chown\0chroot\0clock_adjtime\0clock_getres\0" | ||
2789 | + "clock_gettime\0clock_nanosleep\0clock_settime\0clone\0close\0connect\0creat\0create_module\0delete_module\0dup\0" | ||
2790 | + "dup2\0dup3\0epoll_create\0epoll_create1\0epoll_ctl\0epoll_ctl_old\0epoll_pwait\0epoll_wait\0epoll_wait_old\0eventfd\0" | ||
2791 | + "eventfd2\0execve\0exit\0exit_group\0faccessat\0fadvise64\0fallocate\0fanotify_init\0fanotify_mark\0fchdir\0" | ||
2792 | + "fchmod\0fchmodat\0fchown\0fchownat\0fcntl\0fdatasync\0fgetxattr\0finit_module\0flistxattr\0flock\0" | ||
2793 | + "fork\0fremovexattr\0fsetxattr\0fstat\0fstatfs\0fsync\0ftruncate\0futex\0futimesat\0get_kernel_syms\0" | ||
2794 | + "get_mempolicy\0get_robust_list\0get_thread_area\0getcpu\0getcwd\0getdents\0getdents64\0getegid\0geteuid\0getgid\0" | ||
2795 | + "getgroups\0getitimer\0getpeername\0getpgid\0getpgrp\0getpid\0getpmsg\0getppid\0getpriority\0getresgid\0" | ||
2796 | + "getresuid\0getrlimit\0getrusage\0getsid\0getsockname\0getsockopt\0gettid\0gettimeofday\0getuid\0getxattr\0" | ||
2797 | + "init_module\0inotify_add_watch\0inotify_init\0inotify_init1\0inotify_rm_watch\0io_cancel\0io_destroy\0io_getevents\0io_setup\0io_submit\0" | ||
2798 | + "ioctl\0ioperm\0iopl\0ioprio_get\0ioprio_set\0kcmp\0kexec_load\0keyctl\0kill\0lchown\0" | ||
2799 | + "lgetxattr\0link\0linkat\0listen\0listxattr\0llistxattr\0lookup_dcookie\0lremovexattr\0lseek\0lsetxattr\0" | ||
2800 | + "lstat\0madvise\0mbind\0migrate_pages\0mincore\0mkdir\0mkdirat\0mknod\0mknodat\0mlock\0" | ||
2801 | + "mlockall\0mmap\0modify_ldt\0mount\0move_pages\0mprotect\0mq_getsetattr\0mq_notify\0mq_open\0mq_timedreceive\0" | ||
2802 | + "mq_timedsend\0mq_unlink\0mremap\0msgctl\0msgget\0msgrcv\0msgsnd\0msync\0munlock\0munlockall\0" | ||
2803 | + "munmap\0name_to_handle_at\0nanosleep\0newfstatat\0nfsservctl\0open\0open_by_handle_at\0openat\0pause\0perf_event_open\0" | ||
2804 | + "personality\0pipe\0pipe2\0pivot_root\0poll\0ppoll\0prctl\0pread\0preadv\0prlimit64\0" | ||
2805 | + "process_vm_readv\0process_vm_writev\0pselect6\0ptrace\0putpmsg\0pwrite\0pwritev\0query_module\0quotactl\0read\0" | ||
2806 | + "readahead\0readlink\0readlinkat\0readv\0reboot\0recvfrom\0recvmmsg\0recvmsg\0remap_file_pages\0removexattr\0" | ||
2807 | + "rename\0renameat\0request_key\0restart_syscall\0rmdir\0rt_sigaction\0rt_sigpending\0rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0" | ||
2808 | + "rt_sigsuspend\0rt_sigtimedwait\0rt_tgsigqueueinfo\0sched_get_priority_max\0sched_get_priority_min\0sched_getaffinity\0sched_getparam\0sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0" | ||
2809 | + "sched_setparam\0sched_setscheduler\0sched_yield\0security\0select\0semctl\0semget\0semop\0semtimedop\0sendfile\0" | ||
2810 | + "sendmmsg\0sendmsg\0sendto\0set_mempolicy\0set_robust_list\0set_thread_area\0set_tid_address\0setdomainname\0setfsgid\0setfsuid\0" | ||
2811 | + "setgid\0setgroups\0sethostname\0setitimer\0setns\0setpgid\0setpriority\0setregid\0setresgid\0setresuid\0" | ||
2812 | + "setreuid\0setrlimit\0setsid\0setsockopt\0settimeofday\0setuid\0setxattr\0shmat\0shmctl\0shmdt\0" | ||
2813 | + "shmget\0shutdown\0sigaltstack\0signalfd\0signalfd4\0socket\0socketpair\0splice\0stat\0statfs\0" | ||
2814 | + "swapoff\0swapon\0symlink\0symlinkat\0sync\0sync_file_range\0syncfs\0sysfs\0sysinfo\0syslog\0" | ||
2815 | + "tee\0tgkill\0time\0timer_create\0timer_delete\0timer_getoverrun\0timer_gettime\0timer_settime\0timerfd\0timerfd_gettime\0" | ||
2816 | + "timerfd_settime\0times\0tkill\0truncate\0tuxcall\0umask\0umount2\0uname\0unlink\0unlinkat\0" | ||
2817 | + "unshare\0uselib\0ustat\0utime\0utimensat\0utimes\0vfork\0vhangup\0vmsplice\0vserver\0" | ||
2818 | + "wait4\0waitid\0write\0writev"; | ||
2819 | +static const unsigned x86_64_syscall_s2i_s[] = { | ||
2820 | + 0,8,15,23,30,35,43,52,64,70, | ||
2821 | + 81,86,90,97,104,110,116,122,129,143, | ||
2822 | + 156,170,186,200,206,212,220,226,240,254, | ||
2823 | + 258,263,268,281,295,305,319,331,342,357, | ||
2824 | + 365,374,381,386,397,407,417,427,441,455, | ||
2825 | + 462,469,478,485,494,500,510,520,533,544, | ||
2826 | + 550,555,568,578,584,592,598,608,614,624, | ||
2827 | + 640,654,670,686,693,700,709,720,728,736, | ||
2828 | + 743,753,763,775,783,791,798,806,814,826, | ||
2829 | + 836,846,856,866,873,885,896,903,916,923, | ||
2830 | + 932,944,962,975,989,1006,1016,1027,1040,1049, | ||
2831 | + 1059,1065,1072,1077,1088,1099,1104,1115,1122,1127, | ||
2832 | + 1134,1144,1149,1156,1163,1173,1184,1199,1212,1218, | ||
2833 | + 1228,1234,1242,1248,1262,1270,1276,1284,1290,1298, | ||
2834 | + 1304,1313,1318,1329,1335,1346,1355,1369,1379,1387, | ||
2835 | + 1403,1416,1426,1433,1440,1447,1454,1461,1467,1475, | ||
2836 | + 1486,1493,1511,1521,1532,1543,1548,1566,1573,1579, | ||
2837 | + 1595,1607,1612,1618,1629,1634,1640,1646,1652,1659, | ||
2838 | + 1669,1686,1704,1713,1720,1728,1735,1743,1756,1765, | ||
2839 | + 1770,1780,1789,1800,1806,1813,1822,1831,1839,1856, | ||
2840 | + 1868,1875,1884,1896,1912,1918,1931,1945,1960,1976, | ||
2841 | + 1989,2003,2019,2037,2060,2083,2101,2116,2135,2157, | ||
2842 | + 2175,2190,2209,2221,2230,2237,2244,2251,2257,2268, | ||
2843 | + 2277,2286,2294,2301,2315,2331,2347,2363,2377,2386, | ||
2844 | + 2395,2402,2412,2424,2434,2440,2448,2460,2469,2479, | ||
2845 | + 2489,2498,2508,2515,2526,2539,2546,2555,2561,2568, | ||
2846 | + 2574,2581,2590,2602,2611,2621,2628,2639,2646,2651, | ||
2847 | + 2658,2666,2673,2681,2691,2696,2712,2719,2725,2733, | ||
2848 | + 2740,2744,2751,2756,2769,2782,2799,2813,2827,2835, | ||
2849 | + 2851,2867,2873,2879,2888,2896,2902,2910,2916,2923, | ||
2850 | + 2932,2940,2947,2953,2959,2969,2976,2982,2990,2999, | ||
2851 | + 3007,3013,3020,3026, | ||
2852 | +}; | ||
2853 | +static const int x86_64_syscall_s2i_i[] = { | ||
2854 | + 156,43,288,21,163,248,159,183,37,158, | ||
2855 | + 49,12,125,126,80,90,92,161,305,229, | ||
2856 | + 228,230,227,56,3,42,85,174,176,32, | ||
2857 | + 33,292,213,291,233,214,281,232,215,284, | ||
2858 | + 290,59,60,231,269,221,285,300,301,81, | ||
2859 | + 91,268,93,260,72,75,193,313,196,73, | ||
2860 | + 57,199,190,5,138,74,77,202,261,177, | ||
2861 | + 239,274,211,309,79,78,217,108,107,104, | ||
2862 | + 115,36,52,121,111,39,181,110,140,120, | ||
2863 | + 118,97,98,124,51,55,186,96,102,191, | ||
2864 | + 175,254,253,294,255,210,207,208,206,209, | ||
2865 | + 16,173,172,252,251,312,246,250,62,94, | ||
2866 | + 192,86,265,50,194,195,212,198,8,189, | ||
2867 | + 6,28,237,256,27,83,258,133,259,149, | ||
2868 | + 151,9,154,165,279,10,245,244,240,243, | ||
2869 | + 242,241,25,71,68,70,69,26,150,152, | ||
2870 | + 11,303,35,262,180,2,304,257,34,298, | ||
2871 | + 135,22,293,155,7,271,157,17,295,302, | ||
2872 | + 310,311,270,101,182,18,296,178,179,0, | ||
2873 | + 187,89,267,19,169,45,299,47,216,197, | ||
2874 | + 82,264,249,219,84,13,127,14,129,15, | ||
2875 | + 130,128,297,146,147,204,143,145,148,203, | ||
2876 | + 142,144,24,185,23,66,64,65,220,40, | ||
2877 | + 307,46,44,238,273,205,218,171,123,122, | ||
2878 | + 106,116,170,38,308,109,141,114,119,117, | ||
2879 | + 113,160,112,54,164,105,188,30,31,67, | ||
2880 | + 29,48,131,282,289,41,53,275,4,137, | ||
2881 | + 168,167,88,266,162,277,306,139,99,103, | ||
2882 | + 276,234,201,222,226,225,224,223,283,287, | ||
2883 | + 286,100,200,76,184,95,166,63,87,263, | ||
2884 | + 272,134,136,132,280,235,58,153,278,236, | ||
2885 | + 61,247,1,20, | ||
2886 | +}; | ||
2887 | +static int x86_64_syscall_s2i(const char *s, int *value) { | ||
2888 | + size_t len, i; | ||
2889 | + len = strlen(s); | ||
2890 | + { char copy[len + 1]; | ||
2891 | + for (i = 0; i < len; i++) { | ||
2892 | + char c = s[i]; | ||
2893 | + copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; | ||
2894 | + } | ||
2895 | + copy[i] = 0; | ||
2896 | + return s2i__(x86_64_syscall_strings, x86_64_syscall_s2i_s, x86_64_syscall_s2i_i, 314, copy, value); | ||
2897 | + } | ||
2898 | +} | ||
2899 | +static const unsigned x86_64_syscall_i2s_direct[] = { | ||
2900 | + 1765,3020,1543,206,2646,578,1228,1629,1212,1313, | ||
2901 | + 1346,1486,86,1918,1945,1976,1059,1646,1728,1800, | ||
2902 | + 3026,23,1607,2230,2209,1426,1461,1262,1234,2574, | ||
2903 | + 2555,2561,254,258,1573,1511,753,64,2424,791, | ||
2904 | + 2268,2621,212,8,2294,1813,2286,1831,2581,81, | ||
2905 | + 1156,873,763,2628,2515,885,200,550,2976,374, | ||
2906 | + 381,3007,1122,2910,2244,2251,2237,2568,1440,1454, | ||
2907 | + 1447,1433,494,544,592,500,2879,598,700,693, | ||
2908 | + 104,455,1868,1270,1912,220,1144,2916,2673,1780, | ||
2909 | + 110,462,116,478,1127,2896,903,846,856,2725, | ||
2910 | + 2867,1713,916,2733,736,2539,2395,728,720,2440, | ||
2911 | + 806,783,2508,2489,2460,743,2402,2479,836,2469, | ||
2912 | + 826,775,2386,2377,866,90,97,1931,2003,1960, | ||
2913 | + 1989,2590,2953,1284,2940,1595,2947,2651,584,2719, | ||
2914 | + 814,2448,2175,2101,2190,2116,2037,2060,2135,1298, | ||
2915 | + 1467,1304,1475,2982,1318,1618,0,1640,70,43, | ||
2916 | + 2498,122,2691,30,2526,1329,2902,2666,2658,1806, | ||
2917 | + 2412,2363,1072,1065,226,932,240,624,1743,1756, | ||
2918 | + 1532,798,1720,52,2888,2221,896,1770,2546,1218, | ||
2919 | + 568,923,1134,510,1163,1173,533,1856,1199,555, | ||
2920 | + 2873,2751,608,2157,2083,2331,1040,1016,1027,1049, | ||
2921 | + 1006,670,1184,268,305,342,1839,709,2347,1896, | ||
2922 | + 2257,407,2756,2813,2799,2782,2769,186,156,143, | ||
2923 | + 170,386,331,295,2744,2969,2999,1242,2301,640, | ||
2924 | + 1379,1416,1403,1387,1369,1355,1104,3013,35,1884, | ||
2925 | + 1115,1088,1077,962,944,989,1248,1566,1276,1290, | ||
2926 | + 485,614,1521,2923,1875,1149,2681,1789,469,397, | ||
2927 | + 1704,1634,2932,2315,654,2639,2740,2696,2990,1335, | ||
2928 | + 2959,319,2602,2827,357,417,2851,2835,15,2611, | ||
2929 | + 365,281,263,1612,975,1652,1735,2019,1579,1822, | ||
2930 | + 427,441,1659,1493,1548,129,2712,2277,2434,686, | ||
2931 | + 1669,1686,1099,520, | ||
2932 | +}; | ||
2933 | +static const char *x86_64_syscall_i2s(int v) { | ||
2934 | + return i2s_direct__(x86_64_syscall_strings, x86_64_syscall_i2s_direct, 0, 313, v); | ||
2935 | +} | ||
2936 | -- | ||
2937 | 1.7.9.5 | ||
2938 | |||