The length argument is of an unsigned type (size_t) and cannot be

negative. Remove wrong statements in ERRORS section.
This commit is contained in:
njoly 2015-02-08 11:27:43 +00:00
parent 100db321d0
commit 45cb14b62a
1 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: mlock.2,v 1.20 2011/02/28 07:17:02 wiz Exp $
.\" $NetBSD: mlock.2,v 1.21 2015/02/08 11:27:43 njoly Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@ -29,7 +29,7 @@
.\"
.\" @(#)mlock.2 8.2 (Berkeley) 12/11/93
.\"
.Dd February 28, 2011
.Dd February 8, 2014
.Dt MLOCK 2
.Os
.Sh NAME
@ -116,8 +116,8 @@ will fail if:
Locking the indicated range would exceed either the system or per-process
limit for locked memory.
.It Bq Er EINVAL
The length is negative; or the address or length given is not page
aligned and the implementation does not round.
The address or length given is not page aligned and the implementation does
not round.
.It Bq Er ENOMEM
Some portion of the indicated address range is not allocated.
There was an error faulting/mapping a page.
@ -131,8 +131,8 @@ is not implemented.
will fail if:
.Bl -tag -width Er
.It Bq Er EINVAL
The length is negative; or the address or length given is not page
aligned and the implementation does not round.
The address or length given is not page aligned and the implementation does
not round.
.It Bq Er ENOMEM
Some portion of the indicated address range is not allocated.
Some portion of the indicated address range is not locked.