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:
Diffstat (limited to 'winsup/testsuite/libltp/lib/get_high_address.c')
-rw-r--r--winsup/testsuite/libltp/lib/get_high_address.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/winsup/testsuite/libltp/lib/get_high_address.c b/winsup/testsuite/libltp/lib/get_high_address.c
new file mode 100644
index 000000000..3b4105743
--- /dev/null
+++ b/winsup/testsuite/libltp/lib/get_high_address.c
@@ -0,0 +1,15 @@
+/* $Header$ */
+
+/*
+ * (C) COPYRIGHT CRAY RESEARCH, INC.
+ * UNPUBLISHED PROPRIETARY INFORMATION.
+ * ALL RIGHTS RESERVED.
+ */
+
+#include <unistd.h>
+
+char *
+get_high_address()
+{
+ return (char *)sbrk(0) + 16384;
+}