diff options
Diffstat (limited to 'src/mman/msync.c')
-rw-r--r-- | src/mman/msync.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mman/msync.c b/src/mman/msync.c new file mode 100644 index 0000000..e092647 --- /dev/null +++ b/src/mman/msync.c @@ -0,0 +1,8 @@ +#include <unistd.h> +#include <sys/mman.h> +#include "syscall.h" + +int msync(void *start, size_t len, int flags) +{ + return syscall3(__NR_msync, (long)start, len, flags); +} |