Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1 | #include <unistd.h> |
2 | #include "syscall.h" | ||||
3 | |||||
4 | pid_t getpid(void) | ||||
5 | { | ||||
Rich Felker | d878dce | 2011-04-21 21:52:41 -0400 | [diff] [blame] | 6 | return __syscall(SYS_getpid); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 7 | } |