]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
10 years agoreboot.2: tfix (double word) and minor format issue
Simon Paillard [Wed, 8 Jan 2014 22:54:28 +0000 (23:54 +0100)] 
reboot.2: tfix (double word) and minor format issue

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agodlopen.3: Fix description of dli_sname
Michael Kerrisk [Wed, 8 Jan 2014 01:07:34 +0000 (14:07 +1300)] 
dlopen.3: Fix description of dli_sname

See https://sourceware.org/bugzilla/show_bug.cgi?id=16262

Reported-by: Stephen Kell <srk31@srcf.ucam.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoadjtime.3, getw.3: srcfix: Start new sentence on new source line
Michael Kerrisk [Wed, 8 Jan 2014 00:54:41 +0000 (13:54 +1300)] 
adjtime.3, getw.3: srcfix: Start new sentence on new source line

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agosetjmp.3: BSD setjmp() semantics go away in glibc 2.19
Michael Kerrisk [Mon, 6 Jan 2014 22:15:53 +0000 (11:15 +1300)] 
setjmp.3: BSD setjmp() semantics go away in glibc 2.19

Reviewed-by: Joseph S. Myers <joseph@codesourcery.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agosigpause.3: BSD sigpause() goes away in glibc 2.19
Michael Kerrisk [Mon, 6 Jan 2014 21:55:42 +0000 (10:55 +1300)] 
sigpause.3: BSD sigpause() goes away in glibc 2.19

Reviewed-by: Joseph S. Myers <joseph@codesourcery.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agosigpause.3: Correct feature text macro requirements
Michael Kerrisk [Mon, 6 Jan 2014 21:52:21 +0000 (10:52 +1300)] 
sigpause.3: Correct feature text macro requirements

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agosetpgid.2: BSD getpgrp() and setpgrp() go away in glibc 2.19
Michael Kerrisk [Mon, 6 Jan 2014 21:36:37 +0000 (10:36 +1300)] 
setpgid.2: BSD getpgrp() and setpgrp() go away in glibc 2.19

Reviewed-by: Joseph S. Myers <joseph@codesourcery.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agofeature_test_macros.7: Document _DEFAULT_SOURCE
Michael Kerrisk [Mon, 6 Jan 2014 02:17:54 +0000 (15:17 +1300)] 
feature_test_macros.7: Document _DEFAULT_SOURCE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agofeature_test_macros.7: From glibc 2.19, _BSD_SOURCE no longer causes __FAVOR_BSD
Michael Kerrisk [Sun, 5 Jan 2014 21:22:52 +0000 (10:22 +1300)] 
feature_test_macros.7: From glibc 2.19, _BSD_SOURCE no longer causes __FAVOR_BSD

Starting with glibc 2.19, _BSD_SOURCE no longer causes BSD
definitions to be favored in cases where standards conflict.

Reviewed-by: Joseph S. Myers <joseph@codesourcery.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoscanf.3: Improve discussion of obsolete 'a' dynamic allocation modifier
Michael Kerrisk [Tue, 7 Jan 2014 22:27:23 +0000 (11:27 +1300)] 
scanf.3: Improve discussion of obsolete 'a' dynamic allocation modifier

Reported-by: Ondřej Bílka <neleai@seznam.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetline.3: Correct description of how '*n' is used when '*lineptr' == NULL
Michael Kerrisk [Tue, 7 Jan 2014 21:02:50 +0000 (10:02 +1300)] 
getline.3: Correct description of how '*n' is used when '*lineptr' == NULL

See https://sourceware.org/bugzilla/show_bug.cgi?id=5468

Reported-by: Luke Hutchison <luke.hutch@mit.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoman-pages.7: s/Real hyphen/Real minus/
Michael Kerrisk [Tue, 7 Jan 2014 20:35:27 +0000 (09:35 +1300)] 
man-pages.7: s/Real hyphen/Real minus/

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agold.so.8: Default output file for D_DEBUG is stderr not stdout
Michael Kerrisk [Tue, 7 Jan 2014 20:31:57 +0000 (09:31 +1300)] 
ld.so.8: Default output file for D_DEBUG is stderr not stdout

See https://sourceware.org/bugzilla/show_bug.cgi?id=6874

Reported-by: Matthias Klose <doko@debian.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoexecve.2: Add further cases to EFAULT error
Michael Kerrisk [Tue, 7 Jan 2014 18:52:49 +0000 (07:52 +1300)] 
execve.2: Add further cases to EFAULT error

See https://sourceware.org/bugzilla/show_bug.cgi?id=16402

Reported-by: Marco Dione <mdione@grulic.org.ar>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agotanh.3: ATTRIBUTES: Note functions that are thread-safe
Peng Haitao [Tue, 7 Jan 2014 01:59:43 +0000 (09:59 +0800)] 
tanh.3: ATTRIBUTES: Note functions that are thread-safe

The functions tanh(), tanhf() and tanhl() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agotan.3: ATTRIBUTES: Note functions that are thread-safe
Peng Haitao [Mon, 6 Jan 2014 07:47:09 +0000 (15:47 +0800)] 
tan.3: ATTRIBUTES: Note functions that are thread-safe

The functions tan(), tanf() and tanl() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agosysv_signal.3: ATTRIBUTES: Note function that is thread-safe
Peng Haitao [Mon, 6 Jan 2014 05:45:03 +0000 (13:45 +0800)] 
sysv_signal.3: ATTRIBUTES: Note function that is thread-safe

The function sysv_signal() is thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agotowupper.3: ATTRIBUTES: Note function that is thread safe with exceptions
Peng Haitao [Mon, 6 Jan 2014 03:42:43 +0000 (11:42 +0800)] 
towupper.3: ATTRIBUTES: Note function that is thread safe with exceptions

The function towupper() is thread safe with exceptions.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agotowlower.3: ATTRIBUTES: Note function that is thread safe with exceptions
Peng Haitao [Mon, 6 Jan 2014 02:56:30 +0000 (10:56 +0800)] 
towlower.3: ATTRIBUTES: Note function that is thread safe with exceptions

The function towlower() is thread safe with exceptions.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoregex.3: tfix
Michael Kerrisk [Mon, 6 Jan 2014 11:47:47 +0000 (00:47 +1300)] 
regex.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoregex.3: tfix
Yuri Kozlov [Mon, 6 Jan 2014 11:47:15 +0000 (00:47 +1300)] 
regex.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetauxval.3: Added FIXME for AT_HWCAP2
Michael Kerrisk [Mon, 6 Jan 2014 01:43:37 +0000 (14:43 +1300)] 
getauxval.3: Added FIXME for AT_HWCAP2

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoman-pages.7: Various improvements to style guide
Michael Kerrisk [Sun, 5 Jan 2014 23:50:12 +0000 (12:50 +1300)] 
man-pages.7: Various improvements to style guide

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agodlopen.3: tfix
Michael Kerrisk [Sun, 5 Jan 2014 01:59:13 +0000 (14:59 +1300)] 
dlopen.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agopthread_getcpuclockid.3: ffix
Michael Kerrisk [Sun, 5 Jan 2014 00:28:57 +0000 (13:28 +1300)] 
pthread_getcpuclockid.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoif_nameindex.3: ffix
Michael Kerrisk [Sun, 5 Jan 2014 00:27:16 +0000 (13:27 +1300)] 
if_nameindex.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agochown.2, clone.2, mmap.2, pipe.2, ftw.3, mq_notify.3: Add "Program source" subheading...
Michael Kerrisk [Sun, 5 Jan 2014 00:24:26 +0000 (13:24 +1300)] 
chown.2, clone.2, mmap.2, pipe.2, ftw.3, mq_notify.3: Add "Program source" subheading under EXAMPLE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agomprotect.2: Add "static" to global variable in example program
Michael Kerrisk [Sun, 5 Jan 2014 00:24:05 +0000 (13:24 +1300)] 
mprotect.2: Add "static" to global variable in example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agortime.3: ffix
Michael Kerrisk [Sun, 5 Jan 2014 00:22:12 +0000 (13:22 +1300)] 
rtime.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agohsearch.3: Add "static" to global variable in example program
Michael Kerrisk [Sun, 5 Jan 2014 00:20:09 +0000 (13:20 +1300)] 
hsearch.3: Add "static" to global variable in example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetsubopt.3: ffix (K&R style in example program)
Michael Kerrisk [Sun, 5 Jan 2014 00:19:04 +0000 (13:19 +1300)] 
getsubopt.3: ffix (K&R style in example program)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoperf_event_open.2: Add "static" qualifier to function in example program
Michael Kerrisk [Sun, 5 Jan 2014 00:12:32 +0000 (13:12 +1300)] 
perf_event_open.2: Add "static" qualifier to function in example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agotsearch.3: Add "static" to global variables and functions in example program
Michael Kerrisk [Sun, 5 Jan 2014 00:08:57 +0000 (13:08 +1300)] 
tsearch.3: Add "static" to global variables and functions in example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agostrftime.3: Add "Program source" subsection heading
Michael Kerrisk [Sun, 5 Jan 2014 00:07:30 +0000 (13:07 +1300)] 
strftime.3: Add "Program source" subsection heading

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agostpcpy.3: ffix
Michael Kerrisk [Sun, 5 Jan 2014 00:06:45 +0000 (13:06 +1300)] 
stpcpy.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agortime.3: Add "static" qualifier to global variable in example program
Michael Kerrisk [Sun, 5 Jan 2014 00:03:46 +0000 (13:03 +1300)] 
rtime.3: Add "static" qualifier to global variable in example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agortime.3: ffix
Michael Kerrisk [Sun, 5 Jan 2014 00:03:27 +0000 (13:03 +1300)] 
rtime.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoget_mempolicy.2, mbind.2, mlock.2, set_mempolicy.2, bootparam.7, packet.7: grfix...
Michael Kerrisk [Sat, 4 Jan 2014 22:00:31 +0000 (11:00 +1300)] 
get_mempolicy.2, mbind.2, mlock.2, set_mempolicy.2, bootparam.7, packet.7: grfix: s/memory mapped/memory-mapped/ when used attributively

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agopacket.7: wfix: s/network order/network byte order/
Michael Kerrisk [Sat, 4 Jan 2014 21:52:45 +0000 (10:52 +1300)] 
packet.7: wfix: s/network order/network byte order/

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agopacket.7: Add kernel version numbers for PACKET_VERSION and PACKET_TIMESTAMP
Michael Kerrisk [Sat, 4 Jan 2014 21:51:42 +0000 (10:51 +1300)] 
packet.7: Add kernel version numbers for PACKET_VERSION and PACKET_TIMESTAMP

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agopacket.7: Minor fixes
Michael Kerrisk [Sat, 4 Jan 2014 21:44:33 +0000 (10:44 +1300)] 
packet.7: Minor fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agopacket.7: Document fanout, ring, and auxiliary options
Willem de Bruijn [Fri, 6 Dec 2013 17:18:49 +0000 (12:18 -0500)] 
packet.7: Document fanout, ring, and auxiliary options

The packet socket manual page does not list all socket options.

This patch adds descriptions of the common packet socket options
  PACKET_AUXDATA, PACKET_FANOUT, PACKET_RX_RING, PACKET_STATISTICS,
  PACKET_TX_RING

and the ring-specific options
  PACKET_LOSS, PACKET_RESERVE, PACKET_TIMESTAMP, PACKET_VERSION

It does not yet add descriptions for
  PACKET_COPY_THRESH, PACKET_HDRLEN, PACKET_ORIGDEV,
  PACKET_TX_HAS_OFF, PACKET_TX_TIMESTAMP, PACKET_VNET_HDR

It tries to balance being informative with exposing kernel detail
that is unlikely to be used by most readers or that may change
frequently. For implementation details, the manpage points to the
documentation in kernel Documentation/networking. Let me know if
options should be added or removed.

Source: PACKET_FANOUT, PACKET_RX_RING and PACKET_VERSION are in
/tools/testing/net/psock_fanout.c in the latest Linux kernel source
tree. PACKET_STATISTICS was in the first version of that test.
PACKET_TX_RING I have used elsewhere. The other options are based
on reading kernel code.

 [Very minor fixups. -dborkman]

Acked-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agostrstr.3: Clarify RETURN VALUE: s/substring/located substring/
Michael Kerrisk [Sat, 4 Jan 2014 10:58:00 +0000 (23:58 +1300)] 
strstr.3: Clarify RETURN VALUE: s/substring/located substring/

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agostrsep.3: Clarify description
Michael Kerrisk [Sat, 4 Jan 2014 10:52:13 +0000 (23:52 +1300)] 
strsep.3: Clarify description

The use of "symbols" in the existing description is confusing;
it's "bytes". Other fixes as well.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agostring.3: Fixes and enhancements to Moritz Str?be's patch
Michael Kerrisk [Sat, 4 Jan 2014 11:28:50 +0000 (00:28 +1300)] 
string.3: Fixes and enhancements to Moritz Str?be's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agostring.3: Add short description of the functions
Moritz 'Morty' Strübe [Wed, 4 Dec 2013 12:03:30 +0000 (13:03 +0100)] 
string.3: Add short description of the functions

It is helpful to have a short description about what the different
functions in string.h do.

Signed-off-by: Moritz 'Morty' Strübe <morty@gmx.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoman-pages.7: Minor fixes
Michael Kerrisk [Fri, 3 Jan 2014 10:37:08 +0000 (23:37 +1300)] 
man-pages.7: Minor fixes

Reported-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoman-pages.7: Add STYLE GUIDE section
Michael Kerrisk [Thu, 2 Jan 2014 23:38:26 +0000 (12:38 +1300)] 
man-pages.7: Add STYLE GUIDE section

Incorporate some of the existing material in the page
into the STYLE GUIDE, and add a lot more material, mainly
drawn from the "Global changes" sections in the release
changelogs.

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoepoll_ctl.2, execve.2, recv.2, timer_create.2, wait.2, argz_add.3, basename.3, dlopen...
Michael Kerrisk [Fri, 3 Jan 2014 02:01:50 +0000 (15:01 +1300)] 
epoll_ctl.2, execve.2, recv.2, timer_create.2, wait.2, argz_add.3, basename.3, dlopen.3, exec.3, fopencookie.3, fts.3, getaddrinfo.3, getcwd.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getlogin.3, getnetent.3, getprotoent.3, getrpcent.3, getservent.3, getusershell.3, glob.3, if_nameindex.3, inet_ntop.3, lio_listio.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mq_notify.3, ptsname.3, realpath.3, setnetgrent.3, sigvec.3, strsignal.3, strtok.3, wcrtomb.3, wcsnrtombs.3, wcsrtombs.3, wcstombs.3, xdr.3: Global fix of "NULL pointer"

Change "NULL pointer: to "NUL " or null pointer".
POSIX uses the term "null pointer", not "NULL pointer".

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoexec.3, fts.3: srcfix
Michael Kerrisk [Fri, 3 Jan 2014 01:37:45 +0000 (14:37 +1300)] 
exec.3, fts.3: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agohpsa.4: wfix
Michael Kerrisk [Fri, 3 Jan 2014 00:59:03 +0000 (13:59 +1300)] 
hpsa.4: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agotermios.3: wfix
Michael Kerrisk [Fri, 3 Jan 2014 00:53:14 +0000 (13:53 +1300)] 
termios.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoperf_event_open.2: wfix
Michael Kerrisk [Fri, 3 Jan 2014 00:43:50 +0000 (13:43 +1300)] 
perf_event_open.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agomtrace.3: wfix
Michael Kerrisk [Fri, 3 Jan 2014 00:45:51 +0000 (13:45 +1300)] 
mtrace.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agofts.3: wfix
Michael Kerrisk [Fri, 3 Jan 2014 00:39:37 +0000 (13:39 +1300)] 
fts.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoman-pages.7: Add some further style notes for code examples
Michael Kerrisk [Thu, 2 Jan 2014 23:34:35 +0000 (12:34 +1300)] 
man-pages.7: Add some further style notes for code examples

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoINFINITY.3: wfix
Michael Kerrisk [Thu, 2 Jan 2014 21:29:37 +0000 (10:29 +1300)] 
INFINITY.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoprctl.2: wfix
Michael Kerrisk [Thu, 2 Jan 2014 21:26:45 +0000 (10:26 +1300)] 
prctl.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoperf_event_open.2: wfix
Michael Kerrisk [Thu, 2 Jan 2014 21:19:25 +0000 (10:19 +1300)] 
perf_event_open.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agomallopt.3: wfix
Michael Kerrisk [Thu, 2 Jan 2014 21:16:54 +0000 (10:16 +1300)] 
mallopt.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoclone.2: wfix
Michael Kerrisk [Thu, 2 Jan 2014 21:13:23 +0000 (10:13 +1300)] 
clone.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agocapabilities.7: wfix
Michael Kerrisk [Thu, 2 Jan 2014 21:11:34 +0000 (10:11 +1300)] 
capabilities.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agospu_create.2: wfix
Michael Kerrisk [Thu, 2 Jan 2014 21:08:16 +0000 (10:08 +1300)] 
spu_create.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoman-pages.7: Add historical note on reason for use of Americal spelling
Michael Kerrisk [Thu, 2 Jan 2014 21:04:39 +0000 (10:04 +1300)] 
man-pages.7: Add historical note on reason for use of Americal spelling

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoman-pages.7: wfix
Michael Kerrisk [Thu, 2 Jan 2014 21:02:29 +0000 (10:02 +1300)] 
man-pages.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agodlopen.3: Minor fixes
Michael Kerrisk [Thu, 2 Jan 2014 20:58:37 +0000 (09:58 +1300)] 
dlopen.3: Minor fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agovdso.7: Minor fixes
Michael Kerrisk [Thu, 2 Jan 2014 19:12:10 +0000 (08:12 +1300)] 
vdso.7: Minor fixes

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agodlopen.3: srcfix: add a reference to Austin "Pointer Types" issue
Michael Kerrisk [Thu, 2 Jan 2014 10:14:28 +0000 (23:14 +1300)] 
dlopen.3: srcfix: add a reference to Austin "Pointer Types" issue

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agodlopen.3: Tweaks to previous patch
Michael Kerrisk [Thu, 2 Jan 2014 09:34:20 +0000 (22:34 +1300)] 
dlopen.3: Tweaks to previous patch

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agostandards.7: wfix
Michael Kerrisk [Thu, 2 Jan 2014 01:41:44 +0000 (14:41 +1300)] 
standards.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agodlopen.3: Update remarks on cast needed when assigning dlsym() return value
Michael Kerrisk [Thu, 2 Jan 2014 01:38:53 +0000 (14:38 +1300)] 
dlopen.3: Update remarks on cast needed when assigning dlsym() return value

POSIX.1-2013 eases life when casting the dlsym() return value to a
function pointer

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoptrace.2: tfix userspace->user space
Mike Frysinger [Tue, 31 Dec 2013 06:59:13 +0000 (01:59 -0500)] 
ptrace.2: tfix userspace->user space

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agosyscall.2, syscalls.2, getauxval.3: Add references to new vdso(7) page
Mike Frysinger [Wed, 1 Jan 2014 08:29:53 +0000 (21:29 +1300)] 
syscall.2, syscalls.2, getauxval.3: Add references to new vdso(7) page

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agolibc.7: SEE ALSO: add various entries
Mike Frysinger [Wed, 1 Jan 2014 08:29:31 +0000 (21:29 +1300)] 
libc.7: SEE ALSO: add various entries

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agovdso.7: srcfix: wrap some long source lines
Michael Kerrisk [Wed, 1 Jan 2014 19:54:51 +0000 (08:54 +1300)] 
vdso.7: srcfix: wrap some long source lines

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agovdso.7: Further tweaks after discussion with Mike Frysinger
Michael Kerrisk [Wed, 1 Jan 2014 19:41:50 +0000 (08:41 +1300)] 
vdso.7: Further tweaks after discussion with Mike Frysinger

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agovdso.7: Clean-ups
Michael Kerrisk [Wed, 1 Jan 2014 10:14:33 +0000 (23:14 +1300)] 
vdso.7: Clean-ups

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agovdso.7: New page documenting the vDSO mapped into each process by the kernel
Mike Frysinger [Wed, 1 Jan 2014 08:25:39 +0000 (21:25 +1300)] 
vdso.7: New page documenting the vDSO mapped into each process by the kernel

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agouselib.2, getfsent.3, regex.3, nsswitch.conf.5, inotify.7, man-pages.7, symlink.7...
Michael Kerrisk [Wed, 1 Jan 2014 03:23:27 +0000 (16:23 +1300)] 
uselib.2, getfsent.3, regex.3, nsswitch.conf.5, inotify.7, man-pages.7, symlink.7: Replace uses of "e.g." in main text with "for example" or similar

    Usual man-pages style is to use "e.g." only within
    parenthetical expressions.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoproc.5, unix.7: grfix
Michael Kerrisk [Wed, 1 Jan 2014 03:17:09 +0000 (16:17 +1300)] 
proc.5, unix.7: grfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoeventfd.2, set_mempolicy.2, timerfd_create.2, fwide.3, resolver.3, spufs.7, symlink...
Michael Kerrisk [Wed, 1 Jan 2014 03:15:14 +0000 (16:15 +1300)] 
eventfd.2, set_mempolicy.2, timerfd_create.2, fwide.3, resolver.3, spufs.7, symlink.7, udplite.7, unicode.7: Replace uses of "i.e.," in main text with "that is" or similar

Usual man-pages style is to use "i.e." only within
parenthetical expressions.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoputs.3: SEE ALSO: replace reference to gets(3) with fgets(3)
Michael Kerrisk [Tue, 31 Dec 2013 10:03:30 +0000 (23:03 +1300)] 
puts.3: SEE ALSO: replace reference to gets(3) with fgets(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogetline.3: Remove SEE ALSO reference to unsafe gets(3)
Michael Kerrisk [Tue, 31 Dec 2013 10:02:17 +0000 (23:02 +1300)] 
getline.3: Remove SEE ALSO reference to unsafe gets(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agofgetc.3: Minor fix to ordering in SEE ALSO
Michael Kerrisk [Tue, 31 Dec 2013 10:01:24 +0000 (23:01 +1300)] 
fgetc.3: Minor fix to ordering in SEE ALSO

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogets.3: Tweaks to David Malcolm's patch
Michael Kerrisk [Tue, 31 Dec 2013 09:35:40 +0000 (22:35 +1300)] 
gets.3: Tweaks to David Malcolm's patch

Reported-by: Andre Majorel <aym-xunil@teaser.fr>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agogets.3: Tweaks to David Malcolm's patch
Michael Kerrisk [Tue, 31 Dec 2013 09:16:09 +0000 (22:16 +1300)] 
gets.3: Tweaks to David Malcolm's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agofgetc.3, gets.3: tstamp
Michael Kerrisk [Tue, 31 Dec 2013 09:05:14 +0000 (22:05 +1300)] 
fgetc.3, gets.3: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agofgets.3, getc.3, getchar.3, ungetc.3: Adjust links to gets(3) to point to fgetc(3)
Michael Kerrisk [Tue, 31 Dec 2013 09:02:58 +0000 (22:02 +1300)] 
fgets.3, getc.3, getchar.3, ungetc.3: Adjust links to gets(3) to point to fgetc(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agofgetc.3, gets.3: Split gets(3) to isolate unsafe gets(3) to a page on its own
David Malcolm [Tue, 31 Dec 2013 08:59:14 +0000 (21:59 +1300)] 
fgetc.3, gets.3: Split gets(3) to isolate unsafe gets(3) to a page on its own

Currently man3/gets.3 documents various safe I/O functions, along
with the toxic "gets" function.

At the risk of being melodramatic, this strikes me as akin to
storing rat poison in a food cabinet, in the same style of
packaging as the food, but with a post-it note on it saying
"see warnings below".

I think such "never use this" functions should be quarantined
into their own manpages, rather than listing them alongside
sane functions.

The attached patch does this for "gets", moving the documentation
of the good functions from man3/gets.3 into man3/fgetc.3,
updating the SO links in the relevant functions to point at the
latter.

It then rewrites man3/gets.3 to spell out that "gets" is toxic
and should never be used (with a link to CWE-242 for good
measure).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agosocket.7: wfix
Michael Kerrisk [Mon, 30 Dec 2013 20:59:22 +0000 (09:59 +1300)] 
socket.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agosocket.2: Remove crufty statement that AF_INET does not support SOCK_SEQPACKET
Michael Kerrisk [Mon, 30 Dec 2013 20:49:45 +0000 (09:49 +1300)] 
socket.2: Remove crufty statement that AF_INET does not support SOCK_SEQPACKET

Linux AF_INET supports SOCK_SEQPACKET via SCTP.

Reported-by: Dongsheng Song <dongsheng.song@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoChanges: Add dedication
Michael Kerrisk [Mon, 30 Dec 2013 10:04:11 +0000 (23:04 +1300)] 
Changes: Add dedication

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoclose.2: Note that errors from close() should be used only for diagnosis
Michael Kerrisk [Mon, 30 Dec 2013 09:30:04 +0000 (22:30 +1300)] 
close.2: Note that errors from close() should be used only for diagnosis

In particular, retrying after EINTR is a bad idea.

See http://austingroupbugs.net/view.php?id=529

See http://thread.gmane.org/gmane.comp.lib.glibc.alpha/37702
Subject: [RFC][BZ #14627] Make linux close errno to EINPROGRESS
         when interrupted in signal.

Reported-by: P?draig Brady <P@draigBrady.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agostrspn.3: Improve description in NAME
Michael Kerrisk [Mon, 30 Dec 2013 09:07:17 +0000 (22:07 +1300)] 
strspn.3: Improve description in NAME

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=723659

Reported-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoselect_tut.2, dlopen.3, err.3, printf.3: Stylistic changes to code example
Michael Kerrisk [Mon, 30 Dec 2013 07:53:19 +0000 (20:53 +1300)] 
select_tut.2, dlopen.3, err.3, printf.3: Stylistic changes to code example

For ease of reading, don't embed assignments inside if().

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoprintf.3: Fix memory link in snprintf() example
Michael Kerrisk [Mon, 30 Dec 2013 07:50:46 +0000 (20:50 +1300)] 
printf.3: Fix memory link in snprintf() example

See http://stackoverflow.com/questions/19933479/snprintf-man-page-example-memory-leak

Reported-by: Arif Zaman <arifz@lums.edu.pk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoproc.5: Fix formula for CommitLimit under /proc/meminfo
Michael Kerrisk [Mon, 30 Dec 2013 07:24:11 +0000 (20:24 +1300)] 
proc.5: Fix formula for CommitLimit under /proc/meminfo

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

Reported-by: <sworddragon2@aol.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agoctime.3: grfix: add some commas
Michael Kerrisk [Mon, 30 Dec 2013 06:43:40 +0000 (19:43 +1300)] 
ctime.3: grfix: add some commas

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agostrptime.3: grfix: add some commas
Michael Kerrisk [Mon, 30 Dec 2013 06:41:03 +0000 (19:41 +1300)] 
strptime.3: grfix: add some commas

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
10 years agostrptime.3: Some rewording and reorganization
Michael Kerrisk [Mon, 30 Dec 2013 06:35:26 +0000 (19:35 +1300)] 
strptime.3: Some rewording and reorganization

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