sync.c 542 B

1234567891011121314151617181920212223242526
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * sync syscall 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 <features.h>
  10. #include <errno.h>
  11. #include <sys/types.h>
  12. #include <sys/syscall.h>
  13. #include <unistd.h>
  14. #ifndef INLINE_SYSCALL
  15. #define INLINE_SYSCALL(name, nr, args...) __syscall_sync (args)
  16. #define __NR___syscall_sync __NR_sync
  17. static inline _syscall0(void, __syscall_sync);
  18. #endif
  19. void sync(void)
  20. {
  21. INLINE_SYSCALL(sync, 0);
  22. }