fdatasync.c 561 B

123456789101112131415161718192021222324
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * fdatasync() for uClibc
  4. *
  5. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  6. *
  7. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  8. */
  9. #include <sys/syscall.h>
  10. #if !defined __NR_fdatasync && defined __NR_osf_fdatasync
  11. # define __NR_fdatasync __NR_osf_fdatasync
  12. #endif
  13. #ifdef __NR_fdatasync
  14. # include <unistd.h>
  15. # include <cancel.h>
  16. # define __NR___fdatasync_nocancel __NR_fdatasync
  17. static _syscall1(int, __NC(fdatasync), int, fd)
  18. CANCELLABLE_SYSCALL(int, fdatasync, (int fd), (fd))
  19. #endif