aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2004-08-02 23:51:18 +0000
committerH. Peter Anvin <hpa@zytor.com>2004-08-02 23:51:18 +0000
commitc12cb7dff5b42d8ec489b28f73469cc7a5ba46e9 (patch)
tree8cc6a0b586b973c17b2ff98f87e688fd98990fe5
parenteca1a5049c9eda7c1207068a65874d06652d5583 (diff)
downloadklibc-c12cb7dff5b42d8ec489b28f73469cc7a5ba46e9.tar.gz
Add m[un]lock[all] system callsklibc-0.156
-rw-r--r--include/sys/mman.h4
-rw-r--r--klibc/SYSCALLS.def4
-rw-r--r--klibc/include/sys/mman.h4
3 files changed, 12 insertions, 0 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h
index 3d8a2f63c287c..7f8f3e2f96ab8 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -17,5 +17,9 @@ __extern int munmap(void *, size_t);
__extern void *mremap(void *, size_t, size_t, unsigned long);
__extern int msync(const void *, size_t, int);
__extern int mprotect(const void *, size_t, int);
+__extern int mlockall(int);
+__extern int munlockall(void);
+__extern int mlock(const void *, size_t);
+__extern int munlock(const void *, size_t);
#endif /* _SYS_MMAN_H */
diff --git a/klibc/SYSCALLS.def b/klibc/SYSCALLS.def
index 3ef65141e6db3..f458e138490a1 100644
--- a/klibc/SYSCALLS.def
+++ b/klibc/SYSCALLS.def
@@ -172,6 +172,10 @@ int mprotect(const void *, size_t, int)
#else
<!s390x> void * mmap(void *, size_t, int, int, int, long)
#endif
+int mlockall(int)
+int munlockall()
+int mlock(const void *, size_t)
+int munlock(const void *, size_t)
;
; System stuff
diff --git a/klibc/include/sys/mman.h b/klibc/include/sys/mman.h
index 3d8a2f63c287c..7f8f3e2f96ab8 100644
--- a/klibc/include/sys/mman.h
+++ b/klibc/include/sys/mman.h
@@ -17,5 +17,9 @@ __extern int munmap(void *, size_t);
__extern void *mremap(void *, size_t, size_t, unsigned long);
__extern int msync(const void *, size_t, int);
__extern int mprotect(const void *, size_t, int);
+__extern int mlockall(int);
+__extern int munlockall(void);
+__extern int mlock(const void *, size_t);
+__extern int munlock(const void *, size_t);
#endif /* _SYS_MMAN_H */