Commit Graph

1977 Commits

Author SHA1 Message Date
Michael Kerrisk 7bbac16345 qsort.3: EXAMPLE: remove unnecessary "#include <stdlib.h>"
Reported-by: Christian Siebert <christian.siebert@s2000.tu-chemnitz.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-02 02:00:10 +13:00
Michael Kerrisk 6255c227d7 pthread_attr_setaffinity_np.3: SYNOPSIS: Fix declaration of 'attr'
Reported-by: Satyam Sharma <ssatyam@cse.iitk.ac.in>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-02 01:59:57 +13:00
Michael Kerrisk f5d458e6fe intro.3: SEE ALSO: add libc(7)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-01 00:19:04 +13:00
Michael Kerrisk c67e8ae963 pthread_kill_other_threads_np.3: New page documenting pthread_kill_other_threads_np(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-28 16:34:49 +01:00
Michael Kerrisk abb1d278d7 pthread_kill.3: New page documenting pthread_kill(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-28 16:34:43 +01:00
Michael Kerrisk de8fc4be0d mq_notify.3: Add cross reference to pthread_attr_init(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-27 02:43:49 +01:00
Michael Kerrisk 10e83d4682 offsetof.3: srcfix: remove out-of-date FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-27 02:39:25 +01:00
Michael Kerrisk cf499212e7 sigwait.3: Add EXAMPLES section referring to pthread_sigmask(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-27 02:36:07 +01:00
Michael Kerrisk b4ed795729 pthread_sigmask.3: New page documenting pthread_sigmask(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-27 02:34:56 +01:00
Michael Kerrisk 2472260fff isalpha.3: Fix statement that isalpa() is obsolete; should be isascii()
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512709

Reported-by: Guillem Jover <guillem@debian.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-24 00:14:35 +01:00
Petr Baudis d664f7cecf getifaddrs.3: Various small fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-22 21:22:00 +01:00
Michael Kerrisk 8aa7b8ebca getifaddrs.3: srcfix: Remove FIXME 2009-01-22 21:13:37 +01:00
Michael Kerrisk 825e43f0f9 getifaddrs.3: srcfix: Remove FIXME 2009-01-22 21:12:04 +01:00
Lucio Maciel 54457ec1f3 getifaddrs.3: Fix memory leak in example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-22 21:08:56 +01:00
Florentin Duneau bb9554432c getrpcent.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-22 20:53:07 +01:00
Michael Kerrisk 0b0b6c0a2b getumask.3: Updated glibc version number in NOTES
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-20 15:27:12 +13:00
Michael Kerrisk 74ee79b977 Removed trailing white space at end of lines 2009-01-19 17:12:10 +13:00
Michael Kerrisk 373d0736d1 endian.3: CONFORMING TO: Explain differences in function names across systems
glibc/NetBSD/FreeBSD follow a naming convention for these
functions that unfortunately differs from that originally
established by OpenBSD's implementation.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-18 14:20:36 +13:00
Michael Kerrisk d1a7f7d9f4 strsep.3: BUGS: explicitly list problems afflicting strsep()
Previously, the page said this function suffered the same
problems as strtok(), but in fact strsep() doesn't suffer
from all of the same problems as strtok(), so explicitly
list just the problems of strsep() in the strsep.3 page.

Reported-by: Marc Lehmann <schmorp@schmorp.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-15 07:12:58 +13:00
Michael Kerrisk 132719a5d9 strtok.3: Minor: small rewording in BUGS
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-15 06:30:33 +13:00
Michael Kerrisk 7bb33c46ef strtok.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-15 06:20:17 +13:00
Michael Kerrisk fbb2bb4e34 sethostid.3: Rename file (was misnamed sethostd.3 in previous release)
Reported-by: Martin (Joey) Schulze <joey@infodrom.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-15 06:01:36 +13:00
Michael Kerrisk 095fdaea89 byteorder.3: SEE ALSO: add endian(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 23:23:17 +13:00
Michael Kerrisk f7c3598ef1 htobe16.3 htole16.3 be16toh.3 le16toh.3 htobe32.3 htole32.3 be32toh.3 le32toh.3 htobe64.3 htole64.3 be64toh.3 le64toh.3: New link to new endian.3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 23:23:06 +13:00
Michael Kerrisk d35a667305 endian.3: New page documenting byte order conversion functions
Document functions (new in glibc 2.9) for conversion between
host byte order and big-/little- endian byte order:
htobe16(), htole16(), be16toh(), le16toh(),
htobe32(), htole32(), be32toh(), le32toh(),
htobe64(), htole64(), be64toh(), le64toh()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 23:04:12 +13:00
Michael Kerrisk 43e77e4380 freeifaddrs.3: New link to new getifaddrs.3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 16:23:10 +13:00
Petr Baudis 413b97573e getifaddrs.3: New page documenting getifaddrs(3) and freeifaddrs(3)
Many edits and changes of Petr's initial draft by mtk

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 16:22:59 +13:00
Michael Kerrisk 01c0d450f9 memccpy.3: Fix CONFORMING TO: s/C99/POSIX.1-2001/
Reported-by: Mads Martin Joergensen <mmj@mmj.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 10:41:53 +13:00
Michael Kerrisk 497be851c2 memccpy.3: If the memory areas overlap, the results are undefined
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 10:41:53 +13:00
Michael Kerrisk e739a26839 setjmp.3: Clarify when setjmp() provides BSD vs System V signal mask semantics
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 10:41:44 +13:00
Michael Kerrisk 1192ed9476 longjmp.3, setjmp.3: Clarify wording re saving/restoring signal mask
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 10:41:43 +13:00
Michael Kerrisk 78604af5bf longjmp.3: siglongjmp() only restores signal mask iff 'savesigs' was non-zero
Note that siglongjmp() only restores signal mask if, and only
if, 'savesigs' argument of sigsetjmp() was non-zero.  (Previous
text omitted the "and only if".)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 10:41:31 +13:00
Adeodato Simó c1f3b740e8 malloc.3: tfix: RETURN VALUE: s/realloc/calloc/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 13:50:08 +13:00
Michael Kerrisk 2c4432fc51 gethostid.3: tstamp 2009-01-13 08:52:13 +13:00
Michael Kerrisk c18ecec98b dlopen.3, ld.so.8: SEE ALSO: add rtld-audit(7)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 08:47:47 +13:00
Michael Kerrisk 24ad017de2 clock_getres.3: SEE ALSO: Add pthread_getcpuclockid(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 08:37:49 +13:00
Michael Kerrisk 0d6cdbf56d pthread_getcpuclockid.3: minor: remove extraneous source comment
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 08:37:49 +13:00
Michael Kerrisk c0d72e9ef9 pthread_getcpuclockid.3: New page documenting pthread_getcpuclockid(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 08:37:49 +13:00
Michael Kerrisk f9d5bb737b gethostid.3: Before version 2.2, glibc stored the host ID in /var/adm/hostid
Also: rewrite some text describing the /etc/hostid file, so that
this location is referred to just once on the page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 08:37:48 +13:00
Michael Kerrisk 4c98d1203b gethostid.3: Added ERRORS section describing errors for sethostid()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 08:37:48 +13:00
Michael Kerrisk 0482681627 gethostid.3: RETURN VALUE: describe return value of sethostid()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 08:37:48 +13:00
Michael Kerrisk 9caf825633 gethostid.3: Minor wording improvements
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 08:37:47 +13:00
Michael Kerrisk 525748e03a gethostid.3: Added BUGS section noting that ID can't be guaranteed to be unique
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 08:37:47 +13:00
Michael Kerrisk 963efe88c5 gethostid.3: Update section number to reflect relocation into Section 3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 08:37:31 +13:00
Michael Kerrisk a1096a314e sethostid.3: New link to relocated page in Section 3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 07:04:35 +13:00
Michael Kerrisk 1f4f66a924 gethostid.2: Move to Section 3
The interfaces documented in this page are purely glibc.

Reported-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 07:00:44 +13:00
Florentin Duneau de90951b73 CPU_SET.3: tfix
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510507.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-12 23:22:09 +13:00
Michael Kerrisk 08f8825735 printf.3: Source and destination buffers may not overlap for *s*printf()
http://sourceware.org/bugzilla/show_bug.cgi?id=7075

Some existing code relies on techniques like the following to
append text to a buffer:

    $ cat s.c
    #include <stdio.h>
    char buf[80] = "not ";
    main()
    {
        sprintf(buf, "%sfail", buf);
	puts(buf);
	return 0;
    }

    $ cc s.c
    $ ./a.out
    not fail

However, the standards say the results are undefined if source
and destination buffers overlap, and with suitable compiler
options, recent changes can cause unexpected results:

    $ cc -v 2>&1 | grep gcc
    gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] (SUSE Linux)
    $ cc -D_FORTIFY_SOURCE -O2 s.c
    $ ./a.out
    fail

Reported-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-19 11:47:04 -05:00
Petr Baudis 4209865fa4 crypt.3: ffix
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-19 10:03:18 -05:00
Michael Kerrisk 6a5dd8b393 readdir.3: Clarify text for return value/errno setting for end-of-stream case
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-19 09:36:12 -05:00