Commit Graph

15987 Commits

Author SHA1 Message Date
Michael Kerrisk 6de48cdf60 regex.3: Minor fix to 'info libc' regex reference
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-09 22:12:34 +02:00
Michael Kerrisk 8b41eea4fc prctl.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-09 22:12:34 +02:00
Michael Kerrisk 1a8e1c2fae prctl.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-09 22:12:34 +02:00
Michael Kerrisk 2974f4050a printf.3: Note support in other C libraries for %m and %n
Reported-by: Shawn Landden <shawn@churchofgit.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-09 22:12:29 +02:00
Michael Kerrisk 164a3a92c9 kcmp.2: Minor fix-ups
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-09 22:11:53 +02:00
Shawn Landden ad0fbddddc utf-8: Include RFC 3629 and clarify endianness which is left ambiguous
The endianness is suggested by the order the bytes are displayed,
but the text is ambiguous.
2016-06-09 22:11:53 +02:00
Michael Kerrisk 5c1932ae50 kcmp.2: Minor tweaks
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-09 22:11:53 +02:00
Shawn Landden 8ec68b89b4 kcmp.2: Note about SECURITY_YAMA 2016-06-09 22:11:53 +02:00
Darrick J. Wong 8c93a5df95 ioctl_ficlonerange.2, ioctl_fideduperange.2: srcfix: fix licensing
These are licensed under GPLv2, not VERBATIM.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
2016-06-09 22:11:47 +02:00
Darrick J. Wong 8592ec74bd ioctl_ficlonerange.2, ioctl_fideduperange.2: Mention same-filesystem requirement
Mention that FICLONE, FICLONERANGE, and FIDEDUPERANGE all require
both files to reside on the same filesystem.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
2016-06-09 10:08:18 +02:00
Michael Kerrisk 1b2385537f memmem.3: Note that memmem() is present on some other systems
Reported-by: Shawn Landden <shawn@churchofgit.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-09 10:02:56 +02:00
Michael Kerrisk 5711c5f7aa ioctl_fideduperange.2: Add VERSIONS section
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-08 12:35:00 +02:00
Michael Kerrisk 2db75216ad ioctl_fideduperange.2: Minor tweaks
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-08 12:35:00 +02:00
Michael Kerrisk 990a64f7e3 ioctl_fideduperange.2: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-08 12:35:00 +02:00
Darrick J. Wong 2998d8b804 man2: New page documenting the FIDEDUPERANGE ioctl
Document the FIDEDUPERANGE ioctl, formerly known as
BTRFS_IOC_EXTENT_SAME.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
2016-06-08 12:34:55 +02:00
Michael Kerrisk c4f9c619fe ioctl_ficlonerange.2: Add VERSIONS section
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-08 12:34:54 +02:00
Michael Kerrisk 603fc95a2b ioctl_ficlonerange.2: Minor tweaks
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-08 12:34:54 +02:00
Michael Kerrisk 1d691addc2 ioctl_ficlonerange.2: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-06-08 12:34:54 +02:00
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