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, Nov 19, 10:34 PM
Unknown Object (File)
Fri, Nov 15, 9:52 AM
Unknown Object (File)
Sep 28 2024, 4:24 PM
Unknown Object (File)
Sep 27 2024, 1:20 PM
Unknown Object (File)
Sep 25 2024, 10:04 PM
Unknown Object (File)
Sep 25 2024, 12:48 PM
Unknown Object (File)
Sep 25 2024, 3:16 AM
Unknown Object (File)
Sep 24 2024, 5:49 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

Small man page nit.

lib/libc/sys/mlock.2
31 ↗(On Diff #37733)

s/2017/2018/

This revision is now accepted and ready to land.Jan 22 2018, 8:53 PM
This revision was automatically updated to reflect the committed changes.