Page MenuHomeFreeBSD

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

Authored by asomers on Jan 10 2018, 5:44 PM.
Tags
None
Referenced Files
F84278996: D13826.id.diff
Tue, May 21, 7:12 PM
F84264258: D13826.id38332.diff
Tue, May 21, 3:40 PM
Unknown Object (File)
Wed, May 15, 6:42 PM
Unknown Object (File)
Wed, May 1, 11:55 PM
Unknown Object (File)
Wed, May 1, 10:52 PM
Unknown Object (File)
Wed, May 1, 10:50 PM
Unknown Object (File)
Wed, May 1, 10:45 PM
Unknown Object (File)
Wed, May 1, 9:22 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