From 1f5c3042d581783dfd8ed8495ef704e9ae325cd2 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 18 Oct 2005 18:51:33 +0000 Subject: * autoload.cc (NtLockVirtualMemory): Import. (NtUnlockVirtualMemory): Import. (GetProcessWorkingSetSize): Import. (SetProcessWorkingSetSize): Import. * cygwin.din (mlock): Export. (munlock): Export. * mmap.cc (mlock): New function. (munlock): Ditto. * ntdll.h (STATUS_WORKING_SET_QUOTA): Define. (LOCK_VM_IN_WSL): Define. (LOCK_VM_IN_RAM): Define. (NtLockVirtualMemory): Declare. (NtUnlockVirtualMemory): Declare. * sysconf.cc (sysconf): Implement _SC_MEMLOCK_RANGE. * wincap.h: Implement has_working_virtual_lock throughout. * wincap.cc: Ditto. * include/cygwin/version.h: Bump API minor version. * include/sys/mman.h (mlock): Declare, (munlock): Declare. --- winsup/cygwin/include/sys/mman.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'winsup/cygwin/include/sys/mman.h') diff --git a/winsup/cygwin/include/sys/mman.h b/winsup/cygwin/include/sys/mman.h index 21bf6976d..5290a62d9 100644 --- a/winsup/cygwin/include/sys/mman.h +++ b/winsup/cygwin/include/sys/mman.h @@ -49,6 +49,8 @@ extern void *mmap (void *__addr, size_t __len, int __prot, int __flags, int __fd extern int munmap (void *__addr, size_t __len); extern int mprotect (void *__addr, size_t __len, int __prot); extern int msync (void *__addr, size_t __len, int __flags); +extern int mlock (const void *__addr, size_t __len); +extern int munlock (const void *__addr, size_t __len); #ifdef __cplusplus }; -- cgit v1.2.3