summaryrefslogtreecommitdiff
path: root/lib/getpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/getpid.c')
-rw-r--r--lib/getpid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/getpid.c b/lib/getpid.c
new file mode 100644
index 0000000..99566e0
--- /dev/null
+++ b/lib/getpid.c
@@ -0,0 +1,3 @@
+#include <unistd.h>
+
+_syscall0(pid_t, getpid);