#include // for __syscall_0, syscall #include // for getpid, pid_t pid_t getpid(void) { return syscall(getpid); }