summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2006-09-29 14:03:13 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2006-09-29 14:03:13 +0000
commitd6e2601562c38769f4192523e6598e1005818549 (patch)
treec49ef0ecbf5054fcd823b7acc39c2759d0204235 /libc/misc
parent6f98bd87b527a819e1ccd4bbd0156cbd0c8fd7cd (diff)
downloadeglibc2-d6e2601562c38769f4192523e6598e1005818549.tar.gz
Merge changes between r76 and r285 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@286 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/sys/mman.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/libc/misc/sys/mman.h b/libc/misc/sys/mman.h
index d9f4747b7..4cd8a3fe7 100644
--- a/libc/misc/sys/mman.h
+++ b/libc/misc/sys/mman.h
@@ -116,14 +116,6 @@ extern int mlockall (int __flags) __THROW;
extern int munlockall (void) __THROW;
#ifdef __USE_MISC
-/* Remap pages mapped by the range [ADDR,ADDR+OLD_LEN) to new length
- NEW_LEN. If MREMAP_MAYMOVE is set in FLAGS the returned address
- may differ from ADDR. If MREMAP_FIXED is set in FLAGS the function
- takes another paramter which is a fixed address at which the block
- resides after a successful call. */
-extern void *mremap (void *__addr, size_t __old_len, size_t __new_len,
- int __flags, ...) __THROW;
-
/* mincore returns the memory residency status of the pages in the
current process's address space specified by [start, start + len).
The status is returned in a vector of bytes. The least significant
@@ -131,6 +123,16 @@ extern void *mremap (void *__addr, size_t __old_len, size_t __new_len,
it is zero. */
extern int mincore (void *__start, size_t __len, unsigned char *__vec)
__THROW;
+#endif
+
+#ifdef __USE_GNU
+/* Remap pages mapped by the range [ADDR,ADDR+OLD_LEN) to new length
+ NEW_LEN. If MREMAP_MAYMOVE is set in FLAGS the returned address
+ may differ from ADDR. If MREMAP_FIXED is set in FLAGS the function
+ takes another paramter which is a fixed address at which the block
+ resides after a successful call. */
+extern void *mremap (void *__addr, size_t __old_len, size_t __new_len,
+ int __flags, ...) __THROW;
/* Remap arbitrary pages of a shared backing store within an existing
VMA. */