summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/shared_info.h
diff options
context:
space:
mode:
authorPierre Humblet <phumblet@phumblet.no-ip.org>2003-09-10 02:12:26 +0000
committerPierre Humblet <phumblet@phumblet.no-ip.org>2003-09-10 02:12:26 +0000
commit7119fc0d0b59a8fe8e5a6f25dd3b8162a8b8337a (patch)
treee4fc18abafcb54f10c1ce52cb71947c5cca4e3c3 /winsup/cygwin/shared_info.h
parent3a767b69fdb767a7a154a4840dfcf06ce5c5c48b (diff)
downloadcygnal-7119fc0d0b59a8fe8e5a6f25dd3b8162a8b8337a.tar.gz
cygnal-7119fc0d0b59a8fe8e5a6f25dd3b8162a8b8337a.tar.bz2
cygnal-7119fc0d0b59a8fe8e5a6f25dd3b8162a8b8337a.zip
2003-09-09 Pierre Humblet <pierre.humblet@ieee.org>
* shared_info.h: Include security.h. (open_shared): Add psa argument. (user_shared_initialize): New declaration. * security.h: Add _SECURITY_H guard. (sec_user): Use sec_none in the no ntsec case. * spawn.cc (spawn_guts): Remove call to load_registry_hive. * syscalls (seteuid32): If warranted, call load_registry_hive, user_shared_initialize and RegCloseKey(HKEY_CURRENT_USER). * shared.cc (user_shared_initialize): New. (open_shared): Add and use psa argument. (memory_init): Move mount table initialization to user_shared_initialize. Call it.
Diffstat (limited to 'winsup/cygwin/shared_info.h')
-rw-r--r--winsup/cygwin/shared_info.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/shared_info.h b/winsup/cygwin/shared_info.h
index d73d0b078..eb1ae7164 100644
--- a/winsup/cygwin/shared_info.h
+++ b/winsup/cygwin/shared_info.h
@@ -9,6 +9,7 @@ Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#include "tty.h"
+#include "security.h"
/* Mount table entry */
@@ -189,4 +190,7 @@ struct console_state
#endif
char *__stdcall shared_name (char *, const char *, int);
-void *__stdcall open_shared (const char *name, int n, HANDLE &shared_h, DWORD size, shared_locations);
+void *__stdcall open_shared (const char *name, int n, HANDLE &shared_h, DWORD size,
+ shared_locations, PSECURITY_ATTRIBUTES psa = &sec_all);
+extern void user_shared_initialize ();
+