svn commit: r228509 - in head: share/man/man9 sys/kern sys/sys

Kostik Belousov kostikbel at gmail.com
Thu Dec 15 09:10:04 UTC 2011


> +	switch (rv) {
> +	case KERN_INVALID_ADDRESS:
> +	case KERN_NO_SPACE:
> +		return (ENOMEM);
> +	case KERN_PROTECTION_FAILURE:
> +		return (EACCES);
> +	default:
> +		return (EINVAL);
> +	}

You can replace this fragment with the call to vm_mmap_to_errno().
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20111215/788be736/attachment.pgp


More information about the svn-src-all mailing list