From c1a022dc6abd6300b94c4db1f619a299588f49cb Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 15 Aug 2017 16:34:53 +0200 Subject: [PATCH] proc.5, rpc.5, services.5, cgroups.7: ffix Signed-off-by: Michael Kerrisk --- man5/proc.5 | 96 ++++++++++++++++++++++--------------------------- man5/rpc.5 | 8 ++--- man5/services.5 | 12 +++---- man7/cgroups.7 | 12 +++---- 4 files changed, 57 insertions(+), 71 deletions(-) diff --git a/man5/proc.5 b/man5/proc.5 index 92b8393b6..eb468cd8c 100644 --- a/man5/proc.5 +++ b/man5/proc.5 @@ -1056,11 +1056,9 @@ check; see .BR ptrace (2). The format of the file is: - -.in -7n -.nf -.ft CW -.ft +.IP +.in 4n +.EX .I "address perms offset dev inode pathname" 00400000-00452000 r-xp 00000000 08:02 173521 /usr/bin/dbus-daemon 00651000-00652000 r--p 00051000 08:02 173521 /usr/bin/dbus-daemon @@ -1081,9 +1079,9 @@ f2c6ff8c000-7f2c7078c000 rw-p 00000000 00:00 0 [stack:986] \&... 7fffb2c0d000-7fffb2c2e000 rw-p 00000000 00:00 0 [stack] 7fffb2d48000-7fffb2d49000 r-xp 00000000 00:00 0 [vdso] -.fi +.EE .in - +.IP The .I address field is the address space in the process that the mapping occupies. @@ -1187,13 +1185,13 @@ file, and fixes various other problems with that file failure to distinguish per-mount versus per-superblock options). The file contains lines of the form: -.nf -.ft CW - +.IP +.in 0n +.EX 36 35 98:0 /mnt1 /mnt2 rw,noatime master:1 \- ext3 /dev/root rw,errors=continue (1)(2)(3) (4) (5) (6) (7) (8) (9) (10) (11) -.ft -.fi +.in +.EE .IP The numbers in parentheses are labels for the descriptions below: .RS 7 @@ -3331,17 +3329,15 @@ This holds an ASCII readable dump of the kernel ARP table used for address resolutions. It will show both dynamically learned and preprogrammed ARP entries. The format is: - -.nf -.ft CW -.in 8n +.IP +.in 7n +.EX IP address HW type Flags HW address Mask Device 192.168.0.50 0x1 0x2 00:50:BF:25:68:F3 * eth0 192.168.0.250 0x1 0xc 00:00:00:00:00:00 * eth0 -.ft -.fi +.EE .in - +.IP Here "IP address" is the IPv4 address of the machine and the "HW type" is the hardware type of the address from RFC\ 826. The flags are the internal @@ -3361,19 +3357,17 @@ These are used by the .BR ifconfig (8) program to report device status. The format is: - -.nf -.ft CW +.IP .in 1n +.EX Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed lo: 2776770 11307 0 0 0 0 0 0 2776770 11307 0 0 0 0 0 0 eth0: 1215645 2751 0 0 0 0 0 0 1782404 4324 0 0 0 427 0 0 ppp0: 1622270 5552 1 0 0 0 0 0 354130 5669 0 0 0 0 0 0 tap0: 7714 81 0 0 0 0 0 0 7714 81 0 0 0 0 0 0 +.EE .in -.ft -.fi .\" .TP .\" .I /proc/net/ipx .\" No information. @@ -3465,32 +3459,30 @@ are not used by UDP. The "uid" field holds the effective UID of the creator of the socket. The format is: - -.nf -.ft CW +.IP .in 1n +.EX sl local_address rem_address st tx_queue rx_queue tr rexmits tm\->when uid 1: 01642C89:0201 0C642C89:03FF 01 00000000:00000001 01:000071BA 00000000 0 1: 00000000:0801 00000000:0000 0A 00000000:00000000 00:00000000 6F000100 0 1: 00000000:0201 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 +.EE .in -.ft -.fi +.IP .TP .I /proc/net/unix Lists the UNIX domain sockets present within the system and their status. The format is: -.nf -.sp .5 -.ft CW +.IP +.in 1n +.EX Num RefCount Protocol Flags Type St Path 0: 00000002 00000000 00000000 0001 03 1: 00000001 00000000 00010000 0001 01 /dev/printer -.ft -.sp .5 -.fi - +.EE +.in +.IP The fields are as follows: .RS .TP 10 @@ -3927,11 +3919,11 @@ of error messages in the kernel log about running out of file handles (look for "VFS: file-max limit reached"), try increasing this value: .IP -.nf -.ft CW - echo 100000 > /proc/sys/fs/file-max -.fi -.ft +.in +4n +.EX +echo 100000 > /proc/sys/fs/file-max +.EE +.in .IP Privileged processes .RB ( CAP_SYS_ADMIN ) @@ -5327,7 +5319,6 @@ sampled information. The timer_stats functionality is inactive on bootup. A sampling period can be started using the following command: - .IP .in +4n .EX @@ -5361,9 +5352,9 @@ This allows multiple readouts. Sample output from .IR /proc/timer_stats : - -.nf -.RS -4 +.IP +.in 4n +.EX .RB $ " cat /proc/timer_stats" Timer Stats Version: v0.3 Sample period: 1.764 s @@ -5377,8 +5368,8 @@ Collection: active 1, 4911 kworker/u16:0 mod_delayed_work_on (delayed_work_timer_fn) 1D, 2522 kworker/0:0 queue_delayed_work_on (delayed_work_timer_fn) 1029 total events, 583.333 events/sec -.fi -.RE +.EE +.in .IP The output columns are: .RS @@ -5414,13 +5405,12 @@ It includes the contents of and .IR /proc/sys/kernel/version . For example: -.nf -.in -2 -.ft CW +.IP +.in 8n +.EX Linux version 1.0.9 (quinlan@phaze) #1 Sat May 14 01:51:54 EDT 1994 -.ft -.in +2 -.fi +.EE +.in .\" FIXME 2.6.13 seems to have /proc/vmcore implemented; document this .\" See Documentation/kdump/kdump.txt .\" commit 666bfddbe8b8fd4fd44617d6c55193d5ac7edb29 diff --git a/man5/rpc.5 b/man5/rpc.5 index 29562735c..5196ad9ff 100644 --- a/man5/rpc.5 +++ b/man5/rpc.5 @@ -35,10 +35,9 @@ which search the file. Here is an example of the .I /etc/rpc file from the Sun RPC Source distribution. - -.ft CW +.PP .in +4n -.nf +.EX # # rpc 88/08/01 4.0 RPCSRC; from 1.12 88/02/07 SMI # @@ -72,9 +71,8 @@ keyserv 100029 keyserver tfsd 100037 nsed 100038 nsemntd 100039 -.fi +.EE .in -.ft .SH FILES .TP .I /etc/rpc diff --git a/man5/services.5 b/man5/services.5 index 0929725bf..08289468d 100644 --- a/man5/services.5 +++ b/man5/services.5 @@ -166,10 +166,9 @@ naming service like Yellow Pages/NIS or BIND/Hesiod. A sample .B services file might look like this: -.RS -.ft CW -.nf -.sp +.PP +.in +4n +.EX netstat 15/tcp qotd 17/tcp quote msp 18/tcp # message send protocol @@ -179,9 +178,8 @@ chargen 19/udp ttytst source ftp 21/tcp # 22 \- unassigned telnet 23/tcp -.fi -.ft -.RE +.EE +.in .SH FILES .TP .I /etc/services diff --git a/man7/cgroups.7 b/man7/cgroups.7 index 8e7a17a52..c2dbcec6b 100644 --- a/man7/cgroups.7 +++ b/man7/cgroups.7 @@ -674,12 +674,12 @@ colon-separated fields of the form: hierarchy-ID:controller-list:cgroup-path For example: -.nf -.ft CW - - 5:cpuacct,cpu,cpuset:/daemons -.ft -.fi +.IP +.in +4n +.EX +5:cpuacct,cpu,cpuset:/daemons +.EE +.in .IP The colon-separated fields are, from left to right: .RS