Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Duda <deo@logos-m.ru>2001-09-20 19:44:41 +0400
committerEgor Duda <deo@logos-m.ru>2001-09-20 19:44:41 +0400
commitb1711a1f96d2059216cedb9dadcb3d9479b4cb9d (patch)
tree61fff1c6885d08419b4fec1272deea659710e268 /winsup/testsuite/libltp/lib
parenta2db3c9288de0329591f7cdd3f87af2c020b4be4 (diff)
* libltp/lib/get_high_address.c (get_high_address): Get inaccessible
address more robustly. * winsup.api/ltp/stat06.c (high_address_setup): Use generic function from ltp library to obtain inaccessible address.
Diffstat (limited to 'winsup/testsuite/libltp/lib')
-rw-r--r--winsup/testsuite/libltp/lib/get_high_address.c9
-rw-r--r--winsup/testsuite/libltp/lib/search_path.c2
2 files changed, 7 insertions, 4 deletions
diff --git a/winsup/testsuite/libltp/lib/get_high_address.c b/winsup/testsuite/libltp/lib/get_high_address.c
index 3b4105743..5fe1e81b2 100644
--- a/winsup/testsuite/libltp/lib/get_high_address.c
+++ b/winsup/testsuite/libltp/lib/get_high_address.c
@@ -1,5 +1,3 @@
-/* $Header$ */
-
/*
* (C) COPYRIGHT CRAY RESEARCH, INC.
* UNPUBLISHED PROPRIETARY INFORMATION.
@@ -7,9 +5,16 @@
*/
#include <unistd.h>
+#ifdef __CYGWIN__
+#include <windows.h>
+#endif
char *
get_high_address()
{
+#ifdef __CYGWIN__
+ return VirtualAlloc (NULL, 4096, MEM_COMMIT, PAGE_NOACCESS) + 2048;
+#else
return (char *)sbrk(0) + 16384;
+#endif
}
diff --git a/winsup/testsuite/libltp/lib/search_path.c b/winsup/testsuite/libltp/lib/search_path.c
index d6570cb59..6663da507 100644
--- a/winsup/testsuite/libltp/lib/search_path.c
+++ b/winsup/testsuite/libltp/lib/search_path.c
@@ -1,5 +1,3 @@
-/* $Header$ */
-
/*
* (C) COPYRIGHT CRAY RESEARCH, INC.
* UNPUBLISHED PROPRIETARY INFORMATION.