about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-03-17 18:48:10 +0000
committerUlrich Drepper <drepper@redhat.com>2000-03-17 18:48:10 +0000
commit4ede8b06a859aa0a3b4128b5385dd5ac5cc3d6e3 (patch)
treec069307ee2e42d68660ca450e48fff712df81ec0
parentf5ef7558c7c50cc2a73e09a0f0d1a229e7db0ea8 (diff)
downloadglibc-4ede8b06a859aa0a3b4128b5385dd5ac5cc3d6e3.tar.gz
glibc-4ede8b06a859aa0a3b4128b5385dd5ac5cc3d6e3.tar.xz
glibc-4ede8b06a859aa0a3b4128b5385dd5ac5cc3d6e3.zip
Update.
	* misc/sys/mman.h: Add prototype for mincore.
-rw-r--r--ChangeLog2
-rw-r--r--misc/sys/mman.h7
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f16aaa84a9..54419fc6e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,8 @@
 	from latest Linux kernel.
 	* sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
 
+	* misc/sys/mman.h: Add prototype for mincore.
+
 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
 
 	* sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
diff --git a/misc/sys/mman.h b/misc/sys/mman.h
index 4aa4a52118..5b53cd2133 100644
--- a/misc/sys/mman.h
+++ b/misc/sys/mman.h
@@ -114,6 +114,13 @@ extern int munlockall (void) __THROW;
    differ from ADDR.  */
 extern void *mremap (void *__addr, size_t __old_len, size_t __new_len,
 		     int __may_move) __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
+   bit of each byte is 1 if the referenced page is in memory, otherwise
+   it is zero.  */
+extern int mincore (void *__start, size_t __len, unsigned char *__vec);
 #endif
 
 __END_DECLS