mirror of https://github.com/mkerrisk/man-pages
fallocate.2, kexec_load.2, poll.2, spu_run.2, atan2.3, cbrt.3, clock_getcpuclockid.3, end.3, frexp.3, getgrouplist.3, getifaddrs.3, matherr.3, modf.3, pow.3, pthread_getattr_np.3, pthread_getcpuclockid.3, sched_getcpu.3, tgamma.3, mouse.4, proc.5, feature_test_macros.7, spufs.7: Global fix: properly escape minus sign
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
5b64c2d109
commit
c3074d7061
|
@ -80,7 +80,7 @@ Because allocation is done in block size chunks,
|
|||
may allocate a larger range than that which was specified.
|
||||
.SH RETURN VALUE
|
||||
.BR fallocate ()
|
||||
returns zero on success, and -1 on failure.
|
||||
returns zero on success, and \-1 on failure.
|
||||
.SH ERRORS
|
||||
.TP
|
||||
.B EBADF
|
||||
|
|
|
@ -111,7 +111,7 @@ is copied from the calling process into previously reserved memory.
|
|||
On success,
|
||||
.BR kexec_load ()
|
||||
returns 0.
|
||||
On error, -1 is returned and
|
||||
On error, \-1 is returned and
|
||||
.I errno
|
||||
is set to indicate the error.
|
||||
.SH ERRORS
|
||||
|
|
|
@ -208,7 +208,7 @@ executing the following calls:
|
|||
sigset_t origmask;
|
||||
int timeout;
|
||||
|
||||
timeout = (timeout_ts == NULL) ? -1 :
|
||||
timeout = (timeout_ts == NULL) ? \-1 :
|
||||
(timeout_ts.tv_sec * 1000 + timeout_ts.tv_nsec / 1000000);
|
||||
sigprocmask(SIG_SETMASK, &sigmask, &origmask);
|
||||
ready = poll(&fds, nfds, timeout);
|
||||
|
|
|
@ -222,7 +222,7 @@ int main(void)
|
|||
uint32_t instruction, npc;
|
||||
|
||||
context = spu_create("/spu/example\-context", 0, 0755);
|
||||
if (context == -1)
|
||||
if (context == \-1)
|
||||
handle_error("spu_create");
|
||||
|
||||
/* write a \(aqstop 0x1234\(aq instruction to the SPU\(aqs
|
||||
|
@ -231,7 +231,7 @@ int main(void)
|
|||
instruction = 0x00001234;
|
||||
|
||||
fd = open("/spu/example\-context/mem", O_RDWR);
|
||||
if (fd == -1)
|
||||
if (fd == \-1)
|
||||
handle_error("open");
|
||||
write(fd, &instruction, sizeof(instruction));
|
||||
|
||||
|
@ -242,7 +242,7 @@ int main(void)
|
|||
npc = 0;
|
||||
|
||||
spu_status = spu_run(context, &npc, NULL);
|
||||
if (spu_status == -1)
|
||||
if (spu_status == \-1)
|
||||
handle_error("open");
|
||||
|
||||
/* we should see a status code of 0x1234002:
|
||||
|
|
|
@ -147,13 +147,13 @@ If
|
|||
.I y
|
||||
is positive infinity (negative infinity) and
|
||||
.I x
|
||||
is negative infinity, +3*pi/4 (-3*pi/4) is returned.
|
||||
is negative infinity, +3*pi/4 (\-3*pi/4) is returned.
|
||||
|
||||
If
|
||||
.I y
|
||||
is positive infinity (negative infinity) and
|
||||
.I x
|
||||
is positive infinity, +pi/4 (-pi/4) is returned.
|
||||
is positive infinity, +pi/4 (\-pi/4) is returned.
|
||||
.\"
|
||||
.\" POSIX.1 says:
|
||||
.\" If both arguments are 0, a domain error shall not occur.
|
||||
|
|
|
@ -79,7 +79,7 @@ These functions return the cube root of
|
|||
|
||||
If
|
||||
.I x
|
||||
is +0, -0, positive infinity, negative infinity, or NaN,
|
||||
is +0, \-0, positive infinity, negative infinity, or NaN,
|
||||
.I x
|
||||
is returned.
|
||||
.SH ERRORS
|
||||
|
|
|
@ -134,7 +134,7 @@ main(int argc, char *argv[])
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (clock_gettime(clockid, &ts) == -1) {
|
||||
if (clock_gettime(clockid, &ts) == \-1) {
|
||||
perror("clock_gettime");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ First address past:
|
|||
#include <stdlib.h>
|
||||
|
||||
extern char etext, edata, end; /* The symbols must have some type,
|
||||
or "gcc -Wall" complains */
|
||||
or "gcc \-Wall" complains */
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
|
|
|
@ -107,7 +107,7 @@ The program below produces results such as the following:
|
|||
.RB "$" " ./a.out 2560"
|
||||
frexp(2560, &e) = 0.625: 0.625 * 2^12 = 2560
|
||||
.RB "$" " ./a.out \-4"
|
||||
frexp(\-4, &e) = \-0.5: \-0.5 * 2^3 = -4
|
||||
frexp(\-4, &e) = \-0.5: \-0.5 * 2^3 = \-4
|
||||
.in
|
||||
.fi
|
||||
.SS Program source
|
||||
|
|
|
@ -117,7 +117,7 @@ The following shell session shows examples of the use of this program:
|
|||
.nf
|
||||
|
||||
.RB "$" " ./a.out cecilia 0"
|
||||
getgrouplist() returned -1; ngroups = 3
|
||||
getgrouplist() returned \-1; ngroups = 3
|
||||
.RB "$" " ./a.out cecilia 3"
|
||||
ngroups = 3
|
||||
16 (dialout)
|
||||
|
|
|
@ -138,7 +138,7 @@ when no longer needed.
|
|||
On success,
|
||||
.BR getifaddrs ()
|
||||
returns zero;
|
||||
on error, -1 is returned, and
|
||||
on error, \-1 is returned, and
|
||||
.I errno
|
||||
is set appropriately.
|
||||
.SH ERRORS
|
||||
|
|
|
@ -253,7 +253,7 @@ tgamma(0) SING copysign( y ERANGE
|
|||
log(0) SING \-HUGE y EDOM
|
||||
log(x<0) DOMAIN \-HUGE y EDOM
|
||||
log2(0) SING \-HUGE n EDOM \" different from log()
|
||||
log2(x<0) DOMAIN -HUGE n EDOM \" different from log()
|
||||
log2(x<0) DOMAIN \-HUGE n EDOM \" different from log()
|
||||
log10(0) SING \-HUGE y EDOM
|
||||
log10(x<0) DOMAIN \-HUGE y EDOM
|
||||
pow(0.0,0.0) DOMAIN 0.0 y EDOM
|
||||
|
@ -314,7 +314,7 @@ is called, and returns 0:
|
|||
.RB "$" " ./a.out 0.0 0"
|
||||
matherr SING exception in log() function
|
||||
args: 0.000000, 0.000000
|
||||
retval: -340282346638528859811704183484516925440.000000
|
||||
retval: \-340282346638528859811704183484516925440.000000
|
||||
log: SING error
|
||||
errno: Numerical argument out of domain
|
||||
x=-340282346638528859811704183484516925440.000000
|
||||
|
@ -332,7 +332,7 @@ is called, and returns a nonzero value:
|
|||
.RB "$" " ./a.out 0.0 1"
|
||||
matherr SING exception in log() function
|
||||
args: 0.000000, 0.000000
|
||||
retval: -340282346638528859811704183484516925440.000000
|
||||
retval: \-340282346638528859811704183484516925440.000000
|
||||
x=-340282346638528859811704183484516925440.000000
|
||||
.fi
|
||||
.in
|
||||
|
@ -351,7 +351,7 @@ and returns a nonzero value:
|
|||
.RB "$" " ./a.out 0.0 1 12345.0"
|
||||
matherr SING exception in log() function
|
||||
args: 0.000000, 0.000000
|
||||
retval: -340282346638528859811704183484516925440.000000
|
||||
retval: \-340282346638528859811704183484516925440.000000
|
||||
x=12345.000000
|
||||
.fi
|
||||
.in
|
||||
|
|
|
@ -80,7 +80,7 @@ is set to a NaN.
|
|||
|
||||
If
|
||||
.I x
|
||||
is positive infinity (negative infinity), +0 (-0) is returned, and
|
||||
is positive infinity (negative infinity), +0 (\-0) is returned, and
|
||||
.IR *iptr
|
||||
is set to positive infinity (negative infinity).
|
||||
.SH ERRORS
|
||||
|
|
|
@ -222,7 +222,7 @@ the result is positive infinity.
|
|||
|
||||
If
|
||||
.I x
|
||||
is +0 or -0,
|
||||
is +0 or \-0,
|
||||
and
|
||||
.I y
|
||||
is an odd integer less than 0,
|
||||
|
@ -237,7 +237,7 @@ with the same sign as
|
|||
|
||||
If
|
||||
.I x
|
||||
is +0 or -0,
|
||||
is +0 or \-0,
|
||||
and
|
||||
.I y
|
||||
is less than 0 and not an odd integer,
|
||||
|
|
|
@ -240,7 +240,7 @@ usage(char *pname, char *msg)
|
|||
{
|
||||
if (msg != NULL)
|
||||
fputs(msg, stderr);
|
||||
fprintf(stderr, "Usage: %s [\-s stack-size [-a]]"
|
||||
fprintf(stderr, "Usage: %s [\-s stack-size [\-a]]"
|
||||
" [\-g guard-size]\\n", pname);
|
||||
fprintf(stderr, "\\t\\t\-a means program should allocate stack\\n");
|
||||
exit(EXIT_FAILURE);
|
||||
|
@ -269,7 +269,7 @@ get_thread_attributes_from_cl(int argc, char *argv[],
|
|||
}
|
||||
|
||||
if (allocate_stack && stack_size == \-1)
|
||||
usage(argv[0], "Specifying \-a without -s makes no sense\\n");
|
||||
usage(argv[0], "Specifying \-a without \-s makes no sense\\n");
|
||||
|
||||
if (argc > optind)
|
||||
usage(argv[0], "Extraneous command\-line arguments\\n");
|
||||
|
|
|
@ -92,7 +92,7 @@ Subthread CPU time: 0.992
|
|||
.SS Program source
|
||||
\&
|
||||
.nf
|
||||
/* Link with "-lrt" */
|
||||
/* Link with "\-lrt" */
|
||||
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -69,7 +69,7 @@ call:
|
|||
|
||||
int c, s;
|
||||
s = getcpu(&c, NULL, NULL);
|
||||
cpu = (s == -1) ? s : c;
|
||||
cpu = (s == \-1) ? s : c;
|
||||
.fi
|
||||
.in
|
||||
.SH SEE ALSO
|
||||
|
|
|
@ -87,7 +87,7 @@ and the functions return 0, with the correct mathematical sign.
|
|||
|
||||
If
|
||||
.I x
|
||||
is -0 or +0,
|
||||
is \-0 or +0,
|
||||
a pole error occurs,
|
||||
and the functions return
|
||||
.BR HUGE_VAL ,
|
||||
|
@ -169,7 +169,7 @@ is not set (it should be set to
|
|||
.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6809
|
||||
|
||||
In glibc versions 2.3.3 and earlier,
|
||||
an argument of +0 or -0 incorrectly produced a domain error
|
||||
an argument of +0 or \-0 incorrectly produced a domain error
|
||||
.RI ( errno
|
||||
set to
|
||||
.B EDOM
|
||||
|
|
|
@ -37,7 +37,7 @@ center;
|
|||
r c l.
|
||||
pin name used for
|
||||
2 RX Data
|
||||
3 TX -12 V, Imax = 10 mA
|
||||
3 TX \-12 V, Imax = 10 mA
|
||||
4 DTR +12 V, Imax = 10 mA
|
||||
7 RTS +12 V, Imax = 10 mA
|
||||
5 GND Ground
|
||||
|
|
|
@ -1140,7 +1140,7 @@ are the same as those provided by :
|
|||
.in +4n
|
||||
.nf
|
||||
|
||||
cat /lib/modules/$(uname -r)/build/.config
|
||||
cat /lib/modules/$(uname \-r)/build/.config
|
||||
.fi
|
||||
.in
|
||||
.IP
|
||||
|
|
|
@ -485,12 +485,12 @@ _POSIX_C_SOURCE defined: 200809L
|
|||
_BSD_SOURCE defined
|
||||
_SVID_SOURCE defined
|
||||
_ATFILE_SOURCE defined
|
||||
$ \fBcc -D_XOPEN_SOURCE=500 ftm.c\fP
|
||||
$ \fBcc \-D_XOPEN_SOURCE=500 ftm.c\fP
|
||||
$ \fB./a.out\fP
|
||||
_POSIX_SOURCE defined
|
||||
_POSIX_C_SOURCE defined: 199506L
|
||||
_XOPEN_SOURCE defined: 500
|
||||
$ \fBcc -D_GNU_SOURCE ftm.c\fP
|
||||
$ \fBcc \-D_GNU_SOURCE ftm.c\fP
|
||||
$ \fB./a.out\fP
|
||||
_POSIX_SOURCE defined
|
||||
_POSIX_C_SOURCE defined: 200809L
|
||||
|
|
|
@ -735,7 +735,7 @@ mappings are supported.
|
|||
Read-only file containing the physical SPU number that the SPU context
|
||||
is running on.
|
||||
When the context is not running, this file contains the
|
||||
string "-1".
|
||||
string "\-1".
|
||||
|
||||
The physical SPU number is given by an ASCII hex string.
|
||||
.TP
|
||||
|
|
Loading…
Reference in New Issue