diff options
Diffstat (limited to 'winsup/cygwin/wincap.h')
-rw-r--r-- | winsup/cygwin/wincap.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/wincap.h b/winsup/cygwin/wincap.h index b41a2c625..160085d77 100644 --- a/winsup/cygwin/wincap.h +++ b/winsup/cygwin/wincap.h @@ -14,6 +14,7 @@ details. */ struct wincaps { + DWORD def_guard_pages; DWORD max_sys_priv; unsigned is_server : 1; unsigned has_mandatory_integrity_control : 1; @@ -39,6 +40,7 @@ struct wincaps unsigned terminate_thread_frees_stack : 1; unsigned has_precise_system_time : 1; unsigned has_microsoft_accounts : 1; + unsigned has_set_thread_stack_guarantee : 1; }; class wincapc @@ -64,6 +66,10 @@ public: #define IMPLEMENT(cap) cap() const { return ((wincaps *) this->caps)->cap; } + DWORD def_guard_page_size () const + { + return ((wincaps *) this->caps)->def_guard_pages * page_size (); + } DWORD IMPLEMENT (max_sys_priv) bool IMPLEMENT (is_server) bool IMPLEMENT (has_mandatory_integrity_control) @@ -89,6 +95,7 @@ public: bool IMPLEMENT (terminate_thread_frees_stack) bool IMPLEMENT (has_precise_system_time) bool IMPLEMENT (has_microsoft_accounts) + bool IMPLEMENT (has_set_thread_stack_guarantee) #undef IMPLEMENT }; |