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)
Fri, Mar 22, 4:53 AM
Unknown Object (File)
Jan 11 2024, 11:07 PM
Unknown Object (File)
Dec 20 2023, 4:17 AM
Unknown Object (File)
Nov 12 2023, 12:46 AM
Unknown Object (File)
Oct 10 2023, 11:42 PM
Unknown Object (File)
Aug 15 2023, 3:34 AM
Unknown Object (File)
Jul 31 2023, 9:55 PM
Unknown Object (File)
Jun 17 2023, 2:56 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 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.