diff options
author | truckman <truckman@FreeBSD.org> | 2004-03-15 10:32:37 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2004-03-15 10:32:37 +0000 |
commit | 8cf9e392b99659216c6c407c6f2bd056c90bd1a8 (patch) | |
tree | 8fc65e44f581bc247f41463f9e7e7ddde08f38b5 /lib/libc/gen/sysctl.3 | |
parent | 9e29439889e63ab4d3179960f5e125e29f19d029 (diff) | |
download | FreeBSD-src-8cf9e392b99659216c6c407c6f2bd056c90bd1a8.zip FreeBSD-src-8cf9e392b99659216c6c407c6f2bd056c90bd1a8.tar.gz |
Document additional reasons that sysctl(3) can return ENOMEM (due to
vslock() failure).
Diffstat (limited to 'lib/libc/gen/sysctl.3')
-rw-r--r-- | lib/libc/gen/sysctl.3 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3 index e91cd55..945d218 100644 --- a/lib/libc/gen/sysctl.3 +++ b/lib/libc/gen/sysctl.3 @@ -797,6 +797,17 @@ is too large or too small. The length pointed to by .Fa oldlenp is too short to hold the requested value. +.It Bq Er ENOMEM +The smaller of either the length pointed to by +.Fa oldlenp +or the estimated size of the returned data exceeds the +system limit on locked memory. +.It Bq Er ENOMEM +Locking the buffer +.Fa oldp , +or a portion of the buffer if the estimated size of the data +to be returned is smaller, +would cause the process to exceed its per-process locked memory limit. .It Bq Er ENOTDIR The .Fa name |