blob: 2b26be534e96cee6460b981b6da37f8805dd7a28 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#include <unistd.h>
#include "syscall.h"
int fsync(int fd)
{
#if __EMSCRIPTEN__
return __wasi_syscall_ret(__wasi_fd_sync(fd));
#else
return syscall_cp(SYS_fsync, fd);
#endif
}
|