mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +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:
parent
1a513588bf
commit
9ae3f4cf17
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue