aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-10-28 07:32:47 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-10-28 07:32:47 -0400
commit21aba697b88deb77fe9356a57ee142fb7fb56a12 (patch)
treee677575f8a17e5a87c35fb4ba043d73c13032005 /src/tools
parenti386 compile fixes (diff)
downloadfirejail-21aba697b88deb77fe9356a57ee142fb7fb56a12.tar.gz
firejail-21aba697b88deb77fe9356a57ee142fb7fb56a12.tar.zst
firejail-21aba697b88deb77fe9356a57ee142fb7fb56a12.zip
vimperator, seccomp
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/extract_syscalls.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/extract_syscalls.c b/src/tools/extract_syscalls.c
index 0e064a49e..9ccf40f05 100644
--- a/src/tools/extract_syscalls.c
+++ b/src/tools/extract_syscalls.c
@@ -18,14 +18,14 @@
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19*/ 19*/
20#include <stdio.h> 20#include <stdio.h>
21#include <stdlib.h>6 21#include <stdlib.h>
22#include <string.h> 22#include <string.h>
23 23
24#define BUFMAX 4096 24#define BUFMAX 4096
25 25
26int main(int argc, char **argv) { 26int main(int argc, char **argv) {
27 if (argc != 2) { 27 if (argc != 2) {
28 printf("usage: %s /media/ubuntu/usr/include/x86_64-linux-gnu/bits/syscall.h\n", argv[0]); 28 printf("usage: %s /usr/include/x86_64-linux-gnu/bits/syscall.h\n", argv[0]);
29 return 1; 29 return 1;
30 } 30 }
31 31
@@ -48,6 +48,8 @@ int main(int argc, char **argv) {
48 *end = '\0'; 48 *end = '\0';
49 49
50 // parsing 50 // parsing
51 if (strncmp(start, "# error", 7) == 0)
52 continue;
51 if (strncmp(start, "#endif", 6) == 0) 53 if (strncmp(start, "#endif", 6) == 0)
52 printf("%s\n", start); 54 printf("%s\n", start);
53 if (strncmp(start, "#endif", 6) == 0) 55 if (strncmp(start, "#endif", 6) == 0)