From owner-freebsd-doc Wed Jan 23 7:40:14 2002 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9D9BD37B417 for ; Wed, 23 Jan 2002 07:40:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0NFe3T51474; Wed, 23 Jan 2002 07:40:03 -0800 (PST) (envelope-from gnats) Date: Wed, 23 Jan 2002 07:40:03 -0800 (PST) Message-Id: <200201231540.g0NFe3T51474@freefall.freebsd.org> To: freebsd-doc@freebsd.org Cc: From: Thomas Quinot Subject: Re: docs/34184: Document "sysctl variable=/dev/foo" syntax Reply-To: Thomas Quinot Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR docs/34184; it has been noted by GNATS. From: Thomas Quinot To: Peter Pentchev Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: docs/34184: Document "sysctl variable=/dev/foo" syntax Date: Wed, 23 Jan 2002 16:31:43 +0100 Peter, First of all thanks for the feedback on this PR! Le 2002-01-23, Peter Pentchev écrivait : > I think new sentences should start on a new line in mdoc manual pages. OK, I was not aware of that rule. > Also, since this *is* the sysctl(8) manual page, it might be better > to refer to the sysctl command by simply using .Nm here. Absolutely right. > .Dq no device . That's nroff wizardry to me ;) > Other than that, looks fine to me. OK, here is an updated patch: Index: sysctl.8 =================================================================== RCS file: /home/ncvs/src/sbin/sysctl/sysctl.8,v retrieving revision 1.43 diff -u -r1.43 sysctl.8 --- sysctl.8 16 Jan 2002 06:55:29 -0000 1.43 +++ sysctl.8 23 Jan 2002 15:30:30 -0000 @@ -120,7 +120,8 @@ .Pp The information available from .Nm -consists of integers, strings, and opaques. +consists of integers, strings, devices (dev_t), +and opaque types. .Nm Sysctl only knows about a couple of opaque types, and will resort to hexdumps for the rest. @@ -136,6 +137,18 @@ .Pp The changeable column indicates whether a process with appropriate privilege can change the value. +String, integer, and devices values can be set using +.Nm sysctl . +.Pp +For device values, +.Ar value +can be specified as a character special file name. +Special values +.Ar off +and +.Ar none +denote +.Dq no device . .Bl -column security.bsd.unprivileged_read_msgbuf integerxxx .It Sy "Name Type Changeable .It "kern.ostype string no @@ -164,6 +177,7 @@ .It "kern.osreldate string no .It "kern.bootfile string yes .It "kern.corefile string yes +.It "kern.dumpdev dev_t yes .It "kern.logsigexit integer yes .It "security.bsd.suser_enabled integer yes .It "security.bsd.see_other_uids integer yes @@ -213,6 +227,14 @@ per uid to 1000, one would use the following request: .Pp .Dl "sysctl kern.maxprocperuid=1000" +.Pp +The device used for crash dumps can be specified using: +.Pp +.Dl "sysctl kern.dumpdev=/dev/somedev +.Pp +which is strictly equivalent to +.Pp +.Dl "dumpon /dev/somedev .Pp Information about the system clock rate may be obtained with: .Pp -- Thomas.Quinot@Cuivre.FR.EU.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message