diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-08-18 07:30:16 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-08-18 07:30:16 +0000 |
commit | de85d7be56528bad31359d7e3e3864a610c32c3c (patch) | |
tree | 5fd3fa728c0fe443d59ce88627d74555069a28c9 /cpukit/posix/src/getpid.c | |
parent | 2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-de85d7be56528bad31359d7e3e3864a610c32c3c.tar.bz2 |
2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 449/rtems:
* src/getegid.c: Remove (Moved to ../libcsupport/src).
* src/geteuid.c: Remove (Moved to ../libcsupport/src).
* src/getgid.c: Remove (Moved to ../libcsupport/src).
* src/getgroups.c: Remove (Moved to ../libcsupport/src).
* src/getlogin.c: Remove (Moved to ../libcsupport/src).
* src/getpgrp.c: Remove (Moved to ../libcsupport/src).
* src/getpid.c: Remove (Moved to ../libcsupport/src).
* src/getppid.c: Remove (Moved to ../libcsupport/src).
* src/getuid.c: Remove (Moved to ../libcsupport/src).
* src/setpgid.c: Remove (Moved to ../libcsupport/src).
* src/setsid.c: Remove (Moved to ../libcsupport/src).
* Makefile.am: Reflect changes above
Diffstat (limited to 'cpukit/posix/src/getpid.c')
-rw-r--r-- | cpukit/posix/src/getpid.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/cpukit/posix/src/getpid.c b/cpukit/posix/src/getpid.c deleted file mode 100644 index 5442b6468d..0000000000 --- a/cpukit/posix/src/getpid.c +++ /dev/null @@ -1,45 +0,0 @@ -/* - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include <limits.h> -#include <errno.h> -#include <string.h> -#include <sys/types.h> - -#include <rtems/system.h> -#include <rtems/score/object.h> -#include <rtems/seterr.h> - -/*PAGE - * - * 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83 - */ - -pid_t getpid( void ) -{ - return _Objects_Local_node; -} - -/* - * _getpid_r - * - * This is the Newlib dependent reentrant version of getpid(). - */ - -#if defined(RTEMS_NEWLIB) - -#include <reent.h> - -pid_t _getpid_r( - struct _reent *ptr -) -{ - return getpid(); -} -#endif - |