/usr/ucb/cc [flag . . . ] file . . .#include <sys/types.h> #include <sys/mman.h>
mctl(caddr_t addr, size_t len, int function, void *arg);
MCL_CURRENT | Lock current mappings |
MCL_FUTURE | Lock future mappings |
MS_SYNC | Synchronized write |
MS_ASYNC | Return immediately |
MS_INVALIDATE | Invalidate mappings |
MS_ASYNC returns after all I/O operations are scheduled. MS_SYNC does not return until all I/O operations are complete. Specify exactly one of MS_ASYNC or MS_SYNC. MS_INVALIDATE invalidates all cached copies of data from memory, requiring them to be re-obtained from the object's permanent storage location upon the next reference.
mctl fails if: