posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
_POSIX_SYNCHRONIZED_IO
Implementation completeness: 100.0%100IMPLLine coverage: 100.0%100COV

POSIX Synchronized I/O option. More...

Functions

int msync (void *addr, size_t length, int flags)
 Synchronise a memory mapping with the underlying storage.
 
int fdatasync (int fildes)
 Synchronise the data of an open file to storage (without metadata).
 

Detailed Description

POSIX Synchronized I/O option.

Covers fdatasync().

Function Documentation

◆ fdatasync()

int fdatasync ( int  fildes)
fdatasync line coverage: 100.0%100

Synchronise the data of an open file to storage (without metadata).

See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/fdatasync.html

◆ msync()

int msync ( void *  addr,
size_t  length,
int  flags 
)
msync line coverage: 0.0%0

Synchronise a memory mapping with the underlying storage.

Parameters
addrBase address of the region (must be page-aligned).
lengthLength of the region in bytes.
flagsMS_SYNC, MS_ASYNC, or MS_INVALIDATE.
Returns
0 on success, or -1 with errno set on failure.
See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/msync.html