fdatasync.c 536 B

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