posix: fs: implement fdatasync()

`fdatasync()` is basically equivalent to `fsync()` according
to the standards.

Added test for it.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
Yong Cong Sin 2024-06-17 13:39:19 +08:00 committed by Carles Cufí
commit 91abf0e329
5 changed files with 50 additions and 2 deletions

View file

@ -871,7 +871,7 @@ Enable this option with :kconfig:option:`CONFIG_POSIX_SYNCHRONIZED_IO`.
:header: API, Supported
:widths: 50,10
fdatasync(),
fdatasync(),yes
fsync(),yes
msync(),yes