Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys The length argument is of an unsigned type (siz...
details: https://anonhg.NetBSD.org/src/rev/5431252ebdd8
branches: trunk
changeset: 336041:5431252ebdd8
user: njoly <njoly%NetBSD.org@localhost>
date: Sun Feb 08 11:27:43 2015 +0000
description:
The length argument is of an unsigned type (size_t) and cannot be
negative. Remove wrong statements in ERRORS section.
diffstat:
lib/libc/sys/mlock.2 | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r 38dfe8d3ab4f -r 5431252ebdd8 lib/libc/sys/mlock.2
--- a/lib/libc/sys/mlock.2 Sun Feb 08 09:55:25 2015 +0000
+++ b/lib/libc/sys/mlock.2 Sun Feb 08 11:27:43 2015 +0000
@@ -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 @@
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 @@
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.
Home |
Main Index |
Thread Index |
Old Index