diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-08-19 08:30:41 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-08-19 08:30:41 +0000 |
commit | 34e6f9131b25d92d1cd14ebbd36aa641aa82c0a8 (patch) | |
tree | 0171862d5845fe62f1ab9f1942c962a732ca73ee /cpukit/libcsupport | |
parent | 2003-08-18 Eiichiro Kawaguchi <e-kawaguchi@ct.jp.nec.com> (diff) | |
download | rtems-34e6f9131b25d92d1cd14ebbd36aa641aa82c0a8.tar.bz2 |
2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 449/rtems:
* src/getegid.c: New (Copied from ../posix/src).
* src/geteuid.c: New (Copied from ../posix/src).
* src/getgid.c: New (Copied from ../posix/src).
* src/getgroups.c: New (Copied from ../posix/src).
* src/getlogin.c: New (Copied from ../posix/src).
* src/getpgrp.c: New (Copied from ../posix/src).
* src/getpid.c: New (Copied from ../posix/src).
* src/getppid.c: New (Copied from ../posix/src).
* src/getuid.c: New (Copied from ../posix/src).
* src/setpgid.c: New (Copied from ../posix/src).
* src/setsid.c: New (Copied from ../posix/src).
* src/no_posix: Remove getpid and _getpid_r.
* Makefile.am: Reflect changes above.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r-- | cpukit/libcsupport/ChangeLog | 17 | ||||
-rw-r--r-- | cpukit/libcsupport/Makefile.am | 6 | ||||
-rw-r--r-- | cpukit/libcsupport/src/no_posix.c | 21 |
3 files changed, 22 insertions, 22 deletions
diff --git a/cpukit/libcsupport/ChangeLog b/cpukit/libcsupport/ChangeLog index 42e7c74723..d074be36be 100644 --- a/cpukit/libcsupport/ChangeLog +++ b/cpukit/libcsupport/ChangeLog @@ -1,3 +1,20 @@ +2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de> + + PR 449/rtems: + * src/getegid.c: New (Copied from ../posix/src). + * src/geteuid.c: New (Copied from ../posix/src). + * src/getgid.c: New (Copied from ../posix/src). + * src/getgroups.c: New (Copied from ../posix/src). + * src/getlogin.c: New (Copied from ../posix/src). + * src/getpgrp.c: New (Copied from ../posix/src). + * src/getpid.c: New (Copied from ../posix/src). + * src/getppid.c: New (Copied from ../posix/src). + * src/getuid.c: New (Copied from ../posix/src). + * src/setpgid.c: New (Copied from ../posix/src). + * src/setsid.c: New (Copied from ../posix/src). + * src/no_posix: Remove getpid and _getpid_r. + * Makefile.am: Reflect changes above. + 2003-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * configure.ac: Use rtems-bugs@rtems.com as bug report email address. diff --git a/cpukit/libcsupport/Makefile.am b/cpukit/libcsupport/Makefile.am index d9ea99770b..8f57196071 100644 --- a/cpukit/libcsupport/Makefile.am +++ b/cpukit/libcsupport/Makefile.am @@ -125,6 +125,10 @@ DIRECTORY_SCAN_C_FILES = src/opendir.c src/closedir.c src/readdir.c \ src/readdir_r.c src/rewinddir.c src/scandir.c src/seekdir.c \ src/telldir.c src/getcwd.c +ID_C_FILES = src/getegid.c src/geteuid.c src/getgid.c src/getgroups.c \ + src/getlogin.c src/getpgrp.c \ + src/getpid.c src/getppid.c src/getuid.c src/setpgid.c src/setsid.c + MALLOC_C_FILES = src/malloc.c src/mallocfreespace.c src/__brk.c src/__sbrk.c PASSWORD_GROUP_C_FILES = src/getpwent.c @@ -150,7 +154,7 @@ UNIX_C_FILES = $(UNIX_LIBC_C_FILES) EMBEDDED_C_FILES = $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \ $(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \ - $(DIRECTORY_SCAN_C_FILES) + $(DIRECTORY_SCAN_C_FILES) $(ID_C_FILES) if UNIX C_FILES = $(COMMON_C_FILES) $(UNIX_C_FILES) diff --git a/cpukit/libcsupport/src/no_posix.c b/cpukit/libcsupport/src/no_posix.c index fee2e96de0..857f6b23a0 100644 --- a/cpukit/libcsupport/src/no_posix.c +++ b/cpukit/libcsupport/src/no_posix.c @@ -2,8 +2,6 @@ * Marginal implementations of some POSIX API routines * to be used when POSIX is disabled. * - * + getpid - * + _getpid_r * + kill * + _kill_r * + __kill @@ -29,25 +27,6 @@ */ #if !defined(RTEMS_POSIX_API) -pid_t getpid(void) -{ - return 0; -} - -#if defined(RTEMS_NEWLIB) -#include <reent.h> - -pid_t _getpid_r( - struct _reent *ptr -) -{ - return getpid(); -} -#endif - -#endif - -#if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; |