memusage.1, time.1, ioctl_console.2, mmap.2, msync.2, perf_event_open.2, syslog.2, strptime.3, hd.4, sd.4: Use en-dash for ranges

Based on a patch by Bjarni Ingi Gislason.

Reported-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-08-19 21:42:31 +02:00
parent ba4924aab6
commit d2fdb1e30a
10 changed files with 45 additions and 45 deletions

View File

@ -211,7 +211,7 @@ a graph of the memory usage of the program can be found in the file
.PP .PP
.in +4n .in +4n
.EX .EX
$ \fBmemusage --data=memusage.dat ./a.out\fP $ \fBmemusage \-\-data=memusage.dat ./a.out\fP
\&... \&...
Memory usage summary: heap total: 45200, heap peak: 6440, stack peak: 224 Memory usage summary: heap total: 45200, heap peak: 6440, stack peak: 224
total calls total memory failed calls total calls total memory failed calls
@ -220,17 +220,17 @@ realloc| 40 44800 0 (nomove:40, dec:19, free:0)
calloc| 0 0 0 calloc| 0 0 0
free| 1 440 free| 1 440
Histogram for block sizes: Histogram for block sizes:
192-207 1 2% ================ 192\-207 1 2% ================
\&... \&...
2192-2207 1 2% ================ 2192\-2207 1 2% ================
2240-2255 2 4% ================================= 2240\-2255 2 4% =================================
2832-2847 2 4% ================================= 2832\-2847 2 4% =================================
3440-3455 2 4% ================================= 3440\-3455 2 4% =================================
4032-4047 2 4% ================================= 4032\-4047 2 4% =================================
4640-4655 2 4% ================================= 4640\-4655 2 4% =================================
5232-5247 2 4% ================================= 5232\-5247 2 4% =================================
5840-5855 2 4% ================================= 5840\-5855 2 4% =================================
6432-6447 1 2% ================ 6432\-6447 1 2% ================
$ \fBmemusagestat memusage.dat memusage.png\fP $ \fBmemusagestat memusage.dat memusage.png\fP
.EE .EE
.in .in

View File

@ -73,7 +73,7 @@ was invoked, the exit status is that of
Otherwise, it is 127 if Otherwise, it is 127 if
.I command .I command
could not be found, 126 if it could be found but could not be invoked, could not be found, 126 if it could be found but could not be invoked,
and some other nonzero value (1-125) if something else went wrong. and some other nonzero value (1\(en125) if something else went wrong.
.SH ENVIRONMENT .SH ENVIRONMENT
The variables The variables
.BR LANG , .BR LANG ,

View File

@ -114,12 +114,12 @@ Equivalent to
.B KDENABIO .B KDENABIO
Enable I/O to video board. Enable I/O to video board.
Equivalent to Equivalent to
.IR "ioperm(0x3b4, 0x3df-0x3b4+1, 1)" . .IR "ioperm(0x3b4, 0x3df\-0x3b4+1, 1)" .
.TP .TP
.B KDDISABIO .B KDDISABIO
Disable I/O to video board. Disable I/O to video board.
Equivalent to Equivalent to
.IR "ioperm(0x3b4, 0x3df-0x3b4+1, 0)" . .IR "ioperm(0x3b4, 0x3df\-0x3b4+1, 0)" .
.TP .TP
.B KDSETMODE .B KDSETMODE
Set text/graphics mode. Set text/graphics mode.
@ -250,7 +250,7 @@ struct consolefontdesc {
unsigned short charcount; /* characters in font unsigned short charcount; /* characters in font
(256 or 512) */ (256 or 512) */
unsigned short charheight; /* scan lines per unsigned short charheight; /* scan lines per
character (1-32) */ character (1\-32) */
char *chardata; /* font data in char *chardata; /* font data in
expanded form */ expanded form */
}; };

View File

@ -845,7 +845,7 @@ The descriptions of the following files in
and and
.IR /proc/[pid]/smaps . .IR /proc/[pid]/smaps .
.PP .PP
B.O. Gallmeister, POSIX.4, O'Reilly, pp. 128-129 and 389-391. B.O. Gallmeister, POSIX.4, O'Reilly, pp. 128\(en129 and 389\(en391.
.\" .\"
.\" Repeat after me: private read-only mappings are 100% equivalent to .\" Repeat after me: private read-only mappings are 100% equivalent to
.\" shared read-only mappings. No ifs, buts, or maybes. -- Linus .\" shared read-only mappings. No ifs, buts, or maybes. -- Linus

View File

@ -150,4 +150,4 @@ in
.SH SEE ALSO .SH SEE ALSO
.BR mmap (2) .BR mmap (2)
.PP .PP
B.O. Gallmeister, POSIX.4, O'Reilly, pp. 128-129 and 389-391. B.O. Gallmeister, POSIX.4, O'Reilly, pp. 128\(en129 and 389\(en391.

View File

@ -2978,8 +2978,8 @@ commas.
For example, the file For example, the file
.I event .I event
may contain the value may contain the value
.I config1:1,6-10,44 .I config1:1,6\-10,44
which indicates that event is an attribute that occupies bits 1,6-10, and 44 which indicates that event is an attribute that occupies bits 1,6\(en10, and 44
of of
.IR perf_event_attr::config1 . .IR perf_event_attr::config1 .
.TP .TP

View File

@ -261,7 +261,7 @@ and to 15 in case
of a kernel fault (the 10 and 15 are just silly, and equivalent to 8). of a kernel fault (the 10 and 15 are just silly, and equivalent to 8).
The value of The value of
.IR console_loglevel .IR console_loglevel
can be set (to a value in the range 1-8) by a can be set (to a value in the range 1\(en8) by a
.BR syslog () .BR syslog ()
call with a call with a
.I type .I type

View File

@ -61,14 +61,14 @@ as follows:
.in +4n .in +4n
.EX .EX
struct tm { struct tm {
int tm_sec; /* Seconds (0-60) */ int tm_sec; /* Seconds (0\-60) */
int tm_min; /* Minutes (0-59) */ int tm_min; /* Minutes (0\-59) */
int tm_hour; /* Hours (0-23) */ int tm_hour; /* Hours (0\-23) */
int tm_mday; /* Day of the month (1-31) */ int tm_mday; /* Day of the month (1\-31) */
int tm_mon; /* Month (0-11) */ int tm_mon; /* Month (0\-11) */
int tm_year; /* Year - 1900 */ int tm_year; /* Year \- 1900 */
int tm_wday; /* Day of the week (0-6, Sunday = 0) */ int tm_wday; /* Day of the week (0\-6, Sunday = 0) */
int tm_yday; /* Day in the year (0-365, 1 Jan = 0) */ int tm_yday; /* Day in the year (0\-365, 1 Jan = 0) */
int tm_isdst; /* Daylight saving time */ int tm_isdst; /* Daylight saving time */
}; };
.EE .EE
@ -129,10 +129,10 @@ in abbreviated form or the full name.
The date and time representation for the current locale. The date and time representation for the current locale.
.TP .TP
.B %C .B %C
The century number (0-99). The century number (0\(en99).
.TP .TP
.BR %d " or " %e .BR %d " or " %e
The day of month (1-31). The day of month (1\(en31).
.TP .TP
.B %D .B %D
Equivalent to Equivalent to
@ -145,19 +145,19 @@ The ISO 8601 standard format is
.BR %Y-%m-%d .) .BR %Y-%m-%d .)
.TP .TP
.B %H .B %H
The hour (0-23). The hour (0\(en23).
.TP .TP
.B %I .B %I
The hour on a 12-hour clock (1-12). The hour on a 12-hour clock (1\(en12).
.TP .TP
.B %j .B %j
The day number in the year (1-366). The day number in the year (1\(en366).
.TP .TP
.B %m .B %m
The month number (1-12). The month number (1\(en12).
.TP .TP
.B %M .B %M
The minute (0-59). The minute (0\(en59).
.TP .TP
.B %n .B %n
Arbitrary whitespace. Arbitrary whitespace.
@ -182,7 +182,7 @@ Equivalent to
.BR %H:%M . .BR %H:%M .
.TP .TP
.B %S .B %S
The second (0-60; 60 may occur for leap seconds; The second (0\(en60; 60 may occur for leap seconds;
earlier also 61 was allowed). earlier also 61 was allowed).
.TP .TP
.B %t .B %t
@ -193,14 +193,14 @@ Equivalent to
.BR %H:%M:%S . .BR %H:%M:%S .
.TP .TP
.B %U .B %U
The week number with Sunday the first day of the week (0-53). The week number with Sunday the first day of the week (0\(en53).
The first Sunday of January is the first day of week 1. The first Sunday of January is the first day of week 1.
.TP .TP
.B %w .B %w
The ordinal number of the day of the week (0-6), with Sunday = 0. The ordinal number of the day of the week (0\(en6), with Sunday = 0.
.TP .TP
.B %W .B %W
The week number with Monday the first day of the week (0-53). The week number with Monday the first day of the week (0\(en53).
The first Monday of January is the first day of week 1. The first Monday of January is the first day of week 1.
.TP .TP
.B %x .B %x
@ -210,10 +210,10 @@ The date, using the locale's date format.
The time, using the locale's time format. The time, using the locale's time format.
.TP .TP
.B %y .B %y
The year within century (0-99). The year within century (0\(en99).
When a century is not otherwise specified, values in the range 69-99 refer When a century is not otherwise specified, values in the range 69\(en99 refer
to years in the twentieth century (1969-1999); values in the to years in the twentieth century (1969\(en1999); values in the
range 00-68 refer to years in the twenty-first century (2000-2068). range 00\(en68 refer to years in the twenty-first century (2000\(en2068).
.TP .TP
.B %Y .B %Y
The year, including century (for example, 1991). The year, including century (for example, 1991).

View File

@ -60,7 +60,7 @@ The first form,
Partition numbers are assigned in the order the partitions Partition numbers are assigned in the order the partitions
are discovered, and only nonempty, nonextended partitions are discovered, and only nonempty, nonextended partitions
get a number. get a number.
However, partition numbers 1-4 are given to the However, partition numbers 1\(en4 are given to the
four partitions described in the MBR (the "primary" partitions), four partitions described in the MBR (the "primary" partitions),
regardless of whether they are unused or extended. regardless of whether they are unused or extended.
Thus, the first logical partition will be Thus, the first logical partition will be

View File

@ -54,7 +54,7 @@ is as follows:
.IP +3 .IP +3
partition 0 is the whole drive partition 0 is the whole drive
.IP .IP
partitions 1-4 are the DOS "primary" partitions partitions 1\(en4 are the DOS "primary" partitions
.IP .IP
partitions 5-8 are the DOS "extended" (or "logical") partitions partitions 5-8 are the DOS "extended" (or "logical") partitions
.PP .PP