mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 03:03:37 +08:00
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:
committed by
Alan Carvalho de Assis
parent
1a513588bf
commit
9ae3f4cf17
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user