diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-10-18 22:51:33 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-10-18 22:51:33 +0400 |
commit | 1f5c3042d581783dfd8ed8495ef704e9ae325cd2 (patch) | |
tree | 4063c5b7fa5a74f1018847e1574f459c3fac4fd1 /winsup/cygwin/include/sys | |
parent | a92822b74764fb7ff83517889cfa6b875c855250 (diff) |
* 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.
Diffstat (limited to 'winsup/cygwin/include/sys')
-rw-r--r-- | winsup/cygwin/include/sys/mman.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 }; |