summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/__getpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libc/__getpid.c')
-rw-r--r--c/src/lib/libc/__getpid.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/c/src/lib/libc/__getpid.c b/c/src/lib/libc/__getpid.c
new file mode 100644
index 0000000000..32353b717d
--- /dev/null
+++ b/c/src/lib/libc/__getpid.c
@@ -0,0 +1,14 @@
+/*
+ * Some C Libraries reference this routine since they think getpid is
+ * a real system call.
+ *
+ * $Id$
+ */
+
+#include <unistd.h>
+
+pid_t __getpid(void)
+{
+ return getpid();
+}
+