aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/local_includes
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/local_includes')
-rw-r--r--winsup/cygwin/local_includes/dll_init.h7
-rw-r--r--winsup/cygwin/local_includes/winlean.h4
2 files changed, 8 insertions, 3 deletions
diff --git a/winsup/cygwin/local_includes/dll_init.h b/winsup/cygwin/local_includes/dll_init.h
index 65f4213..0ca6cd2 100644
--- a/winsup/cygwin/local_includes/dll_init.h
+++ b/winsup/cygwin/local_includes/dll_init.h
@@ -34,7 +34,9 @@ struct per_module
typedef enum
{
DLL_NONE,
- DLL_SELF, /* main-program.exe, cygwin1.dll */
+ DLL_SELF, /* main-program.exe, cygwin1.dll */
+ DLL_NATIVE, /* dlopen'ed native DLLs. reload after fork, but otherwise
+ do nothing, just as with DLL_SELF. */
DLL_LINK,
DLL_LOAD,
DLL_ANY
@@ -57,7 +59,6 @@ struct dll
PWCHAR forkable_ntname;
WCHAR ntname[1]; /* must be the last data member */
- void detach ();
int init ();
bool stat_real_file_once ();
void nominate_forkable (PCWCHAR);
@@ -131,7 +132,7 @@ public:
int reload_on_fork;
dll *operator [] (PCWCHAR ntname);
dll *alloc (HINSTANCE, per_process *, dll_type);
- dll *find (void *);
+ dll *find (void *, bool = false);
void detach (void *);
void init ();
void load_after_fork (HANDLE);
diff --git a/winsup/cygwin/local_includes/winlean.h b/winsup/cygwin/local_includes/winlean.h
index 62b651b..500f569 100644
--- a/winsup/cygwin/local_includes/winlean.h
+++ b/winsup/cygwin/local_includes/winlean.h
@@ -111,6 +111,10 @@ details. */
#define DOMAIN_ALIAS_RID_DEVICE_OWNERS (__MSABI_LONG(0x00000247))
#endif
+#ifndef EXCEPTION_SOFTWARE_ORIGINATE
+#define EXCEPTION_SOFTWARE_ORIGINATE 0x80
+#endif
+
/* So-called "Microsoft Account" SIDs (S-1-11-...) have a netbios domain name
"MicrosoftAccounts". The new "Application Container SIDs" (S-1-15-...)
have a netbios domain name "APPLICATION PACKAGE AUTHORITY"