/* syscall-test.c * * I'm using the __NR_ulimit system call number 58 which is * the old ulimit system call with a sys_ni_syscall (so it shouldn't * be used). */ /* Standard include files for syscall, see man syscall */ #include #include int main(void) { printf("Hello, calling my_syscall, in place of NR 58 old ulimit\n"); syscall(__NR_ulimit); printf("Done. Go check /var/log/syslog\n"); return 0; }