Changeset 4c782c2 in rtems


Ignore:
Timestamp:
Aug 2, 2010, 6:10:10 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
9e8f3dc
Parents:
674fbe24
Message:

2010-07-30 Bharath Suri <bharath.s.jois@…>

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.
Location:
cpukit
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r674fbe24 r4c782c2  
     12010-07-30      Bharath Suri <bharath.s.jois@gmail.com>
     2
     3        PR 1645/cpukit
     4        * libcsupport/src/getuid.c: Moved setuid() routine to its own
     5        file.
     6        * libcsupport/src/setuid.c: New file with setuid() routine.
     7        * libcsupport/src/seteuid.c: New file with seteuid() routine.
     8
    192010-07-30      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • cpukit/libcsupport/Makefile.am

    r674fbe24 r4c782c2  
    8686ID_C_FILES = src/getegid.c src/geteuid.c src/getgid.c src/getgroups.c \
    8787    src/getlogin.c src/getpgrp.c src/getpid.c src/getppid.c src/getuid.c \
    88     src/setpgid.c src/setsid.c
     88    src/setuid.c src/seteuid.c src/setpgid.c src/setsid.c
    8989
    9090MALLOC_C_FILES = src/malloc_initialize.c src/calloc.c src/malloc.c \
  • cpukit/libcsupport/src/getuid.c

    r674fbe24 r4c782c2  
    11/*
     2 *  COPYRIGHT (c) 1989-2010.
     3 *  On-Line Applications Research Corporation (OAR).
     4 *
     5 *  The license and distribution terms for this file may be
     6 *  found in the file LICENSE in this distribution or at
     7 *  http://www.rtems.com/license/LICENSE.
     8 *
    29 *  $Id$
    310 */
     
    1118#include <sys/types.h>
    1219
    13 #include <rtems/system.h>
    14 #include <rtems/score/object.h>
    15 #include <rtems/seterr.h>
    16 
    1720#include <rtems/userenv.h>
    1821
    1922/*
    20  * MACRO in userenv.h
    21  *
    22 uid_t _POSIX_types_Uid = 0;
    23 */
    24 
    25 /*PAGE
    26  *
    2723 *  4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
    2824 *        P1003.1b-1993, p. 84
    2925 */
    30 
    3126uid_t getuid( void )
    3227{
     
    3429}
    3530
    36 /*PAGE
    37  *
    38  *  4.2.2 Set User and Group IDs, P1003.1b-1993, p. 84
    39  */
    40 
    41 int setuid(
    42   uid_t  uid
    43 )
    44 {
    45   _POSIX_types_Uid = uid;
    46   return 0;
    47 }
Note: See TracChangeset for help on using the changeset viewer.