Przeglądaj źródła

sync with glibc

Mike Frysinger 18 lat temu
rodzic
commit
ef2a1844bb
1 zmienionych plików z 5 dodań i 3 usunięć
  1. 5 3
      include/sys/mman.h

+ 5 - 3
include/sys/mman.h

@@ -119,10 +119,12 @@ extern int munlockall (void) __THROW;
 
 #ifdef __USE_MISC
 /* Remap pages mapped by the range [ADDR,ADDR+OLD_LEN) to new length
-   NEW_LEN.  If MAY_MOVE is MREMAP_MAYMOVE the returned address may
-   differ from ADDR.  */
+   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 __may_move) __THROW;
+		     int __flags, ...) __THROW;
 
 /* mincore returns the memory residency status of the pages in the
    current process's address space specified by [start, start + len).