aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/sysctl.3
diff options
context:
space:
mode:
authorDon Lewis <truckman@FreeBSD.org>2004-03-15 10:32:37 +0000
committerDon Lewis <truckman@FreeBSD.org>2004-03-15 10:32:37 +0000
commitc947dc059b40b84fb44362f33805e05cdfb1ffa1 (patch)
tree8fc65e44f581bc247f41463f9e7e7ddde08f38b5 /lib/libc/gen/sysctl.3
parentec0791be40ce8a0d950a8641748fe064ef462a67 (diff)
downloadsrc-c947dc059b40b84fb44362f33805e05cdfb1ffa1.tar.gz
src-c947dc059b40b84fb44362f33805e05cdfb1ffa1.zip
Document additional reasons that sysctl(3) can return ENOMEM (due to
vslock() failure).
Notes
Notes: svn path=/head/; revision=127015
Diffstat (limited to 'lib/libc/gen/sysctl.3')
-rw-r--r--lib/libc/gen/sysctl.311
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index e91cd55512e7..945d21853b72 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