hyphen/dash fixes

This commit is contained in:
Michael Kerrisk 2005-07-07 08:27:03 +00:00
parent 2bc2f4798f
commit 8c383102d0
38 changed files with 60 additions and 60 deletions

View File

@ -331,7 +331,7 @@ instead.
The above record locks may be either advisory or mandatory,
and are advisory by default.
To make use of mandatory locks, mandatory locking must be enabled
(using the "-o mand" option to
(using the "\-o mand" option to
.BR mount (8))
for the file system containing the
file to be locked and enabled on the file itself (by disabling

View File

@ -155,7 +155,7 @@ The actual priority range varies between kernel versions.
Linux before 1.3.36 had \-infinity..15. Linux since 1.3.43 has \-20..19,
and the system call getpriority returns 40..1 for these values
(since negative numbers are error codes).
The library call converts N into 20-N.
The library call converts N into 20\-N.
.LP
On some systems, the range of nice values is \-20..20.
.LP

View File

@ -156,16 +156,16 @@ The following macros are defined to operate on a struct timeval :
.nf
#define timerisset(tvp)\\
.ti +8
((tvp)->tv_sec || (tvp)->tv_usec)
((tvp)\->tv_sec || (tvp)\->tv_usec)
#define timercmp(tvp, uvp, cmp)\\
.in +8
((tvp)->tv_sec cmp (uvp)->tv_sec ||\\
(tvp)->tv_sec == (uvp)->tv_sec &&\\
(tvp)->tv_usec cmp (uvp)->tv_usec)
((tvp)\->tv_sec cmp (uvp)\->tv_sec ||\\
(tvp)\->tv_sec == (uvp)\->tv_sec &&\\
(tvp)\->tv_usec cmp (uvp)\->tv_usec)
.in -8
#define timerclear(tvp)\\
.ti +8
((tvp)->tv_sec = (tvp)->tv_usec = 0)
((tvp)\->tv_sec = (tvp)\->tv_usec = 0)
.fi
.PP
If either

View File

@ -113,7 +113,7 @@ POSIX 1003.1-2001 requires that \fIkill(\-1,sig)\fP send \fIsig\fP
to all processes that the current process may send signals to,
except possibly for some implementation-defined system processes.
Linux allows a process to signal itself, but on Linux the call
\fIkill(-\1,sig)\fP does not signal the current process.
\fIkill(\-1,sig)\fP does not signal the current process.
.LP
POSIX 1003.1-2003 requires that if a process sends a signal to itself,
and that process does not have the signal blocked, and no other thread

View File

@ -58,7 +58,7 @@ struct sysinfo {
unsigned long totalhigh; /* Total high memory size */
unsigned long freehigh; /* Available high memory size */
unsigned int mem_unit; /* Memory unit size in bytes */
char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding for libc5 */
char _f[20\-2*sizeof(long)\-sizeof(int)]; /* Padding for libc5 */
};
.fi
.RE

View File

@ -80,7 +80,7 @@ struct mi {
static int compmi(const void *m1, const void *m2) {
struct mi *mi1 = (struct mi *) m1;
struct mi *mi2 = (struct mi *) m2;
return strcmp(mi1->name, mi2->name);
return strcmp(mi1\->name, mi2\->name);
}
int main(int argc, char **argv) {

View File

@ -17,10 +17,10 @@ Link with \-lm.
.SH DESCRIPTION
The cacosh() function calculates the complex acosh().
If y = cacosh(z), then z = ccosh(y).
The imaginary part of y is chosen in the interval [-pi,pi].
The imaginary part of y is chosen in the interval [\-pi,pi].
The real part of y is chosen nonnegative.
.LP
One has cacosh(z) = (0.5)*clog((1+z)/(1-z)).
One has cacosh(z) = (0.5)*clog((1+z)/(1\-z)).
.SH "CONFORMING TO"
C99
.SH "SEE ALSO"

View File

@ -25,7 +25,7 @@ and a = carg(z) is the "phase angle", the argument of z.
.LP
One has carg(z) = atan(creal(z) / cimag(z)).
.SH "RETURN VALUE"
The return value is the range of [-pi,pi].
The return value is the range of [\-pi,pi].
.SH "CONFORMING TO"
C99
.SH "SEE ALSO"

View File

@ -17,10 +17,10 @@ Link with \-lm.
.SH DESCRIPTION
The casin() function calculates the complex asin().
If y = casin(z), then z = csin(y).
The real part of y is chosen in the interval [-pi/2,pi/2].
The real part of y is chosen in the interval [\-pi/2,pi/2].
.LP
One has
casin(z) = \-i clog(iz+csqrt(1-z*z)).
casin(z) = \-i clog(iz+csqrt(1\-z*z)).
.SH "CONFORMING TO"
C99
.SH "SEE ALSO"

View File

@ -17,7 +17,7 @@ Link with \-lm.
.SH DESCRIPTION
The casinh() function calculates the complex asinh().
If y = casinh(z), then z = csinh(y).
The imaginary part of y is chosen in the interval [-pi/2,pi/2].
The imaginary part of y is chosen in the interval [\-pi/2,pi/2].
.LP
One has casinh(z) = clog(z+csqrt(z*z+1)).
.SH "CONFORMING TO"

View File

@ -17,10 +17,10 @@ Link with \-lm.
.SH DESCRIPTION
The catan() function calculates the complex atan().
If y = catan(z), then z = ctan(y).
The real part of y is chosen in the interval [-pi/2,pi/2].
The real part of y is chosen in the interval [\-pi/2,pi/2].
.LP
One has
catan(z) = 1/2i clog((1+iz)/(1-iz)).
catan(z) = 1/2i clog((1+iz)/(1\-iz)).
.SH "CONFORMING TO"
C99
.SH "SEE ALSO"

View File

@ -17,9 +17,9 @@ Link with \-lm.
.SH DESCRIPTION
The catanh() function calculates the complex atanh().
If y = catanh(z), then z = ctanh(y).
The imaginary part of y is chosen in the interval [-pi/2,pi/2].
The imaginary part of y is chosen in the interval [\-pi/2,pi/2].
.LP
One has catanh(z) = 0.5*clog((1+z)/(1-z)).
One has catanh(z) = 0.5*clog((1+z)/(1\-z)).
.SH "CONFORMING TO"
C99
.SH "SEE ALSO"

View File

@ -23,7 +23,7 @@ Link with \-lm.
.SH DESCRIPTION
The function cerf() is the complex version of the error function.
erf(z) = 2/sqrt(pi) * integral from 0 to z of exp(\-t*t) dt.
The function cerfc() is defined as cerfc(z) = 1-cerf(z).
The function cerfc() is defined as cerfc(z) = 1\-cerf(z).
.\" must check 1/sqrt(2*pi) ?
.SH "CONFORMING TO"
The function name is reserved for future use in C99.

View File

@ -43,7 +43,7 @@ The value returned is the CPU time used so far as a
to get the number of seconds used, divide by
.BR CLOCKS_PER_SEC .
If the processor time used is not available or its value cannot
be represented, the function returns the value (clock_t)-1.
be represented, the function returns the value (clock_t)\-1.
.SH "CONFORMING TO"
ANSI C.
POSIX requires that CLOCKS_PER_SEC equals 1000000 independent

View File

@ -17,7 +17,7 @@ Link with \-lm.
.SH DESCRIPTION
The logarithm clog is the inverse function of the exponential cexp.
Thus, if y = clog(z), then z = cexp(y).
The imaginary part of y is chosen in the interval [-pi,pi].
The imaginary part of y is chosen in the interval [\-pi,pi].
.LP
One has clog(z) = log(cabs(z))+I*carg(z).
.LP

View File

@ -16,7 +16,7 @@ csinh, csinhf, csinhl \- complex hyperbolic sine
Link with \-lm.
.SH DESCRIPTION
The complex hyperbolic sine function sinh(z) is defined as
(exp(z)-exp(\-z))/2.
(exp(z)\-exp(\-z))/2.
.SH "CONFORMING TO"
C99
.SH "SEE ALSO"

View File

@ -32,7 +32,7 @@ If
.RI * ngroups
is smaller than the total number of groups found, then
.B getgrouplist()
returns a value of `-1'.
returns a value of `\-1'.
In all cases the actual number of groups is stored in
.RI * ngroups .
.SH BUGS

View File

@ -128,10 +128,10 @@ int main(int argc, char *argv[])
entry.ut_type=USER_PROCESS;
entry.ut_pid=getpid();
strcpy(entry.ut_line,ttyname(0)+strlen("/dev/"));
/* only correct for ptys named /dev/tty[pqr][0-9a-z] */
/* only correct for ptys named /dev/tty[pqr][0\-9a\-z] */
strcpy(entry.ut_id,ttyname(0)+strlen("/dev/tty"));
time(&entry.ut_time);
strcpy(entry.ut_user,getpwuid(getuid())->pw_name);
strcpy(entry.ut_user,getpwuid(getuid())\->pw_name);
memset(entry.ut_host,0,UT_HOSTSIZE);
entry.ut_addr=0;
setutent();

View File

@ -217,7 +217,7 @@ globbuf.gl_offs = 2;
glob("*.c", GLOB_DOOFFS, NULL, &globbuf);
glob("../*.c", GLOB_DOOFFS | GLOB_APPEND, NULL, &globbuf);
globbuf.gl_pathv[0] = "ls";
globbuf.gl_pathv[1] = "-l";
globbuf.gl_pathv[1] = "\-l";
execvp("ls", &globbuf.gl_pathv[0]);
.fi
.SH "CONFORMING TO"

View File

@ -318,7 +318,7 @@ Instead of a decimal digit string one may write `*' or `*m$'
is given in the next argument, or in the m-th argument, respectively,
which must be of type
.IR int .
A negative field width is taken as a `-' flag followed by a
A negative field width is taken as a `\-' flag followed by a
positive field width.
In no case does a non-existent or small field width cause truncation of a
field; if the result of a conversion is wider than the field width, the
@ -562,10 +562,10 @@ If a decimal point appears, at least one digit appears before it.
(The SUSv2 does not know about
.B F
and says that character string representations for infinity and NaN
may be made available. The C99 standard specifies `[-]inf' or `[-]infinity'
may be made available. The C99 standard specifies `[\-]inf' or `[\-]infinity'
for infinity, and a string starting with `nan' for NaN, in the case of
.B f
conversion, and `[-]INF' or `[-]INFINITY' or `NAN*' in the case of
conversion, and `[\-]INF' or `[\-]INFINITY' or `NAN*' in the case of
.B F
conversion.)
.TP
@ -598,7 +598,7 @@ conversion, the
.I double
argument is converted to hexadecimal notation (using the letters abcdef)
in the style
.BR "" [-] 0x h \&. hhhh p \\*(Pmd;
.BR "" [\-] 0x h \&. hhhh p \\*(Pmd;
for
.B A
conversion the prefix

View File

@ -67,7 +67,7 @@ The former sorts directory entries using
.BR strcoll (3),
the latter using
.BR strvers\%cmp (3)
on the strings \fI(*a)->d_name\fP and \fI(*b)->d_name\fP.
on the strings \fI(*a)\->d_name\fP and \fI(*b)\->d_name\fP.
.SH "RETURN VALUE"
The \fBscandir()\fP function returns the number of directory entries
selected or \-1 if an error occurs.

View File

@ -300,10 +300,10 @@ circumflex
To include a close bracket in the set, make it the first character after
the open bracket or the circumflex; any other position will end the set.
The hyphen character
.B -
.B \-
is also special; when placed between two other characters, it adds all
intervening characters to the set. To include a hyphen, make it the last
character before the final close bracket. For instance, `[^]0-9-]' means
character before the final close bracket. For instance, `[^]0\-9-\]' means
the set `everything except close bracket, zero through nine, and hyphen'.
The string ends with the appearance of a character not in the (or, with a
circumflex, in) set or when the field width runs out.

View File

@ -55,7 +55,7 @@ for the current locale. By default, grouping is enabled.
The ( flag indicates that negative amounts should be enclosed between
parentheses. The + flag indicates that signs should be handled
in the default way, that is, amounts are preceded by the locale's
sign indication, e.g., nothing for positive, "-" for negative.
sign indication, e.g., nothing for positive, "\-" for negative.
.TP
.BR !
Omit the currency symbol.

View File

@ -72,7 +72,7 @@ representation, respectively.
The expected form of the (initial portion of the) string is
optional leading white space as recognized by \fIis\%space\fP(3),
an optional plus (``+'') or minus sign (``-'') and then either
an optional plus (``+'') or minus sign (``\-'') and then either
(i) a decimal number, or (ii) a hexadecimal number,
or (iii) an infinity, or (iv) a NAN (not-a-number).
.LP

View File

@ -47,7 +47,7 @@ which must be between 2 and 36 inclusive, or be the special value 0.
The string must begin with an arbitrary amount of white space (as
determined by
.BR isspace (3))
followed by a single optional `+' or `-'
followed by a single optional `+' or `\-'
sign. If \fIbase\fP is zero or 16, the string may then include a
`0x' prefix, and the number will be read in base 16; otherwise, a
zero \fIbase\fP is taken as 10 (decimal) unless the next character

View File

@ -50,7 +50,7 @@ the special value 0.
The string must begin with an arbitrary amount of white space (as
determined by
.BR isspace (3))
followed by a single optional `+' or `-'
followed by a single optional `+' or `\-'
sign. If \fIbase\fP is zero or 16, the string may then include a
`0x' prefix, and the number will be read in base 16; otherwise, a
zero \fIbase\fP is taken as 10 (decimal) unless the next character

View File

@ -19,7 +19,7 @@ Compile with \-std=c99; link with \-lm.
.SH DESCRIPTION
The Gamma function is defined by
.sp
Gamma(x) = integral from 0 to infinity of t^(x-1) e^-t dt
Gamma(x) = integral from 0 to infinity of t^(x\-1) e^\-t dt
.sp
It is defined for every real number except for nonpositive integers.
For nonnegative integral \fIm\fP one has
@ -33,7 +33,7 @@ and, more generally, for all \fIx\fP:
Furthermore, the following is valid for all values of \fIx\fP
outside the poles:
.sp
Gamma(x) * Gamma(1-x) = PI/sin(PI*x)
Gamma(x) * Gamma(1\-x) = PI/sin(PI*x)
.PP
This function returns the value of the Gamma function for the
argument \fIx\fP. It had to be called "true gamma function"

View File

@ -50,8 +50,8 @@ The first character was either '0' or '1', where '0' meant "ignore".
The second character denoted the terminal: '8' stood for "/dev/tty8".
The third character was an argument to
.BR getty (8)
indicating the sequence of line speeds to try ('-' was: start trying
110 baud). Thus a typical line was "18-".
indicating the sequence of line speeds to try ('\-' was: start trying
110 baud). Thus a typical line was "18\-".
A hang on some line was solved by changing the '1' to a '0',
signalling init, changing back again, and signalling init again.
.LP

View File

@ -119,7 +119,7 @@ by the output of command), arithmetic expansion, field splitting,
wildcard expansion, quote removal.
.LP
The result of expansion of special parameters
($@, $*, $#, $?, $-, $$, $!, $0) is unspecified.
($@, $*, $#, $?, $\-, $$, $!, $0) is unspecified.
.LP
Field splitting is done using the environment variable $IFS.
If it is not set, the field separators are space, tab and newline.

View File

@ -122,8 +122,8 @@ parameter is required, and it is NULL, then
.IR ioctl ()
will return \-EINVAL.
.SH FILES
/dev/sd[a-h]: the whole device
/dev/sd[a\-h]: the whole device
.br
/dev/sd[a-h][0-8]: individual block partitions
/dev/sd[a\-h][0\-8]: individual block partitions
.SH "SEE ALSO"
.BR scsi (4)

View File

@ -25,7 +25,7 @@
.SH NAME
ttyS \- serial terminal lines
.SH DESCRIPTION
\fBttyS[0-3]\fP are character devices for the serial terminal lines.
\fBttyS[0\-3]\fP are character devices for the serial terminal lines.
.LP
They are typically created by:
.RS
@ -38,11 +38,11 @@ mknod \-m 660 /dev/ttyS2 c 4 66 # base address 0x3e8
.br
mknod \-m 660 /dev/ttyS3 c 4 67 # base address 0x2e8
.br
chown root:tty /dev/ttyS[0-3]
chown root:tty /dev/ttyS[0\-3]
.sp
.RE
.SH FILES
/dev/ttyS[0-3]
/dev/ttyS[0\-3]
.SH "SEE ALSO"
.BR chown (1),
.BR getty (1),

View File

@ -32,9 +32,9 @@ vcs, vcsa \- virtual console memory
of the currently
displayed virtual console terminal.
.LP
\fB/dev/vcs[1-63]\fP are character devices for virtual console
\fB/dev/vcs[1\-63]\fP are character devices for virtual console
terminals, they have major number 7 and minor number 1 to 63, usually
mode 0644 and owner root.tty. \fB/dev/vcsa[0-63]\fP are the same, but
mode 0644 and owner root.tty. \fB/dev/vcsa[0\-63]\fP are the same, but
including attributes, and prefixed with four bytes giving the screen
dimensions and cursor position: \fIlines\fP, \fIcolumns\fP, \fIx\fP, \fIy\fP.
(\fIx\fP = \fIy\fP = 0 at the top left corner of the screen.)
@ -100,9 +100,9 @@ there:
.fi
.SH FILES
/dev/vcs[0-63]
/dev/vcs[0\-63]
.br
/dev/vcsa[0-63]
/dev/vcsa[0\-63]
.SH AUTHOR
Andries Brouwer <aeb@cwi.nl>
.SH HISTORY

View File

@ -43,7 +43,7 @@ IP_address canonical_hostname [aliases...]
Fields of the entry are separated by any number of blanks and/or
tab characters. Text from a "#" character until the end of the line is
a comment, and is ignored. Host names may contain only alphanumeric
characters, minus signs ("-"), and periods ("."). They must begin with an
characters, minus signs ("\-"), and periods ("."). They must begin with an
alphabetic character and end with an alphanumeric character.
Optional aliases provide for name changes, alternate spellings,
shorter hostnames, or generic hostnames (for example,

View File

@ -217,7 +217,7 @@ require the single + entry in
and
.BR /etc/shadow .
If this is not sufficient, the NSS `compat' service provides full
+/- semantics. By default, the source is `nis', but this may be
+/\- semantics. By default, the source is `nis', but this may be
overridden by specifying `nisplus' as source for the pseudo-databases
.BR passwd_compat,
.B group_compat

View File

@ -128,7 +128,7 @@ not stripped.
.I service-names
can be any printable characters excluding space and tab. However,
a conservative choice of characters should be used to minimize
inter-operability problems. E.g., a-z, 0-9, and hyphen (\-) would seem a
inter-operability problems. E.g., a\-z, 0\-9, and hyphen (\-) would seem a
sensible choice.
Lines not matching this format should not be present in the

View File

@ -330,7 +330,7 @@ kernel buffer memory management. For kernel tuners only.
.SH "BOOT ARGUMENTS FOR RAMDISK USE"
(Only if the kernel was compiled with CONFIG_BLK_DEV_RAM.)
In general it is a bad idea to use a ramdisk under Linux -
In general it is a bad idea to use a ramdisk under Linux \(em
the system will use available memory more efficiently itself.
But while booting (or while constructing boot floppies)
it is often useful to load the floppy contents into a

View File

@ -310,7 +310,7 @@ Locale information goes here.
.I /usr/share/man
Manpages go here in subdirectories according to the man page sections.
.TP
.I /usr/share/man/<locale>/man[1-9]
.I /usr/share/man/<locale>/man[1\-9]
These directories contain manual pages for the specific locale in source code
form. Systems which use a unique language and code set for all manual pages
may omit the <locale> substring.
@ -366,7 +366,7 @@ Reserved for historical reasons.
.I /var/cache
Data cached for programs.
.TP
.IR /var/catman/cat[1-9] " or " /var/cache/man/cat[1-9]
.IR /var/catman/cat[1\-9] " or " /var/cache/man/cat[1\-9]
These directories contain preformatted manual pages according to their
man page section. (The use of preformatted manual pages is deprecated.)
.TP

View File

@ -104,7 +104,7 @@ it matches any single character
If two characters in the list are separated by `\-', this is shorthand
for the full \fIrange\fR of characters between those two (inclusive) in the
collating sequence,
e.g. `[0-9]' in ASCII matches any decimal digit.
e.g. `[0\-9]' in ASCII matches any decimal digit.
It is illegal\*(dg for two ranges to share an
endpoint, e.g. `a-c-e'.
Ranges are very collating-sequence-dependent,