diff options
| -rw-r--r-- | man4/cpuid.4 | 16 | ||||
| -rw-r--r-- | man4/fd.4 | 4 | ||||
| -rw-r--r-- | man4/full.4 | 4 | ||||
| -rw-r--r-- | man4/initrd.4 | 4 | ||||
| -rw-r--r-- | man4/lirc.4 | 2 | ||||
| -rw-r--r-- | man4/msr.4 | 4 | ||||
| -rw-r--r-- | man4/null.4 | 2 | ||||
| -rw-r--r-- | man4/vcs.4 | 22 | ||||
| -rw-r--r-- | man5/charmap.5 | 4 | ||||
| -rw-r--r-- | man5/core.5 | 28 | ||||
| -rw-r--r-- | man5/dir_colors.5 | 30 | ||||
| -rw-r--r-- | man5/filesystems.5 | 4 | ||||
| -rw-r--r-- | man5/gai.conf.5 | 2 | ||||
| -rw-r--r-- | man5/hosts.equiv.5 | 48 | ||||
| -rw-r--r-- | man5/locale.5 | 32 | ||||
| -rw-r--r-- | man5/motd.5 | 2 | ||||
| -rw-r--r-- | man5/networks.5 | 8 | ||||
| -rw-r--r-- | man5/nscd.conf.5 | 38 | ||||
| -rw-r--r-- | man5/nss.5 | 2 | ||||
| -rw-r--r-- | man5/proc.5 | 366 | ||||
| -rw-r--r-- | man5/protocols.5 | 12 | ||||
| -rw-r--r-- | man5/repertoiremap.5 | 2 | ||||
| -rw-r--r-- | man5/services.5 | 22 | ||||
| -rw-r--r-- | man5/tmpfs.5 | 14 | ||||
| -rw-r--r-- | man5/ttytype.5 | 4 | ||||
| -rw-r--r-- | man8/intro.8 | 2 | ||||
| -rw-r--r-- | man8/nscd.8 | 4 |
27 files changed, 341 insertions, 341 deletions
diff --git a/man4/cpuid.4 b/man4/cpuid.4 index c6a1acd8e5..4fcae31693 100644 --- a/man4/cpuid.4 +++ b/man4/cpuid.4 @@ -28,14 +28,14 @@ cpuid \- x86 CPUID access device .SH DESCRIPTION CPUID provides an interface for querying information about the x86 CPU. - +.PP This device is accessed by .BR lseek (2) or .BR pread (2) to the appropriate CPUID level and reading in chunks of 16 bytes. A larger read size means multiple reads of consecutive levels. - +.PP The lower 32 bits of the file position is used as the incoming .IR %eax , and the upper 32 bits of the file position as the incoming @@ -44,7 +44,7 @@ the latter intended for "counting" .I eax levels like .IR eax=4 . - +.PP This driver uses .IR /dev/cpu/CPUNUM/cpuid , where @@ -54,7 +54,7 @@ and on an SMP box will direct the access to CPU .I CPUNUM as listed in .IR /proc/cpuinfo . - +.PP This file is protected so that it can be read only by the user .IR root , or members of the group @@ -64,7 +64,7 @@ The CPUID instruction can be directly executed by a program using inline assembler. However this device allows convenient access to all CPUs without changing process affinity. - +.PP Most of the information in .I cpuid is reported by the kernel in cooked form either in @@ -73,7 +73,7 @@ or through subdirectories in .IR /sys/devices/system/cpu . Direct CPUID access through this device should only be used in exceptional cases. - +.PP The .I cpuid driver is not auto-loaded. @@ -88,12 +88,12 @@ $ \fImodprobe cpuid\fP .PP There is no support for CPUID functions that require additional input registers. - +.PP Very old x86 CPUs don't support CPUID. .SH SEE ALSO Intel Corporation, Intel 64 and IA-32 Architectures Software Developer's Manual Volume 2A: Instruction Set Reference, A-M, 3-180 CPUID reference. - +.PP Intel Corporation, Intel Processor Identification and the CPUID Instruction, Application note 485. @@ -200,11 +200,11 @@ However, if a floppy is formatted with an inter-sector gap that is too small, performance may drop, to the point of needing a few seconds to access an entire track. To prevent this, use interleaved formats. - +.PP It is not possible to read floppies which are formatted using GCR (group code recording), which is used by Apple II and Macintosh computers (800k disks). - +.PP Reading floppies which are hard sectored (one hole per sector, with the index hole being a little skewed) is not supported. This used to be common with older 8-inch floppies. diff --git a/man4/full.4 b/man4/full.4 index d20b2c1c0e..ab33691bc2 100644 --- a/man4/full.4 +++ b/man4/full.4 @@ -48,11 +48,11 @@ device will fail with an .B ENOSPC error. This can be used to test how a program handles disk-full errors. - +.PP Reads from the .I /dev/full device will return \\0 characters. - +.PP Seeks on .I /dev/full will always succeed. diff --git a/man4/initrd.4 b/man4/initrd.4 index 81d79db567..0b31f8764e 100644 --- a/man4/initrd.4 +++ b/man4/initrd.4 @@ -298,7 +298,7 @@ IP number 193.8.232.2 and named "idefix": >/proc/sys/kernel/nfs-root-addrs echo 255 >/proc/sys/kernel/real-root-dev .fi - +.PP .BR Note : The use of .I /proc/sys/kernel/real-root-dev @@ -477,7 +477,7 @@ The behavior may change in future versions of the Linux kernel. .BR ram (4), .BR freeramdisk (8), .BR rdev (8) - +.PP .I Documentation/initrd.txt in the Linux kernel source tree, the LILO documentation, the LOADLIN documentation, the SYSLINUX documentation diff --git a/man4/lirc.4 b/man4/lirc.4 index c333f2cd75..d9a4d350a3 100644 --- a/man4/lirc.4 +++ b/man4/lirc.4 @@ -221,7 +221,7 @@ is a number in the range [0,100] which describes the pulse width as a percentage of the total cycle. Currently, no special meaning is defined for 0 or 100, but the values are reserved for future use. - +.IP .TP .BR LIRC_GET_MIN_TIMEOUT " (\fIvoid\fP)", " "\ LIRC_GET_MAX_TIMEOUT " (\fIvoid\fP)" diff --git a/man4/msr.4 b/man4/msr.4 index 07fdac1237..147fed8617 100644 --- a/man4/msr.4 +++ b/man4/msr.4 @@ -33,13 +33,13 @@ registers (MSRs) of an x86 CPU. .I CPUNUM is the number of the CPU to access as listed in .IR /proc/cpuinfo . - +.PP The register access is done by opening the file and seeking to the MSR number as offset in the file, and then reading or writing in chunks of 8 bytes. An I/O transfer of more than 8 bytes means multiple reads or writes of the same register. - +.PP This file is protected so that it can be read and written only by the user .IR root , or members of the group diff --git a/man4/null.4 b/man4/null.4 index e1089a58a7..5563b3d864 100644 --- a/man4/null.4 +++ b/man4/null.4 @@ -57,7 +57,7 @@ chown root:root /dev/null /dev/zero .SH NOTES If these devices are not writable and readable for all users, many programs will act strangely. - +.PP Since Linux 2.6.31, .\" commit 2b83868723d090078ac0e2120e06a1cc94dbaef0 reads from diff --git a/man4/vcs.4 b/man4/vcs.4 index 0bd5f4017f..49d58f06f5 100644 --- a/man4/vcs.4 +++ b/man4/vcs.4 @@ -55,7 +55,7 @@ dimensions and cursor position: = .I y = 0 at the top left corner of the screen.) - +.PP When a 512-character font is loaded, the 9th bit position can be fetched by applying the .BR ioctl (2) @@ -78,7 +78,7 @@ so the system administrator can control access using filesystem permissions. .PP The devices for the first eight virtual consoles may be created by: - +.PP .nf for x in 0 1 2 3 4 5 6 7 8; do mknod \-m 644 /dev/vcs$x c 7 $x; @@ -86,7 +86,7 @@ The devices for the first eight virtual consoles may be created by: done chown root:tty /dev/vcs* .fi - +.PP No .BR ioctl (2) requests are supported. @@ -100,27 +100,27 @@ requests are supported. Introduced with version 1.1.92 of the Linux kernel. .SH EXAMPLE You may do a screendump on vt3 by switching to vt1 and typing - +.PP cat /dev/vcs3 >foo - +.PP Note that the output does not contain newline characters, so some processing may be required, like in - +.PP fold \-w 81 /dev/vcs3 | lpr - +.PP or (horrors) - +.PP xetterm \-dump 3 \-file /proc/self/fd/1 - +.PP The .I /dev/vcsa0 device is used for Braille support. - +.PP This program displays the character and screen attributes under the cursor of the second virtual console, then changes the background color there: - +.PP .nf #include <unistd.h> #include <stdlib.h> diff --git a/man5/charmap.5 b/man5/charmap.5 index 0cb8db7387..4467144bee 100644 --- a/man5/charmap.5 +++ b/man5/charmap.5 @@ -56,7 +56,7 @@ If not specified, it defaults to The character set definition section starts with the keyword .I CHARMAP in the first column. - +.PP The following lines may have one of the two following forms to define the character set: .TP @@ -85,7 +85,7 @@ The default character width is 1. The width section for individual characters starts with the keyword .I WIDTH in the first column. - +.PP The following lines may have one of the two following forms to define the widths of the characters: .TP diff --git a/man5/core.5 b/man5/core.5 index 548ce6b711..6453957e63 100644 --- a/man5/core.5 +++ b/man5/core.5 @@ -36,14 +36,14 @@ This image can be used in a debugger (e.g., to inspect the state of the program at the time that it terminated. A list of the signals which cause a process to dump core can be found in .BR signal (7). - +.PP A process can set its soft .B RLIMIT_CORE resource limit to place an upper limit on the size of the core dump file that will be produced if it receives a "core dump" signal; see .BR getrlimit (2) for details. - +.PP There are various circumstances in which a core dump file is not produced: .IP * 3 @@ -207,7 +207,7 @@ and .I /proc/sys/kernel/core_uses_pid (see below) is nonzero, then .PID will be appended to the core filename. - +.PP Paths are interpreted according to the settings that are active for the crashing process. That means the crashing process's mount namespace (see @@ -216,7 +216,7 @@ its current working directory (found via .BR getcwd (2)), and its root directory (see .BR chroot (2)). - +.PP Since version 2.4, Linux has also provided a more primitive method of controlling the name of the core dump file. @@ -227,7 +227,7 @@ file contains the value 0, then a core dump file is simply named If this file contains a nonzero value, then the core dump file includes the process ID in a name of the form .IR core.PID . - +.PP Since Linux 3.6, .\" 9520628e8ceb69fa9a4aee6b57f22675d9e1b709 if @@ -306,7 +306,7 @@ files prematurely. This in turn creates the possibility that a misbehaving collecting program can block the reaping of a crashed process by simply never exiting. - +.PP Since Linux 2.6.32, .\" commit a293980c2e261bd5b0d2a77340dd04f684caff58 the @@ -316,7 +316,7 @@ The value in this file defines how many concurrent crashing processes may be piped to user-space programs in parallel. If this value is exceeded, then those crashing processes above this value are noted in the kernel log and their core dumps are skipped. - +.PP A value of 0 in this file is special. It indicates that unlimited processes may be captured in parallel, but that no waiting will take place (i.e., the collecting @@ -330,7 +330,7 @@ Since kernel 2.6.23, the Linux-specific file can be used to control which memory segments are written to the core dump file in the event that a core dump is performed for the process with the corresponding process ID. - +.PP The value in the file is a bit mask of memory mapping types (see .BR mmap (2)). If a bit is set in the mask, then memory mappings of the @@ -379,15 +379,15 @@ kernel configuration option is enabled), and 5. This default can be modified at boot time using the .I coredump_filter boot option. - +.PP The value of this file is displayed in hexadecimal. (The default value is thus displayed as 33.) - +.PP Memory-mapped I/O pages such as frame buffer are never dumped, and virtual DSO pages are always dumped, regardless of the .I coredump_filter value. - +.PP A child process created via .BR fork (2) inherits its parent's @@ -397,11 +397,11 @@ the .I coredump_filter value is preserved across an .BR execve (2). - +.PP It can be useful to set .I coredump_filter in the parent shell before running a program, for example: - +.PP .in +4n .nf .RB "$" " echo 0x7 > /proc/self/coredump_filter" @@ -417,7 +417,7 @@ The .BR gdb (1) .I gcore command can be used to obtain a core dump of a running process. - +.PP In Linux versions up to and including 2.6.27, .\" Changed with commit 6409324b385f3f63a03645b4422e3be67348d922 if a multithreaded process (or, more precisely, a process that diff --git a/man5/dir_colors.5 b/man5/dir_colors.5 index f3039f7148..c51bb8e851 100644 --- a/man5/dir_colors.5 +++ b/man5/dir_colors.5 @@ -19,11 +19,11 @@ uses the environment variable .B LS_COLORS to determine the colors in which the filenames are to be displayed. This environment variable is usually set by a command like - +.PP .RS eval \`dircolors some_path/dir_colors\` .RE - +.PP found in a system default shell initialization file, like .I /etc/profile or @@ -102,7 +102,7 @@ does not verify the validity of these options. .TP .B NORMAL \fIcolor-sequence\fR Specifies the color used for normal (nonfilename) text. - +.IP Synonym: .BR NORM . .TP @@ -114,7 +114,7 @@ Specifies the color used for directories. .TP .B LINK \fIcolor-sequence\fR Specifies the color used for a symbolic link. - +.IP Synonyms: .BR LNK , .BR SYMLINK . @@ -139,7 +139,7 @@ color instead. .TP .B FIFO \fIcolor-sequence\fR Specifies the color used for a FIFO (named pipe). - +.IP Synonym: .BR PIPE . .TP @@ -152,13 +152,13 @@ Specifies the color used for a door (Solaris 2.5 and later). .TP .B BLK \fIcolor-sequence\fR Specifies the color used for a block device special file. - +.IP Synonym: .BR BLOCK . .TP .B CHR \fIcolor-sequence\fR Specifies the color used for a character device special file. - +.IP Synonym: .BR CHAR . .TP @@ -167,13 +167,13 @@ Specifies the color used for a file with the executable attribute set. .TP .B SUID \fIcolor-sequence\fR Specifies the color used for a file with the set-user-ID attribute set. - +.IP Synonym: .BR SETUID . .TP .B SGID \fIcolor-sequence\fR Specifies the color used for a file with the set-group-ID attribute set. - +.IP Synonym: .BR SETGID . .TP @@ -182,13 +182,13 @@ Specifies the color used for a directory with the sticky attribute set. .TP .B STICKY_OTHER_WRITABLE \fIcolor-sequence\fR Specifies the color used for an other-writable directory with the executable attribute set. - +.IP Synonym: .BR OWT . .TP .B OTHER_WRITABLE \fIcolor-sequence\fR Specifies the color used for an other-writable directory without the executable attribute set. - +.IP Synonym: .BR OWR . .TP @@ -196,7 +196,7 @@ Synonym: Specifies the .I "left code" for non-ISO\ 6429 terminals (see below). - +.IP Synonym: .BR LEFT . .TP @@ -204,7 +204,7 @@ Synonym: Specifies the .I "right code" for non-ISO\ 6429 terminals (see below). - +.IP Synonym: .BR RIGHT . .TP @@ -212,7 +212,7 @@ Synonym: Specifies the .I "end code" for non-ISO\ 6429 terminals (see below). - +.IP Synonym: .BR END . .TP @@ -239,7 +239,7 @@ and the widely used and cloned DEC VT100, will recognize ISO 6429 color codes and harmlessly eliminate them from the output or emulate them. .B ls uses ISO 6429 codes by default, assuming colorization is enabled. - +.PP ISO 6429 color sequences are composed of sequences of numbers separated by semicolons. The most common codes are: diff --git a/man5/filesystems.5 b/man5/filesystems.5 index ceb5636125..c692137d75 100644 --- a/man5/filesystems.5 +++ b/man5/filesystems.5 @@ -42,12 +42,12 @@ see for more details. If you need a currently unsupported filesystem, insert the corresponding module or recompile the kernel. - +.PP In order to use a filesystem, you have to .I mount it; see .BR mount (8). - +.PP Below a short description of the available or historically available filesystems in the Linux kernel. See kernel documentation for a comprehensive diff --git a/man5/gai.conf.5 b/man5/gai.conf.5 index d34f9d212c..ca082637bb 100644 --- a/man5/gai.conf.5 +++ b/man5/gai.conf.5 @@ -79,7 +79,7 @@ file is supported by glibc since version 2.5. .SH EXAMPLE The default table according to RFC\ 3484 would be specified with the following configuration file: - +.PP .nf label ::1/128 0 label ::/0 1 diff --git a/man5/hosts.equiv.5 b/man5/hosts.equiv.5 index 7df0e99125..dc6756159e 100644 --- a/man5/hosts.equiv.5 +++ b/man5/hosts.equiv.5 @@ -87,84 +87,84 @@ Below are some example or .I ~/.rhosts files. - +.PP Allow any user to log in from any host: - +.PP + - +.PP Allow any user from .I host with a matching local account to log in: - +.PP host - +.PP Note: the use of .I +host is never a valid syntax, including attempting to specify that any user from the host is allowed. - +.PP Allow any user from .I host to log in: - +.PP host + - +.PP Note: this is distinct from the previous example since it does not require a matching local account. - +.PP Allow .I user from .I host to log in as any non-root user: - +.PP host user - +.PP Allow all users with matching local accounts from .I host to log in except for .IR baduser : - +.PP host \-baduser host - +.PP Deny all users from .IR host : - +.PP \-host - +.PP Note: the use of .I "\-host\ \-user" is never a valid syntax, including attempting to specify that a particular user from the host is not trusted. - +.PP Allow all users with matching local accounts on all hosts in a .IR netgroup : - +.PP +@netgroup - +.PP Disallow all users on all hosts in a .IR netgroup : - +.PP \-@netgroup - +.PP Allow all users in a .I netgroup to log in from .IR host as any non-root user: - +.PP host +@netgroup - +.PP Allow all users with matching local accounts on all hosts in a .I netgroup except .IR baduser : - +.PP +@netgroup \-baduser +@netgroup - +.PP Note: the deny statements must always precede the allow statements because the file is processed sequentially until the first matching rule is found. .SH SEE ALSO diff --git a/man5/locale.5 b/man5/locale.5 index 5f59efe33e..4b430afef3 100644 --- a/man5/locale.5 +++ b/man5/locale.5 @@ -31,7 +31,7 @@ The definition file contains all the information that the .BR localedef (1) command needs to convert it into the binary locale database. - +.PP The definition files consist of sections which each describe a locale category in detail. See @@ -104,12 +104,12 @@ the GNU C library supports the following nonstandard categories: See .BR locale (7) for a more detailed description of each category. - +.PP .SS LC_ADDRESS The definition starts with the string .I LC_ADDRESS in the first column. - +.PP The following keywords are allowed: .TP .I postal_fmt @@ -231,7 +231,7 @@ definition ends with the string The definition starts with the string .I LC_CTYPE in the first column. - +.PP The following keywords are allowed: .TP .I upper @@ -456,7 +456,7 @@ will override any rule copied or included from other files. In case of duplicate rule definitions in the locale file, only the first rule is used. - +.IP A transliteration rule consist of a character to be transliterated followed by a list of transliteration targets separated by semicolons. The first target which can be presented in the target character set @@ -485,11 +485,11 @@ definition ends with the string .SS LC_COLLATE Note that glibc does not support all POSIX-defined options, only the options described below are supported (as of glibc 2.23). - +.PP The definition starts with the string .I LC_COLLATE in the first column. - +.PP The following keywords are allowed: .TP .I coll_weight_max @@ -555,7 +555,7 @@ definition ends with the string The definition starts with the string .I LC_IDENTIFICATION in the first column. - +.PP The following keywords are allowed: .TP .I title @@ -633,7 +633,7 @@ definition ends with the string The definition starts with the string .I LC_MESSAGES in the first column. - +.PP The following keywords are allowed: .TP .I yesexpr @@ -658,7 +658,7 @@ definition ends with the string The definition starts with the string .I LC_MEASUREMENT in the first column. - +.PP The following keywords are allowed: .TP .I measurement @@ -681,7 +681,7 @@ definition ends with the string The definition starts with the string .I LC_MONETARY in the first column. - +.PP The following keywords are allowed: .TP .I int_curr_symbol @@ -873,7 +873,7 @@ definition ends with the string The definition starts with the string .I LC_NAME in the first column. - +.PP Various keywords are allowed, but only .IR name_fmt is mandatory. @@ -960,7 +960,7 @@ definition ends with the string The definition starts with the string .I LC_NUMERIC in the first column. - +.PP The following keywords are allowed: .TP .I decimal_point @@ -992,7 +992,7 @@ definition ends with the string The definition starts with the string .I LC_PAPER in the first column. - +.PP The following keywords are allowed: .TP .I height @@ -1009,7 +1009,7 @@ definition ends with the string The definition starts with the string .I LC_TELEPHONE in the first column. - +.PP The following keywords are allowed: .TP .I tel_int_fmt @@ -1061,7 +1061,7 @@ definition ends with the string The definition starts with the string .I LC_TIME in the first column. - +.PP The following keywords are allowed: .TP .I abday diff --git a/man5/motd.5 b/man5/motd.5 index 70131476cd..bacab3b0b0 100644 --- a/man5/motd.5 +++ b/man5/motd.5 @@ -33,7 +33,7 @@ The contents of are displayed by .BR login (1) after a successful login but just before it executes the login shell. - +.PP The abbreviation "motd" stands for "message of the day", and this file has been traditionally used for exactly that (it requires much less disk space than mail to all users). diff --git a/man5/networks.5 b/man5/networks.5 index 242e158f6a..f2b2be22da 100644 --- a/man5/networks.5 +++ b/man5/networks.5 @@ -32,18 +32,18 @@ The file is a plain ASCII file that describes known DARPA networks and symbolic names for these networks. Each line represents a network and has the following structure: - +.PP .RS .I name number aliases ... .RE - +.PP where the fields are delimited by spaces or tabs. Empty lines are ignored. The hash character (\fB#\fP) indicates the start of a comment: this character, and the remaining characters up to the end of the current line, are ignored by library functions that process the file. - +.PP The field descriptions are: .TP .I name @@ -59,7 +59,7 @@ The trailing ".0" (for the host component of the network address) may be omitted .I aliases Optional aliases for the network. .LP - +.PP This file is read by the .BR route (8) and diff --git a/man5/nscd.conf.5 b/man5/nscd.conf.5 index 42e045d5f9..1a675b6ade 100644 --- a/man5/nscd.conf.5 +++ b/man5/nscd.conf.5 @@ -33,23 +33,23 @@ or TAB characters. A \(aq#\(aq (number sign) indicates the beginning of a comment; following characters, up to the end of the line, are not interpreted by nscd. - +.PP Valid services are \fIpasswd\fP, \fIgroup\fP, \fIhosts\fP, \fIservices\fP, or \fInetgroup\fP. - +.PP .B logfile .I debug-file-name .RS Specifies name of the file to which debug info should be written. .RE - +.PP .B debug-level .I value .RS Sets the desired debug level. The default is 0. .RE - +.PP .B threads .I number .RS @@ -57,14 +57,14 @@ This is the number of threads that are started to wait for requests. At least five threads will always be created. .RE - +.PP .B max-threads .I number .RS Specifies the maximum number of threads. The default is 32. .RE - +.PP .B server-user .I user .RS @@ -72,13 +72,13 @@ If this option is set, nscd will run as this user and not as root. If a separate cache for every user is used (\-S parameter), this option is ignored. .RE - +.PP .B stat-user .I user .RS Specifies the user who is allowed to request statistics. .RE - +.PP .B reload-count unlimited | .I number @@ -87,14 +87,14 @@ Limit on the number of times a cached entry gets reloaded without being used before it gets removed. The default is 5. .RE - +.PP .B paranoia .I <yes|no> .RS Enabling paranoia mode causes nscd to restart itself periodically. The default is no. .RE - +.PP .B restart-interval .I time .RS @@ -106,7 +106,7 @@ if periodic restart is enabled by enabling mode. The default is 3600. .RE - +.PP .B enable-cache .I service .I <yes|no> @@ -116,7 +116,7 @@ Enables or disables the specified cache. The default is no. .RE - +.PP .B positive-time-to-live .I service .I value @@ -129,7 +129,7 @@ is in seconds. Larger values increase cache hit rates and reduce mean response times, but increase problems with cache coherence. .RE - +.PP .B negative-time-to-live .I service .I value @@ -144,7 +144,7 @@ are several files owned by UIDs (user IDs) not in system databases (for example untarring the Linux kernel sources as root); should be kept small to reduce cache coherency problems. .RE - +.PP .B suggested-size .I service .I value @@ -154,7 +154,7 @@ This is the internal hash table size, should remain a prime number for optimum efficiency. The default is 211. .RE - +.PP .B check-files .I service .I <yes|no> @@ -171,7 +171,7 @@ and .IR /etc/netgroup . The default is yes. .RE - +.PP .B persistent .I service .I <yes|no> @@ -183,7 +183,7 @@ over server restarts; useful when mode is set. The default is no. .RE - +.PP .B shared .I service .I <yes|no> @@ -195,7 +195,7 @@ that they can directly search in them instead of having to ask the daemon over the socket each time a lookup is performed. The default is no. .RE - +.PP .B max-db-size .I service .I bytes @@ -204,7 +204,7 @@ The maximum allowable size, in bytes, of the database files for the .IR service . The default is 33554432. .RE - +.PP .B auto-propagate .I service .I <yes|no> diff --git a/man5/nss.5 b/man5/nss.5 index ddf8157179..6c0a2f4fa0 100644 --- a/man5/nss.5 +++ b/man5/nss.5 @@ -99,7 +99,7 @@ the next entry. \fI/etc/default/nss\fR .SH EXAMPLE The default configuration corresponds to the following configuration file: - +.PP .nf NETID_AUTHORITATIVE=FALSE SERVICES_AUTHORITATIVE=FALSE diff --git a/man5/proc.5 b/man5/proc.5 index ea6150a342..c4ec66655a 100644 --- a/man5/proc.5 +++ b/man5/proc.5 @@ -150,7 +150,7 @@ hierarchy. .I /proc/[pid] There is a numerical subdirectory for each running process; the subdirectory is named by the process ID. - +.IP Each .I /proc/[pid] subdirectory contains the @@ -195,14 +195,14 @@ but the intention was that the API be general enough to support other security modules. For the purpose of explanation, examples of how SELinux uses these files are provided below. - +.IP This directory is present only if the kernel was configured with .BR CONFIG_SECURITY . .TP .IR /proc/[pid]/attr/current " (since Linux 2.6.0)" The contents of this file represent the current security attributes of the process. - +.IP In SELinux, this file is used to get the security context of a process. Prior to Linux 2.6.11, this file could not be used to set the security context (a write was always denied), since SELinux limited process security @@ -233,7 +233,7 @@ writes to this node. This file represents the attributes to assign to the process upon a subsequent .BR execve (2). - +.IP In SELinux, this is needed to support role/domain transitions, and .BR execve (2) @@ -258,7 +258,7 @@ created by subsequent calls to .BR symlink (2), and .BR mknod (2) - +.IP SELinux employs this file to support creation of a file (using the aforementioned system calls) in a secure state, @@ -308,7 +308,7 @@ plus one \fIunsigned long\fP value for each entry. The last entry contains two zeros. See also .BR getauxval (3). - +.IP Permission to access this file is governed by a ptrace access mode .B PTRACE_MODE_READ_FSCREDS check; see @@ -325,9 +325,9 @@ See .\" .\" "Clears page referenced bits shown in smaps output" .\" write-only, writable only by the owner of the process - +.IP This is a write-only file, writable only by owner of the process. - +.IP The following values may be written to the file: .RS .TP @@ -363,7 +363,7 @@ to get an idea of the change in memory footprint of the process during the measured interval. If one is interested only in inspecting the selected mapping types, then the value 2 or 3 can be used instead of 1. - +.IP Further values can be written to affect different properties: .RS .TP @@ -386,7 +386,7 @@ current resident set size value. Writing any value to .IR /proc/[pid]/clear_refs other than those listed above has no effect. - +.IP The .IR /proc/[pid]/clear_refs file is present only if the @@ -424,7 +424,7 @@ by writing to the file Strings longer than .B TASK_COMM_LEN (16) characters are silently truncated. - +.IP This file provides a superset of the .BR prctl (2) .B PR_SET_NAME @@ -447,13 +447,13 @@ See This is a symbolic link to the current working directory of the process. To find out the current working directory of process 20, for instance, you can do this: - +.IP .in +4n .nf .RB "$" " cd /proc/20/cwd; /bin/pwd" .fi .in - +.IP Note that the .I pwd command is often a shell built-in, and might @@ -462,13 +462,13 @@ In .BR bash (1), you may use .IR "pwd\ \-P" . - +.IP .\" The following was still true as at kernel 2.6.13 In a multithreaded process, the contents of this symbolic link are not available if the main thread has already terminated (typically by calling .BR pthread_exit (3)). - +.IP Permission to dereference or read .RB ( readlink (2)) this symbolic link is governed by a ptrace access mode @@ -489,7 +489,7 @@ Thus, to print out the environment of process 1, you would do: .RB "$" " strings /proc/1/environ" .fi .in - +.IP If, after an .BR execve (2), the process modifies its environment @@ -501,12 +501,12 @@ variable directly), this file will .I not reflect those changes. - +.IP Furthermore, a process may change the memory location that this file refers via .BR prctl (2) operations such as .BR PR_SET_MM_ENV_START . - +.IP Permission to access this file is governed by a ptrace access mode .B PTRACE_MODE_READ_FSCREDS check; see @@ -528,14 +528,14 @@ In a multithreaded process, the contents of this symbolic link are not available if the main thread has already terminated (typically by calling .BR pthread_exit (3)). - +.IP Permission to dereference or read .RB ( readlink (2)) this symbolic link is governed by a ptrace access mode .B PTRACE_MODE_READ_FSCREDS check; see .BR ptrace (2). - +.IP Under Linux 2.0 and earlier, .I /proc/[pid]/exe is a pointer to the binary which was executed, @@ -543,12 +543,12 @@ and appears as a symbolic link. A .BR readlink (2) call on this file under Linux 2.0 returns a string in the format: - +.IP [device]:inode - +.IP For example, [0301]:1502 would be inode 1502 on device major 03 (IDE, MFM, etc. drives) minor 01 (first partition on the first drive). - +.IP .BR find (1) with the .I \-inum @@ -559,23 +559,23 @@ This is a subdirectory containing one entry for each file which the process has open, named by its file descriptor, and which is a symbolic link to the actual file. Thus, 0 is standard input, 1 standard output, 2 standard error, and so on. - +.IP For file descriptors for pipes and sockets, the entries will be symbolic links whose content is the file type with the inode. A .BR readlink (2) call on this file returns a string in the format: - +.IP type:[inode] - +.IP For example, .I socket:[2248868] will be a socket and its inode is 2248868. For sockets, that inode can be used to find more information in one of the files under .IR /proc/net/ . - +.IP For file descriptors that have no corresponding inode (e.g., file descriptors produced by .BR bpf (2), @@ -588,23 +588,23 @@ For file descriptors that have no corresponding inode and .BR userfaultfd (2)), the entry will be a symbolic link with contents of the form - +.IP anon_inode:<file-type> - +.IP In many cases (but not all), the .I file-type is surrounded by square brackets. - +.IP For example, an epoll file descriptor will have a symbolic link whose content is the string .IR "anon_inode:[eventpoll]" . - +.IP .\"The following was still true as at kernel 2.6.13 In a multithreaded process, the contents of this directory are not available if the main thread has already terminated (typically by calling .BR pthread_exit (3)). - +.IP Programs that take a filename as a command-line argument, but don't take input from standard input if no argument is supplied, and programs that write to a file named as a command-line argument, @@ -624,13 +624,13 @@ is the flag designating an output file: .RB "$" " foobar \-i /proc/self/fd/0 \-o /proc/self/fd/1 ..." .fi .in - +.IP and you have a working filter. .\" The following is not true in my tests (MTK): .\" Note that this will not work for .\" programs that seek on their files, as the files in the fd directory .\" are not seekable. - +.IP .I /proc/self/fd/N is approximately the same as .I /dev/fd/N @@ -640,7 +640,7 @@ Most Linux MAKEDEV scripts symbolically link to .IR /proc/self/fd , in fact. - +.IP Most systems provide symbolic links .IR /dev/stdin , .IR /dev/stdout , @@ -676,7 +676,7 @@ The contents of each file can be read to obtain information about the corresponding file descriptor. The content depends on the type of file referred to by the corresponding file descriptor. - +.IP For regular files and directories, we see something like: .in +4n .nf @@ -687,7 +687,7 @@ flags: 01002002 mnt_id: 21 .fi .in - +.IP The fields are as follows: .RS .TP @@ -702,7 +702,7 @@ If the close-on-exec file descriptor flag is set, then .I flags will also include the value .BR O_CLOEXEC . - +.IP Before Linux 3.1, .\" commit 1117f72ea0217ba0cc19f05adbbd8b9a397f5ab7 this field incorrectly displayed the setting of @@ -724,7 +724,7 @@ For eventfd file descriptors (see we see (since Linux 3.8) .\" commit cbac5542d48127b546a23d816380a7926eee1c25 the following fields: - +.IP .in +4n .nf pos: 0 @@ -733,16 +733,16 @@ mnt_id: 10 eventfd-count: 40 .fi .in - +.IP .I eventfd-count is the current value of the eventfd counter, in hexadecimal. - +.IP For epoll file descriptors (see .BR epoll (7)), we see (since Linux 3.8) .\" commit 138d22b58696c506799f8de759804083ff9effae the following fields: - +.IP .in +4n .nf pos: 0 @@ -752,7 +752,7 @@ tfd: 9 events: 19 data: 74253d2500000009 tfd: 7 events: 19 data: 74253d2500000007 .fi .in - +.IP Each of the lines beginning .I tfd describes one of the file descriptors being monitored via @@ -769,13 +769,13 @@ descriptor. The .I data field is the data value associated with this file descriptor. - +.IP For signalfd file descriptors (see .BR signalfd (2)), we see (since Linux 3.8) .\" commit 138d22b58696c506799f8de759804083ff9effae the following fields: - +.IP .in +4n .nf pos: 0 @@ -784,7 +784,7 @@ mnt_id: 10 sigmask: 0000000000000006 .fi .in - +.IP .I sigmask is the hexadecimal mask of signals that are accepted via this signalfd file descriptor. @@ -794,12 +794,12 @@ and .BR SIGQUIT ; see .BR signal (7).) - +.IP For inotify file descriptors (see .BR inotify (7)), we see (since Linux 3.8) the following fields: - +.IP .in +4n .nf pos: 0 @@ -809,7 +809,7 @@ inotify wd:2 ino:7ef82a sdev:800001 mask:800afff ignored_mask:0 fhandle-bytes:8 inotify wd:1 ino:192627 sdev:800001 mask:800afff ignored_mask:0 fhandle-bytes:8 fhandle-type:1 f_handle:27261900802dfd73 .fi .in - +.IP Each of the lines beginning with "inotify" displays information about one file or directory that is being monitored. The fields in this line are as follows: @@ -834,12 +834,12 @@ file is exposed as a file handle, via three hexadecimal fields: .IR fhandle-type , and .IR f_handle . - +.IP For fanotify file descriptors (see .BR fanotify (7)), we see (since Linux 3.8) the following fields: - +.IP .in +4n .nf pos: 0 @@ -849,7 +849,7 @@ fanotify flags:0 event-flags:88002 fanotify ino:19264f sdev:800001 mflags:0 mask:1 ignored_mask:0 fhandle-bytes:8 fhandle-type:1 f_handle:4f261900a82dfd73 .fi .in - +.IP The fourth line displays information defined when the fanotify group was created via .BR fanotify_init (2): @@ -911,7 +911,7 @@ write_bytes: 323932160 cancelled_write_bytes: 0 .fi .in - +.IP The fields are as follows: .RS .TP @@ -975,7 +975,7 @@ if process A reads process B's .I /proc/[pid]/io while process B is updating one of these 64-bit counters, process A could see an intermediate result. - +.IP Permission to access this file is governed by a ptrace access mode .B PTRACE_MODE_READ_FSCREDS check; see @@ -1012,7 +1012,7 @@ lr\-\-\-\-\-\-\-\-. 1 root root 64 Apr 16 21:31 \&... .fi .in - +.IP Although these entries are present for memory regions that were mapped with the .BR MAP_FILE @@ -1031,7 +1031,7 @@ lrw\-\-\-\-\-\-\-. 1 root root 64 Apr 16 21:33 7fc075d2f000\-7fc075e6f000 \-> /dev/zero (deleted) .fi .in - +.IP This directory appears only if the .B CONFIG_CHECKPOINT_RESTORE kernel configuration option is enabled. @@ -1049,12 +1049,12 @@ permissions. See .BR mmap (2) for some further information about memory mappings. - +.IP Permission to access this file is governed by a ptrace access mode .B PTRACE_MODE_READ_FSCREDS check; see .BR ptrace (2). - +.IP The format of the file is: .IP .in 4n @@ -1088,7 +1088,7 @@ field is the address space in the process that the mapping occupies. The .I perms field is a set of permissions: - +.IP .nf .in +5 r = read @@ -1098,7 +1098,7 @@ s = shared p = private (copy on write) .fi .in - +.IP The .I offset field is the offset into the file/whatever; @@ -1109,7 +1109,7 @@ is the device is the inode on that device. 0 indicates that no inode is associated with the memory region, as would be the case with BSS (uninitialized data). - +.IP The .I pathname field will usually be the file that is backing the mapping. @@ -1119,7 +1119,7 @@ you can easily coordinate with the field by looking at the Offset field in the ELF program headers .RI ( "readelf\ \-l" ). - +.IP There are additional helpful pseudo-paths: .RS 12 .TP @@ -1155,7 +1155,7 @@ short of running it through .BR gdb (1), .BR strace (1), or similar. - +.IP Under Linux 2.0, there is no field giving pathname. .TP .I /proc/[pid]/mem @@ -1164,7 +1164,7 @@ This file can be used to access the pages of a process's memory through .BR read (2), and .BR lseek (2). - +.IP Permission to access this file is governed by a ptrace access mode .B PTRACE_MODE_ATTACH_FSCREDS check; see @@ -1183,7 +1183,7 @@ identifier for each mount and its parent) that is missing from the (older) file, and fixes various other problems with that file (e.g., nonextensibility, failure to distinguish per-mount versus per-superblock options). - +.IP The file contains lines of the form: .IP .in 0n @@ -1258,7 +1258,7 @@ process's mount namespace (see .BR mount_namespaces (7)). The format of this file is documented in .BR fstab (5). - +.IP Since kernel version 2.6.15, this file is pollable: after opening the file for reading, a change in this file (i.e., a filesystem mount or unmount) causes @@ -1391,7 +1391,7 @@ setting for the process. .\" Text taken from 3.7 Documentation/filesystems/proc.txt This file can be used to adjust the badness heuristic used to select which process gets killed in out-of-memory conditions. - +.IP The badness heuristic assigns a value to each candidate task ranging from 0 (never kill) to 1000 (always kill) to determine which process is targeted. The units are roughly a proportion along that range of @@ -1400,10 +1400,10 @@ based on an estimation of its current memory and swap use. For example, if a task is using all allowed memory, its badness score will be 1000. If it is using half of its allowed memory, its score will be 500. - +.IP There is an additional factor included in the badness score: root processes are given 3% extra memory over other tasks. - +.IP The amount of "allowed" memory depends on the context in which the OOM-killer was called. If it is due to the memory assigned to the allocating task's cpuset @@ -1417,7 +1417,7 @@ If it is due to a memory limit (or swap limit) being reached, the allowed memory is that configured limit. Finally, if it is due to the entire system being out of memory, the allowed memory represents all allocatable resources. - +.IP The value of .I oom_score_adj is added to the badness score before it @@ -1430,7 +1430,7 @@ task or completely disabling it from OOM killing. The lowest possible value, \-1000, is equivalent to disabling OOM-killing entirely for that task, since it will always report a badness score of 0. - +.IP Consequently, it is very simple for user space to define the amount of memory to consider for each task. Setting an @@ -1442,14 +1442,14 @@ to use at least 50% more memory. A value of \-500, on the other hand, would be roughly equivalent to discounting 50% of the task's allowed memory from being considered as scoring against the task. - +.IP For backward compatibility with previous kernels, .I /proc/[pid]/oom_adj can still be used to tune the badness score. Its value is scaled linearly with .IR oom_score_adj . - +.IP Writing to .IR /proc/[pid]/oom_score_adj or @@ -1506,7 +1506,7 @@ The file is present only if the .B CONFIG_PROC_PAGE_MONITOR kernel configuration option is enabled. - +.IP Permission to access this file is governed by a ptrace access mode .B PTRACE_MODE_READ_FSCREDS check; see @@ -1517,7 +1517,7 @@ check; see This read-only file exposes the process's execution domain, as set by .BR personality (2). The value is displayed in hexadecimal notation. - +.IP Permission to access this file is governed by a ptrace access mode .B PTRACE_MODE_ATTACH_FSCREDS check; see @@ -1533,14 +1533,14 @@ root directory, and behaves in the same way as .IR exe , and .IR fd/* . - +.IP Note however that this file is not merely a symbolic link. It provides the same view of the filesystem (including namespaces and the set of per-process mounts) as the process itself. An example illustrates this point. In one terminal, we start a shell in new user and mount namespaces, and in that shell we create some new mount points: - +.IP .nf .in +4n $ \fBPS1='sh1# ' unshare \-Urnm\fP @@ -1550,11 +1550,11 @@ sh1# \fBecho $$\fP 27123 .in .fi - +.IP In a second terminal window, in the initial mount namespace, we look at the contents of the corresponding mounts in the initial and new namespaces: - +.IP .nf .in +4n $ \fBPS1='sh2# ' sudo sh\fP @@ -1571,14 +1571,14 @@ sh2# \fBls /usr | wc \-l\fP # /usr in initial NS 11 .in .fi - +.IP .\" The following was still true as at kernel 2.6.13 In a multithreaded process, the contents of the .I /proc/[pid]/root symbolic link are not available if the main thread has already terminated (typically by calling .BR pthread_exit (3)). - +.IP Permission to dereference or read .RB ( readlink (2)) this symbolic link is governed by a ptrace access mode @@ -1599,7 +1599,7 @@ Writing 1 to this file places the process irreversibly in strict seccomp mode. (Further attempts to write to the file fail with the .B EPERM error.) - +.IP In Linux 2.6.23, this file went away, to be replaced by the .BR prctl (2) @@ -1683,7 +1683,7 @@ referenced or accessed. that does not belong to any file. "Swap" shows how much would-be-anonymous memory is also used, but out on swap. - +.IP The "KernelPageSize" line (available since Linux 2.6.29) is the page size used by the kernel to back the virtual memory area. This matches the size used by the MMU in the majority of cases. @@ -1693,10 +1693,10 @@ pages for the MMU on older processors. To distinguish the two attributes, the "MMUPageSize" line (also available since Linux 2.6.29) reports the page size used by the MMU. - +.IP The "Locked" indicates whether the mapping is locked in memory or not. - +.IP The "ProtectionKey" line (available since Linux 4.9, on x86 only) contains the memory protection key (see .BR pkeys (7)) @@ -1704,11 +1704,11 @@ associated with the virtual memory area. This entry is present only if the kernel was built with the .B CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS configuration option. - +.IP The "VmFlags" line (available since Linux 3.8) represents the kernel flags associated with the virtual memory area, encoded using the following two-letter codes: - +.IP rd - readable wr - writable ex - executable @@ -1737,14 +1737,14 @@ encoded using the following two-letter codes: hg - huge page advise flag nh - no-huge page advise flag mg - mergeable advise flag - +.IP "ProtectionKey" field contains the memory protection key (see .BR pkeys (5)) associated with the virtual memory area. Present only if the kernel was built with the .B CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS configuration option. (since Linux 4.6) - +.IP The .IR /proc/[pid]/smaps file is present only if the @@ -1758,7 +1758,7 @@ process's kernel stack. This file is provided only if the kernel was built with the .B CONFIG_STACKTRACE configuration option. - +.IP Permission to access this file is governed by a ptrace access mode .B PTRACE_MODE_ATTACH_FSCREDS check; see @@ -1770,7 +1770,7 @@ This is used by .BR ps (1). It is defined in the kernel source file .IR fs/proc/array.c "." - +.IP The fields, in order, with their proper .BR scanf (3) format specifiers, are listed below. @@ -1781,7 +1781,7 @@ check (refer to .BR ptrace (2)). If the check denies access, then the field value is displayed as 0. The affected fields are indicated with the marking [PT]. - +.IP .RS .TP 10 (1) \fIpid\fP \ %d @@ -1861,7 +1861,7 @@ For bit meanings, see the PF_* defines in the Linux kernel source file .IR include/linux/sched.h . Details depend on the kernel version. - +.IP The format for this field was %lu before Linux 2.6. .TP (10) \fIminflt\fP \ %lu @@ -1926,7 +1926,7 @@ as represented in the kernel. The kernel stores nice values as numbers in the range 0 (high) to 39 (low), corresponding to the user-visible nice range of \-20 to 19. - +.IP Before Linux 2.6, this was a scaled value based on the scheduler weighting given to this process. .\" And back in kernel 1.2 days things were different again. @@ -1963,7 +1963,7 @@ The time the process started after system boot. In kernels before Linux 2.6, this value was expressed in jiffies. Since Linux 2.6, the value is expressed in clock ticks (divide by .IR sysconf(_SC_CLK_TCK) ). - +.IP The format for this field was %lu before Linux 2.6. .TP (23) \fIvsize\fP \ %lu @@ -2054,7 +2054,7 @@ Scheduling policy (see .BR sched_setscheduler (2)). Decode using the SCHED_* constants in .IR linux/sched.h . - +.IP The format for this field was %lu before Linux 2.6.22. .TP (42) \fIdelayacct_blkio_ticks\fP \ %llu \ (since Linux 2.6.18) @@ -2443,15 +2443,15 @@ system call currently being executed by the process, followed by the values of the stack pointer and program counter registers. The values of all six argument registers are exposed, although most system calls use fewer registers. - +.IP If the process is blocked, but not in a system call, then the file displays \-1 in place of the system call number, followed by just the values of the stack pointer and program counter. If process is not blocked, then the file contains just the string "running". - +.IP This file is present only if the kernel was configured with .BR CONFIG_HAVE_ARCH_TRACEHOOK . - +.IP Permission to access this file is governed by a ptrace access mode .B PTRACE_MODE_ATTACH_FSCREDS check; see @@ -2497,13 +2497,13 @@ In a multithreaded process, the contents of the directory are not available if the main thread has already terminated (typically by calling .BR pthread_exit (3)). - +.IP .TP .IR /proc/[pid]/task/[tid]/children " (since Linux 3.5)" .\" commit 818411616baf46ceba0cff6f05af3a9b294734f7 A space-separated list of child tasks of this task. Each child task is represented by its TID. - +.IP .\" see comments in get_children_pid() in fs/proc/array.c This option is intended for use by the checkpoint-restore (CRIU) system, and reliably provides a list of children only if all of the child processes @@ -2514,7 +2514,7 @@ Exiting children may cause non-exiting children to be omitted from the list. This makes this interface even more unreliable than classic PID-based approaches if the inspected task and its children aren't frozen, and most code should probably not use this interface. - +.IP Until Linux 4.2, the presence of this file was governed by the .B CONFIG_CHECKPOINT_RESTORE kernel configuration option. @@ -2530,7 +2530,7 @@ option. A list of the POSIX timers for this process. Each timer is listed with a line that starts with the string "ID:". For example: - +.IP .in +4n .nf ID: 1 @@ -2543,7 +2543,7 @@ notify: signal/pid.2634 ClockID: 1 .fi .in - +.IP The lines shown for each timer have the following meanings: .RS .TP @@ -2607,7 +2607,7 @@ For further details, see the discussion of .BR PR_SET_TIMERSLACK in .BR prctl (2). - +.IP Permission to access this file is governed by a ptrace access mode .B PTRACE_MODE_ATTACH_FSCREDS check; see @@ -2620,7 +2620,7 @@ See .IR /proc/[pid]/wchan " (since Linux 2.6.0)" The symbolic name corresponding to the location in the kernel where the process is sleeping. - +.IP Permission to access this file is governed by a ptrace access mode .B PTRACE_MODE_READ_FSCREDS check; see @@ -2640,18 +2640,18 @@ This is then followed by the count of available chunks of a certain order in which these zones are split. The size in bytes of a certain order is given by the formula: - +.IP (2^order)\ *\ PAGE_SIZE - +.IP The binary buddy allocator algorithm inside the kernel will split one chunk into two chunks of a smaller order (thus with half the size) or combine two contiguous chunks into one larger chunk of a higher order (thus with double the size) to satisfy allocation requests and to counter memory fragmentation. The order matches the column number, when starting to count at zero. - +.IP For example on a x86_64 system: - +.IP .in -12n .nf Node 0, zone DMA 1 1 1 0 2 1 1 0 1 1 3 @@ -2659,18 +2659,18 @@ Node 0, zone DMA32 65 47 4 81 52 28 13 10 5 1 404 Node 0, zone Normal 216 55 189 101 84 38 37 27 5 3 587 .fi .in - +.IP In this example, there is one node containing three zones and there are 11 different chunk sizes. If the page size is 4 kilobytes, then the first zone called .I DMA (on x86 the first 16 megabyte of memory) has 1 chunk of 4 kilobytes (order 0) available and has 3 chunks of 4 megabytes (order 10) available. - +.IP If the memory is heavily fragmented, the counters for higher order chunks will be zero and allocation of large contiguous areas will fail. - +.IP Further information about the zones can be found in .IR /proc/zoneinfo . .TP @@ -2792,7 +2792,7 @@ modules are currently loaded. If a filesystem is marked with "nodev", this means that it does not require a block device to be mounted (e.g., virtual filesystem, network filesystem). - +.IP Incidentally, this file may be used by .BR mount (8) when no filesystem is specified and it didn't manage to determine the @@ -2811,7 +2811,7 @@ This directory exists on systems with the IDE bus. There are directories for each IDE channel and attached device. Files include: - +.IP .in +4n .nf cache buffer size in KB @@ -2826,7 +2826,7 @@ smart_thresholds in hexadecimal smart_values in hexadecimal .fi .in - +.IP The .BR hdparm (8) utility provides access to this information in a friendly format. @@ -2864,7 +2864,7 @@ kernel .RI ( /usr/src/linux/vmlinux ) binary, GDB can be used to examine the current state of any kernel data structures. - +.IP The total length of the file is the size of physical memory (RAM) plus 4KB. .TP @@ -2887,7 +2887,7 @@ This file should not be read if a syslog process is running which uses the .BR syslog (2) system call facility to log kernel messages. - +.IP Information in this file is retrieved with the .BR dmesg (1) program. @@ -2909,7 +2909,7 @@ This file contains 64-bit masks corresponding to each physical page frame; it is indexed by page frame number (see the discussion of .IR /proc/[pid]/pagemap ). The bits are as follows: - +.IP 0 - KPF_LOCKED 1 - KPF_ERROR 2 - KPF_REFERENCED @@ -2933,7 +2933,7 @@ The bits are as follows: 20 - KPF_NOPAGE (since Linux 2.6.31) 21 - KPF_KSM (since Linux 2.6.32) 22 - KPF_THP (since Linux 3.4) - +.IP For further details on the meanings of these bits, see the kernel source file .IR Documentation/vm/pagemap.txt . @@ -3177,7 +3177,7 @@ A process which allocates 1GB of memory (using or similar), but touches only 300MB of that memory will show up as using only 300MB of memory even if it has the address space allocated for the entire 1GB. - +.IP This 1GB is memory which has been "committed" to by the VM and can be used at any time by the allocating application. With strict overcommit enabled on the system (mode 2 in @@ -3311,7 +3311,7 @@ therefore, readable with However, the standard .BR netstat (8) suite provides much cleaner access to these files. - +.IP With the advent of network namespaces, various information relating to the network stack is virtualized (see .BR namespaces (7)). @@ -3591,7 +3591,7 @@ of 1024-byte blocks and the partition name. .I /proc/pci This is a listing of all PCI devices found during kernel initialization and their configuration. - +.IP This file has been deprecated in favor of a new .I /proc interface for PCI @@ -3627,7 +3627,7 @@ which contain a file for each SCSI host in this system, all of which give the status of some part of the SCSI IO subsystem. These files contain ASCII structures and are, therefore, readable with .BR cat (1). - +.IP You can also write to some of the files to reconfigure the subsystem or switch certain features on or off. .TP @@ -3636,7 +3636,7 @@ This is a listing of all SCSI devices known to the kernel. The listing is similar to the one seen during bootup. scsi currently supports only the \fIadd-single-device\fP command which allows root to add a hotplugged device to the list of known devices. - +.IP The command .in +4n .nf @@ -3660,10 +3660,10 @@ SCSI HBA. Every directory contains one file per registered host. Every host-file is named after the number the host was assigned during initialization. - +.IP Reading these files will usually show driver and host configuration, statistics, and so on. - +.IP Writing to these files allows different things on different hosts. For example, with the \fIlatency\fP and \fInolatency\fP commands, root can switch on and off command latency measurement code in the @@ -3812,9 +3812,9 @@ These variables can be read and sometimes modified using the \fI/proc\fP filesystem, and the (deprecated) .BR sysctl (2) system call. - +.IP String values may be terminated by either \(aq\\0\(aq or \(aq\\n\(aq. - +.IP Integer and long values may be written either in decimal or in hexadecimal notation (e.g. 0x3FFF). When writing multiple integer or long values, these may be separated @@ -3961,7 +3961,7 @@ than the value in since \fIstdin\fP, \fIstdout\fP and network sockets also need an inode to handle them. When you regularly run out of inodes, you need to increase this value. - +.IP Starting with Linux 2.4, there is no longer a static limit on the number of inodes, and this file is removed. @@ -3977,7 +3977,7 @@ contains seven numbers: .IR nr_free_inodes , .IR preshrink , and four dummy values (always zero). - +.IP .I nr_inodes is the number of inodes the system has allocated. .\" This can be slightly more than @@ -3985,7 +3985,7 @@ is the number of inodes the system has allocated. .\" because Linux allocates them one page full at a time. .I nr_free_inodes represents the number of free inodes. - +.IP .I preshrink is nonzero when the .I nr_inodes @@ -4159,7 +4159,7 @@ produced for set-user-ID or otherwise protected/tainted binaries. The "dumpable" setting also affects the ownership of files in a process's .IR /proc/[pid] directory, as described above. - +.IP Three different integer values can be specified: .RS .TP @@ -4271,7 +4271,7 @@ Echoing "0" disabled automatic recomputing. The default value in .I auto_msgmni was 1. - +.IP Since Linux 3.19, the content of this file has no effect (because .IR msgmni .\" FIXME Must document the 3.19 'msgmni' changes. @@ -4341,23 +4341,23 @@ hostname of your box in exactly the same way as the commands and .BR hostname (1), that is: - +.IP .in +4n .nf .RB "#" " echo \(aqdarkstar\(aq > /proc/sys/kernel/hostname" .RB "#" " echo \(aqmydomain\(aq > /proc/sys/kernel/domainname" .fi .in - +.IP has the same effect as - +.IP .in +4n .nf .RB "#" " hostname \(aqdarkstar\(aq" .RB "#" " domainname \(aqmydomain\(aq" .fi .in - +.IP Note, however, that the classic darkstar.frop.org has the hostname "darkstar" and DNS (Internet Domain Name Server) domainname "frop.org", not to be confused with the NIS (Network @@ -4825,9 +4825,9 @@ For further details see the Linux kernel source file .TP .I /proc/sys/kernel/version This file contains a string such as: - +.IP #5 Wed Feb 25 21:49:24 MET 1998 - +.IP The "#5" means that this is the fifth kernel built from this source base and the date following it indicates the time the kernel was built. @@ -4836,7 +4836,7 @@ date following it indicates the time the kernel was built. .\" The following is based on Documentation/sysctl/kernel.txt This file specifies the system-wide limit on the number of threads (tasks) that can be created on the system. - +.IP Since Linux 4.1, .\" commit 230633d109e35b0a24277498e773edeb79b4a331 the value that can be written to @@ -4852,7 +4852,7 @@ If a value outside of this range is written to the error .B EINVAL occurs. - +.IP The value written is checked against the available RAM pages. If the thread structures would occupy too much (more than 1/8th) of the available RAM pages, @@ -4910,14 +4910,14 @@ cache management. This file defines the amount of free memory (in KiB) on the system that that should be reserved for users with the capability .BR CAP_SYS_ADMIN . - +.IP The default value in this file is the minimum of [3% of free pages, 8MiB] expressed as KiB. The default is intended to provide enough for the superuser to log in and kill a process, if necessary, under the default overcommit 'guess' mode (i.e., 0 in .IR /proc/sys/vm/overcommit_memory ). - +.IP Systems running in "overcommit never" mode (i.e., 2 in .IR /proc/sys/vm/overcommit_memory ) should increase the value in this file to account @@ -4928,7 +4928,7 @@ and .BR top (1)) Otherwise, the superuser may not be able to log in to recover the system. For example, on x86_64 a suitable value is 131072 (128MiB reserved). - +.IP Changing the value in this file takes effect whenever an application requests memory. .TP @@ -4948,19 +4948,19 @@ This can be useful for memory management testing and performing reproducible filesystem benchmarks. Because writing to this file causes the benefits of caching to be lost, it can degrade overall system performance. - +.IP To free pagecache, use: - +.IP echo 1 > /proc/sys/vm/drop_caches - +.IP To free dentries and inodes, use: - +.IP echo 2 > /proc/sys/vm/drop_caches - +.IP To free pagecache, dentries and inodes, use: - +.IP echo 3 > /proc/sys/vm/drop_caches - +.IP Because writing to this file is a nondestructive operation and dirty objects are not freeable, the user should run @@ -4983,7 +4983,7 @@ the kernel will handle the failure transparently without affecting any applications. But if there is no other up-to-date copy of the data, it will kill processes to prevent any data corruptions from propagating. - +.IP The file has one of the following values: .RS .IP 1: 4 @@ -5006,10 +5006,10 @@ set to Processes can handle this if they want to; see .BR sigaction (2) for more details. - +.IP This feature is active only on architectures/platforms with advanced machine check handling and depends on the hardware capabilities. - +.IP Applications can override the .I memory_failure_early_kill setting individually with the @@ -5047,37 +5047,37 @@ oom_adj score (see the description of and command name. This is helpful to determine why the OOM-killer was invoked and to identify the rogue task that caused it. - +.IP If this contains the value zero, this information is suppressed. On very large systems with thousands of tasks, it may not be feasible to dump the memory state information for each one. Such systems should not be forced to incur a performance penalty in OOM situations when the information may not be desired. - +.IP If this is set to nonzero, this information is shown whenever the OOM-killer actually kills a memory-hogging task. - +.IP The default value is 0. .TP .IR /proc/sys/vm/oom_kill_allocating_task " (since Linux 2.6.24)" .\" The following is from Documentation/sysctl/vm.txt This enables or disables killing the OOM-triggering task in out-of-memory situations. - +.IP If this is set to zero, the OOM-killer will scan through the entire tasklist and select a task based on heuristics to kill. This normally selects a rogue memory-hogging task that frees up a large amount of memory when killed. - +.IP If this is set to nonzero, the OOM-killer simply kills the task that triggered the out-of-memory condition. This avoids a possibly expensive tasklist scan. - +.IP If .I /proc/sys/vm/panic_on_oom is nonzero, it takes precedence over whatever value is used in .IR /proc/sys/vm/oom_kill_allocating_task . - +.IP The default value is 0. .TP .IR /proc/sys/vm/overcommit_kbytes " (since Linux 3.14)" @@ -5096,7 +5096,7 @@ rather than as a percentage, as is done with This allows for finer-grained control of .IR CommitLimit on systems with extremely large memory sizes. - +.IP Only one of .IR overcommit_kbytes or @@ -5130,23 +5130,23 @@ with .B MAP_NORESERVE are not checked, and the default check is very weak, leading to the risk of getting a process "OOM-killed". - +.IP In mode 1, the kernel pretends there is always enough memory, until memory actually runs out. One use case for this mode is scientific computing applications that employ large sparse arrays. In Linux kernel versions before 2.6.0, any nonzero value implies mode 1. - +.IP In mode 2 (available since Linux 2.6), the total virtual address space that can be allocated .RI ( CommitLimit in .IR /proc/meminfo ) is calculated as - +.IP CommitLimit = (total_RAM - total_huge_TLB) * overcommit_ratio / 100 + total_swap - +.IP where: .RS 12 .IP * 3 @@ -5171,15 +5171,15 @@ of swap, no space dedicated to huge pages, and an of 50, this formula yields a .I CommitLimit of 24GB. - +.IP Since Linux 3.14, if the value in .I /proc/sys/vm/overcommit_kbytes is nonzero, then .I CommitLimit is instead calculated as: - +.IP CommitLimit = overcommit_kbytes + total_swap - +.IP See also the description of .IR /proc/sys/vm/admiin_reserve_kbytes and @@ -5196,12 +5196,12 @@ See the description of .\" The following is adapted from Documentation/sysctl/vm.txt This enables or disables a kernel panic in an out-of-memory situation. - +.IP If this file is set to the value 0, the kernel's OOM-killer will kill some rogue process. Usually, the OOM-killer is able to kill a rogue process and the system will survive. - +.IP If this file is set to the value 1, then the kernel normally panics when out-of-memory happens. However, if a process limits allocations to certain nodes @@ -5216,10 +5216,10 @@ No panic occurs in this case: because other nodes' memory may be free, this means the system as a whole may not have reached an out-of-memory situation yet. - +.IP If this file is set to the value 2, the kernel always panics when an out-of-memory condition occurs. - +.IP The default value is 0. 1 and 2 are for failover of clustering. Select either according to your policy of failover. @@ -5243,17 +5243,17 @@ is set to 2 ("overcommit never" mode). In this case, the system reserves an amount of memory that is the minimum of [3% of current process size, .IR user_reserve_kbytes ]. - +.IP The default value in this file is the minimum of [3% of free pages, 128MiB] expressed as KiB. - +.IP If the value in this file is set to zero, then a user will be allowed to allocate all free memory with a single process (minus the amount reserved by .IR /proc/sys/vm/admin_reserve_kbytes ). Any subsequent attempts to execute a command will result in "fork: Cannot allocate memory". - +.IP Changing the value in this file takes effect whenever an application requests memory. .TP @@ -5306,7 +5306,7 @@ It can be used by kernel and user-space developers to verify that their code does not make undue use of timers. The goal is to avoid unnecessary wakeups, thereby optimizing power consumption. - +.IP If enabled in the kernel .RB ( CONFIG_TIMER_STATS ), but not used, @@ -5314,12 +5314,12 @@ it has almost zero runtime overhead and a relatively small data-structure overhead. Even if collection is enabled at runtime, overhead is low: all the locking is per-CPU and lookup is hashed. - +.IP The .I /proc/timer_stats file is used both to control sampling facility and to read out the sampled information. - +.IP The .I timer_stats functionality is inactive on bootup. @@ -5354,7 +5354,7 @@ newly updated statistics. Once sampling is disabled, the sampled information is kept until a new sample period is started. This allows multiple readouts. - +.IP Sample output from .IR /proc/timer_stats : .IP @@ -6123,7 +6123,7 @@ so you may find that things are more readable if you use \fIod \-c\fP or \fItr "\\000" "\\n"\fP to read them. Alternatively, \fIecho \`cat <file>\`\fP works well. - +.PP This manual page is incomplete, possibly inaccurate, and is the kind of thing that needs to be updated very often. .\" .SH ACKNOWLEDGEMENTS @@ -6156,7 +6156,7 @@ of thing that needs to be updated very often. .BR procinfo (8), .BR route (8), .BR sysctl (8) - +.PP The Linux kernel source files: .IR Documentation/filesystems/proc.txt .IR Documentation/sysctl/fs.txt , diff --git a/man5/protocols.5 b/man5/protocols.5 index 4ed17fe7c2..48630ccc17 100644 --- a/man5/protocols.5 +++ b/man5/protocols.5 @@ -37,24 +37,24 @@ consulted instead of using the numbers in the ARPA include files, or, even worse, just guessing them. These numbers will occur in the protocol field of any IP header. - +.PP Keep this file untouched since changes would result in incorrect IP packages. Protocol numbers and names are specified by the IANA (Internet Assigned Numbers Authority). .\" .. by the DDN Network Information Center. - +.PP Each line is of the following format: - +.PP .RS .I protocol number aliases ... .RE - +.PP where the fields are delimited by spaces or tabs. Empty lines are ignored. If a line contains a hash mark (#), the hash mark and the part of the line following it are ignored. - +.PP The field descriptions are: .TP .I protocol @@ -80,6 +80,6 @@ naming service like Yellow Pages/NIS or BIND/Hesiod. The protocols definition file. .SH SEE ALSO .BR getprotoent (3) - +.PP .UR http://www.iana.org\:/assignments\:/protocol\-numbers .UE diff --git a/man5/repertoiremap.5 b/man5/repertoiremap.5 index 1ac1d3c604..6329bc720d 100644 --- a/man5/repertoiremap.5 +++ b/man5/repertoiremap.5 @@ -47,7 +47,7 @@ It defaults to the backslash (\\). The mapping section starts with the keyword .I CHARIDS in the first column. - +.PP The mapping lines have the following form: .TP .I <symbolic-name> <code-point> comment diff --git a/man5/services.5 b/man5/services.5 index 08289468da..d3f20cc4a4 100644 --- a/man5/services.5 +++ b/man5/services.5 @@ -49,13 +49,13 @@ The C library routines and .BR endservent (3) support querying this file from programs. - +.PP Port numbers are assigned by the IANA (Internet Assigned Numbers Authority), and their current policy is to assign both TCP and UDP protocols when assigning a port number. Therefore, most entries will have two entries, even for TCP-only services. - +.PP Port numbers below 1024 (so-called "low numbered" ports) can be bound to only by root (see .BR bind (2), @@ -67,7 +67,7 @@ that the service running on the port is the standard implementation, and not a rogue service run by a user of the machine. Well-known port numbers specified by the IANA are normally located in this root-only space. - +.PP The presence of an entry for a service in the .B services file does not necessarily mean that the service is currently running @@ -82,7 +82,7 @@ and so won't appear in .BR inetd.conf (5). In particular, news (NNTP) and mail (SMTP) servers are often initialized from the system boot scripts. - +.PP The location of the .B services file is defined by @@ -91,7 +91,7 @@ in .IR <netdb.h> "." This is usually set to .IR /etc/services "." - +.PP Each line describes one service, and is of the form: .IP \f2service-name\ \ \ port\f3/\f2protocol\ \ \ \f1[\f2aliases ...\f1] @@ -125,11 +125,11 @@ Again, the names are case sensitive. .PP Either spaces or tabs may be used to separate the fields. - +.PP Comments are started by the hash sign (#) and continue until the end of the line. Blank lines are skipped. - +.PP The .I service-name should begin in the first column of the file, since leading spaces are @@ -140,7 +140,7 @@ However, a conservative choice of characters should be used to minimize compatibility problems. For example, a\-z, 0\-9, and hyphen (\-) would seem a sensible choice. - +.PP Lines not matching this format should not be present in the file. (Currently, they are silently skipped by @@ -149,7 +149,7 @@ file. and .BR getservbyport (3). However, this behavior should not be relied on.) - +.PP .\" The following is not true as at glibc 2.8 (a line with a comma is .\" ignored by getservent()); it's not clear if/when it was ever true. .\" As a backward compatibility feature, the slash (/) between the @@ -162,7 +162,7 @@ However, this behavior should not be relied on.) .\" This file might be distributed over a network using a network-wide naming service like Yellow Pages/NIS or BIND/Hesiod. - +.PP A sample .B services file might look like this: @@ -215,5 +215,5 @@ Definition of .BR inetd.conf (5), .BR protocols (5), .BR inetd (8) - +.PP Assigned Numbers RFC, most recently RFC\ 1700, (AKA STD0002). diff --git a/man5/tmpfs.5 b/man5/tmpfs.5 index 43ccb4410a..5bdc8939c7 100644 --- a/man5/tmpfs.5 +++ b/man5/tmpfs.5 @@ -32,7 +32,7 @@ facility allows the creation of filesystems whose contents reside in virtual memory. Since the files on such filesystems typically reside in RAM, file access is extremely fast. - +.PP The filesystem is automatically created when mounting a filesystem with the type .BR tmpfs @@ -78,13 +78,13 @@ For a description of the mount options that may be employed when mounting a .B tmpfs filesystem, see .BR mount (8). - +.PP In order for user-space tools and applications to create .B tmpfs filesystems, the kernel must be configured with the .B CONFIG_TMPFS option. - +.PP The .BR tmpfs filesystem supports extended attributes (see @@ -92,7 +92,7 @@ filesystem supports extended attributes (see but .I user extended attributes are not permitted. - +.PP An internal shared memory filesystem is used for System V shared memory .RB ( shmget (2)) @@ -107,7 +107,7 @@ This filesystem is available regardless of whether the kernel was configured with the .B CONFIG_TMPFS option. - +.PP A .B tmpfs filesystem mounted at @@ -116,7 +116,7 @@ as used for the implementation of POSIX shared memory .RB ( shm_overview (7)) and POSIX semaphores .RB ( sem_overview (7)). - +.PP The amount of memory consumed by all .B tmpfs filesystems is shown in the @@ -127,7 +127,7 @@ and in the .I shared field displayed by .BR free (1). - +.PP The .B tmpfs facility was formerly called diff --git a/man5/ttytype.5 b/man5/ttytype.5 index 63ed3fb28d..8506c87018 100644 --- a/man5/ttytype.5 +++ b/man5/ttytype.5 @@ -39,14 +39,14 @@ with tty lines. Each line consists of a terminal type, followed by whitespace, followed by a tty name (a device name without the .IR /dev/ ") prefix." - +.PP This association is used by the program .BR tset (1) to set the environment variable .B TERM to the default terminal name for the user's current tty. - +.PP This facility was designed for a traditional time-sharing environment featuring character-cell terminals hardwired to a UNIX minicomputer. It is little used on modern workstation and personal UNIX systems. diff --git a/man8/intro.8 b/man8/intro.8 index dab9af4e26..d83e78d436 100644 --- a/man8/intro.8 +++ b/man8/intro.8 @@ -34,7 +34,7 @@ Section 8 of the manual describes commands which either can be or are used only by the superuser, like system-administration commands, daemons, and hardware-related commands. - +.PP As with the commands described in Section 1, the commands described in this section terminate with an exit status that indicates whether the command succeeded or failed. diff --git a/man8/nscd.8 b/man8/nscd.8 index f52defe49d..a0b3733e40 100644 --- a/man8/nscd.8 +++ b/man8/nscd.8 @@ -32,7 +32,7 @@ The default configuration file, determines the behavior of the cache daemon. See .BR nscd.conf (5). - +.PP .B nscd provides caching for accesses of the .BR passwd (5), @@ -48,7 +48,7 @@ databases through standard libc interfaces, such as .BR getgrgid (3), .BR gethostbyname (3), and others. - +.PP There are two caches for each database: a positive one for items found, and a negative one for items not found. |
