diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-05-29 15:04:29 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-05-29 15:04:29 +0000 |
commit | a8d7ae61e7b832d354731b1d024e4ff1ed22fca0 (patch) | |
tree | 177816378230c384a5d6b375fc5e5b42478e06c2 /winsup/cygwin/external.cc | |
parent | 9854c44c43a179a550c2fb4d23a7f97332628ed3 (diff) | |
download | newlib-a8d7ae61e7b832d354731b1d024e4ff1ed22fca0.zip newlib-a8d7ae61e7b832d354731b1d024e4ff1ed22fca0.tar.gz newlib-a8d7ae61e7b832d354731b1d024e4ff1ed22fca0.tar.bz2 |
Change internal uid datatype from __uid16_t to __uid32_t
throughout.
* cygwin.din: Export new symbols getpwuid32, getpwuid_r32, getuid32,
geteuid32, setuid32, seteuid32.
* passwd.cc (getpwuid32): New function.
(getpwuid_r32): Ditto.
* syscalls.cc (seteuid32): Ditto.
(setuid32): Ditto.
* uinfo.cc (getuid32): Ditto.
(geteuid32): Ditto.
* winsup.h (uid16touid32): New macro, correclt casting from __uid16_t
to __uid32_t.
(gid16togid32): Ditto fir gids.
(getuid32): Declare.
(geteuid32): Ditto.
(getpwuid32): Ditto.
* include/sys/cygwin.h (struct external_pinfo): Add members uid32 and
gid32.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r-- | winsup/cygwin/external.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 3cbf9c0..8a06f02 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -86,6 +86,9 @@ fillout_pinfo (pid_t pid, int winpid) ep.strace_file = 0; ep.process_state = p->process_state; + + ep.uid32 = p->uid; + ep.gid32 = p->gid; break; } } |