msync man page on 4.4BSD

Man page or keyword search:  
man Server   1065 pages
apropos Keyword Search (all sections)
Output format
4.4BSD logo
[printable version]

MSYNC(2)		    BSD System Calls Manual		      MSYNC(2)

NAME
     msync — synchronize a mapped region

SYNOPSIS
     msync(caddr_t addr, int len);

DESCRIPTION
     The msync() system call writes any modified pages back to the filesystem
     and updates the file modification time.  If len is 0, all modified pages
     within the region containing addr will be flushed; if len is non-zero,
     only the pages containing addr and len succeeding locations will be exam‐
     ined.  Any required synchronization of memory caches will also take place
     at this time.  Filesystem operations on a file that is mapped for shared
     modifications are unpredictable except after an msync().

ERRORS
     The following errors may be reported:

     [EINVAL]		The addr parameter was not page aligned.

     [EINVAL]		The addr parameter did not specify an address part of
			a mapped region.

     [EINVAL]		The len parameter was negative.

     [EIO]		An I/O error occured while writing to the file system.

SEE ALSO
     madvise(2), munmap(2), mprotect(2), mincore(2)

HISTORY
     The msync() function first appeared in 4.4BSD.

BSD				 June 21, 1994				   BSD
[top]

List of man pages available for 4.4BSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
...................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net