Changeset aaf6063 in rtems
- Timestamp:
- 05/24/01 21:38:10 (22 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- e565720a
- Parents:
- 9a23bf64
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/posix/ChangeLog
r9a23bf64 raaf6063 1 2000-05-24 Fernando Ruiz Casas <fernando.ruiz@ctv.es> 2 3 * src/getegid.c, src/geteuid.c, src/getgid.c, src/getlogin.c, 4 src/getuid.c: Now save their values in private user environment. 5 1 6 2001-04-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 7 -
c/src/exec/posix/src/getegid.c
r9a23bf64 raaf6063 16 16 #include <rtems/seterr.h> 17 17 18 #include <rtems/libio_.h> 19 20 /* 21 * MACRO in libio_.h 18 22 gid_t _POSIX_types_Egid = 0; 23 */ 19 24 20 25 /*PAGE -
c/src/exec/posix/src/geteuid.c
r9a23bf64 raaf6063 16 16 #include <rtems/seterr.h> 17 17 18 #include <rtems/libio_.h> 19 20 /* 21 * MACRO in libio_.h 18 22 uid_t _POSIX_types_Euid = 0; 23 */ 19 24 20 25 /*PAGE -
c/src/exec/posix/src/getgid.c
r9a23bf64 raaf6063 16 16 #include <rtems/seterr.h> 17 17 18 #include <rtems/libio_.h> 19 20 /* 21 * MACRO in libio_.h 22 * 18 23 gid_t _POSIX_types_Gid = 0; 24 */ 19 25 20 26 /*PAGE -
c/src/exec/posix/src/getlogin.c
r9a23bf64 raaf6063 16 16 #include <rtems/seterr.h> 17 17 18 #include <rtems/libio_.h> 19 #include <string.h> 20 #include <unistd.h> 21 #include <pwd.h> 22 18 23 /*PAGE 19 24 * … … 23 28 */ 24 29 30 /* 31 * MACRO in libio_.h 32 * 25 33 static char _POSIX_types_Getlogin_buffer[ LOGIN_NAME_MAX ]; 34 */ 26 35 27 36 char *getlogin( void ) … … 43 52 ) 44 53 { 54 struct passwd *pw; 45 55 if ( namesize < LOGIN_NAME_MAX ) 46 56 return ERANGE; 47 57 48 strcpy( name, "posixapp" ); 58 pw=getpwuid(getuid()); 59 if (!pw) { 60 strcpy(name,""); 61 } else { 62 strncpy(name,pw->pw_name,LOGIN_NAME_MAX); 63 }; 49 64 return 0; 50 65 } -
c/src/exec/posix/src/getuid.c
r9a23bf64 raaf6063 16 16 #include <rtems/seterr.h> 17 17 18 #include <rtems/libio_.h> 19 20 /* 21 * MACRO in libio_.h 22 * 18 23 uid_t _POSIX_types_Uid = 0; 24 */ 19 25 20 26 /*PAGE -
cpukit/posix/ChangeLog
r9a23bf64 raaf6063 1 2000-05-24 Fernando Ruiz Casas <fernando.ruiz@ctv.es> 2 3 * src/getegid.c, src/geteuid.c, src/getgid.c, src/getlogin.c, 4 src/getuid.c: Now save their values in private user environment. 5 1 6 2001-04-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 7 -
cpukit/posix/src/getegid.c
r9a23bf64 raaf6063 16 16 #include <rtems/seterr.h> 17 17 18 #include <rtems/libio_.h> 19 20 /* 21 * MACRO in libio_.h 18 22 gid_t _POSIX_types_Egid = 0; 23 */ 19 24 20 25 /*PAGE -
cpukit/posix/src/geteuid.c
r9a23bf64 raaf6063 16 16 #include <rtems/seterr.h> 17 17 18 #include <rtems/libio_.h> 19 20 /* 21 * MACRO in libio_.h 18 22 uid_t _POSIX_types_Euid = 0; 23 */ 19 24 20 25 /*PAGE -
cpukit/posix/src/getgid.c
r9a23bf64 raaf6063 16 16 #include <rtems/seterr.h> 17 17 18 #include <rtems/libio_.h> 19 20 /* 21 * MACRO in libio_.h 22 * 18 23 gid_t _POSIX_types_Gid = 0; 24 */ 19 25 20 26 /*PAGE -
cpukit/posix/src/getlogin.c
r9a23bf64 raaf6063 16 16 #include <rtems/seterr.h> 17 17 18 #include <rtems/libio_.h> 19 #include <string.h> 20 #include <unistd.h> 21 #include <pwd.h> 22 18 23 /*PAGE 19 24 * … … 23 28 */ 24 29 30 /* 31 * MACRO in libio_.h 32 * 25 33 static char _POSIX_types_Getlogin_buffer[ LOGIN_NAME_MAX ]; 34 */ 26 35 27 36 char *getlogin( void ) … … 43 52 ) 44 53 { 54 struct passwd *pw; 45 55 if ( namesize < LOGIN_NAME_MAX ) 46 56 return ERANGE; 47 57 48 strcpy( name, "posixapp" ); 58 pw=getpwuid(getuid()); 59 if (!pw) { 60 strcpy(name,""); 61 } else { 62 strncpy(name,pw->pw_name,LOGIN_NAME_MAX); 63 }; 49 64 return 0; 50 65 } -
cpukit/posix/src/getuid.c
r9a23bf64 raaf6063 16 16 #include <rtems/seterr.h> 17 17 18 #include <rtems/libio_.h> 19 20 /* 21 * MACRO in libio_.h 22 * 18 23 uid_t _POSIX_types_Uid = 0; 24 */ 19 25 20 26 /*PAGE
Note: See TracChangeset
for help on using the changeset viewer.