blob: 57ea18c6aad761419204edede12d22f3ba8050fe (
plain)
1
2
3
4
5
6
7
8
9
|
#include "asm/unistd_64.h" // for __NR_getpid
#include <syscall.h> // for __syscall_0, syscall
#include <unistd.h> // for getpid, pid_t
pid_t getpid(void)
{
return syscall(getpid);
}
|