diff options
author | Christopher Faylor <me@cgf.cx> | 2000-08-09 02:33:47 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-08-09 02:33:47 +0000 |
commit | 0072fdab860eb12ab2a454860a8c25ade253de6c (patch) | |
tree | fa970886fb81871f5714dbe2734ba91e40a7740a /winsup/cygwin/pinfo.h | |
parent | c51a2a8ba4b5d7fa3831303f2bf8611d23b52765 (diff) | |
download | newlib-0072fdab860eb12ab2a454860a8c25ade253de6c.zip newlib-0072fdab860eb12ab2a454860a8c25ade253de6c.tar.gz newlib-0072fdab860eb12ab2a454860a8c25ade253de6c.tar.bz2 |
* select.cc (allocfd_set): Zero allocated fd_set.
(cygwin_select): Move fd_set copying logic from ::wait to here. Use common
return through sell.poll.
(select_stuff::wait): Just return success or failure and let caller fill in
fd_set.
* pinfo.h (pinfo): Eliminate self-referential pointer to sidbuf since pinfo
structure exists at random locations now.
* fork.cc (fork): Use 'use_psid' element to control when the psid is relevant.
* shared.cc (sec_user): Ditto.
* spawn.cc (spawn_guts): Ditto.
* uinfo.cc (internal_getlogin): Ditto.
* syscall.cc (seteuid): Ditto. Set use_psid element.
Diffstat (limited to 'winsup/cygwin/pinfo.h')
-rw-r--r-- | winsup/cygwin/pinfo.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h index 4d9d71a..87d4f3d 100644 --- a/winsup/cygwin/pinfo.h +++ b/winsup/cygwin/pinfo.h @@ -49,19 +49,19 @@ public: if not found. This data resides in the shared data area (allowing tasks to store whatever they want here) so it's for informational purposes only. */ - uid_t uid; /* User ID */ - gid_t gid; /* Group ID */ - pid_t pgid; /* Process group ID */ - pid_t sid; /* Session ID */ - int ctty; /* Control tty */ + uid_t uid; /* User ID */ + gid_t gid; /* Group ID */ + pid_t pgid; /* Process group ID */ + pid_t sid; /* Session ID */ + int ctty; /* Control tty */ mode_t umask; char username[MAX_USER_NAME]; /* user's name */ /* Extendend user information. The information is derived from the internal_getlogin call when on a NT system. */ - PSID psid; /* user's SID */ - char sidbuf[MAX_SID_LEN]; /* buffer for user's SID */ + int use_psid; /* TRUE if psid contains valid data */ + char psid[MAX_SID_LEN]; /* buffer for user's SID */ char logsrv[MAX_HOST_NAME]; /* Logon server, may be FQDN */ char domain[MAX_COMPUTERNAME_LENGTH+1]; /* Logon domain of the user */ |