mirror of https://github.com/mkerrisk/man-pages
clone.2, io_submit.2, select.2, shmget.2, getcontext.3, malloc_info.3, mtrace.3, posix_spawn.3, strfromd.3, proc.5: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
c37e8cfb04
commit
161b8eda4d
12
man2/clone.2
12
man2/clone.2
|
@ -1615,7 +1615,7 @@ as detailed in the following paragraphs.
|
||||||
The raw system call interface on x86-64 and some other architectures
|
The raw system call interface on x86-64 and some other architectures
|
||||||
(including sh, tile, and alpha) is:
|
(including sh, tile, and alpha) is:
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
.BI "long clone(unsigned long " flags ", void *" stack ,
|
.BI "long clone(unsigned long " flags ", void *" stack ,
|
||||||
.BI " int *" parent_tid ", int *" child_tid ,
|
.BI " int *" parent_tid ", int *" child_tid ,
|
||||||
|
@ -1629,7 +1629,7 @@ and MIPS),
|
||||||
.\" CONFIG_CLONE_BACKWARDS
|
.\" CONFIG_CLONE_BACKWARDS
|
||||||
the order of the last two arguments is reversed:
|
the order of the last two arguments is reversed:
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
.BI "long clone(unsigned long " flags ", void *" stack ,
|
.BI "long clone(unsigned long " flags ", void *" stack ,
|
||||||
.BI " int *" parent_tid ", unsigned long " tls ,
|
.BI " int *" parent_tid ", unsigned long " tls ,
|
||||||
|
@ -1641,7 +1641,7 @@ On the cris and s390 architectures,
|
||||||
.\" CONFIG_CLONE_BACKWARDS2
|
.\" CONFIG_CLONE_BACKWARDS2
|
||||||
the order of the first two arguments is reversed:
|
the order of the first two arguments is reversed:
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
.BI "long clone(void *" stack ", unsigned long " flags ,
|
.BI "long clone(void *" stack ", unsigned long " flags ,
|
||||||
.BI " int *" parent_tid ", int *" child_tid ,
|
.BI " int *" parent_tid ", int *" child_tid ,
|
||||||
|
@ -1653,7 +1653,7 @@ On the microblaze architecture,
|
||||||
.\" CONFIG_CLONE_BACKWARDS3
|
.\" CONFIG_CLONE_BACKWARDS3
|
||||||
an additional argument is supplied:
|
an additional argument is supplied:
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
.BI "long clone(unsigned long " flags ", void *" stack ,
|
.BI "long clone(unsigned long " flags ", void *" stack ,
|
||||||
.BI " int " stack_size , "\fR /* Size of stack */"
|
.BI " int " stack_size , "\fR /* Size of stack */"
|
||||||
|
@ -1672,7 +1672,7 @@ For details, see the kernel (and glibc) source.
|
||||||
.SS ia64
|
.SS ia64
|
||||||
On ia64, a different interface is used:
|
On ia64, a different interface is used:
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
.BI "int __clone2(int (*" "fn" ")(void *),"
|
.BI "int __clone2(int (*" "fn" ")(void *),"
|
||||||
.BI " void *" stack_base ", size_t " stack_size ,
|
.BI " void *" stack_base ", size_t " stack_size ,
|
||||||
|
@ -1688,7 +1688,7 @@ the prototype can be described as follows (it is identical to the
|
||||||
.BR clone ()
|
.BR clone ()
|
||||||
prototype on microblaze):
|
prototype on microblaze):
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
.BI "long clone2(unsigned long " flags ", void *" stack_base ,
|
.BI "long clone2(unsigned long " flags ", void *" stack_base ,
|
||||||
.BI " int " stack_size , "\fR /* Size of stack */"
|
.BI " int " stack_size , "\fR /* Size of stack */"
|
||||||
|
|
|
@ -136,7 +136,7 @@ The
|
||||||
valid values are defined by the enum defined in
|
valid values are defined by the enum defined in
|
||||||
.IR linux/aio_abi.h :
|
.IR linux/aio_abi.h :
|
||||||
.IP
|
.IP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
enum {
|
enum {
|
||||||
IOCB_CMD_PREAD = 0,
|
IOCB_CMD_PREAD = 0,
|
||||||
|
|
|
@ -599,7 +599,7 @@ system call is not a
|
||||||
.I "sigset_t\ *"
|
.I "sigset_t\ *"
|
||||||
pointer, but is instead a structure of the form:
|
pointer, but is instead a structure of the form:
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
struct {
|
struct {
|
||||||
const kernel_sigset_t *ss; /* Pointer to signal set */
|
const kernel_sigset_t *ss; /* Pointer to signal set */
|
||||||
|
|
|
@ -133,7 +133,7 @@ the base-2 logarithm of the desired page size in the six bits at the offset
|
||||||
.BR SHM_HUGE_SHIFT .
|
.BR SHM_HUGE_SHIFT .
|
||||||
Thus, the above two constants are defined as:
|
Thus, the above two constants are defined as:
|
||||||
.IP
|
.IP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
#define SHM_HUGE_2MB (21 << SHM_HUGE_SHIFT)
|
#define SHM_HUGE_2MB (21 << SHM_HUGE_SHIFT)
|
||||||
#define SHM_HUGE_1GB (30 << SHM_HUGE_SHIFT)
|
#define SHM_HUGE_1GB (30 << SHM_HUGE_SHIFT)
|
||||||
|
|
|
@ -55,7 +55,7 @@ The
|
||||||
type is a structure that has at least
|
type is a structure that has at least
|
||||||
the following fields:
|
the following fields:
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
typedef struct ucontext_t {
|
typedef struct ucontext_t {
|
||||||
struct ucontext_t *uc_link;
|
struct ucontext_t *uc_link;
|
||||||
|
|
|
@ -121,7 +121,7 @@ After the blocks of memory have been allocated,
|
||||||
.BR malloc_info ()
|
.BR malloc_info ()
|
||||||
shows the state of two allocation arenas.
|
shows the state of two allocation arenas.
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
.RB "$ " "getconf GNU_LIBC_VERSION"
|
.RB "$ " "getconf GNU_LIBC_VERSION"
|
||||||
glibc 2.13
|
glibc 2.13
|
||||||
|
|
|
@ -135,7 +135,7 @@ function and the
|
||||||
command in a program that has memory leaks at two different locations.
|
command in a program that has memory leaks at two different locations.
|
||||||
The demonstration uses the following program:
|
The demonstration uses the following program:
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
.RB "$ " "cat t_mtrace.c"
|
.RB "$ " "cat t_mtrace.c"
|
||||||
#include <mcheck.h>
|
#include <mcheck.h>
|
||||||
|
|
|
@ -613,7 +613,7 @@ command is executed in the child, and the
|
||||||
.BR posix_spawn ()
|
.BR posix_spawn ()
|
||||||
call employs no file actions or attributes objects.
|
call employs no file actions or attributes objects.
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
$ \fB./a.out date\fP
|
$ \fB./a.out date\fP
|
||||||
PID of child: 7634
|
PID of child: 7634
|
||||||
|
@ -630,7 +630,7 @@ Consequently,
|
||||||
.BR date (1)
|
.BR date (1)
|
||||||
fails when trying to perform output and exits with a status of 1.
|
fails when trying to perform output and exits with a status of 1.
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
$ \fB./a.out \-c date\fP
|
$ \fB./a.out \-c date\fP
|
||||||
PID of child: 7636
|
PID of child: 7636
|
||||||
|
@ -654,7 +654,7 @@ is necessary
|
||||||
.RB ( SIGKILL
|
.RB ( SIGKILL
|
||||||
can't be blocked).
|
can't be blocked).
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
$ \fB./a.out \-s sleep 60 &\fP
|
$ \fB./a.out \-s sleep 60 &\fP
|
||||||
[1] 7637
|
[1] 7637
|
||||||
|
@ -671,7 +671,7 @@ When we try to execute a nonexistent command in the child, the
|
||||||
.BR exec (3)
|
.BR exec (3)
|
||||||
fails and the child exits with a status of 127.
|
fails and the child exits with a status of 127.
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
$ \fB./a.out xxxxx
|
$ \fB./a.out xxxxx
|
||||||
PID of child: 10190
|
PID of child: 10190
|
||||||
|
|
|
@ -210,7 +210,7 @@ category of the current locale.
|
||||||
To convert the value 12.1 as a float type to a string using decimal
|
To convert the value 12.1 as a float type to a string using decimal
|
||||||
notation, resulting in "12.100000":
|
notation, resulting in "12.100000":
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
#define __STDC_WANT_IEC_60559_BFP_EXT__
|
#define __STDC_WANT_IEC_60559_BFP_EXT__
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -223,7 +223,7 @@ strfromf(s, ssize, "%f", 12.1);
|
||||||
To convert the value 12.3456 as a float type to a string using
|
To convert the value 12.3456 as a float type to a string using
|
||||||
decimal notation with two digits of precision, resulting in "12.35":
|
decimal notation with two digits of precision, resulting in "12.35":
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
#define __STDC_WANT_IEC_60559_BFP_EXT__
|
#define __STDC_WANT_IEC_60559_BFP_EXT__
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -236,7 +236,7 @@ strfromf(s, ssize, "%.2f", 12.3456);
|
||||||
To convert the value 12.345e19 as a double type to a string using
|
To convert the value 12.345e19 as a double type to a string using
|
||||||
scientific notation with zero digits of precision, resulting in "1E+20":
|
scientific notation with zero digits of precision, resulting in "1E+20":
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
#define __STDC_WANT_IEC_60559_BFP_EXT__
|
#define __STDC_WANT_IEC_60559_BFP_EXT__
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -1311,7 +1311,7 @@ The
|
||||||
.I perms
|
.I perms
|
||||||
field is a set of permissions:
|
field is a set of permissions:
|
||||||
.IP
|
.IP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
r = read
|
r = read
|
||||||
w = write
|
w = write
|
||||||
|
@ -3883,7 +3883,7 @@ Inter\-| Receive | Transmit
|
||||||
Defined in
|
Defined in
|
||||||
.IR /usr/src/linux/net/core/dev_mcast.c :
|
.IR /usr/src/linux/net/core/dev_mcast.c :
|
||||||
.IP
|
.IP
|
||||||
.in +4
|
.in +4n
|
||||||
.EX
|
.EX
|
||||||
indx interface_name dmi_u dmi_g dmi_address
|
indx interface_name dmi_u dmi_g dmi_address
|
||||||
2 eth0 1 0 01005e000001
|
2 eth0 1 0 01005e000001
|
||||||
|
|
Loading…
Reference in New Issue