msync.c 454 B

12345678910111213141516171819
  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. */
  5. #include <sys/mman.h>
  6. #include <cancel.h>
  7. int
  8. msync (void *addr, size_t length, int flags)
  9. {
  10. return _syscall3(int, __NC(msync), const void* addr,
  11. size_t, lenght, int, flags);
  12. }
  13. CANCELLABLE_SYSCALL(int, msync, (const void *addr,
  14. size_t lenght, int flags), (addr, length, flags))
  15. lt_libc_hidden(msync)