Subject: lib/36463: PROC_PID_LIMIT_SBSIZE is not documented in sysctl(3)
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Greg A. Woods <woods@planix.com>
List: netbsd-bugs
Date: 06/09/2007 19:15:00
>Number: 36463
>Category: lib
>Synopsis: PROC_PID_LIMIT_SBSIZE is not documented in sysctl(3)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 09 19:15:00 +0000 2007
>Originator: Greg A. Woods
>Release: NetBSD 4.0_BETA2
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD 4.0_BETA2
>Description:
seems PROC_PID_LIMIT_SBSIZE is not documented in sysctl(3)
>How-To-Repeat:
$ sysctl proc.curproc
(and read all about the pid.limit.sbsize settings)
man 3 sysctl
(and fail to read all about the rlimit.sbsize limits despite
finding all the other fields documented)
>Fix:
(the PROC_PID_LIMIT_* list should probably be sorted
alphabetically too)
Index: lib/libc/gen/sysctl.3
===================================================================
RCS file: /cvs/master/m-NetBSD/main/src/lib/libc/gen/sysctl.3,v
retrieving revision 1.191
diff -u -r1.191 sysctl.3
--- lib/libc/gen/sysctl.3 27 Nov 2006 17:55:12 -0000 1.191
+++ lib/libc/gen/sysctl.3 9 Jun 2007 19:06:59 -0000
@@ -29,7 +29,7 @@
.\"
.\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95
.\"
-.Dd November 27, 2006
+.Dd June 9, 2007
.Dt SYSCTL 3
.Os
.Sh NAME
@@ -1781,6 +1781,14 @@
This imposes a limit on the amount of physical memory to be given to
a process; if memory is tight, the system will prefer to take memory
from processes that are exceeding their declared resident set size.
+.It Li PROC_PID_LIMIT_SBSIZE
+The maximum size (in bytes) of the socket buffers
+set by the
+.Xr setsockopt 2
+.Dv SO_RCVBUF
+and
+.Dv SO_SNDBUF
+options.
.It Li PROC_PID_LIMIT_MEMLOCK
The maximum size (in bytes) which a process may lock into memory
using the
>Unformatted: