Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man7 Use more macros for symbolic constants
details: https://anonhg.NetBSD.org/src/rev/0f80467d94cd
branches: trunk
changeset: 339315:0f80467d94cd
user: kamil <kamil%NetBSD.org@localhost>
date: Sat Jul 11 17:24:13 2015 +0000
description:
Use more macros for symbolic constants
This change was suggested by <riastradh> in PR xsrc/49912
The change idea was approved by <wiz>
diffstat:
share/man/man7/sysctl.7 | 382 ++++++++++++++++++++++++------------------------
1 files changed, 191 insertions(+), 191 deletions(-)
diffs (truncated from 1057 to 300 lines):
diff -r e111c4f026a2 -r 0f80467d94cd share/man/man7/sysctl.7
--- a/share/man/man7/sysctl.7 Sat Jul 11 16:47:49 2015 +0000
+++ b/share/man/man7/sysctl.7 Sat Jul 11 17:24:13 2015 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: sysctl.7,v 1.90 2015/07/11 16:47:49 kamil Exp $
+.\" $NetBSD: sysctl.7,v 1.91 2015/07/11 17:24:13 kamil Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -132,19 +132,19 @@
for more information.
.Ss The vfs.* subtree
A distinguished second level name,
-.Li vfs.generic ( VFS_GENERIC ) ,
+.Li vfs.generic ( Dv VFS_GENERIC ) ,
is used to get general information about all file systems.
It has the following third level identifiers:
.Bl -tag -width "123456"
-.It Li vfs.generic.maxtypenum ( VFS_MAXTYPENUM )
+.It Li vfs.generic.maxtypenum ( Dv VFS_MAXTYPENUM )
The highest valid file system type number.
-.It Li vfs.generic.conf ( VFS_CONF )
+.It Li vfs.generic.conf ( Dv VFS_CONF )
Returns configuration information about the file system type given as a fourth
level identifier.
-.It Li vfs.generic.usermount ( VFS_USERMOUNT )
+.It Li vfs.generic.usermount ( Dv VFS_USERMOUNT )
Determines if non superuser mounts are allowed, defaults to
.Dv 0 .
-.It Li vfs.generic.magiclinks ( VFS_MAGICLINKS )
+.It Li vfs.generic.magiclinks ( Dv VFS_MAGICLINKS )
Controls if expansion of variables is going to be performed on pathnames
or not.
Defaults to no variable expansion,
@@ -206,23 +206,23 @@
.It hw.usermem64 quad no
.El
.Bl -tag -width "123456"
-.It Li hw.alignbytes ( HW_ALIGNBYTES )
+.It Li hw.alignbytes ( Dv HW_ALIGNBYTES )
Alignment constraint for all possible data types.
This shows the value
.Dv ALIGNBYTES
in
.In machine/param.h ,
at the kernel compilation time.
-.It Li hw.byteorder ( HW_BYTEORDER )
+.It Li hw.byteorder ( Dv HW_BYTEORDER )
The byteorder (4321, or 1234).
-.It Li hw.cnmagic ( HW_CNMAGIC )
+.It Li hw.cnmagic ( Dv HW_CNMAGIC )
The console magic key sequence.
-.It Li hw.disknames ( HW_DISKNAMES )
+.It Li hw.disknames ( Dv HW_DISKNAMES )
The list of (space separated) disk device names on the system.
-.It Li hw.iostatnames ( HW_IOSTATNAMES )
+.It Li hw.iostatnames ( Dv HW_IOSTATNAMES )
A space separated list of devices that will have I/O statistics
collected on them.
-.It Li hw.iostats ( HW_IOSTATS )
+.It Li hw.iostats ( Dv HW_IOSTATS )
Return statistical information on the NFS mounts, disk and tape
devices on the system.
An array of
@@ -242,25 +242,25 @@
(tape drive), or
.Dv IOSTAT_NFS
(NFS mount).
-.It Li hw.machine ( HW_MACHINE )
+.It Li hw.machine ( Dv HW_MACHINE )
The machine class.
-.It Li hw.machine_arch ( HW_MACHINE_ARCH )
+.It Li hw.machine_arch ( Dv HW_MACHINE_ARCH )
The machine CPU class.
-.It Li hw.model ( HW_MODEL )
+.It Li hw.model ( Dv HW_MODEL )
The machine model.
-.It Li hw.ncpu ( HW_NCPU )
+.It Li hw.ncpu ( Dv HW_NCPU )
The number of CPUs configured.
-.It Li hw.ncpuonline ( HW_NCPUONLINE )
+.It Li hw.ncpuonline ( Dv HW_NCPUONLINE )
The number of CPUs online.
-.It Li hw.pagesize ( HW_PAGESIZE )
+.It Li hw.pagesize ( Dv HW_PAGESIZE )
The software page size.
-.It Li hw.physmem ( HW_PHYSMEM )
+.It Li hw.physmem ( Dv HW_PHYSMEM )
The bytes of physical memory as a 32-bit integer.
-.It Li hw.physmem64 ( HW_PHYSMEM64 )
+.It Li hw.physmem64 ( Dv HW_PHYSMEM64 )
The bytes of physical memory as a 64-bit integer.
-.It Li hw.usermem ( HW_USERMEM )
+.It Li hw.usermem ( Dv HW_USERMEM )
The bytes of non-kernel memory as a 32-bit integer.
-.It Li hw.usermem64 ( HW_USERMEM64 )
+.It Li hw.usermem64 ( Dv HW_USERMEM64 )
The bytes of non-kernel memory as a 64-bit integer.
.El
.Ss The kern.* subtree
@@ -386,14 +386,14 @@
.Pf ( Tn RNG )
is based on
.Xr arc4random 3 .
-.It Li kern.argmax ( KERN_ARGMAX )
+.It Li kern.argmax ( Dv KERN_ARGMAX )
The maximum bytes of argument to
.Xr execve 2 .
.It Li kern.boothowto
Flags passed from the boot loader; see
.Xr reboot 2
for the meanings of the flags.
-.It Li kern.boottime ( KERN_BOOTTIME )
+.It Li kern.boottime ( Dv KERN_BOOTTIME )
A
.Vt struct timeval
structure is returned.
@@ -403,9 +403,9 @@
arbitrary information to be stored in this variable.
.\" .It Li kern.bufq
.\" XXX: Undocumented.
-.It Li kern.ccpu ( KERN_CCPU )
+.It Li kern.ccpu ( Dv KERN_CCPU )
The scheduler exponential decay value.
-.It Li kern.clockrate ( KERN_CLOCKRATE )
+.It Li kern.clockrate ( Dv KERN_CLOCKRATE )
A
.Vt struct clockinfo
structure is returned.
@@ -415,7 +415,7 @@
Refer to
.Xr hz 9
for additional details.
-.It Li kern.consdev ( KERN_CONSDEV )
+.It Li kern.consdev ( Dv KERN_CONSDEV )
Console device.
.It Li kern.coredump
Settings related to set-id processes coredumps.
@@ -451,9 +451,9 @@
The path to which set-id processes' coredumps will be saved to.
Same syntax as kern.defcorename.
.El
-.It Li kern.cp_id ( KERN_CP_ID )
+.It Li kern.cp_id ( Dv KERN_CP_ID )
Mapping of CPU number to CPU id.
-.It Li kern.cp_time ( KERN_CP_TIME )
+.It Li kern.cp_time ( Dv KERN_CP_TIME )
Returns an array of
.Dv CPUSTATES
.Vt uint64_t Ns s.
@@ -478,7 +478,7 @@
.It Dv \*[Gt] 0
Allow user requests only for transforms which are hardware-accelerated.
.El
-.It Li kern.defcorename ( KERN_DEFCORENAME )
+.It Li kern.defcorename ( Dv KERN_DEFCORENAME )
Default template for the name of core dump files (see also
.Li proc.pid.corename
in the per-process variables
@@ -495,9 +495,9 @@
).
.It Li kern.detachall
Detach all devices at shutdown.
-.It Li kern.domainname ( KERN_DOMAINNAME )
+.It Li kern.domainname ( Dv KERN_DOMAINNAME )
Get or set the YP domain name.
-.It Li kern.drivers ( KERN_DRIVERS )
+.It Li kern.drivers ( Dv KERN_DRIVERS )
Return an array of
.Vt struct kinfo_drivers
that contains the name and major device numbers of all the device drivers
@@ -508,17 +508,17 @@
The
.Va d_bmajor
field will be set to \-1 if the driver doesn't have a block device.
-.It Li kern.dump_on_panic ( KERN_DUMP_ON_PANIC )
+.It Li kern.dump_on_panic ( Dv KERN_DUMP_ON_PANIC )
Perform a crash dump on system
.Xr panic 9 .
-.It Li kern.file ( KERN_FILE )
+.It Li kern.file ( Dv KERN_FILE )
Return the entire file table.
The returned data consists of a single
.Vt struct filelist
followed by an array of
.Vt struct file ,
whose size depends on the current number of such objects in the system.
-.It Li kern.forkfsleep ( KERN_FORKFSLEEP )
+.It Li kern.forkfsleep ( Dv KERN_FORKFSLEEP )
If
.Xr fork 2
system call fails due to limit on number of processes (either
@@ -529,29 +529,29 @@
Useful to keep heavily forking runaway processes in bay.
Default zero (no sleep).
Maximum is 20 seconds.
-.It Li kern.fscale ( KERN_FSCALE )
+.It Li kern.fscale ( Dv KERN_FSCALE )
The kernel fixed-point scale factor.
-.It Li kern.fsync ( KERN_FSYNC )
+.It Li kern.fsync ( Dv KERN_FSYNC )
Return 1 if the
.St -p1003.1b-93
File Synchronization Option is available
on this system,
otherwise\ 0.
-.It Li kern.hardclock_ticks ( KERN_HARDCLOCK_TICKS )
+.It Li kern.hardclock_ticks ( Dv KERN_HARDCLOCK_TICKS )
Returns the number of
.Xr hardclock 9
ticks.
-.It Li kern.hostid ( KERN_HOSTID )
+.It Li kern.hostid ( Dv KERN_HOSTID )
Get or set the host identifier.
This is aimed to replace the legacy
.Xr gethostid 3
and
.Xr sethostid 3
system calls.
-.It Li kern.hostname ( KERN_HOSTNAME )
+.It Li kern.hostname ( Dv KERN_HOSTNAME )
Get or set the
.Xr hostname 1 .
-.It Li kern.iov_max ( KERN_IOV_MAX )
+.It Li kern.iov_max ( Dv KERN_IOV_MAX )
Return the maximum number of
.Vt iovec
structures that a process has available for use with
@@ -562,7 +562,7 @@
.Xr sendmsg 2
and
.Xr writev 2 .
-.It Li kern.ipc ( KERN_SYSVIPC )
+.It Li kern.ipc ( Dv KERN_SYSVIPC )
Return information about the SysV IPC parameters.
The third level names for the ipc variables are detailed below.
.Bl -column "kern.ipc.shm_use_phys" "integer" "Changeable" -offset indent
@@ -583,19 +583,19 @@
.It kern.ipc.semmnu integer yes
.El
.Bl -tag -width "123456"
-.It Li kern.ipc.sysvmsg ( KERN_SYSVIPC_MSG )
+.It Li kern.ipc.sysvmsg ( Dv KERN_SYSVIPC_MSG )
Returns 1 if System V style message queue functionality is available
on this system,
otherwise\ 0.
-.It Li kern.ipc.sysvsem ( KERN_SYSVIPC_SEM )
+.It Li kern.ipc.sysvsem ( Dv KERN_SYSVIPC_SEM )
Returns 1 if System V style semaphore functionality is available
on this system,
otherwise\ 0.
-.It Li kern.ipc.sysvshm ( KERN_SYSVIPC_SHM )
+.It Li kern.ipc.sysvshm ( Dv KERN_SYSVIPC_SHM )
Returns 1 if System V style share memory functionality is available
on this system,
otherwise\ 0.
-.It Li kern.ipc.sysvipc_info ( KERN_SYSVIPC_INFO )
+.It Li kern.ipc.sysvipc_info ( Dv KERN_SYSVIPC_INFO )
Return System V style IPC configuration and run-time information.
The fourth level name selects the System V style IPC facility.
.Bl -column "KERN_SYSVIPC_MSG_INFO" "struct shm_sysctl_info" -offset indent
@@ -624,15 +624,15 @@
structure is defined in
.In sys/shm.h .
.El
-.It Li kern.ipc.shmmax ( KERN_SYSVIPC_SHMMAX )
+.It Li kern.ipc.shmmax ( Dv KERN_SYSVIPC_SHMMAX )
Max shared memory segment size in bytes.
-.It Li kern.ipc.shmmni ( KERN_SYSVIPC_SHMMNI )
+.It Li kern.ipc.shmmni ( Dv KERN_SYSVIPC_SHMMNI )
Max number of shared memory identifiers.
-.It Li kern.ipc.shmseg ( KERN_SYSVIPC_SHMSEG )
+.It Li kern.ipc.shmseg ( Dv KERN_SYSVIPC_SHMSEG )
Max shared memory segments per process.
-.It Li kern.ipc.shmmaxpgs ( KERN_SYSVIPC_SHMMAXPGS )
+.It Li kern.ipc.shmmaxpgs ( Dv KERN_SYSVIPC_SHMMAXPGS )
Max amount of shared memory in pages.
-.It Li kern.ipc.shm_use_phys ( KERN_SYSVIPC_SHMUSEPHYS )
+.It Li kern.ipc.shm_use_phys ( Dv KERN_SYSVIPC_SHMUSEPHYS )
Locking of shared memory in physical memory.
If 0, memory can be swapped
out, otherwise it will be locked in physical memory.
@@ -647,51 +647,51 @@
.It Li kern.ipc.semmnu
Max number of undo structures in system.
.El
-.It Li kern.job_control ( KERN_JOB_CONTROL )
+.It Li kern.job_control ( Dv KERN_JOB_CONTROL )
Return 1 if job control is available on this system, otherwise\ 0.
-.It Li kern.labeloffset ( KERN_LABELOFFSET )
+.It Li kern.labeloffset ( Dv KERN_LABELOFFSET )
The offset within the sector specified by
.Dv KERN_LABELSECTOR
of the
.Xr disklabel 5 .
-.It Li kern.labelsector ( KERN_LABELSECTOR )
+.It Li kern.labelsector ( Dv KERN_LABELSECTOR )
The sector number containing the
.Xr disklabel 5 .
-.It Li kern.login_name_max ( KERN_LOGIN_NAME_MAX )
Home |
Main Index |
Thread Index |
Old Index