Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

msync

Synchronize Memory With Physical Storage


Description

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.

Usage

msync(x, flags=mmapFlags("MS_ASYNC"))

Arguments

x

An mmap object.

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.

Details

See the appropriate OS man page.

Value

0 on success, otherwise -1.

Author(s)

Jeffrey A. Ryan


mmap

Map Pages of Memory

v0.6-19
GPL-3
Authors
Jeffrey A. Ryan
Initial release
2020-01-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.