feed all

مطالب مرتبط با «how to compile a java program» در feed all | نویسنده: استخدام کار

How to compile seccomp test program

I am ruing 16.04 LTS.I am trying to compile the seccomp test program that is in the man page for seccomp. The test program is at the bottom of the man page http://man7.org/linux/man-pages/man2/seccomp.2.htmlWhen I try to compile the program I get the following error message: Code: chen@consulting-VirtualBox:~/work/seccompTest$ gcc seccompTest.c seccompTest.c: In function ‘install_filter’: seccompTest.c:65:7: waing: implicit declaration of function ‘seccomp’ [-Wimplicit-function-declaration] if (seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog)) { ^ /tmp/cc5KwI6o.o: In function `install_filter': seccompTest.c:(.text+0x108): undefined reference to `seccomp' collect2: error: ld retued 1 exit status If...

ادامه مطلب