From b74a54b7d341462ae6cfb9639cc7ab93bd36fb19 Mon Sep 17 00:00:00 2001 From: jruoho Date: Tue, 20 Apr 2010 07:58:16 +0000 Subject: [PATCH] Document kern.arandom, and remove kern.autonicetime and kern.autoniceval. XXX: Although no sysctl variables exist for the last two, these are still defined in and . --- share/man/man7/sysctl.7 | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/share/man/man7/sysctl.7 b/share/man/man7/sysctl.7 index ebbb9ae60bd5..ed4193ce57b3 100644 --- a/share/man/man7/sysctl.7 +++ b/share/man/man7/sysctl.7 @@ -1,4 +1,4 @@ -.\" $NetBSD: sysctl.7,v 1.43 2010/04/20 07:33:45 jruoho Exp $ +.\" $NetBSD: sysctl.7,v 1.44 2010/04/20 07:58:16 jruoho Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. @@ -239,10 +239,8 @@ privilege may change the value. .Bl -column "kern.posix_reader_writer_locks" \ "struct kinfo_drivers" "not applicable" .It Sy Second level name Type Changeable -.\".It kern.arandom integer no +.It kern.arandom integer no .It kern.argmax integer no -.It kern.autonicetime integer yes -.It kern.autoniceval integer yes .It kern.boothowto integer no .It kern.boottime struct timeval no .\".It kern.bufq node not applicable @@ -330,20 +328,15 @@ privilege may change the value. .It kern.vnode struct vnode no .El .Bl -tag -width "123456" -.\".It Li kern.arandom -.\" XXX: Undocumented. +.It Li kern.arandom +This variable picks a random number each time it is queried. +The used random number generator +.Pq Tn RNG +is based on +.Xr arc4random 3 . .It Li kern.argmax ( KERN_ARGMAX ) The maximum bytes of argument to .Xr execve 2 . -.\" XXX: Is kern.autonicetime still available? -.It Li kern.autonicetime ( KERN_AUTONICETIME ) -The number of seconds of CPU-time a non-root process may accumulate before -having its priority lowered from the default to the value of KERN_AUTONICEVAL. -If set to 0, automatic lowering of priority is not performed, and if set to \-1 -all non-root processes are immediately lowered. -.\" XXX: Is kern.autoniceval still available? -.It Li kern.autoniceval ( KERN_AUTONICEVAL ) -The priority assigned for automatically niced processes. .It Li kern.boothowto Flags passed from the boot loader; see .Xr reboot 2