nptl: remove sysdep-cancel ASM macros, convert to C
[uclibc-ng.git] / libpthread / nptl / sysdeps / unix / sysv / linux / msync.c
blob48ee95653940788aa619dc8e972c236f00ad3605
1 /*
2 * Copyright (C) 2017 Waldemar Brodkorb <wbx@uclibc-ng.org>
3 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
4 */
6 #include <sys/mman.h>
7 #include <cancel.h>
9 int
10 msync (void *addr, size_t length, int flags)
12 return _syscall3(int, __NC(msync), const void* addr,
13 size_t, lenght, int, flags);
16 CANCELLABLE_SYSCALL(int, msync, (const void *addr,
17 size_t lenght, int flags), (addr, length, flags))
19 lt_libc_hidden(msync)