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)
Tue, Mar 17, 6:00 AM
Unknown Object (File)
Mon, Mar 16, 1:31 PM
Unknown Object (File)
Sat, Mar 7, 9:14 PM
Unknown Object (File)
Feb 18 2026, 11:29 PM
Unknown Object (File)
Feb 18 2026, 1:42 PM
Unknown Object (File)
Feb 17 2026, 10:43 AM
Unknown Object (File)
Feb 16 2026, 9:38 PM
Unknown Object (File)
Feb 16 2026, 2:31 AM
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