summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/getppid.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/getppid.c')
-rw-r--r--cpukit/libcsupport/src/getppid.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/getppid.c b/cpukit/libcsupport/src/getppid.c
new file mode 100644
index 0000000000..b987f69447
--- /dev/null
+++ b/cpukit/libcsupport/src/getppid.c
@@ -0,0 +1,25 @@
+/*
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <unistd.h>
+
+#include <rtems/system.h>
+#include <rtems/score/object.h>
+#include <rtems/seterr.h>
+
+pid_t _POSIX_types_Ppid = 0;
+
+/*PAGE
+ *
+ * 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83
+ */
+
+pid_t getppid( void )
+{
+ return _POSIX_types_Ppid;
+}