From c947dc059b40b84fb44362f33805e05cdfb1ffa1 Mon Sep 17 00:00:00 2001 From: Don Lewis Date: Mon, 15 Mar 2004 10:32:37 +0000 Subject: Document additional reasons that sysctl(3) can return ENOMEM (due to vslock() failure). --- lib/libc/gen/sysctl.3 | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.3