diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-02 18:10:10 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-02 18:10:10 +0000 |
commit | 4c782c26ac6112bcdee43ccdb0b3b2bf62ee63ac (patch) | |
tree | 92d4050d15a2cbfc38aebd0e44415896489edcac /cpukit/libcsupport/src/getuid.c | |
parent | Rename to final patch name. (diff) | |
download | rtems-4c782c26ac6112bcdee43ccdb0b3b2bf62ee63ac.tar.bz2 |
2010-07-30 Bharath Suri <bharath.s.jois@gmail.com>
PR 1645/cpukit
* libcsupport/src/getuid.c: Moved setuid() routine to its own
file.
* libcsupport/src/setuid.c: New file with setuid() routine.
* libcsupport/src/seteuid.c: New file with seteuid() routine.
Diffstat (limited to 'cpukit/libcsupport/src/getuid.c')
-rw-r--r-- | cpukit/libcsupport/src/getuid.c | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/cpukit/libcsupport/src/getuid.c b/cpukit/libcsupport/src/getuid.c index 65e3184005..0fa7627c6a 100644 --- a/cpukit/libcsupport/src/getuid.c +++ b/cpukit/libcsupport/src/getuid.c @@ -1,4 +1,11 @@ /* + * COPYRIGHT (c) 1989-2010. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * * $Id$ */ @@ -10,38 +17,14 @@ #include <string.h> #include <sys/types.h> -#include <rtems/system.h> -#include <rtems/score/object.h> -#include <rtems/seterr.h> - #include <rtems/userenv.h> /* - * 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; -} |