fs: Map syncfs to fsync

https://linux.die.net/man/2/syncfs

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-01-11 23:24:23 +08:00 committed by Alan Carvalho de Assis
parent 1a513588bf
commit 9ae3f4cf17

View file

@ -260,6 +260,7 @@
/* Helpers and legacy compatibility definitions */
#define link(p1, p2) symlink((p1), (p2))
#define syncfs(f) fsync(f)
#define fdatasync(f) fsync(f)
#define getdtablesize(f) ((int)sysconf(_SC_OPEN_MAX))
#define getpagesize(f) ((int)sysconf(_SC_PAGESIZE))