* exceptions.cc (_cygtls::handle_exceptions): Call new

mmap_is_attached_or_noreserve_page function in case of access violation
	and allow application to retry access on noreserve pages.
	* mmap.cc (mmap_is_attached_or_noreserve_page): Changed from
	mmap_is_attached_page.  Handle also noreserve pages now.  Change
	comment accordingly.
	* winsup.h (mmap_is_attached_or_noreserve_page): Declare instead of
	mmap_is_attached_page.
This commit is contained in:
Corinna Vinschen
2006-07-13 08:33:34 +00:00
parent d44b979536
commit f6105f89d5
4 changed files with 48 additions and 18 deletions

View File

@@ -299,7 +299,7 @@ size_t getsystempagesize ();
/* mmap functions. */
void mmap_init ();
bool mmap_is_attached_page (ULONG_PTR);
int mmap_is_attached_or_noreserve_page (ULONG_PTR addr);
int winprio_to_nice (DWORD) __attribute__ ((regparm (1)));
DWORD nice_to_winprio (int &) __attribute__ ((regparm (1)));