From de85d7be56528bad31359d7e3e3864a610c32c3c Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 18 Aug 2003 07:30:16 +0000 Subject: 2003-08-18 Ralf Corsepius 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 --- cpukit/posix/ChangeLog | 16 +++++++++++ cpukit/posix/Makefile.am | 5 +--- cpukit/posix/src/getegid.c | 33 ----------------------- cpukit/posix/src/geteuid.c | 33 ----------------------- cpukit/posix/src/getgid.c | 47 -------------------------------- cpukit/posix/src/getgroups.c | 30 --------------------- cpukit/posix/src/getlogin.c | 64 -------------------------------------------- cpukit/posix/src/getpgrp.c | 31 --------------------- cpukit/posix/src/getpid.c | 45 ------------------------------- cpukit/posix/src/getppid.c | 29 -------------------- cpukit/posix/src/getuid.c | 47 -------------------------------- cpukit/posix/src/setpgid.c | 29 -------------------- cpukit/posix/src/setsid.c | 28 ------------------- 13 files changed, 17 insertions(+), 420 deletions(-) delete mode 100644 cpukit/posix/src/getegid.c delete mode 100644 cpukit/posix/src/geteuid.c delete mode 100644 cpukit/posix/src/getgid.c delete mode 100644 cpukit/posix/src/getgroups.c delete mode 100644 cpukit/posix/src/getlogin.c delete mode 100644 cpukit/posix/src/getpgrp.c delete mode 100644 cpukit/posix/src/getpid.c delete mode 100644 cpukit/posix/src/getppid.c delete mode 100644 cpukit/posix/src/getuid.c delete mode 100644 cpukit/posix/src/setpgid.c delete mode 100644 cpukit/posix/src/setsid.c diff --git a/cpukit/posix/ChangeLog b/cpukit/posix/ChangeLog index d1f906cbf7..104fab0107 100644 --- a/cpukit/posix/ChangeLog +++ b/cpukit/posix/ChangeLog @@ -1,3 +1,19 @@ +2003-08-18 Ralf Corsepius + + 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 + 2003-08-14 Joel Sherrill * src/mqueuenametoid.c, src/semaphorenametoid.c: Added ID to name diff --git a/cpukit/posix/Makefile.am b/cpukit/posix/Makefile.am index 18715a7798..c0548da48a 100644 --- a/cpukit/posix/Makefile.am +++ b/cpukit/posix/Makefile.am @@ -103,9 +103,6 @@ CONDITION_VARIABLE_C_FILES = src/cond.c src/condattrdestroy.c src/condattrgetpsh src/conddefaultattributes.c src/conddestroy.c src/condinit.c src/condmp.c src/condsignal.c \ src/condsignalsupp.c src/condtimedwait.c src/condwait.c src/condwaitsupp.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 - KEY_C_FILES = src/key.c src/keycreate.c src/keydelete.c src/keygetspecific.c \ src/keyrundestructors.c src/keysetspecific.c @@ -161,7 +158,7 @@ TIMER_C_FILES = src/ptimer.c src/ptimer1.c EXTRA_DIST += src/README.mqueue C_FILES = src/adasupp.c $(CANCEL_C_FILES) $(CONDITION_VARIABLE_C_FILES) \ - $(ID_C_FILES) $(KEY_C_FILES) $(MEMORY_C_FILES) $(MESSAGE_QUEUE_C_FILES) \ + $(KEY_C_FILES) $(MEMORY_C_FILES) $(MESSAGE_QUEUE_C_FILES) \ $(MUTEX_C_FILES) $(PTHREAD_C_FILES) $(PSIGNAL_C_FILES) src/sched.c \ $(SEMAPHORE_C_FILES) src/sysconf.c $(TIME_C_FILES) $(TIMER_C_FILES) src/types.c \ $(ENOSYS_C_FILES) $(BUILD_FOR_NOW_C_FILES) diff --git a/cpukit/posix/src/getegid.c b/cpukit/posix/src/getegid.c deleted file mode 100644 index 09bb75aeef..0000000000 --- a/cpukit/posix/src/getegid.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include - -#include -#include -#include -#include - -/* - * MACRO in userenv.h -gid_t _POSIX_types_Egid = 0; -*/ - -/*PAGE - * - * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, - * P1003.1b-1993, p. 84 - */ - -gid_t getegid( void ) -{ - return _POSIX_types_Egid; -} - diff --git a/cpukit/posix/src/geteuid.c b/cpukit/posix/src/geteuid.c deleted file mode 100644 index 9374999683..0000000000 --- a/cpukit/posix/src/geteuid.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include - -#include -#include -#include - -#include - -/* - * MACRO in userenv.h -uid_t _POSIX_types_Euid = 0; -*/ - -/*PAGE - * - * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, - * P1003.1b-1993, p. 84 - */ - -uid_t geteuid( void ) -{ - return _POSIX_types_Euid; -} diff --git a/cpukit/posix/src/getgid.c b/cpukit/posix/src/getgid.c deleted file mode 100644 index f104a6a039..0000000000 --- a/cpukit/posix/src/getgid.c +++ /dev/null @@ -1,47 +0,0 @@ -/* - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include - -#include -#include -#include - -#include - -/* - * MACRO in userenv.h - * -gid_t _POSIX_types_Gid = 0; -*/ - -/*PAGE - * - * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, - * P1003.1b-1993, p. 84 - */ - -gid_t getgid( void ) -{ - return _POSIX_types_Gid; -} - -/*PAGE - * - * 4.2.2 Set User and Group IDs, P1003.1b-1993, p. 84 - */ - -int setgid( - gid_t gid -) -{ - _POSIX_types_Gid = gid; - return 0; -} diff --git a/cpukit/posix/src/getgroups.c b/cpukit/posix/src/getgroups.c deleted file mode 100644 index b46cc6163a..0000000000 --- a/cpukit/posix/src/getgroups.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include -#include - -#include -#include -#include - -/*PAGE - * - * 4.2.3 Get Supplementary IDs, P1003.1b-1993, p. 86 - */ - -int getgroups( - int gidsetsize, - gid_t grouplist[] -) -{ - return 0; /* no supplemental group ids */ -} - diff --git a/cpukit/posix/src/getlogin.c b/cpukit/posix/src/getlogin.c deleted file mode 100644 index 64ee0b6d02..0000000000 --- a/cpukit/posix/src/getlogin.c +++ /dev/null @@ -1,64 +0,0 @@ -/* - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include -#include - -#include -#include -#include -#include - -#include -#include - -/*PAGE - * - * 4.2.4 Get User Name, P1003.1b-1993, p. 87 - * - * NOTE: P1003.1c/D10, p. 49 adds getlogin_r(). - */ - -/* - * MACRO in userenv.h - * -static char _POSIX_types_Getlogin_buffer[ LOGIN_NAME_MAX ]; -*/ - -char *getlogin( void ) -{ - (void) getlogin_r( _POSIX_types_Getlogin_buffer, LOGIN_NAME_MAX ); - return _POSIX_types_Getlogin_buffer; -} - -/*PAGE - * - * 4.2.4 Get User Name, P1003.1b-1993, p. 87 - * - * NOTE: P1003.1c/D10, p. 49 adds getlogin_r(). - */ - -int getlogin_r( - char *name, - size_t namesize -) -{ - struct passwd *pw; - if ( namesize < LOGIN_NAME_MAX ) - return ERANGE; - - pw=getpwuid(getuid()); - if (!pw) { - strcpy(name,""); - } else { - strncpy(name,pw->pw_name,LOGIN_NAME_MAX); - }; - return 0; -} diff --git a/cpukit/posix/src/getpgrp.c b/cpukit/posix/src/getpgrp.c deleted file mode 100644 index 0904d23883..0000000000 --- a/cpukit/posix/src/getpgrp.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include -#include - -#include -#include -#include - -/*PAGE - * - * 4.3.1 Get Process Group IDs, P1003.1b-1993, p. 89 - */ - -pid_t getpgrp( void ) -{ - /* - * This always succeeds and returns the process group id. For rtems, - * this will always be the local node; - */ - - return _Objects_Local_node; -} 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 -#include -#include -#include - -#include -#include -#include - -/*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 - -pid_t _getpid_r( - struct _reent *ptr -) -{ - return getpid(); -} -#endif - diff --git a/cpukit/posix/src/getppid.c b/cpukit/posix/src/getppid.c deleted file mode 100644 index f8a2f7bbf1..0000000000 --- a/cpukit/posix/src/getppid.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include -#include - -#include -#include -#include - -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; -} - diff --git a/cpukit/posix/src/getuid.c b/cpukit/posix/src/getuid.c deleted file mode 100644 index 09cc25e7c1..0000000000 --- a/cpukit/posix/src/getuid.c +++ /dev/null @@ -1,47 +0,0 @@ -/* - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include - -#include -#include -#include - -#include - -/* - * MACRO in userenv.h - * -uid_t _POSIX_types_Uid = 0; -*/ - -/*PAGE - * - * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, - * P1003.1b-1993, p. 84 - */ - -uid_t getuid( void ) -{ - return _POSIX_types_Uid; -} - -/*PAGE - * - * 4.2.2 Set User and Group IDs, P1003.1b-1993, p. 84 - */ - -int setuid( - uid_t uid -) -{ - _POSIX_types_Uid = uid; - return 0; -} diff --git a/cpukit/posix/src/setpgid.c b/cpukit/posix/src/setpgid.c deleted file mode 100644 index 26786cc552..0000000000 --- a/cpukit/posix/src/setpgid.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include -#include - -#include -#include -#include - -/*PAGE - * - * 4.3.3 Set Process Group ID for Job Control, P1003.1b-1993, p. 89 - */ - -int setpgid( - pid_t pid, - pid_t pgid -) -{ - rtems_set_errno_and_return_minus_one( ENOSYS ); -} diff --git a/cpukit/posix/src/setsid.c b/cpukit/posix/src/setsid.c deleted file mode 100644 index 81a60a798d..0000000000 --- a/cpukit/posix/src/setsid.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include -#include - -#include -#include -#include - -/*PAGE - * - * 4.3.2 Create Session and Set Process Group ID, P1003.1b-1993, p. 88 - */ - -pid_t setsid( void ) -{ - rtems_set_errno_and_return_minus_one( EPERM ); -} - - -- cgit v1.2.3