Commit Graph

6789 Commits

Author SHA1 Message Date
Michael Kerrisk e417acb023 fcntl.2, intro.2, open.2, poll.2, ftw.3, intro.3, matherr.3, system.3, tmpnam.3, unix.7: Note that feature test macros must be defined before *any* includes
Programmers often make the mistake of including a feature test
macro only after having already included some header files.
This patch adds some text at opportune places to remind
programmers to do things the right way.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-10 06:33:31 +02:00
Michael Kerrisk fbea0f8160 unix.7: Document SIOCINQ ioctl() operation
Reported-by: Jim Belton <jim.belton@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-10 06:02:16 +02:00
Michael Kerrisk 00c8445384 packet.7: srcfix: added FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-10 06:02:16 +02:00
Michael Kerrisk c2aa3e258c tcp.7: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-10 06:02:16 +02:00
Michael Kerrisk e9716a4d96 tcp.7: srcfix: added references to glibc bug report
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-10 06:02:16 +02:00
Michael Kerrisk f73df7253d tcp.7: Clarify header file details for SIOCINQ and SIOCOUTQ
Also note synonymous FIONREAD and TIOCOUTQ.

Reported-by: Jim Belton <jim.belton@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-10 06:02:00 +02:00
Michael Kerrisk be0349596f insque.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-09 09:54:35 +02:00
Michael Kerrisk 60f4b757b2 insque.3: Noted prev == NULL bug in glibc 2.4 and earlier
As noted by Remi Denis-Courmont, glibc nowadays allows
'prev' to be NULL, as required by POSIX for initializing
a linear list. But in glibc 2.4 and earlier, 'prev' could
not be NULL. Add a BUGS section noting this.

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

Reported-by: Remi Denis-Courmont <remi@remlab.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-09 09:46:29 +02:00
Michael Kerrisk d26b92899b insque.3: Added example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-09 09:46:10 +02:00
Michael Kerrisk e413450ebf insque.3: Added info on circular lists, and initializing circular lists
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-09 09:45:35 +02:00
Michael Kerrisk c1d4c8a31e insque.3: Added information on circular lists, and example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-09 09:44:31 +02:00
Michael Kerrisk 0a96a9f072 pthread_kill_other_threads_np.3: CONFORMING TO: Note meaning of "_np" suffix
Reported-by: Denis Silakov <silakov@ispras.ru>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-09 08:10:51 +02:00
Michael Kerrisk 583dc9ac63 pthread_getattr_np.3: grfix
Reported-by: Denis Silakov <silakov@ispras.ru>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-09 08:07:04 +02:00
Denis Barbier 7fcdca3be7 armscii-8.7, cp1251.7, iso_8859-3.7, iso_8859-5.7, iso_8859-6.7, iso_8859-8.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, koi8-u.7: Fix decimal values in encoding tables
Octal and hexadecimal values are right, but there are some
off-by one errors in decimal values.  Correct values are
printed by this command:

  perl -pi -e 'if (s/^([0-7]+)\t([0-9]+)\t([0-9a-fA-F]+)//)
    {printf "%03o\t%d\t%s", hex($3), hex($3), $3;};' man7/*.7

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-09 08:02:12 +02:00
Michael Kerrisk 5ce6020026 Start of man-pages-3.27: updating Changes and Changes.old 2010-09-05 18:04:17 +02:00
Michael Kerrisk 37e7fe414c Start of man-pages-3.27: updating .Announce and .lsm files 2010-09-05 18:04:17 +02:00
Michael Kerrisk e4b9252401 Start of man-pages-3.27: renaming .Announce and .lsm files 2010-09-05 18:04:16 +02:00
Michael Kerrisk b8b0fc36a8 Ready for 3.26 2010-09-05 17:17:37 +02:00
Michael Kerrisk 72542487e7 getaddrinfo.3, getipnodebyname.3, initrd.4, st.4: minor: update timestamps
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-09-04 07:19:26 +02:00
Michael Kerrisk 19abcb0a05 Changes: Add contributors and changes so far in this release
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-09-04 07:14:32 +02:00
Guillem Jover bb4260c01b statfs.2: Fix copy & paste error for __SWORD_TYPE definition
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-09-04 06:45:06 +02:00
Michael Kerrisk 64fb5aedb0 tzfile.5: Add information on version 2 format timezone files
Updated using information from the tzcode 2010l release at
ftp://elsie.nci.nih.gov/pub.
(It's an open question whether or not a version of tzfile.5
should live independently in man-pages. It was added to the
man-pages set many years ago. For now, I'll follow a
conservative course that causes least pain to downstream,
by continuing to maintain a separate copy in man-pages.)

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

Reported-by: Yitzchak Gale <gale@sefer.org>
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-31 07:58:38 +02:00
Michael Kerrisk 26ae585e9b socket.7: srcfix: Updated fixme
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-31 07:05:20 +02:00
Michael Kerrisk 3fa2e4b9f5 select.2: Update NOTES on old glibc pselect()
Make it clear that modern glibc uses the kernel pselect()
on systems where it is available.
See https://bugzilla.kernel.org/show_bug.cgi?id=14411

Reported-by: mac@mcrowe.com
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-31 06:59:47 +02:00
Michael Kerrisk 6b2bd25649 futex.2: srcfix: update FIXME
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-31 06:50:46 +02:00
Michael Kerrisk 78ca89ac9a mq_send.3: Fix EAGAIN description (s/empty/full)
Reported-by: Peter Stuge <peter@stuge.se>
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-31 06:22:19 +02:00
Michael Kerrisk 0986cb57b1 eventfd.2: Document EFD_SEMAPHORE
Document the EFD_SEMAPHORE flag, added in kernel 2.6.30.
Also restructured some parts of the text to fit with the
addition of the EFD_SEMAPHORE text.

Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-30 07:15:21 +02:00
Michael Kerrisk 4eb6d333a8 eventfd.2: Put flags list in alphabetical order
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-30 06:39:47 +02:00
Michael Kerrisk c4c8b1da75 write.2: Add EDESTADDRREQ error
Reported-by: Brian Sutin <Brian.Sutin@hs.utc.com>
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 15:50:27 +02:00
Michael Kerrisk 192e4f2e62 bootparam.7: Minor wfix/ffix
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 14:45:33 +02:00
Michael Kerrisk 606043ca67 find_repeated_words.sh: Fix bug
setting of MANWIDTH needs to be in environmnt of "man -l"

Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 14:41:52 +02:00
Michael Kerrisk cc3707c028 utimensat.2: Minor fix: remove duplicate word "the"
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 14:41:21 +02:00
Michael Kerrisk e8fd507782 sysfs.2: Minor fix: remove duplicate "the"
Reported-by: Denis Barbier <bouzim@gmail.com>
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 14:40:16 +02:00
Michael Kerrisk 2677bc5cea epoll_ctl.2: wspfix
Reported-by: Denis Barbier <bouzim@gmail.com>
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 14:22:51 +02:00
Michael Kerrisk cb8c0c9b69 readdir.2: Minor wording fix
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 09:06:37 +02:00
Michael Kerrisk d185a51006 gethostname.2: Minor wording fix
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 09:06:12 +02:00
Michael Kerrisk bde4b0ae94 gethostname.2: Minor wording fix
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 09:05:40 +02:00
Michael Kerrisk 460b3d610f sigaction.2: Minor fix: s/null/NULL/
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 09:03:11 +02:00
Michael Kerrisk 825e3c0f07 termcap.5: Minor fix: clarify "null character"
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 08:59:05 +02:00
Michael Kerrisk 38254b5489 getsubopt.3:Minor wording fix ("null byte")
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 08:57:21 +02:00
Michael Kerrisk 6596d27062 proc.5: Minor wording fix
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 08:55:29 +02:00
Michael Kerrisk 3701130ad7 send.2: wfix
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 08:33:07 +02:00
Michael Kerrisk b637ad73b1 recv.2, send.2: Remove obsolete reference to glibc version in NOTES
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 08:32:22 +02:00
Nicholas Hunt f07435fbcc recv.2, send.2: Adjust type shown for msg_controllen to glibc reality
This patch fixes the type of msg_controllen in the struct msghdr
definition given in send.2 and recv.2 to match the definition in
glibc and the kernel.

Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 08:29:04 +02:00
Peng Haitao 4c6267515f a64l.3: Fix error in NOTES, s/a64l/l64a/
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 08:20:19 +02:00
Denis Barbier 038dff6613 sched_setscheduler.2: wfix
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 07:58:29 +02:00
Michael Kerrisk 5d127cc9a4 readlink.2: Minor wording change in CONFORMING TO
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 07:54:11 +02:00
Michael Kerrisk ca0d872f8d README: Point directly at contributing.html
Reported-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 07:40:29 +02:00
Alexander Shishkin d45105d9d7 eventfd.2: Clarified close-on-exec behavior
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 07:37:08 +02:00
Lnac Huard c9e83f0678 mq_getsetattr.2, mq_close.3, mq_getattr.3, mq_notify.3, mq_send.3, mq_unlink.3: Fix return type in SYNOPSIS (s/mqd_t/int/)
Signed-off-by: Michael Kerrisk <mtk@konstanz.(none)>
2010-08-29 07:36:55 +02:00