summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
authorPierre Humblet <phumblet@phumblet.no-ip.org>2003-09-25 02:29:05 +0000
committerPierre Humblet <phumblet@phumblet.no-ip.org>2003-09-25 02:29:05 +0000
commit138847683d28920eda599f2125c71cc5a1f7a874 (patch)
tree49a4c9cd9168abb65bb60427eae25a3dd6077b3e /winsup/cygwin/syscalls.cc
parenta4e167fa277343ca039501010fdebe26d246fc22 (diff)
downloadcygnal-138847683d28920eda599f2125c71cc5a1f7a874.tar.gz
cygnal-138847683d28920eda599f2125c71cc5a1f7a874.tar.bz2
cygnal-138847683d28920eda599f2125c71cc5a1f7a874.zip
2003-09-24 Pierre Humblet <pierre.humblet@ieee.org>
* shared_info.h (class user_info): New. (cygwin_user_h): New. (user_shared): New. (enum shared_locations): Replace SH_MOUNT_TABLE by SH_USER_SHARED; (mount_table): Change from variable to macro. * shared.cc: Use sizeof(user_info) in "offsets". (user_shared_initialize): Add "reinit" argument to indicate need to reinitialize the mapping. Replace "mount_table" by "user_shared" throughout. Call user_shared->mountinfo.init and user_shared->delqueue.init. (shared_info::initialize): Do not call delqueue.init. (memory_init): Add argument to user_shared_initialize. * child_info.h (child_info::mount_h): Delete. (child_info::user_h): New. * sigpproc.cc (init_child_info): Use user_h instead of mount_h. * dcrt0.cc (_dll_crt0): Ditto. * fhandler_disk_file.cc (fhandler_disk_file::close): Use user_shared->delqueue instead of cygwin_shared->delqueue. * fhandler_virtual.cc (fhandler_virtual::close): Ditto. * syscalls.cc (close_all_files): Ditto. (unlink): Ditto. (seteuid32): Add argument to user_shared_initialize.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 4c970646b..7f58c2857 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -98,7 +98,7 @@ close_all_files (void)
}
ReleaseResourceLock (LOCK_FD_LIST, WRITE_LOCK | READ_LOCK, "close_all_files");
- cygwin_shared->delqueue.process_queue ();
+ user_shared->delqueue.process_queue ();
}
int
@@ -222,7 +222,7 @@ unlink (const char *ourname)
syscall_printf ("couldn't delete file, err %d", lasterr);
/* Add file to the "to be deleted" queue. */
- cygwin_shared->delqueue.queue_file (win32_name);
+ user_shared->delqueue.queue_file (win32_name);
/* Success condition. */
ok:
@@ -2214,7 +2214,7 @@ seteuid32 (__uid32_t uid)
RegCloseKey(HKEY_CURRENT_USER);
cygheap->user.reimpersonate ();
if (!issamesid)
- user_shared_initialize ();
+ user_shared_initialize (true);
success_9x:
cygheap->user.set_name (pw_new->pw_name);