]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r328266:
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 3 Aug 2018 14:08:39 +0000 (14:08 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 3 Aug 2018 14:08:39 +0000 (14:08 +0000)
commit1274508727e465b4b42cc4090ff972fc3604b0f4
treecc9dad90f2fa9e0c57e54ee91f7c7c83c8f38d58
parentbe1c71e80fc867e32b9f059ea47ab671ae91c16e
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@337244 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/netbsd-tests/lib/libc/sys/t_mlock.c
lib/libc/sys/mlock.2