NAME
mmiinnhheerriitt - control the inheritance of pages
SYNOPSIS
##iinncclluuddee <
> ##iinncclluuddee <
int mmiinnhheerriitt(caddrt addr, sizet len, int inherit);> DESCRIPTION
The mmiinnhheerriitt() system call changes the specified pages to have the inher-
itance characteristic inherit, which can be set to VMINHERITNONE,VMINHERITCOPY, or VMINHERITSHARE. Not all implementations will guar-
antee that the inheritance characteristic can be set on a page basis; the granularity of changes may be as large as an entire region.RETURN VALUES
The mmiinnhheerriitt() function returns the value 0 if successful; otherwise thevalue -1 is returned and the global variable errno is set to indicate the
error. EERRRROORRSS The mmiinnhheerriitt() system call will fail if: [EINVAL] The virtual address range specified by the addr and len arguments is not valid. [EACCES] The flags specified by the inherit argument were not valid for the pages specified by the addr and len arguments.SEE ALSO
madvise(2), mincore(2), mprotect(2), msync(2), munmap(2) HISTORY The mmiinnhheerriitt() function first appeared in OpenBSD. BSD June 9, 1993 BSD