Skip to content

Commit

Permalink
[BZ #3189]
Browse files Browse the repository at this point in the history
..
	[BZ #3189, #3188]
	(mremap): Likewise.
  • Loading branch information
Ulrich Drepper committed Sep 9, 2006
1 parent d26d01d commit eaa51b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
2006-09-09 Ulrich Drepper <drepper@redhat.com>

[BZ #3189]
[BZ #3189, #3188]
* misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
(mremap): Likewise.

2006-09-07 Jakub Jelinek <jakub@redhat.com>

Expand Down
16 changes: 8 additions & 8 deletions misc/sys/mman.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -134,6 +126,14 @@ extern int mincore (void *__start, size_t __len, unsigned char *__vec)
#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. */
extern int remap_file_pages (void *__start, size_t __size, int __prot,
Expand Down

0 comments on commit eaa51b4

Please sign in to comment.