Synchronize Memory With Physical Storage
msync
calls the underlying system call of
the same name. This writes modified whole pages
back to the filesystem and updates the file modification
time.
msync(x, flags=mmapFlags("MS_ASYNC"))
x |
An |
flags |
One of the following flags: ‘MS_ASYNC’: return immediately (default). ‘MS_SYNC’: perform synchronous writes. ‘MS_INVALIDATE’: invalidate all cached data. Per the man page, ‘MS_ASYNC’ is not permitted to be combined with the other flags. |
See the appropriate OS man page.
0 on success, otherwise -1.
Jeffrey A. Ryan
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.