|
Message-Id: <20190321153240.29328-2-sir@cmpwn.com> Date: Thu, 21 Mar 2019 11:32:38 -0400 From: Drew DeVault <sir@...wn.com> To: musl@...ts.openwall.com Cc: Drew DeVault <sir@...wn.com> Subject: [PATCH 1/3] mman/mlock: use mlock2 when appropriate --- src/mman/mlock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mman/mlock.c b/src/mman/mlock.c index e683a44a..71af582f 100644 --- a/src/mman/mlock.c +++ b/src/mman/mlock.c @@ -3,5 +3,9 @@ int mlock(const void *addr, size_t len) { +#ifdef SYS_mlock return syscall(SYS_mlock, addr, len); +#else + return syscall(SYS_mlock2, addr, len, 0); +#endif } -- 2.21.0
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.