]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
10 years agogetrandom.2: Rework discussion of blocking section on interuption by signals
Michael Kerrisk [Thu, 29 Jan 2015 12:13:32 +0000 (13:13 +0100)] 
getrandom.2: Rework discussion of blocking section on interuption by signals

Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agosemget.2: wfix
Michael Kerrisk [Thu, 29 Jan 2015 10:12:44 +0000 (11:12 +0100)] 
semget.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Reads from /dev/urandom can block for large request sizes
Michael Kerrisk [Thu, 29 Jan 2015 08:12:48 +0000 (09:12 +0100)] 
getrandom.2: Reads from /dev/urandom can block for large request sizes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: SEE ALSO: add signal(7)
Michael Kerrisk [Thu, 29 Jan 2015 07:38:43 +0000 (08:38 +0100)] 
getrandom.2: SEE ALSO: add signal(7)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agosignal.7: Add getrandom(2) to list of restartable system calls
Michael Kerrisk [Thu, 29 Jan 2015 07:37:44 +0000 (08:37 +0100)] 
signal.7: Add getrandom(2) to list of restartable system calls

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Give the reader a hint about when /dev/urandom is initialized
Michael Kerrisk [Wed, 28 Jan 2015 06:08:36 +0000 (07:08 +0100)] 
getrandom.2: Give the reader a hint about when /dev/urandom is initialized

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Minor tweaks to Heinrich's text
Michael Kerrisk [Wed, 28 Jan 2015 06:04:54 +0000 (07:04 +0100)] 
getrandom.2: Minor tweaks to Heinrich's text

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Clarification of open questions
Heinrich Schuchardt [Tue, 27 Jan 2015 21:27:48 +0000 (22:27 +0100)] 
getrandom.2: Clarification of open questions

With his last patches for getrandom.2 Michael Kerrisk posed a few
questions and left some comments in the man-page. This patch
seeks to clarify the open issues.

 72 For example, if the call is interrupted by a signal handler,
 73 it may return a partially filled buffer, or fail with the error
 74 .BR EINTR .
 75 .\" Tested with buffer sizes > 256 bytes: both partial reads
 76 .\" and EINTR can occur, with the former being more frequent.
 77 .\"

Michael's observation agrees with the code.
For buffer size > 256: If the buffer is still empty EINTR occurs.
If any number of bytes has been read to the buffer, that number
is returned.  The comment can be removed.

 78 .\" mtk: In the absence of signals, in my testing, even very large reads
 79 .\" return full buffers. I found that reads of up to 33554431 always
 80 .\" returned a filled buffer. Specifying 'buflen' > 33554431 always
 81 .\" returned just 33554431 bytes. (I'm not sure where that number comes
        from.

The maximum number of bytes transferred is limited for
/dev/urandom to:

    nbytes = min_t(size_t, nbytes, INT_MAX >> (ENTROPY_SHIFT + 3));
    // <= 0x1fffff

and for /dev/random to
nbytes = min_t(size_t, nbytes, SEC_XFER_SIZE); // <= 0x200

Lets put this into the NOTES section.

 224 When reading from
 225 .IR /dev/random ,
 226 blocking requests of any size can be interrupted by a signal
 227 (the call fails with the error
 228 .BR EINTR ).

Thats ok.

 82 If the pool has not yet been initialized, then the call blocks, unless
 83 .B GRND_RANDOM
 84 is specified in
 85 .IR flags .
 86 .\" FIXME We need a bit more information here.
 87 .\"       The reader will ask: when is /dev/urandom initialized?
 88 .\"       There should be some text here to explain that.

Entropy is collected from different sources, e.g.
 - time of reaping a thread
 - MAC address of a network interfaces
 - Allwinner security ID
 - ROM content of a firewire device
 - ...

When more than 128 bits have been collected, the pool is set
to initialized.

I suggest that detailed information about the initialization
should be provided on the random.4 page.

I added a paragraph in the NOTES section.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Enhance discussion of /dev/urandom reads in DESCRIPTION
Michael Kerrisk [Tue, 27 Jan 2015 12:23:59 +0000 (13:23 +0100)] 
getrandom.2: Enhance discussion of /dev/urandom reads in DESCRIPTION

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Clarify interaction of GRND_RANDOM and signals
Michael Kerrisk [Tue, 27 Jan 2015 09:27:06 +0000 (10:27 +0100)] 
getrandom.2: Clarify interaction of GRND_RANDOM and signals

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: NOTES: clarify discussion of EINTR error
Michael Kerrisk [Tue, 27 Jan 2015 09:22:32 +0000 (10:22 +0100)] 
getrandom.2: NOTES: clarify discussion of EINTR error

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: wfix
Michael Kerrisk [Tue, 27 Jan 2015 09:10:41 +0000 (10:10 +0100)] 
getrandom.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: srcfix: add FIXME
Michael Kerrisk [Tue, 27 Jan 2015 09:02:38 +0000 (10:02 +0100)] 
getrandom.2: srcfix: add FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Clarify text with respect to GRND_NONBLOCK
Michael Kerrisk [Tue, 27 Jan 2015 08:19:22 +0000 (09:19 +0100)] 
getrandom.2: Clarify text with respect to GRND_NONBLOCK

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Clarify sentence on getrandom() and partial GRND_RANDOM reads
Michael Kerrisk [Thu, 22 Jan 2015 20:36:04 +0000 (21:36 +0100)] 
getrandom.2: Clarify sentence on getrandom() and partial GRND_RANDOM reads

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Reword sentence on blocked getrandom() and interruption by signals
Michael Kerrisk [Thu, 22 Jan 2015 20:18:43 +0000 (21:18 +0100)] 
getrandom.2: Reword sentence on blocked getrandom() and interruption by signals

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Minor wording fixes
Michael Kerrisk [Thu, 22 Jan 2015 20:12:21 +0000 (21:12 +0100)] 
getrandom.2: Minor wording fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: tfix
Michael Kerrisk [Thu, 22 Jan 2015 20:04:21 +0000 (21:04 +0100)] 
getrandom.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Rework paragraphs marked with FIXME
Heinrich Schuchardt [Thu, 22 Jan 2015 19:30:46 +0000 (20:30 +0100)] 
getrandom.2: Rework paragraphs marked with FIXME

The patch clarifies when blocking may occur while calling
getrandom().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Mention bug concerning treatment of interrupts
Heinrich Schuchardt [Thu, 22 Jan 2015 18:30:10 +0000 (19:30 +0100)] 
getrandom.2: Mention bug concerning treatment of interrupts

Theodore Ts'o confirmed the bug described in
https://lkml.org/lkml/2014/11/29/16

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Reword GRND_RANDOM description
Michael Kerrisk [Tue, 11 Nov 2014 10:27:06 +0000 (11:27 +0100)] 
getrandom.2: Reword GRND_RANDOM description

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Reword GRND_NONBLOCK description
Michael Kerrisk [Tue, 11 Nov 2014 10:22:07 +0000 (11:22 +0100)] 
getrandom.2: Reword GRND_NONBLOCK description

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Add a sentence to clarify the default behavior of getrandom()
Michael Kerrisk [Tue, 11 Nov 2014 09:19:01 +0000 (10:19 +0100)] 
getrandom.2: Add a sentence to clarify the default behavior of getrandom()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: srcfix: added FIXME
Michael Kerrisk [Tue, 11 Nov 2014 11:03:07 +0000 (12:03 +0100)] 
getrandom.2: srcfix: added FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: Minor wording fixes
Michael Kerrisk [Tue, 11 Nov 2014 09:14:05 +0000 (10:14 +0100)] 
getrandom.2: Minor wording fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agorandom.4: SEE ALSO: add getrandom(2)
Heinrich Schuchardt [Fri, 3 Oct 2014 00:15:35 +0000 (02:15 +0200)] 
random.4: SEE ALSO: add getrandom(2)

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agorandom.3: SEE ALSO: add getrandom(2)
Heinrich Schuchardt [Fri, 3 Oct 2014 00:15:24 +0000 (02:15 +0200)] 
random.3: SEE ALSO: add getrandom(2)

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetrandom.2: New page documenting getrandom(2)
Heinrich Schuchardt [Fri, 3 Oct 2014 00:15:13 +0000 (02:15 +0200)] 
getrandom.2: New page documenting getrandom(2)

Kernel 3.17 introduces a new system call getrandom(2).

The man page in this patch is based on the commit message by
Theodore Ts'o and suggestions by Michael Kerrisk.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agosignal.7: Add F_OFD_SETLKW to list of restartable operations
Michael Kerrisk [Thu, 29 Jan 2015 07:51:21 +0000 (08:51 +0100)] 
signal.7: Add F_OFD_SETLKW to list of restartable operations

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: srcfix: add mtk to copyright list
Michael Kerrisk [Wed, 28 Jan 2015 07:59:59 +0000 (08:59 +0100)] 
kexec_load.2: srcfix: add mtk to copyright list

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: ERRORS: add some further error cases
Michael Kerrisk [Wed, 28 Jan 2015 07:56:12 +0000 (08:56 +0100)] 
kexec_load.2: ERRORS: add some further error cases

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: Edits after Q&A from Vivek Goyal
Michael Kerrisk [Wed, 28 Jan 2015 07:35:19 +0000 (08:35 +0100)] 
kexec_load.2: Edits after Q&A from Vivek Goyal

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: Various additions after feedback from Vivek Goyal
Michael Kerrisk [Fri, 16 Jan 2015 13:27:52 +0000 (14:27 +0100)] 
kexec_load.2: Various additions after feedback from Vivek Goyal

Cowritten-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: Better describe EINVAL error when nr_segments exceeds KEXEC_SEGMENT_MAX
Michael Kerrisk [Wed, 7 Jan 2015 20:42:42 +0000 (21:42 +0100)] 
kexec_load.2: Better describe EINVAL error when nr_segments exceeds KEXEC_SEGMENT_MAX

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_file_load.2: New link to kexec_load.2
Michael Kerrisk [Wed, 7 Jan 2015 20:36:35 +0000 (21:36 +0100)] 
kexec_file_load.2: New link to kexec_load.2

10 years agokexec_load.2: Remove crufty statements that constants are not exported to glibc
Michael Kerrisk [Wed, 7 Jan 2015 20:26:41 +0000 (21:26 +0100)] 
kexec_load.2: Remove crufty statements that constants are not exported to glibc

With the kernel "uapi" changes of a a few releases ago, these
constants are now automatically provided to glibc.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: Move some text from NOTES to DESCRIPTION
Michael Kerrisk [Wed, 7 Jan 2015 20:21:11 +0000 (21:21 +0100)] 
kexec_load.2: Move some text from NOTES to DESCRIPTION

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: SEE ALSO: add Documentation/kernel-parameters.txt
Michael Kerrisk [Wed, 7 Jan 2015 16:18:32 +0000 (17:18 +0100)] 
kexec_load.2: SEE ALSO: add Documentation/kernel-parameters.txt

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: SEE ALSO: add Documentation/kdump/kdump.txt
Michael Kerrisk [Wed, 7 Jan 2015 16:17:10 +0000 (17:17 +0100)] 
kexec_load.2: SEE ALSO: add Documentation/kdump/kdump.txt

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: Edits after review comments by Vivek Goyal
Michael Kerrisk [Wed, 7 Jan 2015 16:15:29 +0000 (17:15 +0100)] 
kexec_load.2: Edits after review comments by Vivek Goyal

Reviewed-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: srcfix: Add Vivek Goyal to copyright notice
Michael Kerrisk [Sun, 9 Nov 2014 08:23:51 +0000 (09:23 +0100)] 
kexec_load.2: srcfix: Add Vivek Goyal to copyright notice

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: tfix
Michael Kerrisk [Sat, 8 Nov 2014 13:39:27 +0000 (14:39 +0100)] 
kexec_load.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: Note rationale for kexec_file_load()
Michael Kerrisk [Sat, 1 Nov 2014 11:26:17 +0000 (12:26 +0100)] 
kexec_load.2: Note rationale for kexec_file_load()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: Minor rewording
Michael Kerrisk [Sat, 1 Nov 2014 11:20:37 +0000 (12:20 +0100)] 
kexec_load.2: Minor rewording

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: SEE ALSO: add kexec(8)
Michael Kerrisk [Sat, 1 Nov 2014 06:40:28 +0000 (07:40 +0100)] 
kexec_load.2: SEE ALSO: add kexec(8)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoreboot.2: ffix
Michael Kerrisk [Sat, 1 Nov 2014 06:36:21 +0000 (07:36 +0100)] 
reboot.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoreboot.2: SEE ALSO: add kexec_load(2)
Michael Kerrisk [Sat, 1 Nov 2014 05:26:13 +0000 (06:26 +0100)] 
reboot.2: SEE ALSO: add kexec_load(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: Add FIXMEs
Michael Kerrisk [Sat, 1 Nov 2014 05:24:23 +0000 (06:24 +0100)] 
kexec_load.2: Add FIXMEs

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: srcfix
Michael Kerrisk [Sat, 1 Nov 2014 05:23:20 +0000 (06:23 +0100)] 
kexec_load.2: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: srcfix: remove a FIXME
Michael Kerrisk [Sat, 1 Nov 2014 05:20:21 +0000 (06:20 +0100)] 
kexec_load.2: srcfix: remove a FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: kexec_file_load() requires CONFIG_KEXEC_FILE
Michael Kerrisk [Fri, 31 Oct 2014 20:28:33 +0000 (21:28 +0100)] 
kexec_load.2: kexec_file_load() requires CONFIG_KEXEC_FILE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: CONFORMING TO: update for kexec_file_load()
Michael Kerrisk [Fri, 31 Oct 2014 20:21:08 +0000 (21:21 +0100)] 
kexec_load.2: CONFORMING TO: update for kexec_file_load()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: wfix
Michael Kerrisk [Fri, 31 Oct 2014 19:18:37 +0000 (20:18 +0100)] 
kexec_load.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: Note kernel version for kexec_file_load()
Michael Kerrisk [Fri, 31 Oct 2014 13:57:44 +0000 (14:57 +0100)] 
kexec_load.2: Note kernel version for kexec_file_load()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: Tweaks to Vivek Goyal's patch
Michael Kerrisk [Fri, 31 Oct 2014 13:55:12 +0000 (14:55 +0100)] 
kexec_load.2: Tweaks to Vivek Goyal's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agokexec_load.2: Document new kexec_file_load() system call
Vivek Goyal [Fri, 31 Oct 2014 13:49:56 +0000 (14:49 +0100)] 
kexec_load.2: Document new kexec_file_load() system call

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoiconvconfig.8: wfix
Michael Kerrisk [Wed, 28 Jan 2015 10:03:31 +0000 (11:03 +0100)] 
iconvconfig.8: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agotcp.7: wfix
Michael Kerrisk [Wed, 28 Jan 2015 10:02:22 +0000 (11:02 +0100)] 
tcp.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agotcp.7: tfix
Michael Kerrisk [Wed, 28 Jan 2015 10:00:47 +0000 (11:00 +0100)] 
tcp.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agosocket.7: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:59:44 +0000 (10:59 +0100)] 
socket.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agopthreads.7: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:58:20 +0000 (10:58 +0100)] 
pthreads.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agopipe.7: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:41:42 +0000 (10:41 +0100)] 
pipe.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agonamespaces.7: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:39:58 +0000 (10:39 +0100)] 
namespaces.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoipv6.7: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:38:37 +0000 (10:38 +0100)] 
ipv6.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoepoll.7: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:37:06 +0000 (10:37 +0100)] 
epoll.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agobootparam.7: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:35:16 +0000 (10:35 +0100)] 
bootparam.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agorepertoiremap.5: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:33:39 +0000 (10:33 +0100)] 
repertoiremap.5: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoproc.5: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:33:22 +0000 (10:33 +0100)] 
proc.5: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agost.4: tfix
Michael Kerrisk [Wed, 28 Jan 2015 09:29:55 +0000 (10:29 +0100)] 
st.4: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agortc.4: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:28:41 +0000 (10:28 +0100)] 
rtc.4: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agomem.4: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:27:05 +0000 (10:27 +0100)] 
mem.4: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agostatfs.2: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:25:25 +0000 (10:25 +0100)] 
statfs.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoshmctl.2: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:23:46 +0000 (10:23 +0100)] 
shmctl.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agosetns.2: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:23:14 +0000 (10:23 +0100)] 
setns.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoselect_tut.2: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:21:36 +0000 (10:21 +0100)] 
select_tut.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoperf_event_open.2: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:19:50 +0000 (10:19 +0100)] 
perf_event_open.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoioprio_set.2: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:16:45 +0000 (10:16 +0100)] 
ioprio_set.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoexecve.2: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:14:53 +0000 (10:14 +0100)] 
execve.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoclose.2: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:14:15 +0000 (10:14 +0100)] 
close.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agomemusage.1: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:11:54 +0000 (10:11 +0100)] 
memusage.1: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agostrcmp.3: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:08:11 +0000 (10:08 +0100)] 
strcmp.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agofmemopen.3: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:04:45 +0000 (10:04 +0100)] 
fmemopen.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agopow.3: wfix
Michael Kerrisk [Wed, 28 Jan 2015 09:04:40 +0000 (10:04 +0100)] 
pow.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agofclose.3: wfix
Michael Kerrisk [Wed, 28 Jan 2015 08:59:58 +0000 (09:59 +0100)] 
fclose.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoaddseverity.3: wfix
Michael Kerrisk [Wed, 28 Jan 2015 08:57:23 +0000 (09:57 +0100)] 
addseverity.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agofflush.3: wfix
Michael Kerrisk [Wed, 28 Jan 2015 08:54:23 +0000 (09:54 +0100)] 
fflush.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agofflush.3: srcfix
Michael Kerrisk [Wed, 28 Jan 2015 08:52:50 +0000 (09:52 +0100)] 
fflush.3: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agofflush.3: tfix
Michael Kerrisk [Wed, 28 Jan 2015 08:45:46 +0000 (09:45 +0100)] 
fflush.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agofflush.3: POSIX.1-2008 specifies the behavior when flushing input streams
Michael Kerrisk [Wed, 28 Jan 2015 08:32:08 +0000 (09:32 +0100)] 
fflush.3: POSIX.1-2008 specifies the behavior when flushing input streams

POSIX.1-2001 did not have a specification for input streams,
but POSIX.1-2008 added one.

Reported-by: Sergey V. Zubkov <cubbi@cubbi.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agofflush.3: Clarify that flushing of input streams occurs only for seekable files
Michael Kerrisk [Wed, 28 Jan 2015 08:24:47 +0000 (09:24 +0100)] 
fflush.3: Clarify that flushing of input streams occurs only for seekable files

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

Reported-by: Sergey V. Zubkov <cubbi@cubbi.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agolocale.1: ffix
Akihiro Motoki [Mon, 26 Jan 2015 16:21:17 +0000 (01:21 +0900)] 
locale.1: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoprctl.2: Unused arguments of PR_MPX_(EN,DIS}ABLE_MANAGEMENT must be zero
Michael Kerrisk [Mon, 26 Jan 2015 05:56:28 +0000 (06:56 +0100)] 
prctl.2: Unused arguments of PR_MPX_(EN,DIS}ABLE_MANAGEMENT must be zero

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoperf_event_open.2: srcfix: add git commit references
Vince Weaver [Fri, 23 Jan 2015 17:58:19 +0000 (12:58 -0500)] 
perf_event_open.2: srcfix: add git commit references

I noticed you were adding git commit references to the various
Linux version markers.

This adds git commit references for all Linux kernel version
notes in perf_event_open.2

mtk: I backed out two pieces of Vince's patch that were not
source comments. They can be dealt with as separate commits.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agotzset.3: Clarify that first timezone format does not contain spaces
Michael Kerrisk [Sun, 25 Jan 2015 14:09:37 +0000 (15:09 +0100)] 
tzset.3: Clarify that first timezone format does not contain spaces

Reported-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agotzset.3: Correct system timezone file path
JWP [Sun, 18 Jan 2015 20:04:50 +0000 (15:04 -0500)] 
tzset.3: Correct system timezone file path

The manual incorrectly states the system timezone
path as /usr/share/zoneinfo/localtime. Glibc does
not use that file for anything, it uses
$(prefix)/etc/localtime.

There is an ambiguous reference in the man-page to
/etc/localtime, but it does not indicate that it
will be used. It states clearly that
/usr/share/zoneinfo/localtime is used.

A comment in the glibc Makeconfig even says that
file should not exist:

> ... relative to $(zonedir).  It is a good idea
> to put this somewhere other than there, so the
> zoneinfo directory contains only universal data,
> localizing the configuration data elsewhere.

Furthermore, the man page does not indicate the
reason this file is being used; which is because
it is the configured system timezone.

A later patch in this series addresses the
possibility that /etc/localtime could be changed
during glibc's compilation. The language changed
in this patch points to the FILE section which is
where the explanation will be. There is no reason
to repeat that information multiple times
throughout the man-page.

EVIDENCE:

glibc/Makeconfig:256: sysconfdir = $(prefix)/etc
glibc/Makeconfig:272: localtime-file = $(sysconfdir)/localtime

FROM INFO LIBC:
C.2 Installing the C Library
============================
   To configure the locally used timezone, set the `TZ' environment
variable.  The script `tzselect' helps you to select the right value.
As an example, for Germany, `tzselect' would tell you to use
`TZ='Europe/Berlin''.  For a system wide installation (the given paths
are for an installation with `--prefix=/usr'), link the timezone file
which is in `/usr/share/zoneinfo' to the file `/etc/localtime'.  For
Germany, you might execute `ln -s /usr/share/zoneinfo/Europe/Berlin
/etc/localtime'.

STEPS TO REPRODUCE:

cd /usr/share/zoneinfo/
cp Antarctica/South_Pole localtime
cp /US/Eastern /etc/localtime
cd
date
Sun Jan 18 12:06:36 EST 2015
TZ=:/usr/share/zoneinfo/localtime date
Mon Jan 19 06:06:54 NZDT 2015
rm /etc/localtime
date
Sun Jan 18 17:08:37 UTC 2015
TZ=:/usr/share/zoneinfo/localtime date
Mon Jan 19 06:08:41 NZDT 2015

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agotzset.3: Document behavior when TZ filespec omits the colon
JWP [Sun, 18 Jan 2015 20:10:18 +0000 (15:10 -0500)] 
tzset.3: Document behavior when TZ filespec omits the colon

If the TZ filespec omits the leading colon, glibc will parse
it for any valid format, i.e., it will still work.

STEPS TO REPRODUCE:
TZ=:Europe/Kiev date
Sun Jan 18 20:19:13 EET 2015
TZ=Europe/Kiev date
Sun Jan 18 20:19:20 EET 2015

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agotzset.3: Filespec omitted incorrect
JWP [Sun, 18 Jan 2015 20:00:07 +0000 (15:00 -0500)] 
tzset.3: Filespec omitted incorrect

Paragraph three of the DESCRIPTION section says
that when TZ is set, but empty, then UTC is used.

Later it says if the TZ filespec is omitted then the file
/usr/share/zoneinfo/localtime is used.  This is incorrect,
it will use UTC in that case as well.

Steps to reproduce:

cd /usr/share/zoneinfo/
cp Antarctica/South_Pole localtime
cd
date
Sun Jan 18 10:59:50 EST 2015
TZ=:Hongkong date
Sun Jan 18 23:59:56 HKT 2015
TZ=:/usr/share/zoneinfo/localtime date
Mon Jan 19 05:00:03 NZDT 2015
TZ=: date
Sun Jan 18 16:00:11 UTC 2015
TZ=":" date
Sun Jan 18 16:00:18 UTC 2015
TZ=':' date
Sun Jan 18 16:00:24 UTC 2015
TZ=:/ date
Sun Jan 18 16:00:34  2015
TZ=":/" date
Sun Jan 18 16:00:40  2015
TZ="" date
Sun Jan 18 16:00:45 UTC 2015

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoChanges.old: tfix in 3.78 changelog
Michael Kerrisk [Fri, 23 Jan 2015 08:49:41 +0000 (09:49 +0100)] 
Changes.old: tfix in 3.78 changelog

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoStart of man-pages-3.79: updating Changes and Changes.old
Michael Kerrisk [Thu, 22 Jan 2015 22:37:01 +0000 (23:37 +0100)] 
Start of man-pages-3.79: updating Changes and Changes.old

10 years agoStart of man-pages-3.79: updating .Announce and .lsm files
Michael Kerrisk [Thu, 22 Jan 2015 22:37:01 +0000 (23:37 +0100)] 
Start of man-pages-3.79: updating .Announce and .lsm files