aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/getpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/getpid.c')
-rw-r--r--src/libthread/getpid.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libthread/getpid.c b/src/libthread/getpid.c
new file mode 100644
index 00000000..da03bd3f
--- /dev/null
+++ b/src/libthread/getpid.c
@@ -0,0 +1,8 @@
+#include "threadimpl.h"
+#include <unistd.h>
+
+int
+_threadgetpid(void)
+{
+ return getpid();
+}