Page MenuHomeFreeBSD

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

Authored by asomers on Jan 10 2018, 5:44 PM.
Tags
None
Referenced Files
F108650598: D13826.id38332.diff
Mon, Jan 27, 2:14 AM
Unknown Object (File)
Fri, Jan 17, 9:40 PM
Unknown Object (File)
Tue, Jan 14, 1:54 AM
Unknown Object (File)
Mon, Jan 6, 12:08 PM
Unknown Object (File)
Thu, Jan 2, 3:30 AM
Unknown Object (File)
Dec 14 2024, 4:01 PM
Unknown Object (File)
Nov 24 2024, 11:38 PM
Unknown Object (File)
Nov 23 2024, 5: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 14529
Build 14668: arc lint + arc unit