diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-11-19 05:44:21 -0800 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-11-19 05:44:21 -0800 |
commit | 59d87ccc99f431da06a0ffab0d3e702d9ef82f48 (patch) | |
tree | e13de4f7e86cc731add3b3d3bcf3b32ce22adefc /sys/src/mmap.c | |
parent | 835dea0eb6333a9ef452881ea073bfe59d14096a (diff) |
chore: make dependence on static syscalls explicit
Diffstat (limited to 'sys/src/mmap.c')
-rw-r--r-- | sys/src/mmap.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/src/mmap.c b/sys/src/mmap.c deleted file mode 100644 index 21d927b..0000000 --- a/sys/src/mmap.c +++ /dev/null @@ -1,17 +0,0 @@ -#include "internal.h" - -int -sys·mmap(void *start, uintptr len, int protect, int flags, int fd, intptr off, void **buf) -{ - long ret; - if(len >= PTRDIFF_MAX) - return sys·ErrorNoMemory; - - ret = syscall(·MMap, start, len, protect, flags, fd, off); - if(ret < 0){ - *buf = nil; - return -ret; - } - *buf = (void*)ret; - return 0; -} |