mirror of https://github.com/mkerrisk/man-pages
Compare commits
36 Commits
fbe71b1b79
...
bd62f2240b
Author | SHA1 | Date |
---|---|---|
Michael Kerrisk | bd62f2240b | |
Alejandro Colomar | c83edb030c | |
Kir Kolyshkin | 29c1f3cf96 | |
Michael Kerrisk | 76dec7bbd4 | |
Alejandro Colomar | f09b616d07 | |
Will Manley | f2ec5c2b1a | |
Michael Kerrisk | ae5cc0dc57 | |
Alejandro Colomar | 7a398162a8 | |
Michael Kerrisk | afaa08a481 | |
Michael Kerrisk | 21b8af1f3c | |
Michael Kerrisk | dc3037bf4d | |
Michael Kerrisk | 8a7dd01825 | |
Jakub Wilk | 515fa99a9a | |
Michael Kerrisk | 54ae7ac441 | |
Alejandro Colomar | 1cca69d3a7 | |
Rodrigo Campos | 3e2656812f | |
Dan Robertson | 6131983d24 | |
Alejandro Colomar | 20c2c5ced3 | |
Michael Kerrisk | f5dfd9a032 | |
Michael Kerrisk | 5fc054ecd9 | |
Viet Than | c9992ba76c | |
Michael Kerrisk | f95aa6f05b | |
Alejandro Colomar | ec415ad970 | |
Štěpán Němec | f05d7043fe | |
Michael Kerrisk | 6b1817e09d | |
Michael Kerrisk | a42acb62df | |
Richard Palethorpe | 136ae439fb | |
Jakub Wilk | bd9aa1b762 | |
Sagar Patel | 85ac075357 | |
Jakub Wilk | 1d32ab01fc | |
наб | 33e2aa41ff | |
kXuan | 5612f82093 | |
Kir Kolyshkin | 57fb49f9ae | |
Kir Kolyshkin | 36e6250f14 | |
Štěpán Němec | 2f05137b6a | |
Thomas Voss | aa1f53ccf9 |
|
@ -1212,7 +1212,7 @@ riscv (since Linux 5.1).
|
||||||
* 4. print number of received TCP/UDP packets every second
|
* 4. print number of received TCP/UDP packets every second
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int sock, map_fd, prog_fd, key;
|
int sock, map_fd, prog_fd, key;
|
||||||
long long value = 0, tcp_cnt, udp_cnt;
|
long long value = 0, tcp_cnt, udp_cnt;
|
||||||
|
|
|
@ -236,7 +236,7 @@ or server-side-copy (in the case of NFS).
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int fd_in, fd_out;
|
int fd_in, fd_out;
|
||||||
struct stat stat;
|
struct stat stat;
|
||||||
|
|
|
@ -346,7 +346,7 @@ will be invoked with the following arguments:
|
||||||
.PP
|
.PP
|
||||||
where
|
where
|
||||||
.I pathname
|
.I pathname
|
||||||
is the absolute pathname of the file specified as the first argument of
|
is the pathname of the file specified as the first argument of
|
||||||
.BR execve (),
|
.BR execve (),
|
||||||
and
|
and
|
||||||
.I arg...
|
.I arg...
|
||||||
|
@ -882,6 +882,7 @@ argv[4]: world
|
||||||
.BR ptrace (2),
|
.BR ptrace (2),
|
||||||
.BR exec (3),
|
.BR exec (3),
|
||||||
.BR fexecve (3),
|
.BR fexecve (3),
|
||||||
|
.BR getauxval (3),
|
||||||
.BR getopt (3),
|
.BR getopt (3),
|
||||||
.BR system (3),
|
.BR system (3),
|
||||||
.BR capabilities (7),
|
.BR capabilities (7),
|
||||||
|
|
|
@ -81,7 +81,7 @@ Preallocating zeroed blocks beyond the end of the file in this manner
|
||||||
is useful for optimizing append workloads.
|
is useful for optimizing append workloads.
|
||||||
.PP
|
.PP
|
||||||
If the
|
If the
|
||||||
.B FALLOC_FL_UNSHARE
|
.B FALLOC_FL_UNSHARE_RANGE
|
||||||
flag is specified in
|
flag is specified in
|
||||||
.IR mode ,
|
.IR mode ,
|
||||||
shared file data extents will be made private to the file to guarantee
|
shared file data extents will be made private to the file to guarantee
|
||||||
|
|
|
@ -358,7 +358,7 @@ slow_path(int *read_a)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int read_a, read_b;
|
int read_a, read_b;
|
||||||
|
|
||||||
|
@ -444,7 +444,7 @@ slow_path(int *read_a)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int read_a, read_b;
|
int read_a, read_b;
|
||||||
|
|
||||||
|
|
|
@ -3762,7 +3762,7 @@ perf_event_open(struct perf_event_attr *hw_event, pid_t pid,
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
struct perf_event_attr pe;
|
struct perf_event_attr pe;
|
||||||
long long count;
|
long long count;
|
||||||
|
|
16
man2/readv.2
16
man2/readv.2
|
@ -243,7 +243,9 @@ If some data was successfully read, it will return the number of bytes read.
|
||||||
If no bytes were read, it will return \-1 and set
|
If no bytes were read, it will return \-1 and set
|
||||||
.IR errno
|
.IR errno
|
||||||
to
|
to
|
||||||
.BR EAGAIN .
|
.BR EAGAIN
|
||||||
|
(but see
|
||||||
|
.BR BUGS ).
|
||||||
Currently, this flag is meaningful only for
|
Currently, this flag is meaningful only for
|
||||||
.BR preadv2 ().
|
.BR preadv2 ().
|
||||||
.TP
|
.TP
|
||||||
|
@ -425,6 +427,18 @@ iov[1].iov_len = strlen(str1);
|
||||||
nwritten = writev(STDOUT_FILENO, iov, 2);
|
nwritten = writev(STDOUT_FILENO, iov, 2);
|
||||||
.EE
|
.EE
|
||||||
.in
|
.in
|
||||||
|
.SH BUGS
|
||||||
|
Linux 5.9 and 5.10 have a bug where
|
||||||
|
.BR preadv2()
|
||||||
|
with the
|
||||||
|
.BR RWF_NOWAIT
|
||||||
|
flag may return 0 even when not at end of file.
|
||||||
|
.\" See
|
||||||
|
.\" <https://lore.kernel.org/linux-fsdevel/fea8b16d-5a69-40f9-b123-e84dcd6e8f2e@www.fastmail.com/T/#u>
|
||||||
|
.\" The bug was introduced in
|
||||||
|
.\" efa8480a831 fs: RWF_NOWAIT should imply IOCB_NOIO
|
||||||
|
.\"and fixed in
|
||||||
|
.\" 06c0444290 mm/filemap.c: generic_file_buffered_read() now uses find_get_pages_contig
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR pread (2),
|
.BR pread (2),
|
||||||
.BR read (2),
|
.BR read (2),
|
||||||
|
|
|
@ -196,7 +196,7 @@ number of the queued error.
|
||||||
is the origin code of where the error originated.
|
is the origin code of where the error originated.
|
||||||
The other fields are protocol-specific.
|
The other fields are protocol-specific.
|
||||||
The macro
|
The macro
|
||||||
.B SOCK_EE_OFFENDER
|
.B SO_EE_OFFENDER
|
||||||
returns a pointer to the address of the network object
|
returns a pointer to the address of the network object
|
||||||
where the error originated from given a pointer to the ancillary message.
|
where the error originated from given a pointer to the ancillary message.
|
||||||
If this address is not known, the
|
If this address is not known, the
|
||||||
|
|
|
@ -1199,7 +1199,7 @@ install_filter(int syscall_nr, int t_arch, int f_errno)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
if (argc < 5) {
|
if (argc < 5) {
|
||||||
fprintf(stderr, "Usage: "
|
fprintf(stderr, "Usage: "
|
||||||
|
|
|
@ -739,6 +739,22 @@ When allocating the file descriptor in the target,
|
||||||
use the file descriptor number specified in the
|
use the file descriptor number specified in the
|
||||||
.I newfd
|
.I newfd
|
||||||
field.
|
field.
|
||||||
|
.TP
|
||||||
|
.BR SECCOMP_ADDFD_FLAG_SEND " (since Linux 5.14)"
|
||||||
|
.\" commit 0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c
|
||||||
|
Perform the equivalent of
|
||||||
|
.B SECCOMP_IOCTL_NOTIF_ADDFD
|
||||||
|
plus
|
||||||
|
.B SECCOMP_IOCTL_NOTIF_SEND
|
||||||
|
as an atomic operation.
|
||||||
|
On successful invocation, the target process's
|
||||||
|
.I errno
|
||||||
|
will be 0
|
||||||
|
and the return value will be the file descriptor number
|
||||||
|
that was allocated in the target.
|
||||||
|
If allocating the file descriptor in the target fails,
|
||||||
|
the target's system call continues to be blocked
|
||||||
|
until a successful response is sent.
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
.I srcfd
|
.I srcfd
|
||||||
|
@ -801,6 +817,13 @@ Allocating the file descriptor in the target would cause the target's
|
||||||
limit to be exceeded (see
|
limit to be exceeded (see
|
||||||
.BR getrlimit (2)).
|
.BR getrlimit (2)).
|
||||||
.TP
|
.TP
|
||||||
|
.B EBUSY
|
||||||
|
If the flag
|
||||||
|
.B SECCOMP_IOCTL_NOTIF_SEND
|
||||||
|
is used, this means the operation can't proceed until other
|
||||||
|
.B SECCOMP_IOCTL_NOTIF_ADDFD
|
||||||
|
requests are processed.
|
||||||
|
.TP
|
||||||
.B EINPROGRESS
|
.B EINPROGRESS
|
||||||
The user-space notification specified in the
|
The user-space notification specified in the
|
||||||
.I id
|
.I id
|
||||||
|
@ -1085,7 +1108,7 @@ Alternatively, in the
|
||||||
example, the supervisor might use
|
example, the supervisor might use
|
||||||
.BR poll (2)
|
.BR poll (2)
|
||||||
to monitor both the notification file descriptor
|
to monitor both the notification file descriptor
|
||||||
(so as as to discover when the target's
|
(so as to discover when the target's
|
||||||
.BR accept (2)
|
.BR accept (2)
|
||||||
call has been interrupted) and the listening file descriptor
|
call has been interrupted) and the listening file descriptor
|
||||||
(so as to know when a connection is available).
|
(so as to know when a connection is available).
|
||||||
|
@ -1150,6 +1173,14 @@ flag.
|
||||||
.\" calls because it's impossible for the kernel to restart the call
|
.\" calls because it's impossible for the kernel to restart the call
|
||||||
.\" with the right timeout value. I wonder what happens when those
|
.\" with the right timeout value. I wonder what happens when those
|
||||||
.\" system calls are restarted in the scenario we're discussing.)
|
.\" system calls are restarted in the scenario we're discussing.)
|
||||||
|
.PP
|
||||||
|
Furthermore, if the supervisor response is a file descriptor
|
||||||
|
added with
|
||||||
|
.BR SECCOMP_IOCTL_NOTIF_ADDFD ,
|
||||||
|
then the flag
|
||||||
|
.B SECCOMP_ADDFD_FLAG_SEND
|
||||||
|
can be used to atomically add the file descriptor and return that value,
|
||||||
|
making sure no file descriptors are inadvertently leaked into the target.
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
If a
|
If a
|
||||||
.BR SECCOMP_IOCTL_NOTIF_RECV
|
.BR SECCOMP_IOCTL_NOTIF_RECV
|
||||||
|
|
|
@ -93,7 +93,7 @@ specified as NULL cannot fail with the error
|
||||||
.BR EOVERFLOW ,
|
.BR EOVERFLOW ,
|
||||||
even on ABIs where
|
even on ABIs where
|
||||||
.I time_t
|
.I time_t
|
||||||
is a signed 32-bit integer and the clock ticks past the time 2**31
|
is a signed 32-bit integer and the clock reaches or exceeds 2**31 seconds
|
||||||
(2038-01-19 03:14:08 UTC, ignoring leap seconds).
|
(2038-01-19 03:14:08 UTC, ignoring leap seconds).
|
||||||
(POSIX.1 permits, but does not require, the
|
(POSIX.1 permits, but does not require, the
|
||||||
.B EOVERFLOW
|
.B EOVERFLOW
|
||||||
|
|
|
@ -39,7 +39,7 @@ tkill, tgkill \- send a signal to a thread
|
||||||
.PP
|
.PP
|
||||||
.B #include <signal.h>
|
.B #include <signal.h>
|
||||||
.PP
|
.PP
|
||||||
.BI "int tgkill, pid_t " tgid ", pid_t " tid ", int " sig );
|
.BI "int tgkill(pid_t " tgid ", pid_t " tid ", int " sig );
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
.IR Note :
|
.IR Note :
|
||||||
|
|
|
@ -455,6 +455,15 @@ was caught; see
|
||||||
The
|
The
|
||||||
.I options
|
.I options
|
||||||
argument was invalid.
|
argument was invalid.
|
||||||
|
.TP
|
||||||
|
.B ESRCH
|
||||||
|
(for
|
||||||
|
.BR wait ()
|
||||||
|
or
|
||||||
|
.BR waitpid ())
|
||||||
|
.I pid
|
||||||
|
is equal to
|
||||||
|
.BR INT_MIN .
|
||||||
.SH CONFORMING TO
|
.SH CONFORMING TO
|
||||||
SVr4, 4.3BSD, POSIX.1-2001.
|
SVr4, 4.3BSD, POSIX.1-2001.
|
||||||
.SH NOTES
|
.SH NOTES
|
||||||
|
|
|
@ -124,7 +124,7 @@ compmi(const void *m1, const void *m2)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
qsort(months, nr_of_months, sizeof(months[0]), compmi);
|
qsort(months, nr_of_months, sizeof(months[0]), compmi);
|
||||||
for (int i = 1; i < argc; i++) {
|
for (int i = 1; i < argc; i++) {
|
||||||
|
|
|
@ -287,6 +287,7 @@ could not be found from the case where the value corresponding to
|
||||||
.I type
|
.I type
|
||||||
was zero.
|
was zero.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
|
.BR execve (2),
|
||||||
.BR secure_getenv (3),
|
.BR secure_getenv (3),
|
||||||
.BR vdso (7),
|
.BR vdso (7),
|
||||||
.BR ld\-linux.so (8)
|
.BR ld\-linux.so (8)
|
||||||
|
|
|
@ -491,7 +491,7 @@ with most of its features.
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
int digit_optind = 0;
|
int digit_optind = 0;
|
||||||
|
|
|
@ -160,7 +160,7 @@ The following program expects suboptions following a "\-o" option.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
enum {
|
enum {
|
||||||
RO_OPT = 0,
|
RO_OPT = 0,
|
||||||
|
|
|
@ -115,7 +115,7 @@ is the same as
|
||||||
except that it outputs to a file descriptor,
|
except that it outputs to a file descriptor,
|
||||||
.IR fd ,
|
.IR fd ,
|
||||||
instead of to a
|
instead of to a
|
||||||
.I stdio
|
.BR stdio (3)
|
||||||
stream.
|
stream.
|
||||||
.PP
|
.PP
|
||||||
The functions
|
The functions
|
||||||
|
|
|
@ -180,7 +180,7 @@ threadfunc(void *parm)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
|
@ -64,6 +64,11 @@ T} Thread safety MT-Safe
|
||||||
.hy
|
.hy
|
||||||
.ad
|
.ad
|
||||||
.sp 1
|
.sp 1
|
||||||
|
.SH NOTES
|
||||||
|
In cases where the input buffer may not contain
|
||||||
|
a terminating null byte,
|
||||||
|
.BR strnlen (3)
|
||||||
|
should be used instead.
|
||||||
.SH CONFORMING TO
|
.SH CONFORMING TO
|
||||||
POSIX.1-2001, POSIX.1-2008, C89, C99, C11, SVr4, 4.3BSD.
|
POSIX.1-2001, POSIX.1-2008, C89, C99, C11, SVr4, 4.3BSD.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
|
|
|
@ -61,6 +61,13 @@ but ignores the case of both arguments.
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
These functions return a pointer to the beginning of the
|
These functions return a pointer to the beginning of the
|
||||||
located substring, or NULL if the substring is not found.
|
located substring, or NULL if the substring is not found.
|
||||||
|
.PP
|
||||||
|
If
|
||||||
|
.I needle
|
||||||
|
is the empty string,
|
||||||
|
the return value is always
|
||||||
|
.I haystack
|
||||||
|
itself.
|
||||||
.SH ATTRIBUTES
|
.SH ATTRIBUTES
|
||||||
For an explanation of the terms used in this section, see
|
For an explanation of the terms used in this section, see
|
||||||
.BR attributes (7).
|
.BR attributes (7).
|
||||||
|
|
|
@ -56,6 +56,11 @@ T} Thread safety MT-Safe
|
||||||
.hy
|
.hy
|
||||||
.ad
|
.ad
|
||||||
.sp 1
|
.sp 1
|
||||||
|
.SH NOTES
|
||||||
|
In cases where the input buffer may not contain
|
||||||
|
a terminating null wide character,
|
||||||
|
.BR wcsnlen (3)
|
||||||
|
should be used instead.
|
||||||
.SH CONFORMING TO
|
.SH CONFORMING TO
|
||||||
POSIX.1-2001, POSIX.1-2008, C99.
|
POSIX.1-2001, POSIX.1-2008, C99.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
|
|
|
@ -240,7 +240,7 @@ is approximately that of "ls [a-c]*.c".
|
||||||
#include <wordexp.h>
|
#include <wordexp.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
wordexp_t p;
|
wordexp_t p;
|
||||||
char **w;
|
char **w;
|
||||||
|
|
|
@ -5606,7 +5606,7 @@ first.
|
||||||
.IR /proc/sys/vm/sysctl_hugetlb_shm_group " (since Linux 2.6.7)"
|
.IR /proc/sys/vm/sysctl_hugetlb_shm_group " (since Linux 2.6.7)"
|
||||||
This writable file contains a group ID that is allowed
|
This writable file contains a group ID that is allowed
|
||||||
to allocate memory using huge pages.
|
to allocate memory using huge pages.
|
||||||
If a process has a filesystem group ID or any supplememtary group ID that
|
If a process has a filesystem group ID or any supplementary group ID that
|
||||||
matches this group ID,
|
matches this group ID,
|
||||||
then it can make huge-page allocations without holding the
|
then it can make huge-page allocations without holding the
|
||||||
.BR CAP_IPC_LOCK
|
.BR CAP_IPC_LOCK
|
||||||
|
|
|
@ -48,7 +48,7 @@ C program \f(CW\(aq\eX\(aq\fP escapes are noted.
|
||||||
.ft CW
|
.ft CW
|
||||||
\}
|
\}
|
||||||
.TS
|
.TS
|
||||||
l l l l l l l l.
|
l l l l | l l l l.
|
||||||
Oct Dec Hex Char Oct Dec Hex Char
|
Oct Dec Hex Char Oct Dec Hex Char
|
||||||
_
|
_
|
||||||
000 0 00 NUL \(aq\e0\(aq (null character) 100 64 40 @
|
000 0 00 NUL \(aq\e0\(aq (null character) 100 64 40 @
|
||||||
|
|
|
@ -215,7 +215,7 @@ Lock memory
|
||||||
.BR shmctl (2));
|
.BR shmctl (2));
|
||||||
.IP *
|
.IP *
|
||||||
Allocate memory using huge pages
|
Allocate memory using huge pages
|
||||||
.RB ( memfd_create (2)
|
.RB ( memfd_create (2),
|
||||||
.BR mmap (2),
|
.BR mmap (2),
|
||||||
.BR shmctl (2)).
|
.BR shmctl (2)).
|
||||||
.PD 0
|
.PD 0
|
||||||
|
@ -349,6 +349,13 @@ write a group ID mapping in a user namespace (see
|
||||||
.TP
|
.TP
|
||||||
.BR CAP_SETFCAP " (since Linux 2.6.24)"
|
.BR CAP_SETFCAP " (since Linux 2.6.24)"
|
||||||
Set arbitrary capabilities on a file.
|
Set arbitrary capabilities on a file.
|
||||||
|
.IP
|
||||||
|
.\" commit db2e718a47984b9d71ed890eb2ea36ecf150de18
|
||||||
|
Since Linux 5.12, this capability is
|
||||||
|
also needed to map UID 0 (as in
|
||||||
|
.IR "unshare \-Ur" ;
|
||||||
|
see
|
||||||
|
.BR unshare (1)).
|
||||||
.TP
|
.TP
|
||||||
.B CAP_SETPCAP
|
.B CAP_SETPCAP
|
||||||
If file capabilities are supported (i.e., since Linux 2.6.24):
|
If file capabilities are supported (i.e., since Linux 2.6.24):
|
||||||
|
|
|
@ -1069,7 +1069,7 @@ $ \fBmkdir \-p /home/user/testdir\fP # In another terminal
|
||||||
#define BUF_SIZE 256
|
#define BUF_SIZE 256
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int fd, ret, event_fd, mount_fd;
|
int fd, ret, event_fd, mount_fd;
|
||||||
ssize_t len, path_len;
|
ssize_t len, path_len;
|
||||||
|
|
|
@ -97,7 +97,7 @@ If the
|
||||||
.I flags
|
.I flags
|
||||||
argument of the call specifies one or more of the
|
argument of the call specifies one or more of the
|
||||||
.B CLONE_NEW*
|
.B CLONE_NEW*
|
||||||
flags listed below, then new namespaces are created for each flag,
|
flags listed above, then new namespaces are created for each flag,
|
||||||
and the child process is made a member of those namespaces.
|
and the child process is made a member of those namespaces.
|
||||||
(This system call also implements a number of features
|
(This system call also implements a number of features
|
||||||
unrelated to namespaces.)
|
unrelated to namespaces.)
|
||||||
|
@ -119,7 +119,7 @@ If the
|
||||||
.I flags
|
.I flags
|
||||||
argument of the call specifies one or more of the
|
argument of the call specifies one or more of the
|
||||||
.B CLONE_NEW*
|
.B CLONE_NEW*
|
||||||
flags listed below, then new namespaces are created for each flag,
|
flags listed above, then new namespaces are created for each flag,
|
||||||
and the calling process is made a member of those namespaces.
|
and the calling process is made a member of those namespaces.
|
||||||
(This system call also implements a number of features
|
(This system call also implements a number of features
|
||||||
unrelated to namespaces.)
|
unrelated to namespaces.)
|
||||||
|
|
|
@ -63,7 +63,7 @@ argument).
|
||||||
The current working directory is inherited from the parent, and can
|
The current working directory is inherited from the parent, and can
|
||||||
be changed by use of the
|
be changed by use of the
|
||||||
.BR chdir (2)
|
.BR chdir (2)
|
||||||
system call.)
|
system call.
|
||||||
.PP
|
.PP
|
||||||
Pathnames starting with a \(aq/\(aq character are called absolute pathnames.
|
Pathnames starting with a \(aq/\(aq character are called absolute pathnames.
|
||||||
Pathnames not starting with a \(aq/\(aq are called relative pathnames.
|
Pathnames not starting with a \(aq/\(aq are called relative pathnames.
|
||||||
|
|
|
@ -968,7 +968,7 @@ The following functions are present:
|
||||||
.IR fcvt ()
|
.IR fcvt ()
|
||||||
.IR ftime ()
|
.IR ftime ()
|
||||||
.IR gcvt ()
|
.IR gcvt ()
|
||||||
.IR getcwd ()
|
.IR getwd ()
|
||||||
.IR index ()
|
.IR index ()
|
||||||
.IR mktemp ()
|
.IR mktemp ()
|
||||||
.IR rindex ()
|
.IR rindex ()
|
||||||
|
|
|
@ -577,6 +577,12 @@ or be in the parent user namespace of the process
|
||||||
The mapped user IDs (group IDs) must in turn have a mapping
|
The mapped user IDs (group IDs) must in turn have a mapping
|
||||||
in the parent user namespace.
|
in the parent user namespace.
|
||||||
.IP 4.
|
.IP 4.
|
||||||
|
.\" commit db2e718a47984b9d71ed890eb2ea36ecf150de18
|
||||||
|
If a writing process is root (i.e., UID 0) trying to map host user ID 0,
|
||||||
|
it must have the
|
||||||
|
.B CAP_SETFCAP
|
||||||
|
capability (since Linux 5.12).
|
||||||
|
.IP 5.
|
||||||
One of the following two cases applies:
|
One of the following two cases applies:
|
||||||
.RS
|
.RS
|
||||||
.IP * 3
|
.IP * 3
|
||||||
|
@ -1383,4 +1389,4 @@ main(int argc, char *argv[])
|
||||||
.BR pid_namespaces (7)
|
.BR pid_namespaces (7)
|
||||||
.PP
|
.PP
|
||||||
The kernel source file
|
The kernel source file
|
||||||
.IR Documentation/namespaces/resource\-control.txt .
|
.IR Documentation/admin\-guide/namespaces/resource\-control.rst .
|
||||||
|
|
10
man7/vdso.7
10
man7/vdso.7
|
@ -256,7 +256,6 @@ it's best to refer to the public documentation:
|
||||||
http://docs.blackfin.uclinux.org/doku.php?id=linux\-kernel:fixed\-code
|
http://docs.blackfin.uclinux.org/doku.php?id=linux\-kernel:fixed\-code
|
||||||
.SS mips functions
|
.SS mips functions
|
||||||
.\" See linux/arch/mips/vdso/vdso.ld.S
|
.\" See linux/arch/mips/vdso/vdso.ld.S
|
||||||
.PP
|
|
||||||
The table below lists the symbols exported by the vDSO.
|
The table below lists the symbols exported by the vDSO.
|
||||||
.if t \{\
|
.if t \{\
|
||||||
.ft CW
|
.ft CW
|
||||||
|
@ -371,6 +370,7 @@ symbol version
|
||||||
_
|
_
|
||||||
__kernel_clock_getres LINUX_2.6.15
|
__kernel_clock_getres LINUX_2.6.15
|
||||||
__kernel_clock_gettime LINUX_2.6.15
|
__kernel_clock_gettime LINUX_2.6.15
|
||||||
|
__kernel_clock_gettime64 LINUX_5.11
|
||||||
__kernel_datapage_offset LINUX_2.6.15
|
__kernel_datapage_offset LINUX_2.6.15
|
||||||
__kernel_get_syscall_map LINUX_2.6.15
|
__kernel_get_syscall_map LINUX_2.6.15
|
||||||
__kernel_get_tbfreq LINUX_2.6.15
|
__kernel_get_tbfreq LINUX_2.6.15
|
||||||
|
@ -386,7 +386,9 @@ __kernel_sync_dicache_p5 LINUX_2.6.15
|
||||||
.ft P
|
.ft P
|
||||||
\}
|
\}
|
||||||
.PP
|
.PP
|
||||||
The
|
In kernel versions before Linux 5.6,
|
||||||
|
.\" commit 654abc69ef2e69712e6d4e8a6cb9292b97a4aa39
|
||||||
|
the
|
||||||
.B CLOCK_REALTIME_COARSE
|
.B CLOCK_REALTIME_COARSE
|
||||||
and
|
and
|
||||||
.B CLOCK_MONOTONIC_COARSE
|
.B CLOCK_MONOTONIC_COARSE
|
||||||
|
@ -424,7 +426,9 @@ __kernel_sync_dicache_p5 LINUX_2.6.15
|
||||||
.ft P
|
.ft P
|
||||||
\}
|
\}
|
||||||
.PP
|
.PP
|
||||||
The
|
In kernel versions before Linux 4.16,
|
||||||
|
.\" commit 5c929885f1bb4b77f85b1769c49405a0e0f154a1
|
||||||
|
the
|
||||||
.B CLOCK_REALTIME_COARSE
|
.B CLOCK_REALTIME_COARSE
|
||||||
and
|
and
|
||||||
.B CLOCK_MONOTONIC_COARSE
|
.B CLOCK_MONOTONIC_COARSE
|
||||||
|
|
|
@ -24,7 +24,7 @@ EX_USAGE=64;
|
||||||
# C
|
# C
|
||||||
|
|
||||||
# sed_rm_ccomments() removes C comments.
|
# sed_rm_ccomments() removes C comments.
|
||||||
# It can't handle multiple comments in a sinlge line correctly,
|
# It can't handle multiple comments in a single line correctly,
|
||||||
# nor mixed or embedded //... and /*...*/ comments.
|
# nor mixed or embedded //... and /*...*/ comments.
|
||||||
# Use as a filter (see man_lsfunc() in this file).
|
# Use as a filter (see man_lsfunc() in this file).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue