]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
9 years agointro.1: Drop intro paragraph on '$?' shell variable
Michael Kerrisk [Fri, 8 May 2015 11:13:03 +0000 (13:13 +0200)] 
intro.1: Drop intro paragraph on '$?' shell variable

As Andries notes, this piece of text is rather out of place in
a page that was intended to provide a tutorial introduction for
beginners logging in on a Linux system.

Reported-by: Andries E. Brouwer <Andries.Brouwer@cwi.nl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years ago_exit.2, access.2, brk.2, chmod.2, clone.2, epoll_wait.2, eventfd.2, fork.2, getgroup...
Michael Kerrisk [Fri, 8 May 2015 11:08:00 +0000 (13:08 +0200)] 
_exit.2, access.2, brk.2, chmod.2, clone.2, epoll_wait.2, eventfd.2, fork.2, getgroups.2, gethostname.2, getpid.2, getpriority.2, killpg.2, mmap.2, poll.2, posix_fadvise.2, pread.2, ptrace.2, readv.2, sched_setaffinity.2, select.2, seteuid.2, setgid.2, setresuid.2, setreuid.2, setuid.2, sigaction.2, signalfd.2, sigpending.2, sigprocmask.2, sigreturn.2, sigsuspend.2, sigwaitinfo.2, stat.2, timer_create.2, uname.2, wait.2, wait4.2, mq_notify.3, mq_open.3, sigqueue.3, man-pages.7: Remove "ABI" from "C library/kernel ABI differences" subheadings

The "ABI" doesn't really convey anything significant in
the title. These subsections are about describing differences
between the kernel and (g)libc interfaces.

Reported-by: Andries E. Brouwer <Andries.Brouwer@cwi.nl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoaccess.2: tfix + wfix
Michael Kerrisk [Fri, 8 May 2015 09:54:36 +0000 (11:54 +0200)] 
access.2: tfix + wfix

Reported-by: Andries E. Brouwer <Andries.Brouwer@cwi.nl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agotime.1: Minor fixes
Michael Kerrisk [Fri, 8 May 2015 09:53:54 +0000 (11:53 +0200)] 
time.1: Minor fixes

Reported-by: Andries E. Brouwer <Andries.Brouwer@cwi.nl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agointro.1: tfix
Michael Kerrisk [Fri, 8 May 2015 09:48:50 +0000 (11:48 +0200)] 
intro.1: tfix

Reported-by: Andries E. Brouwer <Andries.Brouwer@cwi.nl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agorename.2: srcfix: add Linux kernel commit for RENAME_WHITEOUT
Michael Kerrisk [Thu, 7 May 2015 11:49:05 +0000 (13:49 +0200)] 
rename.2: srcfix: add Linux kernel commit for RENAME_WHITEOUT

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoChanges.old: Fixes to 4.00 changelog
Michael Kerrisk [Thu, 7 May 2015 10:02:09 +0000 (12:02 +0200)] 
Changes.old: Fixes to 4.00 changelog

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosched_setaffinity.2: Add an example program
Michael Kerrisk [Tue, 21 Apr 2015 16:16:36 +0000 (18:16 +0200)] 
sched_setaffinity.2: Add an example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agorename.2: Note that RENAME_NOREPLACE can't be employed with RENAME_EXCHANGE
Michael Kerrisk [Wed, 6 May 2015 14:12:01 +0000 (16:12 +0200)] 
rename.2: Note that RENAME_NOREPLACE can't be employed with RENAME_EXCHANGE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agorename.2: Document RENAME_WHITEOUT
Michael Kerrisk [Wed, 6 May 2015 14:09:57 +0000 (16:09 +0200)] 
rename.2: Document RENAME_WHITEOUT

Heavily based on text by Miklos Szeredi.

Cowritten-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agorename.2: Minor text reworking for EINVAL errors
Michael Kerrisk [Wed, 6 May 2015 13:51:42 +0000 (15:51 +0200)] 
rename.2: Minor text reworking for EINVAL errors

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agorename.2: Place list of renameat() flags in alphabetical order
Michael Kerrisk [Wed, 6 May 2015 13:26:57 +0000 (15:26 +0200)] 
rename.2: Place list of renameat() flags in alphabetical order

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agopty.7: srcfix: rewrap source lines in Neil's patch
Michael Kerrisk [Wed, 6 May 2015 12:24:33 +0000 (14:24 +0200)] 
pty.7: srcfix: rewrap source lines in Neil's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agopty.7: Minor tweaks to Neil's patch
Michael Kerrisk [Wed, 6 May 2015 12:23:43 +0000 (14:23 +0200)] 
pty.7: Minor tweaks to Neil's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agopty.7: Clarify asynchronous nature of PTY I/O
NeilBrown [Tue, 5 May 2015 22:59:07 +0000 (08:59 +1000)] 
pty.7: Clarify asynchronous nature of PTY I/O

A PTY is not like a pipe - there may be delayed between data
being written at one end and it being available at the other.

This became particularly apparent after
     commit f95499c3030f
    ("n_tty: Don't wait for buffer work in read() loop")
in Linux 3.12

See also the mail thread at https://lkml.org/lkml/2015/5/1/35
Date Mon, 04 May 2015 12:32:04 -0400
From Peter Hurley <>
Subject Re: [PATCH bisected regression] input_available_p()
                sometimes says 'no' when it should say 'yes'

Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agofallocate.2: Tweaks to Namjae Jeon's patch
Michael Kerrisk [Thu, 7 May 2015 08:22:46 +0000 (10:22 +0200)] 
fallocate.2: Tweaks to Namjae Jeon's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agofallocate.2: Document FALLOC_FL_INSERT_RANGE
Namjae Jeon [Thu, 7 May 2015 07:14:47 +0000 (09:14 +0200)] 
fallocate.2: Document FALLOC_FL_INSERT_RANGE

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoStart of man-pages-4.01: updating Changes and Changes.old
Michael Kerrisk [Thu, 7 May 2015 07:03:47 +0000 (09:03 +0200)] 
Start of man-pages-4.01: updating Changes and Changes.old

9 years agoStart of man-pages-4.01: updating .Announce and .lsm files
Michael Kerrisk [Thu, 7 May 2015 07:03:47 +0000 (09:03 +0200)] 
Start of man-pages-4.01: updating .Announce and .lsm files

9 years agoStart of man-pages-4.01: renaming .Announce and .lsm files
Michael Kerrisk [Thu, 7 May 2015 07:03:47 +0000 (09:03 +0200)] 
Start of man-pages-4.01: renaming .Announce and .lsm files

9 years agoReady for 4.00 man-pages-4.00
Michael Kerrisk [Thu, 7 May 2015 06:30:35 +0000 (08:30 +0200)] 
Ready for 4.00

9 years agoRemoved trailing white space at end of lines
Michael Kerrisk [Thu, 7 May 2015 06:30:26 +0000 (08:30 +0200)] 
Removed trailing white space at end of lines

9 years agoChanges: Expanded tabs
Michael Kerrisk [Thu, 7 May 2015 06:30:26 +0000 (08:30 +0200)] 
Changes: Expanded tabs

9 years agoloop.4: tstamp
Michael Kerrisk [Thu, 7 May 2015 06:29:45 +0000 (08:29 +0200)] 
loop.4: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoloop.4: tfix
Michael Kerrisk [Thu, 7 May 2015 06:29:01 +0000 (08:29 +0200)] 
loop.4: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoxattr.7: tstamp
Michael Kerrisk [Thu, 7 May 2015 06:28:31 +0000 (08:28 +0200)] 
xattr.7: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoadd_key.2, chown.2, epoll_ctl.2, epoll_wait.2, execve.2, fcntl.2, get_mempolicy.2...
Michael Kerrisk [Thu, 7 May 2015 06:26:32 +0000 (08:26 +0200)] 
add_key.2, chown.2, epoll_ctl.2, epoll_wait.2, execve.2, fcntl.2, get_mempolicy.2, getxattr.2, ioctl.2, keyctl.2, listxattr.2, mkdir.2, mknod.2, mmap.2, msync.2, nfsservctl.2, open.2, prctl.2, removexattr.2, request_key.2, sendfile.2, set_mempolicy.2, setxattr.2, shmget.2, shutdown.2, sigaction.2, syslog.2, truncate.2, umask.2, CPU_SET.3, atexit.3, bsearch.3, cmsg.3, err.3, gethostid.3, getmntent.3, getopt.3, iconv_close.3, inet_ntop.3, longjmp.3, lsearch.3, mcheck.3, on_exit.3, putpwent.3, regex.3, resolver.3, setbuf.3, setjmp.3, setlocale.3, setlogmask.3, sleep.3, strsignal.3, sysconf.3, undocumented.3, tty_ioctl.4, proc.5, resolv.conf.5, tzfile.5, aio.7, bootparam.7, capabilities.7, fanotify.7, inotify.7, ip.7, packet.7, pthreads.7, raw.7, signal.7, socket.7, unix.7, ld.so.8, nscd.8: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoxattr.7: srcfix: Add license tags
Michael Kerrisk [Thu, 7 May 2015 06:10:31 +0000 (08:10 +0200)] 
xattr.7: srcfix: Add license tags

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoChanges: Ready for 4.00
Michael Kerrisk [Wed, 6 May 2015 19:51:37 +0000 (21:51 +0200)] 
Changes: Ready for 4.00

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoChanges.old: tfix
Michael Kerrisk [Wed, 6 May 2015 19:09:07 +0000 (21:09 +0200)] 
Changes.old: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoget_mempolicy.2, set_mempolicy: Policy is per thread, not per process
Brice Goglin [Thu, 30 Apr 2015 10:31:09 +0000 (12:31 +0200)] 
get_mempolicy.2, set_mempolicy: Policy is per thread, not per process

set/get_mempolicy manpages say that the memory allocation
policy is per process while reading the code and testing shows
that it's actually per thread.  Here's a quick fix, which may
need to be improved to better explain that we're allocating
in the context of a thread within a process address space.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agogai.conf.5: Minor wording fixes
Regid Ichira [Wed, 6 May 2015 16:36:19 +0000 (18:36 +0200)] 
gai.conf.5: Minor wording fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoopen.2: BUGS: O_CREAT | O_DIRECTORY succeeds if pathname does not exist
Michael Kerrisk [Wed, 6 May 2015 16:20:41 +0000 (18:20 +0200)] 
open.2: BUGS: O_CREAT | O_DIRECTORY succeeds if pathname does not exist

See http://www.openwall.com/lists/oss-security/2014/11/26/10
and http://thread.gmane.org/gmane.linux.file-systems/90997
    Subject: O_CREAT|O_DIRECTORY on nonexisting file with ext4
             not posix-compliant
    Newsgroups: gmane.linux.file-systems
    Date: 2014-12-15 17:39:09 GMT
and https://lkml.org/lkml/2005/9/23/80
    Subject: [PATCH] open: O_DIRECTORY and O_CREAT together should fail
    From:    Miklos Szeredi <>
    Date:    Fri, 23 Sep 2005 16:45:04 +0200

Reported-by: NeilBrown <neilb@suse.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agostat.2: tfix
Michael Kerrisk [Wed, 6 May 2015 15:58:39 +0000 (17:58 +0200)] 
stat.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoopen.2: tfix
Michael Kerrisk [Wed, 6 May 2015 15:57:32 +0000 (17:57 +0200)] 
open.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoshmget.2: Document SHM_HUGE_2MB, SHM_HUGE_1GB, and SHM_HUGE_SHIFT
Michael Kerrisk [Wed, 6 May 2015 15:37:14 +0000 (17:37 +0200)] 
shmget.2: Document SHM_HUGE_2MB, SHM_HUGE_1GB, and SHM_HUGE_SHIFT

Reported-by: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agommap.2: Document MAP_HUGE_2MB, MAP_HUGE_1GB, and MAP_HUGE_SHIFT
Michael Kerrisk [Wed, 6 May 2015 15:29:50 +0000 (17:29 +0200)] 
mmap.2: Document MAP_HUGE_2MB, MAP_HUGE_1GB, and MAP_HUGE_SHIFT

Reported-by: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoip.7: Relocate misplaced text describing ENOPROTOOPT error
Michael Kerrisk [Wed, 6 May 2015 13:31:45 +0000 (15:31 +0200)] 
ip.7: Relocate misplaced text describing ENOPROTOOPT error

Long ago, some page reworking moved this text to a somewhat
random location in the middle of the socket options list.
Move it to a sensible location, and at the same time,
rework the text to be a little clearer.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agopacket.7: Add sll_protocol to list of required fields for outbound packets
Graham Shaw [Wed, 6 May 2015 13:01:52 +0000 (15:01 +0200)] 
packet.7: Add sll_protocol to list of required fields for outbound packets

The manpage packet(7) currently states that:

"When you send packets it is enough to specify sll_family, sll_addr,
sll_halen, sll_ifindex."

This is incorrect: you also need to specify sll_protocol.

(The protocol specified when the socket is created is used for
filtering inbound packets, but not for constructing outbound
packets.)

I encountered this while researching a page for my website:

http://www.microhowto.info/howto/send_an_arbitrary_ethernet_frame_using_an_af_packet_socket_in_c.html

To empirically verify the behaviour I took my test code from the
above page then changed it to use different values for the third
argument to socket() and the sll_protocol field:

- socket created with ETH_P_ARP, packet sent with ETH_P_ARP:
     packet sent with EtherType of ETH_P_ARP
- socket created with ETH_P_ARP, sll_protocol==0:
     packet sent with EtherType of 0
- socket created with 0x88b5, sll_protocol==htons(ETH_P_ARP):
     packet sent with EtherType of ETH_P_ARP
- socket created with ETH_P_ARP, sll_protocol==htons(0x88b5):
     packet sent with EtherType of 0x88b5

This shows that leaving sll_protocol set to zero does not have
the desired effect and that it needs to be set to the desired
link-layer protocol.

There is code in the relevant kernel source file
(net/packet/af_packet.c) which appears to inspect the value of the
sll_protocol field and use it as the link-layer protocol number,
however I am not sufficiently familiar with this subsystem to be
fully confident of what is happening. The line in question is:

     proto   = saddr->sll_protocol;

In version 3.4 of the kernel this can be found in the functions
packet_snd and tpacket_snd. In version 2.6.26 it is in packet_sendmsg.

Below is a patch that adds sll_protocol to the list of required fields.
This may not be the whole truth, since it is not clear what role if any
sll_protocol, sll_halen or sll_addr would play when the socket type is
SOCK_RAW, however I'm confident it is more accurate than the page as it
stands at present.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoscanf.3: tfix
Michael Kerrisk [Wed, 6 May 2015 12:53:30 +0000 (14:53 +0200)] 
scanf.3: tfix

Reported-by: Jussi Lehtola <jussilehtola@fedoraproject.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoregex.3: Fix error in description of 'cflags'
Michael Kerrisk [Wed, 6 May 2015 11:11:37 +0000 (13:11 +0200)] 
regex.3: Fix error in description of 'cflags'

'cflags' is a bit mask of *zero* (not one) or more flags.

Reported-by: Laurence Gonsalves <laurence@xenomachina.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agotcp.7: srcfix: update FIXME
Michael Kerrisk [Wed, 6 May 2015 10:59:22 +0000 (12:59 +0200)] 
tcp.7: srcfix: update FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoip.7: Clarify details of the IP_MULTICAST_IF socket option
Michael Kerrisk [Wed, 6 May 2015 10:34:33 +0000 (12:34 +0200)] 
ip.7: Clarify details of the IP_MULTICAST_IF socket option

Reported-by: Jiri Pirko <jpirko@redhat.com>
Reported-by: Magnus REFTEL <magnus.xm.reftel@stericsson.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoip.7: Explain how IP_ADD_MEMBERSHIP determines its argument type
Michael Kerrisk [Wed, 6 May 2015 09:56:09 +0000 (11:56 +0200)] 
ip.7: Explain how IP_ADD_MEMBERSHIP determines its argument type

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoip.7: Some minor rewordings
Michael Kerrisk [Wed, 6 May 2015 09:52:59 +0000 (11:52 +0200)] 
ip.7: Some minor rewordings

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoip.7: wfix
Michael Kerrisk [Wed, 6 May 2015 09:05:49 +0000 (11:05 +0200)] 
ip.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agonscd.8: Add mention of 'services' and 'netgroup' databases
Michael Kerrisk [Wed, 6 May 2015 08:39:44 +0000 (10:39 +0200)] 
nscd.8: Add mention of 'services' and 'netgroup' databases

This makes the page consistent with nscd.conf(5).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agounix.7: Note the 108 bytes for sun_path is how things are done on Linux
Michael Kerrisk [Wed, 6 May 2015 08:24:56 +0000 (10:24 +0200)] 
unix.7: Note the 108 bytes for sun_path is how things are done on Linux

And refer the reader to NOTES for discussion of portability.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agounix.7: Remove mention of UNIX_PATH_MAX
Michael Kerrisk [Wed, 6 May 2015 08:22:38 +0000 (10:22 +0200)] 
unix.7: Remove mention of UNIX_PATH_MAX

This kernel constant is not exposed to user space.

Reported-by: Christophe Lohr <Christophe.Lohr@telecom-bretagne.eu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosocket.7: srcfix: Add some comments on the undocumented SO_NO_CHECK option
Michael Kerrisk [Wed, 6 May 2015 08:02:57 +0000 (10:02 +0200)] 
socket.7: srcfix: Add some comments on the undocumented SO_NO_CHECK option

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agokeyctl.2: srcfix: add FIXMES
Michael Kerrisk [Wed, 6 May 2015 07:44:03 +0000 (09:44 +0200)] 
keyctl.2: srcfix: add FIXMES

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoip.7, socket.7: Remove dubious text that says that SO_PRIORITY set IP TOS
Michael Kerrisk [Tue, 5 May 2015 19:18:51 +0000 (21:18 +0200)] 
ip.7, socket.7: Remove dubious text that says that SO_PRIORITY set IP TOS

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

Reported-by: Advait Dixi <advaitdixit@hotmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agopthreads.7: Using thread IDs whose lifetime has expired gives undefined behavior
Michael Kerrisk [Tue, 5 May 2015 19:11:59 +0000 (21:11 +0200)] 
pthreads.7: Using thread IDs whose lifetime has expired gives undefined behavior

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

Reported-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agopthreads.7: Reorder text on thread IDs
Michael Kerrisk [Tue, 5 May 2015 19:09:12 +0000 (21:09 +0200)] 
pthreads.7: Reorder text on thread IDs

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoip.7: srcfix: remove unneeded comments
Michael Kerrisk [Tue, 5 May 2015 18:54:41 +0000 (20:54 +0200)] 
ip.7: srcfix: remove unneeded comments

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprintf.3: tfix
Michael Kerrisk [Tue, 5 May 2015 16:41:44 +0000 (18:41 +0200)] 
printf.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoproc.5: Improve description of /proc/PID/status
Michael Kerrisk [Tue, 5 May 2015 16:35:54 +0000 (18:35 +0200)] 
proc.5: Improve description of /proc/PID/status

Reported-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoget_phys_pages.3: srcfix: wrap long source lines
Michael Kerrisk [Tue, 5 May 2015 16:29:14 +0000 (18:29 +0200)] 
get_phys_pages.3: srcfix: wrap long source lines

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoget_phys_pages.3: tfix
Michael Kerrisk [Tue, 5 May 2015 16:28:35 +0000 (18:28 +0200)] 
get_phys_pages.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoget_avphys_pages.3: New line to new get_phys_pages.3 page
William Woodruff [Tue, 5 May 2015 16:21:41 +0000 (18:21 +0200)] 
get_avphys_pages.3: New line to new get_phys_pages.3 page

Signed-off-by: William Woodruff <william@tuffbizz.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoget_phys_pages.3: Document get_phys_pages() and get_avphys_pages()
William Woodruff [Tue, 5 May 2015 16:17:37 +0000 (18:17 +0200)] 
get_phys_pages.3: Document get_phys_pages() and get_avphys_pages()

Signed-off-by: William Woodruff <william@tuffbizz.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agocmsg.3: Fix error in SCM_RIGHTS code sample
Michael Kerrisk [Tue, 5 May 2015 15:56:00 +0000 (17:56 +0200)] 
cmsg.3: Fix error in SCM_RIGHTS code sample

Remove erroneous second initialization of msg.msg_controllen
in the example code for SCM_RIGHTS.
See https://bugzilla.kernel.org/show_bug.cgi?id=15952

Reported-by: Christopher Head <chead@chead.ca>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosignal.7: Clarify that I/O operations on disks are not interrupted by signals
Michael Kerrisk [Tue, 5 May 2015 14:45:11 +0000 (16:45 +0200)] 
signal.7: Clarify that I/O operations on disks are not interrupted by signals

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

Reported-by: Steinar H. Gunderson <sgunderson@bigfoot.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoproc.5: Document /proc mount options
Michael Kerrisk [Tue, 5 May 2015 13:49:53 +0000 (15:49 +0200)] 
proc.5: Document /proc mount options

Document the 'hidepid' and 'gid' mount options that were added in
Linux 3.3.  See https://bugzilla.kernel.org/show_bug.cgi?id=90641
Based on text by Vasiliy Kulikov in
Documentation/filesystems/proc.txt.

Reported-by: Cameron Norman <camerontnorman@gmail.com>
Cowritten-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprctl.2: Note that "parent" for purposes of PR_SET_DEATHSIG is a *thread*
Michael Kerrisk [Tue, 5 May 2015 10:12:35 +0000 (12:12 +0200)] 
prctl.2: Note that "parent" for purposes of PR_SET_DEATHSIG is a *thread*

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

Reported-by: David Wilcox <davidvsthegiant@gmail.com>
Reported-by: Filipe Brandenburger <filbranden@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosendfile.2: tfix
Gleb Fotengauer-Malinovskiy [Tue, 5 May 2015 13:14:23 +0000 (16:14 +0300)] 
sendfile.2: tfix

Signed-off-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosendfile.2: RETURN VALUE: note the possibility of "short sends"
Michael Kerrisk [Tue, 5 May 2015 10:00:06 +0000 (12:00 +0200)] 
sendfile.2: RETURN VALUE: note the possibility of "short sends"

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

Reported-by: Gregor Jasny <igjasny@googlemail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosendfile.2: Note that sendfile does not support O_APPEND for 'out_fd'
Michael Kerrisk [Tue, 5 May 2015 09:13:33 +0000 (11:13 +0200)] 
sendfile.2: Note that sendfile does not support O_APPEND for 'out_fd'

See https://bugzilla.kernel.org/show_bug.cgi?id=82841
Reported-by: Jason Newton <nevion@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosendfile.2: tfix
Michael Kerrisk [Tue, 5 May 2015 09:09:58 +0000 (11:09 +0200)] 
sendfile.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosendfile.2: Clarify text on 'out_fd' and regular files in Linux 2.4
Michael Kerrisk [Tue, 5 May 2015 09:00:37 +0000 (11:00 +0200)] 
sendfile.2: Clarify text on 'out_fd' and regular files in Linux 2.4

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

Reported-by: Askar Safin <safinaskar@mail.ru>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agocerf.3, cerfc.3, cerfcf.3, cerfcl.3, cerff.3. cerfl.3: Remove cerf(3) and links to it
Michael Kerrisk [Tue, 5 May 2015 08:29:07 +0000 (10:29 +0200)] 
cerf.3, cerfc.3, cerfcf.3, cerfcl.3, cerff.3. cerfl.3: Remove cerf(3) and links to it

These functions don't exist in glibc, aren't specified
in C99 or C11 (those standards merely reserve the names
for future use), cause package conflicts for libcerf
(http://apps.jcns.fz-juelich.de/doku/sc/libcerf),
which does provide implementations and man-pages for
these functions, and cause confusion for readers
who (not looking too closely at the page) wonder
where the glibc implementation is. Best to simply
remove this page and its links from man-pages.

Reported-by: Joachim Wuttke <j.wuttke@fz-juelich.de>
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764310
and https://bugzilla.kernel.org/show_bug.cgi?id=80541

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agogetopt.3: Remove crufty BUGS section
Michael Kerrisk [Tue, 5 May 2015 08:08:03 +0000 (10:08 +0200)] 
getopt.3: Remove crufty BUGS section

This piece of text in the man page is ancient (from
man-pages-1.20, circa 1998), and odd in the sense that it
describes a bug in POSIX that was (long ago) subsequently
fixed. As the standards committee noted, POSIX here seemed
to deviate from existing practice. The simplest fix is
to just remove this BUGS section.

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

Reported-by: Guy Harris <guy@alum.mit.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agounshare.2: Give the reader a hint that unshare() works on processes or threads
Michael Kerrisk [Tue, 5 May 2015 07:35:20 +0000 (09:35 +0200)] 
unshare.2: Give the reader a hint that unshare() works on processes or threads

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

Reported-by: Florian Weimer <fweimer@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoclone.2: wfix
Michael Kerrisk [Tue, 5 May 2015 07:02:33 +0000 (09:02 +0200)] 
clone.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprintf.3: Minor clarification
Michael Kerrisk [Tue, 5 May 2015 07:31:33 +0000 (09:31 +0200)] 
printf.3: Minor clarification

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

Reported-by: Filipus Klutiero <chealer@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprintf.3: ffix
Michael Kerrisk [Tue, 5 May 2015 06:45:08 +0000 (08:45 +0200)] 
printf.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprintf.3: SEE ALSO: add puts(3)
Michael Kerrisk [Tue, 5 May 2015 06:35:54 +0000 (08:35 +0200)] 
printf.3: SEE ALSO: add puts(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprintf.3: Move return value discussion to proper RETURN VALUE section
Michael Kerrisk [Tue, 5 May 2015 06:34:27 +0000 (08:34 +0200)] 
printf.3: Move return value discussion to proper RETURN VALUE section

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprintf.3: ffix
Michael Kerrisk [Tue, 5 May 2015 06:30:13 +0000 (08:30 +0200)] 
printf.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprintf.3: wfix
Michael Kerrisk [Tue, 5 May 2015 06:27:03 +0000 (08:27 +0200)] 
printf.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agogethostbyname.3: ffix
Michael Kerrisk [Mon, 4 May 2015 20:11:58 +0000 (22:11 +0200)] 
gethostbyname.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agogethostbyname.3: "order" is obsolete
Carlos O'Donell [Fri, 1 May 2015 02:01:26 +0000 (22:01 -0400)] 
gethostbyname.3: "order" is obsolete

>> +.BR resolv.conf(5),
>> +a local name server
>>  .BR named (8),
>>  a broken out line from \fI/etc/hosts\fP, and the Network
>>  Information Service (NIS or YP), depending upon the contents of the
>>  \fIorder\fP line in
>>  .IR /etc/host.conf .
>
> Your patch didn't change the last few lines, but you may be able to
> help... Is the reference to "order" and /etc/host.conf on this page not
> obsolete by now. Looking at host.conf(5), one sees,

No, order *is* obsolete.

>   Historical
>        The  nsswitch.conf(5) file is the modern way of controlling the
>        order of host lookups.
>
>        In glibc 2.4 and earlier, the following keyword is recognized:
>
>        order  This keyword specifies how host lookups are to  be  per‐
>               formed.   It  should  be  followed by one or more lookup
>               methods, separated by commas.  Valid methods  are  bind,
>               hosts, and nis.
>
> So, it looks like some fix is required here also. Right?

Yes. I didn't know how we wanted to talk about this particular topic.
The use of "order" is obsolete as of 2.5.

The following is a sketch of how I'd rewrite this to be more correct,
I'm out of time for today, but if you want to fix the formatting and
check it in that would be awesome.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agommap.2: Remove text that implies that munmap() syncs MAP_SHARED mapping to file
Michael Kerrisk [Mon, 4 May 2015 14:45:34 +0000 (16:45 +0200)] 
mmap.2: Remove text that implies that munmap() syncs MAP_SHARED mapping to file

The existing text in this page:

       MAP_SHARED Share  this  mapping.   Updates to the mapping
                  are visible to other processes that  map  this
                  file,  and are carried through to the underly‐
                  ing  file.   The  file  may  not  actually  be
                  updated until msync(2) or munmap() is called.

implies that munmap() will sync the mapping to the underlying
file. POSIX doesn't require this, and some light reading of the
code and some light testing (fsync() after munmap() of a large
file) also indicates that Linux doesn't do this.

See also this mail thread:

    Subject: munmap, msync: synchronization
    Newsgroups: gmane.linux.man
    Date: 2014-04-20 10:28:40 GMT
    http://thread.gmane.org/gmane.linux.man/5548

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agommap.2: Minor reworking of RETURN VALUE text
Michael Kerrisk [Mon, 4 May 2015 14:43:25 +0000 (16:43 +0200)] 
mmap.2: Minor reworking of RETURN VALUE text

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoCPU_SET.3: Clarify language about "available" cpus
Chris Metcalf [Mon, 4 May 2015 12:54:46 +0000 (14:54 +0200)] 
CPU_SET.3: Clarify language about "available" cpus

The CPU_SET.3 man page uses the adjective "available" when
explaining what the argument to CPU_SET() means.  This is
confusing, since "available" isn't well-defined.  The kernel
has a set of adjectives (possible, present, online, and active)
that qualify cpus, but normally none of these are what the
cpu_set_t bit index means: it's just "which cpu", using the
kernel's internal numbering system, even if that cpu isn't
possible or present.

This change removes the word "available" and adds a sentence
warning that cpu sets may not be contiguous due to dynamic
cpu hotplug, etc.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoscanf.3: Improve description of %n specifier
Joern Heissler [Mon, 4 May 2015 12:44:49 +0000 (14:44 +0200)] 
scanf.3: Improve description of %n specifier

The fscanf manpage contains this:

   n   Nothing is expected; instead, the number  of  characters
       consumed  thus  far from the input is stored through the
       next pointer, which must be a pointer to int.   This  is
       not a conversion, although it can be suppressed with the
       *  assignment-suppression  character.   The  C  standard
       says:  "Execution  of  a %n directive does not increment
       the assignment count returned at the completion of  exe‐
       cution"  but  the  Corrigendum seems to contradict this.
       Probably it is wise not to make any assumptions  on  the
       effect of %n conversions on the return value.

posix manpages; all say that %n does *not* increase the counter.
%*n causes undefined behaviour according to c99+tc3.  I wasn't
able to find proof that any Corrigendum says otherwise.
Therefore I think it's safe to say that you can indeed make the
assumption that %n does not affect the return value.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosetbuf.3: Remove unneeded sentence on an implementation detail
Michael Kerrisk [Mon, 4 May 2015 12:04:55 +0000 (14:04 +0200)] 
setbuf.3: Remove unneeded sentence on an implementation detail

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosetbuf.3: ffix
Michael Kerrisk [Mon, 4 May 2015 12:04:18 +0000 (14:04 +0200)] 
setbuf.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agonfsservctl.2: Note that nfsservctl() was replaced by files in nfsd filesystem
Michael Kerrisk [Mon, 4 May 2015 11:57:42 +0000 (13:57 +0200)] 
nfsservctl.2: Note that nfsservctl() was replaced by files in nfsd filesystem

Reported-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agofcntl.2: Note an F_SETSIG corner case
Michael Kerrisk [Mon, 4 May 2015 11:48:39 +0000 (13:48 +0200)] 
fcntl.2: Note an F_SETSIG corner case

Reported-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agofcntl.2: tfix
Michael Kerrisk [Mon, 4 May 2015 11:08:51 +0000 (13:08 +0200)] 
fcntl.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoptrace.2: tfix
Michael Kerrisk [Mon, 4 May 2015 11:08:24 +0000 (13:08 +0200)] 
ptrace.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agofcntl.2: tfix
Michael Kerrisk [Mon, 4 May 2015 11:07:18 +0000 (13:07 +0200)] 
fcntl.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosigaction.2: Refer the reader to fcntl(2) F_SETSIG for further details on si_fd
Michael Kerrisk [Mon, 4 May 2015 11:05:18 +0000 (13:05 +0200)] 
sigaction.2: Refer the reader to fcntl(2) F_SETSIG for further details on si_fd

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoproc.5: Document /proc/PID/exe behaviour on unlinked pathnames
Guillem Jover [Mon, 4 May 2015 09:11:39 +0000 (11:11 +0200)] 
proc.5: Document /proc/PID/exe behaviour on unlinked pathnames

Signed-off-by: Guillem Jover <guillem@hadrons.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoproc.5: wfix
Michael Kerrisk [Mon, 4 May 2015 09:10:22 +0000 (11:10 +0200)] 
proc.5: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoget_nprocs_conf.3: Use exit() rather than return in main()
Michael Kerrisk [Mon, 4 May 2015 07:09:58 +0000 (09:09 +0200)] 
get_nprocs_conf.3: Use exit() rather than return in main()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agomsync.2: Rework text of DESCRIPTION
Michael Kerrisk [Sun, 3 May 2015 11:03:24 +0000 (13:03 +0200)] 
msync.2: Rework text of DESCRIPTION

Rewrite the text somewhat, for easier comprehension.
No (intentional) changes to factual content

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agomsync.2: tfix
Michael Kerrisk [Sun, 3 May 2015 10:53:39 +0000 (12:53 +0200)] 
msync.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoraw.7: Remove crufty reference to <netinet/in.h>
Michael Kerrisk [Sun, 3 May 2015 10:19:32 +0000 (12:19 +0200)] 
raw.7: Remove crufty reference to <netinet/in.h>

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>