]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
3 years agofanotify_init.2, fanotify_mark.2: Document unprivileged listener
Matthew Bobrowski [Sat, 20 Nov 2021 17:12:50 +0000 (19:12 +0200)] 
fanotify_init.2, fanotify_mark.2: Document unprivileged listener

Document the limited fanotify functionality that will be available for
unprivileged users from kernel v5.13.

Signed-off-by: Matthew Bobrowski <mbobrowski@mbobrowski.org>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agobash_aliases: grep_*(): Optimize
Alejandro Colomar [Sun, 14 Nov 2021 13:54:24 +0000 (14:54 +0100)] 
bash_aliases: grep_*(): Optimize

Using grep first to reduce the files on which pcregrep is run
optimizes considerably the performance of these functions.

If a file doesn't contain the name of a function,
which can easily be checked with grep,
it won't possibly contain the function prototype or definition,
which is much slower to search,
since it implies multiline pcregrep search.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoman-pages.7: Add phrasal semantic newlines advise
Alejandro Colomar [Fri, 12 Nov 2021 21:38:11 +0000 (22:38 +0100)] 
man-pages.7: Add phrasal semantic newlines advise

Brian W. Kernighan, 1974 [UNIX For Beginners]:

[
Hints for Preparing Documents

Most documents go through several versions
(always more than you expected)
before they are finally finished.
Accordingly,
you should do whatever possible
to make the job of changing them easy.

First,
when you do the purely mechanical operations of typing,
type so subsequent editing will be easy.
Start each sentence on a new line.
Make lines short,
and break lines at natural places,
such as after commas and semicolons,
rather than randomly.
Since most people change documents
by rewriting phrases and
adding, deleting and rearranging sentences,
these precautions simplify any editing you have to do later.
]

He mentioned phrases,
and they are indeed commonly the operands of patches
(see this patch's changes (the second part) as an example),
so they make for a much better breaking point than random
within a clause that is too long to fit a line.

The downside is that they are more difficult to automatically spot
than clause breaks (which tend to have associated punctuation).
But we are humans writing patches,
not machines,
and therefore we should be able to decide and detect them better.

Link: <https://rhodesmill.org/brandon/2012/one-sentence-per-line/>
Cc: G. Branden Robinson <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoman-pages.7: Update nonbreaking space advice
G. Branden Robinson [Fri, 12 Nov 2021 21:50:14 +0000 (08:50 +1100)] 
man-pages.7: Update nonbreaking space advice

* Advise usage of \~ escape instead of \SPACE; the former, a groff
  extension from circa 1990, has been supported by Heirloom Doctools
  troff since 2005 and by mandoc since 2019.  The advantage is that
  \~ is an _adjustable_ non-breaking space, so it will typeset
  non-jarringly both in .EX/.EE examples when filling is off, and in
  normal running text (which is filled).

See linux-man@ list discussion at
<https://lore.kernel.org/linux-man/\
20210729115508.pt6btsqd7g5tuhg6@localhost.localdomain/> and follow-ups.

Signed-off-by: G. Branden Robinson <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotcp.7: Minor tweaks to Wei's patch
Alejandro Colomar [Fri, 12 Nov 2021 20:48:57 +0000 (21:48 +0100)] 
tcp.7: Minor tweaks to Wei's patch

- wsfix
- Boldface literals (see groff_man(7)).
- Replace '\ ' by \~, per Branden's advise.
- Use phrasal semantic newlines.
- Put '...' in a C comment, to avoid interfering with groff.
  It has the side effect that the code example is pure C now.
- Remove incorrect trailing '.IP'.

Cc: Wei Wang <weiwan@google.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotcp.7: Add description for TCP_FASTOPEN and TCP_FASTOPEN_CONNECT options
Wei Wang [Fri, 24 Sep 2021 23:54:56 +0000 (16:54 -0700)] 
tcp.7: Add description for TCP_FASTOPEN and TCP_FASTOPEN_CONNECT options

TCP_FASTOPEN socket option was added by:
commit 8336886f786fdacbc19b719c1f7ea91eb70706d4
TCP_FASTOPEN_CONNECT socket option was added by the following patch
series:
commit 065263f40f0972d5f1cd294bb0242bd5aa5f06b2
commit 25776aa943401662617437841b3d3ea4693ee98a
commit 19f6d3f3c8422d65b5e3d2162e30ef07c6e21ea2
commit 3979ad7e82dfe3fb94a51c3915e64ec64afa45c3
Add detailed description for these 2 options.
Also add descriptions for /proc entry tcp_fastopen and tcp_fastopen_key.

Signed-off-by: Wei Wang <weiwan@google.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoman7: unify socket examples
Jeremy Kerr [Thu, 11 Nov 2021 02:03:07 +0000 (10:03 +0800)] 
man7: unify socket examples

The udp, tcp and x25 man pages' synopses list the socket() example as
all bold, but the socket varname should be italicised. This change
unifies these with the example in socket.7

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoquotactl.2: Remove kernel version for Q_XQUOTARM ioctl
Yang Xu [Wed, 20 Oct 2021 01:46:26 +0000 (09:46 +0800)] 
quotactl.2: Remove kernel version for Q_XQUOTARM ioctl

This patch[1] is designed to fix bug for Q_XQUOTARM ioctl not for introduced.
So remove it.

[1]https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9da93f9b7c

Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agolandlock_add_rule.2, landlock_create_ruleset.2, landlock_restrict_self.2, landlock...
Alejandro Colomar [Wed, 3 Nov 2021 14:12:43 +0000 (15:12 +0100)] 
landlock_add_rule.2, landlock_create_ruleset.2, landlock_restrict_self.2, landlock.7: Minor tweaks to Mickaël's patches

- exit(EXIT_FAILURE) instead of return 1, for consistency with the
  rest of the manual pages.
- Use old declarations: variables defined at the top, separate
  from code.  Initialization other than zero doesn't belong there.
- Don't break URIs in weird ways (a trailing slash on a new line
  would be weird).
- Break URIs after the slash; not before.  Per Branden's advise.
- Use uint32_t instead of __u32 in prototypes.
- tfix
- A few semantic newline improvements.
- ffix

Cc: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agolandlock_restrict_self.2: Document new syscall
Mickaël Salaün [Wed, 18 Aug 2021 15:59:31 +0000 (17:59 +0200)] 
landlock_restrict_self.2: Document new syscall

This is an adaptation of
https://www.kernel.org/doc/html/v5.13/userspace-api/landlock.html

Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
Link: https://lore.kernel.org/r/20210818155931.484070-5-mic@digikod.net
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agolandlock_add_rule.2: Document new syscall
Mickaël Salaün [Wed, 18 Aug 2021 15:59:30 +0000 (17:59 +0200)] 
landlock_add_rule.2: Document new syscall

This is an adaptation of
https://www.kernel.org/doc/html/v5.13/userspace-api/landlock.html

Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
Link: https://lore.kernel.org/r/20210818155931.484070-4-mic@digikod.net
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agolandlock_create_ruleset.2: Document new syscall
Mickaël Salaün [Wed, 18 Aug 2021 15:59:29 +0000 (17:59 +0200)] 
landlock_create_ruleset.2: Document new syscall

This is an adaptation of
https://www.kernel.org/doc/html/v5.13/userspace-api/landlock.html

Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
Link: https://lore.kernel.org/r/20210818155931.484070-3-mic@digikod.net
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agolandlock.7: Add a new page to introduce Landlock
Mickaël Salaün [Wed, 18 Aug 2021 15:59:28 +0000 (17:59 +0200)] 
landlock.7: Add a new page to introduce Landlock

From the user point of view, Landlock is a set of system calls enabling
to build and enforce a set of access-control rules.  A ruleset can be
created with landlock_create_ruleset(2), populated with
landlock_add_rule(2) and enforced with landlock_restrict_self(2).  This
man page gives an overview of the whole mechanism.  Details of these
system calls are documented in their respective man pages.

This is an adaptation of
https://www.kernel.org/doc/html/v5.13/userspace-api/landlock.html

Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
Link: https://lore.kernel.org/r/20210818155931.484070-2-mic@digikod.net
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agosystem.3: It doesn't call fork anymore
Alejandro Colomar [Tue, 2 Nov 2021 09:55:53 +0000 (10:55 +0100)] 
system.3: It doesn't call fork anymore

Reported-by: Michael Kearney <mikekearney85@hotmail.com>
Cc: Adhemerval Zanella <zatrazz@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoquotactl.2: Use correct limits for vfsv1 format
Yang Xu [Wed, 20 Oct 2021 08:33:14 +0000 (16:33 +0800)] 
quotactl.2: Use correct limits for vfsv1 format

According to kernel code and the following patch, the maximum
quota limit setting should be 2^63 -1 instead of 2^64.

[1] <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=7e08da5>

Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoioctl.2: SEE ALSO: Add ioctl_ficlone
Benjamin Peterson [Wed, 27 Oct 2021 21:07:32 +0000 (14:07 -0700)] 
ioctl.2: SEE ALSO: Add ioctl_ficlone

Signed-off-by: Benjamin Peterson <benjamin@python.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agopow.3: RETURN VALUE: Clarify that -0.0 is a valid underflow result
Alejandro Colomar [Wed, 27 Oct 2021 20:01:41 +0000 (22:01 +0200)] 
pow.3: RETURN VALUE: Clarify that -0.0 is a valid underflow result

The standards are a bit unclear (or I couldn't find it), but
Joseph confirmed that glibc documents this behavior, and
M. Welinder tested that Solaris also behaves in the same way.

Reported-by: M. Welinder <mwelinder@gmail.com>
Bug: 214815 <https://bugzilla.kernel.org/show_bug.cgi?id=214815>
Cc: Joseph Myers <joseph@codesourcery.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agopow.3: RETURN VALUE: Reorder special cases as in the standard
Alejandro Colomar [Tue, 26 Oct 2021 11:36:16 +0000 (13:36 +0200)] 
pow.3: RETURN VALUE: Reorder special cases as in the standard

Use the following order:

- Success
- Over/Underflow
- Special cases specified by the standard (in the same order)
- Other special cases not specified by the standard.

This way it's easier to compare this document against the standard
to check for any mistakes or differences.

I also added a comment at the beginning of each case, to more
clearly delimit special cases, with a syntax that is easy to read
(a mix of C, mathematical language, ...).  We may want to use
those as tagged paragraphs.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Cc: M. Welinder <mwelinder@gmail.com>
3 years agoclock_nanosleep.2: tfix CLOCK_BOOTTIME
Melker Narikka [Mon, 25 Oct 2021 18:28:43 +0000 (21:28 +0300)] 
clock_nanosleep.2: tfix CLOCK_BOOTTIME

Signed-off-by: Melker Narikka <meklu@meklu.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agogetgrouplist.3: wfix
Alejandro Colomar [Mon, 25 Oct 2021 19:45:49 +0000 (21:45 +0200)] 
getgrouplist.3: wfix

Reported-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agogetgrouplist.3: Place variable definitions on top of function
Alejandro Colomar [Mon, 25 Oct 2021 19:44:37 +0000 (21:44 +0200)] 
getgrouplist.3: Place variable definitions on top of function

Reported-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotzset.3: tfix
Alejandro Colomar [Thu, 7 Oct 2021 21:21:13 +0000 (23:21 +0200)] 
tzset.3: tfix

Reported-by: Stefan Puiu <stefan.puiu@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agomsgctl.2: tfix
Alejandro Colomar [Thu, 7 Oct 2021 21:10:01 +0000 (23:10 +0200)] 
msgctl.2: tfix

Reported-by: Jayprakash Ray <r.jay3283@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotzset.3: ffix
Jakub Wilk [Thu, 7 Oct 2021 09:09:14 +0000 (11:09 +0200)] 
tzset.3: ffix

Use \- for minus sign

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoscripts/bash_aliases: pdfman(): Generalize the tool
Alejandro Colomar [Wed, 6 Oct 2021 14:15:41 +0000 (16:15 +0200)] 
scripts/bash_aliases: pdfman(): Generalize the tool

Accept man(1) syntax, so that the function can open
system manual pages by [optional] section and page name.

As a side effect, this simplifies the invocation of man(1),
which didn't need '-l'.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agomount.2: note that mandatory locking is now fully deprecated
Jeff Layton [Sun, 3 Oct 2021 12:23:30 +0000 (08:23 -0400)] 
mount.2: note that mandatory locking is now fully deprecated

This support has been fully removed from the kernel as of v5.15.

Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agofcntl.2: note that mandatory locking is fully deprecated as of v5.15
Jeff Layton [Sun, 3 Oct 2021 12:24:18 +0000 (08:24 -0400)] 
fcntl.2: note that mandatory locking is fully deprecated as of v5.15

Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agounix.7: Add a description for ENFILE.
Kuniyuki Iwashima [Wed, 29 Sep 2021 01:38:41 +0000 (10:38 +0900)] 
unix.7: Add a description for ENFILE.

When creating UNIX domain sockets, the kernel used to return -ENOMEM on
error where it should return -ENFILE.  The behaviour has been wrong since
2.2.4 and fixed in the recent commit f4bd73b5a950 ("af_unix: Return errno
instead of NULL in unix_create1().").

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agomadvise.2: Document MADV_POPULATE_READ and MADV_POPULATE_WRITE
David Hildenbrand [Mon, 23 Aug 2021 12:06:45 +0000 (14:06 +0200)] 
madvise.2: Document MADV_POPULATE_READ and MADV_POPULATE_WRITE

MADV_POPULATE_READ and MADV_POPULATE_WRITE have been merged into
upstream Linux via commit 4ca9b3859dac ("mm/madvise: introduce
MADV_POPULATE_(READ|WRITE) to prefault page tables"), part of v5.14-rc1.

Further, commit eb2faa513c24 ("mm/madvise: report SIGBUS as -EFAULT for
MADV_POPULATE_(READ|WRITE)"), part of v5.14-rc6, made sure that SIGBUS is
converted to -EFAULT instead of -EINVAL.

Let's document the behavior and error conditions of these new madvise()
options.

Acked-by: Pankaj Gupta <pankaj.gupta@ionos.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Jann Horn <jannh@google.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Linux API <linux-api@vger.kernel.org>
Cc: linux-mm@kvack.org
Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agorpmatch.3: clarify availability to glibc, Fx, and AIX
наб [Sat, 2 Oct 2021 12:18:54 +0000 (14:18 +0200)] 
rpmatch.3: clarify availability to glibc, Fx, and AIX

"On a few other systems" is misleading, implying that it's available on
/this/ system; this is not strictly true, seeing as musl doesn't have it

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agorpmatch.3: clarify first-character-only FUD
наб [Sat, 2 Oct 2021 12:18:44 +0000 (14:18 +0200)] 
rpmatch.3: clarify first-character-only FUD

It's plain not true as-written ‒ locales can and do provide longer matches
(Aramaic has a "አዎን" alternative, for example) ‒ but it's important to
note that (a) this may be an issue and (b) nonetheless this is the right
way to process this

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agosyscalls.2: Remove duplicate mention of landlock_add_rule.
Günther Noack [Sat, 25 Sep 2021 09:08:03 +0000 (11:08 +0200)] 
syscalls.2: Remove duplicate mention of landlock_add_rule.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agosend.2: Add MSG_FASTOPEN flag
Wei Wang [Fri, 17 Sep 2021 04:16:06 +0000 (21:16 -0700)] 
send.2: Add MSG_FASTOPEN flag

MSG_FASTOPEN flag is available since Linux 3.7. Add detailed description
in the manpage according to RFC7413.

Signed-off-by: Wei Wang <weiwan@google.com>
Reviewed-by: Yuchung Cheng <ycheng@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agopacket.7: Minor tweaks to Ralf's patch
Alejandro Colomar [Mon, 20 Sep 2021 19:18:48 +0000 (21:18 +0200)] 
packet.7: Minor tweaks to Ralf's patch

Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agopacket.7: Describe SOCK_PACKET netif name length issues and workarounds.
Ralf Baechle [Thu, 16 Sep 2021 13:38:23 +0000 (15:38 +0200)] 
packet.7: Describe SOCK_PACKET netif name length issues and workarounds.

Describe the issues with SOCK_PACKET possibly truncating network interface
names in results, solutions and possible workarounds.

While the issue is known for a long time it appears to have never been
properly documented is has started to bite software antiques including
the AX.25 userland badly since the introduction of Predictable Network
Interface Names.  So let's document it.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agolistxattr.2: tfix
Alejandro Colomar [Sun, 19 Sep 2021 19:41:46 +0000 (21:41 +0200)] 
listxattr.2: tfix

Reported-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoalloca.3: simplfy malloc(3) suite comparison, note VLAs
наб [Tue, 14 Sep 2021 12:41:27 +0000 (14:41 +0200)] 
alloca.3: simplfy malloc(3) suite comparison, note VLAs

alloca() is, ex definitione, always faster than any allocator that
actually, well, allocates

Like Alejandro noted, VLAs can provide a less-flexible but sometimes
better-suited solution to the same problem class

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoalloca.3: remove GCC faffling from NOTES
наб [Tue, 14 Sep 2021 12:41:22 +0000 (14:41 +0200)] 
alloca.3: remove GCC faffling from NOTES

Chunks of glibc headers have no place in documenting an interface,
and (__builtin_)alloca() is an intrinsic, not code; those days are,
thankfully, long gone

Also, clarify standards behaviour (and remove the (outdated!)
list of cc(1) switches) regarding when alloca() is allowed to not be
ODR-usable

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoalloca.3: clarify reasoning for no error return in BUGS
наб [Tue, 14 Sep 2021 12:41:16 +0000 (14:41 +0200)] 
alloca.3: clarify reasoning for no error return in BUGS

A stack lasts from some high point until it runs off the back
of the pages allocated, making detecting errors impossible,
save for actually trying to access said unallocated page

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoalloca.3: clarify origins in CONFORMING TO
наб [Tue, 14 Sep 2021 12:41:10 +0000 (14:41 +0200)] 
alloca.3: clarify origins in CONFORMING TO

alloca() is supported by PWB/UNIX[1] (V6) and UNIX/32V[2] (V7),
for the PDP-11 and VAX, respectively; the former trickles into
UNIX System III[3], and the latter into 3BSD[4] and later[5]

1: https://ftp.okass.net/pub/mirror/minnie.tuhs.org/Distributions/USDL/spencer_pwb.tar.gz
   sys/source/s4/util/alloca.s
2: https://ftp.okass.net/pub/mirror/minnie.tuhs.org/Distributions/USDL/32V/32v_usr.tar.gz
   usr/src/libc/sys/alloca.s
3: https://vetusware.com/download/UNIX%20System%20III%20Source%20Code%20SYSIII/?id=11576
4: https://ftp.okass.net/pub/mirror/minnie.tuhs.org/Distributions/UCB/
5: https://archive.org/details/The_CSRG_Archives_CD-ROM_3_August_1998_Marshall_Kirk_McKusick

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agostrdup.3: drop mention of "the GNU GCC suite"
наб [Tue, 14 Sep 2021 12:40:55 +0000 (14:40 +0200)] 
strdup.3: drop mention of "the GNU GCC suite"

str[n]dupa() are available on every modern compiler platform,
incl. Clang, ICC, &c.

By shortening the third paragraph, it now reads
    strdupa() and strndupa() are similar,
    but use alloca(3) to allocate the buffer.
pointing squarely to alloca(3), which is scary enough,
so drop the extraneous warning, too ‒ this clearly points to
"see alloca(3) for the limitations of that allocator".

Plus, it's not like malloc(3) doesn't have its problems, too,
but I don't see those being touted in the first paragraph;
reducing these to the bare minimum,
   strdup() copies into malloc(3) and you can free it with free(3),
   strndup() likewise, but up to n, and
   str[n]dupa() use alloca(3) instead ‒ be wary of what alloca(3) does!
doesn't really make sense ‒ it's obvious that, ex definitione,
alloca(3) suffers from alloca(3) problems and input limits,
just like malloc(3) from the malloc(3) suite's.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
3 years agofutex.2: tfix
Jakub Wilk [Fri, 10 Sep 2021 20:04:28 +0000 (22:04 +0200)] 
futex.2: tfix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotermios.3: srcfix
Alejandro Colomar [Fri, 10 Sep 2021 22:33:12 +0000 (00:33 +0200)] 
termios.3: srcfix

Replace a list with .nf,.ft,.fi requests and hardcoded tabs,
by commonly used (some not so common, such as TQ, but simple)
macros: .RS,.RE,.TP,.TQ,.B

Reported-by: G. Branden Robinson <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agonscd.conf.5: describe reloading, clarifications
Greg Banks [Wed, 4 Aug 2021 13:17:39 +0000 (06:17 -0700)] 
nscd.conf.5: describe reloading, clarifications

- Added a subsection of NOTES describing nscd's reloading behavior
  and providing advice on how to configure it.
- Clarifications for the threads, reload-count, positive-time-to-live,
  check-files, and shared attributes.

Derived by reading the nscd, libresolv and glibc source and some
painful experience.

Signed-off-by: Greg Banks <gbanks@linkedin.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoveth.4: tfix
Alejandro Colomar [Fri, 10 Sep 2021 20:00:11 +0000 (22:00 +0200)] 
veth.4: tfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoveth.4: tfix
Štěpán Němec [Fri, 10 Sep 2021 09:17:25 +0000 (11:17 +0200)] 
veth.4: tfix

Signed-off-by: Štěpán Němec <stepnem@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoioctl_tty.2: Fix information about header include file
Pali Rohár [Tue, 31 Aug 2021 20:28:09 +0000 (22:28 +0200)] 
ioctl_tty.2: Fix information about header include file

Header file termios.h contains incompatible definitions for linux ioctl
calls. Correct definitions are exported by header file linux/termios.h but
this file conflicts with sys/ioctl.h header file (required for ioctl()
call). Therefore include direct asm header file asm/termbits.h which
contains compatible definitions and structures for ioctl calls.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoclone.2: ERRORS: Add EACCESS with CLONE_INTO_CGROUP + clone3
Alejandro Colomar [Fri, 10 Sep 2021 19:33:37 +0000 (21:33 +0200)] 
clone.2: ERRORS: Add EACCESS with CLONE_INTO_CGROUP + clone3

[Andrew]:
I noticed that clone3 can send the EACCES errno after I wrote a
program that used clone3 with the CLONE_INTO_CGROUP flag.
To me, it's important to know what kind of failure occurred if the
clone3() fails, so I was glad that a unique errno is set for
this case, but it wasn't documented on the clone man page.

[Christian]:
In essence, any error that could occur during regular fs-based migration
at write-time can also occur during CLONE_INTO_CGROUP. The clone3()
manpage just has the inverse of that above statement:

"Note that all of the usual restrictions (described in cgroups(7)) on
placing a process into a version 2 cgroup apply."

Reported-by: Andrew Wock <ajwock@gmail.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoprocess_madvise.2: ffix
Alejandro Colomar [Fri, 10 Sep 2021 13:52:17 +0000 (15:52 +0200)] 
process_madvise.2: ffix

And srcfix too

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoprocess_madvise.2: Minor tweaks to Zhangkui's patch
Alejandro Colomar [Fri, 10 Sep 2021 13:50:10 +0000 (15:50 +0200)] 
process_madvise.2: Minor tweaks to Zhangkui's patch

I also fixed surrounding cases to avoid confusion.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoprocess_madvise.2: Add MADV_WILLNEED to process_madvise()
zhangkui [Thu, 5 Aug 2021 04:44:11 +0000 (12:44 +0800)] 
process_madvise.2: Add MADV_WILLNEED to process_madvise()

Add MADV_WILLNEED to process_madvise() for read-ahead swapped
out memory immediately when the app switches to forground.

https://lore.kernel.org/patchwork/patch/1472006/

Signed-off-by: zhangkui <zhangkui@oppo.com>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoioctl_tty.2: Minor tweaks to Pali's patch
Alejandro Colomar [Fri, 10 Sep 2021 13:39:25 +0000 (15:39 +0200)] 
ioctl_tty.2: Minor tweaks to Pali's patch

Cc: Pali Rohár <pali@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoioctl_tty.2: Add example how to get or set baudrate on the serial port
Pali Rohár [Tue, 10 Aug 2021 19:49:28 +0000 (21:49 +0200)] 
ioctl_tty.2: Add example how to get or set baudrate on the serial port

Setting custom baudrate for which is not defined Bnnn constant is possible
via BOTHER flag and then filling speed in c_ospeed and c_ispeed fields.

These two fields are either in struct termios or struct termios2. Former
belongs to TCGETS/TCSETS ioctls, latter to TCGETS2/TCSETS2 ioctls.

BOTHER flag with these two fields and new struct termios2 is not supported
by older versions of include header files.

Some architectures (e.g. amd64) provide both struct termios and struct
termios2, but c_ospeed and c_ispeed are only in struct termios2.

Some other architectures (e.g. alpha) provide both struct termios and struct
termios2 and both have c_ospeed and c_ispeed fields.

And some other architectures (e.g. powerpc) provide only struct termios
(no struct termios2) and it has c_ospeed and c_ispeed fields.

So basically to support all architectures it is needed to use
struct termios2 when TCGETS2/TCSETS2 is supported. Otherwise it is needed
to use struct termios with TCGETS/TCSETS (case for e.g. powerpc).

Setting input baudrate is done via IBSHIFT macro.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agomemfd_secret.2: Minor tweaks to Mike's patch
Alejandro Colomar [Fri, 10 Sep 2021 13:10:11 +0000 (15:10 +0200)] 
memfd_secret.2: Minor tweaks to Mike's patch

Cc: Mike Rapoport <rppt@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agomemfd_secret.2: add NOTES section ...
Mike Rapoport [Thu, 2 Sep 2021 07:50:45 +0000 (10:50 +0300)] 
memfd_secret.2: add NOTES section ...

... that explains the rationale for the system call

Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotermios.3: CIBAUD and IBSHIFT are implemented on Linux, just unsupported by glibc
Pali Rohár [Thu, 2 Sep 2021 23:29:00 +0000 (01:29 +0200)] 
termios.3: CIBAUD and IBSHIFT are implemented on Linux, just unsupported by glibc

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
4 years agoprctl.2: Rewrite the description of PR_SET_SECCOMP to defer to seccomp(2)
Michael Kerrisk [Wed, 1 Sep 2021 22:07:23 +0000 (00:07 +0200)] 
prctl.2: Rewrite the description of PR_SET_SECCOMP to defer to seccomp(2)

There is a lot of unnecessary duplication of content of the seccomp
material in prctl(2) and seccomp(2).  Trevor Woerner also noted that
there is an error in prctl(2), where it says that the filters
"are run in order until the first non-allow result is seen", which
contradicts the correct statement in seccomp(2) that *all* filters
are executed.

So, rewrite the seccomp material in prctl(2) to strip out most of
the content duplicated in seccomp(2), and replace the removed
text with statements deferring to to seccomp(2).

Reported-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoprctl.2: Note that seccomp(2) is preferred over prctl(2) for setting seccomp mode
Michael Kerrisk [Wed, 1 Sep 2021 21:57:17 +0000 (23:57 +0200)] 
prctl.2: Note that seccomp(2) is preferred over prctl(2) for setting seccomp mode

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomalloc.3: Clarify that realloc() may move the memory block
Michael Kerrisk [Tue, 31 Aug 2021 01:26:46 +0000 (03:26 +0200)] 
malloc.3: Clarify that realloc() may move the memory block

Make it clearer, early in the discussion, that realloc()
may move the block.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomalloc.3: wfix
Michael Kerrisk [Tue, 31 Aug 2021 01:25:58 +0000 (03:25 +0200)] 
malloc.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomalloc.3: ffix
Michael Kerrisk [Tue, 31 Aug 2021 01:25:29 +0000 (03:25 +0200)] 
malloc.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomalloc.3: Add some structuring to improve readability
Michael Kerrisk [Tue, 31 Aug 2021 01:24:43 +0000 (03:24 +0200)] 
malloc.3: Add some structuring to improve readability

Add some subsection (.SS) headings and paragraph breaks in
DESCRIPTION, to make the page more easily readable.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomalloc_hook.3: Modernize for glibc 2.34
Paul Eggert [Tue, 10 Aug 2021 19:37:08 +0000 (12:37 -0700)] 
malloc_hook.3: Modernize for glibc 2.34

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomalloc.3: Modernize for glibc 2.34
Paul Eggert [Tue, 10 Aug 2021 19:37:07 +0000 (12:37 -0700)] 
malloc.3: Modernize for glibc 2.34

glibc has tightened up its rules for replacing the memory
allocator.  I went through the malloc man page and looked for how
it documented malloc() and related functions, and fixed
discrepancies with glibc malloc() documentation and/or
implementation.  I also reorganized the portability discussion so
that portability issues can be seen more clearly.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomount_namespaces.7: Update references to Documentation/filesystems/sharedsubtree.rst
Michael Kerrisk [Tue, 31 Aug 2021 01:03:00 +0000 (03:03 +0200)] 
mount_namespaces.7: Update references to Documentation/filesystems/sharedsubtree.rst

Documentation/filesystems/sharedsubtree.txt has changed to
Documentation/filesystems/sharedsubtree.rst.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoproc.5: Fixes various references to kernel docs in Documentation/
Michael Kerrisk [Tue, 31 Aug 2021 01:00:55 +0000 (03:00 +0200)] 
proc.5: Fixes various references to kernel docs in Documentation/

Especially the change to .rst format in the kernel Documentation/
tree has rendered many of the references in this manual page
obsolete. Fix them.

Reported-by: Vito Caputo <vcaputo@pengaru.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agooperator.7: Reorder symbols as in the standard (C11)
Alejandro Colomar [Sat, 28 Aug 2021 12:11:08 +0000 (14:11 +0200)] 
operator.7: Reorder symbols as in the standard (C11)

This makes it easier to compare this page to the standard,
to get more details about the rules between operators.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agooperator.7: Fix precedence of the 'cast operator'
Alejandro Colomar [Sat, 28 Aug 2021 12:11:06 +0000 (14:11 +0200)] 
operator.7: Fix precedence of the 'cast operator'

Unary operators are mentioned in C11::6.5.3, and casts are in
C11::6.5.4 (they are mentioned in order of precedence).

And from note 85 (in section 6.5) in that same C11 standard, major
subsections 6.5.X are sorted by precedence.

As an example (from Jakub), `sizeof(int)+1` is interpreted as
`(sizeof(int))+1`, and not `sizeof((int)+1)`.

I used C11 and not C18 (the latest) because at least in the draft
copy of C18 that I have, there are a few important typos in that
section, while the draft copy of C11 that I have is free of those
typos.  And C11 and C18 are almost identical, with no major
changes to the language.

Reported-by: David Sletten <david.paul.sletten@gmail.com>
Cc: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotermios.3: Use bold style for B0
Pali Rohár [Mon, 30 Aug 2021 11:27:11 +0000 (13:27 +0200)] 
termios.3: Use bold style for B0

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotermios.3: wfix
Michael Kerrisk [Tue, 31 Aug 2021 00:24:39 +0000 (02:24 +0200)] 
termios.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotermios.3: Clarify zero argument for cfsetispeed()
Pali Rohár [Mon, 30 Aug 2021 11:25:52 +0000 (13:25 +0200)] 
termios.3: Clarify zero argument for cfsetispeed()

Zero in this case refers to literal constant 0 and not symbolic
constant B0.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges.old: tfix
Michael Kerrisk [Tue, 31 Aug 2021 00:00:46 +0000 (02:00 +0200)] 
Changes.old: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexit_group.2: Remove a confusing reference to _exit(2) in DESCRIPTION
Michael Kerrisk [Mon, 30 Aug 2021 21:42:16 +0000 (23:42 +0200)] 
exit_group.2: Remove a confusing reference to _exit(2) in DESCRIPTION

As noted by Jakub:

    BTW, the exit_group.2 man page could use an update (possibly
    by merging it into exit.2): it says that the "system
    call is is equivalent to _exit(2) except that it terminates
    not only the calling thread, but all threads in the calling
    process's thread group", which isn't helpful these days.

Reported-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexit_group.2: SEE ALSO: s/exit(2)/_exit(2)/
Michael Kerrisk [Mon, 30 Aug 2021 21:38:44 +0000 (23:38 +0200)] 
exit_group.2: SEE ALSO: s/exit(2)/_exit(2)/

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years ago_exit.2: Clarify the distinction between the raw syscall and the wrapper function
Michael Kerrisk [Mon, 30 Aug 2021 21:36:42 +0000 (23:36 +0200)] 
_exit.2: Clarify the distinction between the raw syscall and the wrapper function

Further clarify the difference between the raw _exit() system call
and the C library wrapper.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_tty.2: TIOCGSID is equivalent to tcgetsid()
Pali Rohár [Mon, 30 Aug 2021 16:08:57 +0000 (18:08 +0200)] 
ioctl_tty.2: TIOCGSID is equivalent to tcgetsid()

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges.old: tfix
Michael Kerrisk [Fri, 27 Aug 2021 21:13:58 +0000 (23:13 +0200)] 
Changes.old: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosyscalls.2: Add Linux 5.14 system calls
Michael Kerrisk [Fri, 27 Aug 2021 20:41:43 +0000 (22:41 +0200)] 
syscalls.2: Add Linux 5.14 system calls

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomemfd_secret.2: SEE ALSO: add memfd_create(2)
Michael Kerrisk [Mon, 16 Aug 2021 06:47:23 +0000 (08:47 +0200)] 
memfd_secret.2: SEE ALSO: add memfd_create(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomemfd_create.2: SEE ALSO: add memfd_secret(2)
Michael Kerrisk [Mon, 16 Aug 2021 06:46:56 +0000 (08:46 +0200)] 
memfd_create.2: SEE ALSO: add memfd_secret(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomemfd_secret.2: Minor edits to Mike Rapoport's patch
Michael Kerrisk [Mon, 16 Aug 2021 06:35:59 +0000 (08:35 +0200)] 
memfd_secret.2: Minor edits to Mike Rapoport's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomemfd_secret.2: wfix
Michael Kerrisk [Mon, 16 Aug 2021 06:33:52 +0000 (08:33 +0200)] 
memfd_secret.2: wfix

Added "RAM-based" after consultation with Mike Rapoport

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomemfd_secret.2: New page describing memfd_secret() system call
Mike Rapoport [Sun, 15 Aug 2021 06:46:48 +0000 (09:46 +0300)] 
memfd_secret.2: New page describing memfd_secret() system call

Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges.old: tfix in 5.13 changelog
Michael Kerrisk [Fri, 27 Aug 2021 20:32:40 +0000 (22:32 +0200)] 
Changes.old: tfix in 5.13 changelog

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges.old: tfix
Michael Kerrisk [Fri, 27 Aug 2021 20:24:57 +0000 (22:24 +0200)] 
Changes.old: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges.old: Add missing entry in 5.13 changelog
Michael Kerrisk [Fri, 27 Aug 2021 20:15:28 +0000 (22:15 +0200)] 
Changes.old: Add missing entry in 5.13 changelog

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoStart of man-pages-5.14: updating Changes and Changes.old
Michael Kerrisk [Fri, 27 Aug 2021 20:13:35 +0000 (22:13 +0200)] 
Start of man-pages-5.14: updating Changes and Changes.old

4 years agoStart of man-pages-5.14: updating .Announce and .lsm files
Michael Kerrisk [Fri, 27 Aug 2021 20:13:35 +0000 (22:13 +0200)] 
Start of man-pages-5.14: updating .Announce and .lsm files

4 years agoStart of man-pages-5.14: renaming .Announce and .lsm files
Michael Kerrisk [Fri, 27 Aug 2021 20:13:35 +0000 (22:13 +0200)] 
Start of man-pages-5.14: renaming .Announce and .lsm files

4 years agoReady for 5.13 man-pages-5.13
Michael Kerrisk [Fri, 27 Aug 2021 00:50:30 +0000 (02:50 +0200)] 
Ready for 5.13

4 years agoiconv.1, ldd.1, accept.2, access.2, add_key.2, arch_prctl.2, bpf.2, chmod.2, chown...
Michael Kerrisk [Fri, 27 Aug 2021 00:44:07 +0000 (02:44 +0200)] 
iconv.1, ldd.1, accept.2, access.2, add_key.2, arch_prctl.2, bpf.2, chmod.2, chown.2, close_range.2, copy_file_range.2, execve.2, execveat.2, fanotify_mark.2, futex.2, futimesat.2, getpriority.2, intro.2, ioctl_tty.2, keyctl.2, link.2, membarrier.2, mkdir.2, mknod.2, mlock.2, mount.2, mount_setattr.2, open.2, open_by_handle_at.2, perf_event_open.2, pidfd_open.2, readlink.2, readv.2, rename.2, request_key.2, seccomp.2, sigaction.2, stat.2, statx.2, symlink.2, syscalls.2, umount.2, unlink.2, utimensat.2, wait.2, bsearch.3, fflush.3, getaddrinfo.3, getauxval.3, getopt.3, getsubopt.3, mkfifo.3, pthread_mutex_consistent.3, pthread_setname_np.3, pthread_tryjoin_np.3, scandir.3, sem_wait.3, stailq.3, strlen.3, strstr.3, termios.3, tsearch.3, wcslen.3, wcstok.3, wordexp.3, proc.5, capabilities.7, cgroups.7, fanotify.7, mount_namespaces.7, namespaces.7, path_resolution.7, pipe.7, posixoptions.7, user_namespaces.7, vdso.7, iconvconfig.8, ld.so.8: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges: Ready for 5.13
Michael Kerrisk [Fri, 27 Aug 2021 00:11:10 +0000 (02:11 +0200)] 
Changes: Ready for 5.13

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetaddrinfo.3: Note that 'errno' is set in parallel with EAI_SYSTEM
Alejandro Colomar [Wed, 25 Aug 2021 15:51:56 +0000 (17:51 +0200)] 
getaddrinfo.3: Note that 'errno' is set in parallel with EAI_SYSTEM

The previous wording wasn't very explicit, leaving room for
believing that 'errno' may be 0 after returning EAI_SYSTEM.

Use a wording similar to other pages, for added consistency.

[mtk: edited commit message title; also, POSIX notes that
'errno' is set in this case.]

Reported-by: Cristian Morales Vega <christian.morales.vega@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoiconv.1, iconvconfig.8: FILES: note that files may be under /usr/lib64 rather than...
Michael Kerrisk [Tue, 24 Aug 2021 21:37:55 +0000 (23:37 +0200)] 
iconv.1, iconvconfig.8: FILES: note that files may be under /usr/lib64 rather than /lib/64

See https://bugzilla.kernel.org/show_bug.cgi?id=214163

Reported-by: Christopher Yeleighton <giecrilj@stegny.2a.pl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomount_namespaces.7: tfix
Michael Kerrisk [Sun, 22 Aug 2021 21:47:32 +0000 (23:47 +0200)] 
mount_namespaces.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomount_namespaces.7: Minor wording fix
Michael Kerrisk [Sun, 22 Aug 2021 21:45:08 +0000 (23:45 +0200)] 
mount_namespaces.7: Minor wording fix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomount_namespaces.7: wfix: use numbered cross-references in list of restrictions in...
Michael Kerrisk [Fri, 20 Aug 2021 21:25:35 +0000 (23:25 +0200)] 
mount_namespaces.7: wfix: use numbered cross-references in list of restrictions in NOTES

Done to make the list easier to navigate.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomount_namespaces.7: Rewrite locked mounts examples to use/etc/shadow
Michael Kerrisk [Thu, 19 Aug 2021 00:13:30 +0000 (02:13 +0200)] 
mount_namespaces.7: Rewrite locked mounts examples to use/etc/shadow

See https://lore.kernel.org/linux-man/20210817140649.7pmz5qcelgjzgxtz@wittgenstein/
    Subject: Re: [PATCHi, man-pages] mount_namespaces.7: More clearly explain "locked mounts"
    Date: Tue, 17 Aug 2021 16:06:49 +0200
    Message-ID: <20210817140649.7pmz5qcelgjzgxtz@wittgenstein>

Reported-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomount_namespaces.7: Note that it is possible to stack a mount on top of a locked...
Michael Kerrisk [Wed, 18 Aug 2021 23:35:30 +0000 (01:35 +0200)] 
mount_namespaces.7: Note that it is possible to stack a mount on top of a locked mount

Reported-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomount_namespaces.7: wfix
Michael Kerrisk [Wed, 18 Aug 2021 22:42:40 +0000 (00:42 +0200)] 
mount_namespaces.7: wfix

Reported-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>