| manpages.info - online man pages | ![]() |
|||
|
msync (2) Table of Contents
Namemsync - synchronize a mapped region
LibraryStandard C Library (libc, -lc)
Synopsis
#include <sys/types.h>
int
DescriptionThe msync() system call writes modified whole pages back to the filesystem and updates the file modification time. Only those pages containing addr and len-1 succeeding locations will be examined. The flags argument may be specified as follows:
The MS_ASYNC flag is not permitted to be combined with other flags.
Return ValuesIf any errors occur, -1 is returned and errno is set to indicate the error. Otherwise, a 0 value is returned.
Errorsmsync() will fail if:
See Alsomadvise(2) , mincore(2) , mprotect(2) , munmap(2)
HistoryThe msync() function first appeared in 4.4BSD.
|