summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-04-20 20:49:37 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-04-20 20:49:37 +0000
commitcd401f6732e8849ebd763413c6d53b1126b61a05 (patch)
tree39f328c491c012082094970eb0ffc6dfe4d07d1f /lib/libc/gen
parent5afe4381d46759178e7417c854cb9b517bb23955 (diff)
Get rid of MAXSENSORDEVICES. Gaps in sensordev lists are now handled
by returning ENXIO instead of ENOENT, to essentially indicate hotplug sensor that has gone away. Accessing beyond the end of the sensordev list still returns ENOENT, so that you can see there are no further devices. ok kettenis oga
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/sysctl.39
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index 33ac2a36350..a096a4fe000 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.3,v 1.195 2010/03/30 07:04:49 otto Exp $
+.\" $OpenBSD: sysctl.3,v 1.196 2010/04/20 20:49:35 deraadt Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 30 2010 $
+.Dd $Mdocdate: April 20 2010 $
.Dt SYSCTL 3
.Os
.Sh NAME
@@ -2259,6 +2259,11 @@ is too large or too small.
The length pointed to by
.Fa oldlenp
is too short to hold the requested value.
+.It Bq Er ENOENT
+The mib specified does not exist, or exceeds the range that is possible.
+.It Bq Er ENXIO
+If the mib is a sparsely populated array, this error may be returned
+instead.
.It Bq Er ENOTDIR
The
.Fa name