]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r328266:
authorasomers <asomers@FreeBSD.org>
Thu, 22 Feb 2018 02:14:43 +0000 (02:14 +0000)
committerasomers <asomers@FreeBSD.org>
Thu, 22 Feb 2018 02:14:43 +0000 (02:14 +0000)
commit823207b8a7c685bf7364189a41758f15a9ec62ce
tree3ac42ec7b83704188590e74d314871f37aaba1b7
parent16b95efbb0fa16f25223cf755ee570c9e6d3bfba
MFC r328266:

mlock(2): correct documentation for error conditions.

The man page is years out of date regarding errors. Our implementation _does_
allow unaligned addresses, and it _does_not_ check for negative lengths,
because the length is unsigned. It checks for overflow instead.

Update the tests accordingly.

Reviewed by: bcr
Differential Revision: https://reviews.freebsd.org/D13826
contrib/netbsd-tests/lib/libc/sys/t_mlock.c
lib/libc/sys/mlock.2