Commit Graph

15769 Commits

Author SHA1 Message Date
Darrick J. Wong 9eb18e174c man2: New page documenting FICLONE and FICLONERANGE ioctls
Document the FICLONE and FICLONERANGE ioctls, formerly known as
the BTRFS_IOC_CLONE and BTRFS_IOC_CLONE_RANGE ioctls.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
2016-06-08 12:34:45 +02:00
Mitch Walker 7f891e5db7 add_key.2: Empty payloads are not allowed in user-defined keys
iBoth add_key and the utility "keyctl add" return EINVAL when
attempting to add a user key with an empty or NULL payload.

The manpage implies that this should be valid.

From my reading of the kernel source, this has not been possible
since at least linux kernel commit 1da177e4 (2.6.12-rc2 on
2005-04-16).

Until kernel commit cf7f601c,
security/keys/user_defined.c:user_instantiate returned -EINVAL
if datalen <= 0.  That commit only moved this behavior to a new
user_preparse function, where it remains today in b562e44f
(4.5.0 on 2016-03-13).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-08 11:56:58 +02:00
Michael Kerrisk 9787e2b681 st.4: wfix + srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-08 11:32:33 +02:00
Michael Kerrisk 401117dc5d st.4: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-08 11:30:34 +02:00
Kai Mäkisara 8661af1103 st.4: Update MTMKPART for kernels >= 4.6
Update the description of the MTMKPART operation of MTIOCTOP to match
the changes in kernel version 4.6 (commit
8038e6456a3e6f5c4759e0d73c4f9165b90c93e7)

Signed-off-by: Kai Mäkisara <kai.makisara@kolumbus.fi>
2016-06-08 11:29:41 +02:00
Kai Mäkisara 34ba508b82 st.4: Fix description of read() when block is larger than request
Fix the description of read() in variable block mode if the next
block is larger than the requested byte count: error is returned
(as already documented with ENOMEM; better to complete the change
later than never ?-)

Signed-off-by: Kai Mäkisara <kai.makisara@kolumbus.fi>
2016-06-08 11:27:47 +02:00
Jakub Wilk 95b1c1d172 proc.5: tfix
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
2016-06-08 11:25:05 +02:00
Jakub Wilk d1f84ed72a clone.2, confstr.3, hpsa.4, tcp.7: tfix
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
2016-06-08 11:24:08 +02:00
Jakub Wilk 8d48cea31a termios.3: spfix
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
2016-06-06 09:13:54 -05:00
Michael Kerrisk 9c2678e629 mount.2: MS_LAZYTIME and MS_RELATIME can be changed on remount
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-05 13:00:57 -05:00
Michael Kerrisk d8b67bc9b2 mount.2: Explicitly note that MS_DIRSYNC setting cannot be changed on remount
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-05 13:00:57 -05:00
Michael Kerrisk 014b17c608 mount.2: Remove version numbers attached to flags that are modifiable on remount
This information was simply bogus. Mea culpa.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-05 06:21:02 -05:00
Michael Kerrisk 9e1ae4f847 mount.2: Minor restructuring/rewording in ERRORS
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-04 10:47:11 -05:00
Michael Kerrisk eac1e05005 mount.2: Document the MS_REC flag
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-04 10:42:31 -05:00
Michael Kerrisk c8e5f55869 mount.2: Document flags used to set propagation type
Document MS_SHARED, MS_PRIVATE, MS_SLAVE, and MS_UNBINDABLE.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-04 10:42:31 -05:00
Michael Kerrisk 4a19136b83 mount.2: Note kernel version that added MS_MOVE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-04 10:42:31 -05:00
Michael Kerrisk 74b46b5f77 mount.2: Minor tweaks
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-04 10:42:31 -05:00
Michael Kerrisk f429fadc96 mount.2: Restructure discussion of 'mountflags' into functional groups
The existing text makes no differentiation between different
"classes" of mount flags. However, certain flags such as
MS_REMOUNT, MS_BIND, MS_MOVE, etc. determine the general
type of operation that mount() performs. Furthermore, the
choice of which class of operation to perform is performed in
a certain order, and that order is significant if multiple
flags are specified. Restructure and extend the text to
reflect these details.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-04 10:41:50 -05:00
Michael Kerrisk f54e02b4bf mount.2: Relocate text on multimounting and mount stacking to NOTES
The text was somewhat out of place in its previous location;
NOTES is a better location.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-04 07:28:06 -05:00
Michael Kerrisk b3ae9c7d6f mount.2: Move text describing 'data' argument higher up in page
In preparation for other reworking.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-04 07:25:56 -05:00
Michael Kerrisk 9792cd169c mount.2: Update example list of filesystem types
Put more modern examples in; remove many older examples.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-04 07:20:56 -05:00
Michael Kerrisk 52f00c053c mount.2: Relocate/demote/rework text on MS_MGC_VAL
The use of this constant has not been needed for 15 years now.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-04 07:20:56 -05:00
Michael Kerrisk 49f6854626 mount.2: Note the default treatment of ATIME flags during MS_REMOUNT
The behavior changed in Linux 3.17.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-04 06:57:44 -05:00
Michael Kerrisk f5da58a8f2 mount.2: Since Linux 2.6.26, bind mounts can be made read-only
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-03 11:12:31 -05:00
Michael Kerrisk 16008a4146 mount.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-03 11:05:44 -05:00
Michael Kerrisk 4014230990 mmap.2: EXAMPLE: for completeness, add munmap() and close() calls
Reported-by: Rahul Bedarkar <rahulbedarkar89@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-03 06:53:41 -05:00
Michael Kerrisk 9b3661c406 assert.3: Clarify details of message printed by assert()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-03 06:38:32 -05:00
Michael Kerrisk 4d644289dd assert.3: Minor clean-ups
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-03 06:38:32 -05:00
Nikos Mavrogiannopoulos f34fcbb86b assert.3: Improved description
Removed text referring to text not being helpful to users. Provide
the error text instead to allow the reader to determine whether it
is helpful.  Recommend against using NDEBUG for programs to
exhibit deterministic behavior.  Moved description ahead of
recommendations.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
2016-06-03 06:37:52 -05:00
Michael Kerrisk 69a7267960 get_mempolicy.2: Correct rounding to 'maxnodes' (bits, not bytes)
Reported-by: Jörn Engel <joern@purestorage.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-02 21:32:22 -05:00
Michael Kerrisk f9e2bea7ca get_mempolicy.2: Fix prototype for get_mempolicy()
In numaif.h, 'add' is typed as 'void *'

Reported-by: Jörn Engel <joern@purestorage.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-02 21:18:16 -05:00
Michael Kerrisk 1f7191bb03 open.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-02 20:08:38 -05:00
Michael Kerrisk 27f5380d5c quotactl.2: 'dqb_curspace' is in bytes, not blocks
This error appears to have been injected into glibc
when copying some headers from BSD.

See https://bugs.debian.org/825548

Reported-by: Jacob Willoughby <jacob@spacemonkey.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-01 14:37:34 -05:00
Michael Kerrisk 0b8adf96a1 credentials.7: SEE ALSO: add runuser(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-01 13:28:49 -05:00
Michael Kerrisk 17fb5e56a6 credentials.7: SEE ALSO: add newgrp(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-01 13:27:01 -05:00
Michael Kerrisk 2b4be1eace credentials.7: SEE ALSO: add sudo(8)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-01 13:24:41 -05:00
Michael Kerrisk 454087559e utmp.5: SEE ALSO: add logname(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-01 13:22:27 -05:00
Michael Kerrisk 7eb8372d87 namespaces.7: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-01 11:21:29 -05:00
Michael Kerrisk c39946e06e mkdtemp.3, mktemp.3: SEE ALSO: add mktemp(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-01 11:02:44 -05:00
Marko Myllynen d7b772adee cp1251.7, cp1252.7, iso_8859-1.7, iso_8859-15.7, iso_8859-5.7, koi8-r.7, koi8-u.7: Add some charset references
Add some references to related charsets here and there.
2016-06-01 10:22:02 -05:00
Marko Myllynen 1acb8000df charsets.7: tfix: Spell ISO 8859 consistently
Trivial: spell ISO 8859 consistently (now it's ISO 8859
tree-wide).
2016-06-01 10:20:11 -05:00
Marko Myllynen d010c9c02f console_codes.4, console_ioctl.4, tty.4, vcs.4, charsets.7: Remove console(4) references
Hi Michael,

0f9e647 removed the obsolete console(4) page but we still have few
references to it. The patch below removes them or converts to refs
to concole_ioctl(4) where appropriate.
2016-06-01 10:20:03 -05:00
Michael Kerrisk 0ee6740485 strcasecmp.3: Minor tweak to strncasecmp() description
Reported-by: Ori Avtalion <ori@avtalion.name>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-05-29 11:53:38 -05:00
Michael Kerrisk 2392242b06 strcasecmp.3: Make details of strncasecmp() comparison clearer
Quoting Ori:

The manpage for strncasecmp has a few wording issues that can be improved:

1)
In the DESCRIPTION section, "except it compares only the first n
bytes of s1"

s1 can be shorter than n bytes. Consider adding "(at most)" after
"first".

For comparison with reference materials, POSIX uses the wording
"not more than n bytes", OSX and FreeBSD use "compares at
most [...]".

2)
In the RETURN VALUE section: "if s1 (or the first n bytes
thereof) is found [...] to match [...] s2"

This could theoretically be read to suggest that the first n bytes
of s1 are compared against the FULL s2, which is not the case.
Consider removing the parenthetical altogether (thus, not
mentioning 'n' at all). POSIX doesn't mention 'n' in its RETURN
VALUE section.

3)
The RETURN VALUE section doesn't mention case insensitivity. It's
in the DESCRIPTION, but perhaps it should also be in this section.
POSIX mentions case-insensitivity in RETURN VALUE.

Consider adding "and ignoring case" after "respectively".

Reported-by: Ori Avtalion <ori@avtalion.name>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-05-29 06:52:09 -05:00
Michael Kerrisk cd32ec849d wait.2: Since Linux 4.7, __WALL is implied if child being ptraced
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-05-29 06:42:48 -05:00
Michael Kerrisk ff82608eb6 wait.2: waitid() now (since Linux 4.7) also supports __WNOTHREAD/__WCLONE/__WALL
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-05-29 06:42:48 -05:00
Michael Kerrisk 36c8e72131 recv.2: With pending 0-length datagram read() and recv() with flags == 0 differ
Quoting Tom:

The statement "With a zero flags argument, recv() is equivalent to
read(2)." is not correct. In the case of passing a UDP socket an
empty buffer the two calls differ. read(2) will be a noop (as it
rightly says in its manpage), but recv(2) will discard the
packet.

We ran into this in networkd, as we use FIONREAD to determine the
buffer size (and allocate the right buffer), so in case someone
passed us an empty packet we would end up in a busy loop when we
were using read(2).  Changing to recv(2) fixed the issue
[https://github.com/systemd/systemd/pull/3299].

Reported-by: Tom Gundersen <teg@jklm.no>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-05-29 06:42:48 -05:00
Michael Kerrisk c3cfbeb992 recv.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-05-29 06:42:48 -05:00
Michael Kerrisk 2dcd302656 lirc.4: Minor fixes to Alec's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-05-29 06:42:45 -05:00
Alec Leamas f625b7284e lirc.4: Update after upstreamed lirc.h, bugfixes.
The lirc.h header has landed in the kernel, and the kernel docs
has been updated all of which reflected in this patch.

Here is still an open issue with duplicated info in the kernel
docs and the manpage. Eventually, this should be addressed but
I frankly don't know how. In the meantime, acknowledge the fact
that the kernel docs is the ultimate source
2016-05-26 16:19:19 -05:00