Page MenuHomeFreeBSD

mlock(2): correct documentation for error conditions.
ClosedPublic

Authored by asomers on Jan 10 2018, 5:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 17, 2:27 PM
Unknown Object (File)
Sun, Aug 16, 9:30 PM
Unknown Object (File)
Sun, Aug 16, 7:48 PM
Unknown Object (File)
Sat, Aug 15, 9:27 PM
Unknown Object (File)
Fri, Aug 14, 6:55 PM
Unknown Object (File)
Fri, Aug 14, 2:27 AM
Unknown Object (File)
Thu, Aug 13, 8:52 PM
Unknown Object (File)
Tue, Aug 11, 11:07 PM
Subscribers

Details

Summary

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.

Test Plan

Updated ATF tests

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 14251
Build 14412: arc lint + arc unit