diff options
| author | Mike Pritchard <mpp@FreeBSD.org> | 1999-06-27 00:28:55 +0000 |
|---|---|---|
| committer | Mike Pritchard <mpp@FreeBSD.org> | 1999-06-27 00:28:55 +0000 |
| commit | f858a016d89b7366891ede5f685fd71f6157d67a (patch) | |
| tree | bba67176e68324867eaefa865300f203fe097e44 /lib/libc | |
| parent | 25b6a7d13146b284363a203e503880f140072702 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/sys/mlock.2 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libc/sys/mlock.2 b/lib/libc/sys/mlock.2 index f2a8b5d2f4a8..18369a59d3a1 100644 --- a/lib/libc/sys/mlock.2 +++ b/lib/libc/sys/mlock.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)mlock.2 8.2 (Berkeley) 12/11/93 -.\" $Id$ +.\" $Id: mlock.2,v 1.4 1998/01/20 03:59:07 alex Exp $ .\" .Dd June 2, 1993 .Dt MLOCK 2 @@ -101,6 +101,8 @@ a system-wide ``wired pages'' limit and the per-process .Li RLIMIT_MEMLOCK resource limit. +.Pp +These calls are only available to the super-user. .Sh RETURN VALUES A return value of 0 indicates that the call succeeded and all pages in the range have either been locked or unlocked. @@ -113,6 +115,8 @@ is set to indicate the error. .Fn Mlock will fail if: .Bl -tag -width Er +.It Bq Er EPERM +The caller is not the super-user. .It Bq Er EINVAL The address given is not page aligned or the length is negative. .It Bq Er EAGAIN @@ -125,6 +129,8 @@ There was an error faulting/mapping a page. .Fn Munlock will fail if: .Bl -tag -width Er +.It Bq Er EPERM +The caller is not the super-user. .It Bq Er EINVAL The address given is not page aligned or the length is negative. .It Bq Er ENOMEM @@ -156,6 +162,8 @@ physical pages. Hence a process with two distinct locked mappings of the same physical page counts as 2 pages against the per-process limit and as only a single page in the system limit. + +The per-process resource limit is not currently supported. .Sh HISTORY The .Fn mlock |
