Module Name: src
Committed By: njoly
Date: Sun Feb 8 11:27:43 UTC 2015
Modified Files:
src/lib/libc/sys: mlock.2
Log Message:
The length argument is of an unsigned type (size_t) and cannot be
negative. Remove wrong statements in ERRORS section.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libc/sys/mlock.2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/sys/mlock.2
diff -u src/lib/libc/sys/mlock.2:1.20 src/lib/libc/sys/mlock.2:1.21
--- src/lib/libc/sys/mlock.2:1.20 Mon Feb 28 07:17:02 2011
+++ src/lib/libc/sys/mlock.2 Sun Feb 8 11:27:43 2015
@@ -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.