12345678910111213141516171819202122232425262728293031323334353637383940 |
- #define _GNU_SOURCE
- #include <features.h>
- #include <errno.h>
- #include <sys/types.h>
- #include <sys/syscall.h>
- #include <unistd.h>
- #ifndef INLINE_SYSCALL
- #define INLINE_SYSCALL(name, nr, args...) __syscall_sync (args)
- #define __NR___syscall_sync __NR_sync
- static inline _syscall0(void, __syscall_sync);
- #endif
- void sync(void)
- {
- INLINE_SYSCALL(sync, 0);
- }
|