Commit Graph

4800 Commits

Author SHA1 Message Date
Zeng Linggang 18813d7b52 getprotoent.3: ATTRIBUTES: Note functions that aren't thread-safe
The marking matches glibc marking.
markings of functions in glibc are:
- getprotoent:      MT-Unsafe race:protoent race:protoentbuf locale

- getprotobyname:   MT-Unsafe race:protobyname locale

- getprotobynumber: MT-Unsafe race:protobynumber locale

- setprotoent:      MT-Unsafe race:protoent locale
- endprotoent:      MT-Unsafe race:protoent locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:26:17 +02:00
Zeng Linggang a9e30c8c12 getnameinfo.3: ATTRIBUTES: Note function that is thread-safe
After research, We think getnameinfo() is thread-safe. But, there
is not marking of getnameinfo() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:25:54 +02:00
Zeng Linggang bb89d1ef8f getaddrinfo.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think getaddrinfo(), freeaddrinfo() and
gai_strerror() are thread-safe. But, there are not markings
of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:25:28 +02:00
Zeng Linggang 1ee2274c39 dl_iterate_phdr.3: ATTRIBUTES: Note function that is thread-safe
After research, We think dl_iterate_phdr() is thread-safe. But, there
is not marking of dl_iterate_phdr() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:25:10 +02:00
Michael Kerrisk 332d685555 xcrypt.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:18:06 +02:00
Michael Kerrisk e2d7e8a112 key_setsecret.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:16:16 +02:00
Zeng Linggang 8d2cf26d8b xcrypt.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think passwd2des(), xencrypt() and xdecrypt() are
thread-safe. But, there are not markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:47 +02:00
Zeng Linggang 45932f13d9 putgrent.3: ATTRIBUTES: Note function that is thread-safe
After research, We think putgrent() is thread-safe. But, there
is not marking of putgrent() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:47 +02:00
Zeng Linggang 672a9903d3 pthread_tryjoin_np.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think pthread_tryjoin_np() and
pthread_timedjoin_np() are thread-safe. But, there
are not markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:47 +02:00
Zeng Linggang 5effafa2f6 pthread_getattr_np.3: ATTRIBUTES: Note function that is thread-safe
After research, We think pthread_getattr_np() is thread-safe. But,
there is not marking of pthread_getattr_np() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:47 +02:00
Zeng Linggang 598445e0a5 pthread_cleanup_push.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think pthread_cleanup_push() and
pthread_cleanup_pop() are thread-safe. But, there
are not markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:43 +02:00
Zeng Linggang 5b911d96f8 pthread_attr_setaffinity_np.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think pthread_attr_setaffinity_np() and
pthread_attr_getaffinity_np() are thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:12:27 +02:00
Zeng Linggang f8f22117d0 key_setsecret.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think key_decryptsession(), key_setsecret(),
key_encryptsession(), key_gendes() and key_secretkey_is_set() are
thread-safe. But, there are not markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:10:03 +02:00
Zeng Linggang 91a7c37560 getpw.3: ATTRIBUTES: Note function that is thread-safe
After research, We think getpw() is thread-safe. But, there
is not marking of getpw() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:09:46 +02:00
Zeng Linggang 8eb0dd50e5 getnetent_r.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think getnetent_r(), getnetbyname_r() and
getnetbyaddr_r() are thread-safe. But, there are not markings
of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:09:02 +02:00
Andries E. Brouwer 981fffea98 fread.3: Clarify terminology
In the "RETURN VALUE" section the word item is in italics
as if it were one of the function parameters. But the word
"item" occurs here for the first time, earlier the text
uses "element". [Patch improves this.]

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 20:56:13 +02:00
Marko Myllynen be1e94afe1 strfmon.3: Rewrite the example
I think the example is more accurate when we use the exact
locale names and also the Euro sign where appropriate.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:45:56 +02:00
Marko Myllynen 88b801ec78 strfmon.3: Document strfmon_l(3)
Describe strfmon_l(3).

http://pubs.opengroup.org/onlinepubs/9699919799/functions/strfmon.html

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:45:53 +02:00
Marko Myllynen af1eec3c8a strfmon.3: Fix CONFORMING TO
AFAICS strfmon(3) is now defined in POSIX and the glibc
implementation is as specified there.

http://pubs.opengroup.org/onlinepubs/9699919799/functions/strfmon.html

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:45:53 +02:00
Marko Myllynen 5f756e5ba5 setlocale.3: Update CONFORMING TO
http://pubs.opengroup.org/onlinepubs/9699919799/functions/setlocale.html

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:27:09 +02:00
Marko Myllynen 9ce8a1e00e setlocale.3: Tweak C/POSIX locale portability description
As discussed earlier, the current description might be a little
bit too stringent, let's avoid the issue by describing the
portability aspect on a slightly higher level.

References:

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap06.html
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html
http://pubs.opengroup.org/onlinepubs/9699919799/functions/setlocale.html

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:24:46 +02:00
Michael Kerrisk 70a9fec73b __ppc_get_timebase.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-27 10:32:12 +02:00
Michael Kerrisk 56aa9a9535 __ppc_get_timebase.3: Minor tweaks to example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-27 10:31:58 +02:00
Tulio Magno Quites Machado Filho 1e6e376298 __ppc_get_timebase_freq.3: Document the Power-specific __ppc_get_timebase_freq(3)
Glibc 2.17 adds a function to read the frequency at which the Time
Base Register of Power processors is updated.

Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-27 10:23:15 +02:00
Zeng Linggang 412793f9ff pthread_setname_np.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think pthread_setname_np() and pthread_getname_np()
are thread-safe. But, there are not markings of pthread_setname_np()
and pthread_getname_np() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-20 16:13:27 +02:00
Zeng Linggang acc271be11 pthread_join.3: ATTRIBUTES: Note function that is thread-safe
After research, We think pthread_join() is thread-safe. But, there
is not marking of pthread_join() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-20 16:13:22 +02:00
Zeng Linggang bf0fbbcdd2 pthread_detach.3: ATTRIBUTES: Note function that is thread-safe
After research, We think pthread_detach() is thread-safe. But, there
is not marking of pthread_detach() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-20 16:13:17 +02:00
Zeng Linggang a7930e0d3d pthread_create.3: ATTRIBUTES: Note function that is thread-safe
After research, We think pthread_create() is thread-safe. But, there
is not marking of pthread_create() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-20 16:13:10 +02:00
Zeng Linggang ed6d44f8b4 pthread_cancel.3: ATTRIBUTES: Note function that is thread-safe
After research, We think pthread_cancel() is thread-safe. But, there
is not marking of pthread_cancel() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-20 16:13:02 +02:00
Zeng Linggang cdb9dd9e21 pthread_attr_init.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think pthread_attr_init() and pthread_attr_destroy()
are thread-safe. But, there are not markings of pthread_attr_init()
and pthread_attr_destroy() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-20 16:12:54 +02:00
Zeng Linggang 5b53f4bac6 fpurge.3: ATTRIBUTES: Note function that is thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- __fpurge: MT-Safe race:stream

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-20 16:12:49 +02:00
Michael Kerrisk e4b153acf5 mkstemp.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-20 12:56:22 +02:00
Michael Kerrisk 1113f852f1 pthread_attr_init.3: Use "%zd" for printing size_t in example code
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-19 08:58:10 +02:00
Michael Kerrisk 79ae0b1fbd MB_LEN_MAX.3: srcfix: add pointer to discussion of why glibc has MB_LEN_MAX==16
Reported-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-14 15:20:57 +02:00
Zeng Linggang be409be4e7 shm_open.3: ATTRIBUTES: Note functions that are thread-safe
The marking matches glibc marking.
markings of functions in glibc are:
- shm_open:   MT-Safe locale
- shm_unlink: MT-Safe locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-13 17:15:39 +02:00
Zeng Linggang ca6b4c15e4 sem_open.3: ATTRIBUTES: Note function that is thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- sem_open: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-13 17:15:34 +02:00
Zeng Linggang d71055dbde psignal.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think psiginfo() is thread-safe. But, there
is not marking of psiginfo() in glibc document.
psignal() matches glibc marking.
- psignal:  MT-Safe locale
- psiginfo: MT-Safe locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-13 17:15:29 +02:00
Zeng Linggang 3964d56df6 mq_notify.3: ATTRIBUTES: Note function that is thread-safe
After research, We think mq_notify() is thread-safe. But, there
is not marking of mq_notify() in glibc document.
- mq_notify: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-13 17:15:24 +02:00
Zeng Linggang 72dd4c2fe1 malloc_stats.3: ATTRIBUTES: Note function that is thread-safe
After research, We think malloc_stats() is thread-safe. But, there
is not marking of malloc_stats() in glibc document.
- malloc_stats: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-13 17:15:20 +02:00
Zeng Linggang 1cd7128b92 malloc_info.3: ATTRIBUTES: Note function that is thread-safe
After research, We think malloc_info() is thread-safe. But, there
is not marking of malloc_info() in glibc document.
- malloc_info: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-13 17:15:15 +02:00
Zeng Linggang bad52bdf9a getifaddrs.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think getifaddrs() and freeifaddrs() are not
thread-safe. But, there is not markings of getifaddrs() and
freeifaddrs() in glibc document.
- getifaddrs:  MT-Safe
- freeifaddrs: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-13 17:14:58 +02:00
Michael Kerrisk 4c3d165691 MB_LEN_MAX.3: MB_LEN_MAX is 16 in modern glibc versions
Reported-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-13 13:49:02 +02:00
Michael Kerrisk 302a5d707c MB_LEN_MAX.3: Clarify meaning of MB_LEN_MAX
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-13 13:45:55 +02:00
Michael Kerrisk d7d10e1048 popen.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-12 11:04:57 +02:00
Michael Kerrisk 307625157a popen.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-12 11:03:34 +02:00
Michael Kerrisk e82a01da63 perror.3: Some wording improvements and clarifications
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-12 11:02:23 +02:00
Michael Kerrisk 95748d5349 asprintf.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-12 07:07:21 +02:00
Michael Kerrisk 0b8a39ad9f gethostbyname.3: Remove mention of IPv6 addresses, which are not supported
As reported by Laszlo Ersek:

    gethostbyname(3) fails to resolve the IPv6 address "::1",
    but the manual page says: "If name is an IPv4 or IPv6 address,
    no lookup is performed and gethostbyname() simply copies name
    into the h_name field [...]".

    Debian bug report:
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=455762

    glibc bug report:
    http://sourceware.org/bugzilla/show_bug.cgi?id=5479

    SUSv3 link for gethostbyname(3):
    http://www.opengroup.org/onlinepubs/000095399/functions/gethostbyname.html

    It seems that the glibc behavior is conformant, and the manual
    page is in error.

Reported-by: Laszlo Ersek <lacos@caesar.elte.hu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-11 11:11:21 +02:00
Michael Kerrisk 7f32558158 gethostbyname.3: tfix + wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-11 11:07:48 +02:00
Michael Kerrisk e624ea579a __ppc_get_timebase.3: Minor tweaks
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-10 13:49:29 +02:00
Tulio Magno Quites Machado Filho 42d7fb6cce __ppc_get_timebase.3: New page documenting __ppc_get_timebase()
Glibc 2.16 was released with a new function for the Power
architecture that can read its Time Base Register.

Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-10 13:47:34 +02:00
Michael Kerrisk ef0e133fe6 resolver.3: tfix
Reported-by: Sam Varshavchik <mrsam@courier-mta.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-08 16:19:06 +02:00
Michael Kerrisk 0722a578ed _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>
2015-05-08 13:10:04 +02:00
Michael Kerrisk 5ffdc2fda9 Removed trailing white space at end of lines 2015-05-07 08:30:26 +02:00
Michael Kerrisk 67d2c6873c 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>
2015-05-07 08:26:32 +02:00
Michael Kerrisk 9e3f236d55 scanf.3: tfix
Reported-by: Jussi Lehtola <jussilehtola@fedoraproject.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-06 14:53:30 +02:00
Michael Kerrisk d86c357dee 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>
2015-05-06 13:11:37 +02:00
Michael Kerrisk 79306ba124 printf.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-05 18:41:44 +02:00
Michael Kerrisk 551b8ee119 get_phys_pages.3: srcfix: wrap long source lines
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-05 18:29:14 +02:00
Michael Kerrisk 1f11ec0ba7 get_phys_pages.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-05 18:28:35 +02:00
William Woodruff b2b19e8501 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>
2015-05-05 18:24:04 +02:00
William Woodruff 178f0f6d67 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>
2015-05-05 18:23:56 +02:00
Michael Kerrisk db939c9b26 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>
2015-05-05 18:00:26 +02:00
Michael Kerrisk b5756b034f 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>
2015-05-05 12:01:40 +02:00
Michael Kerrisk 8b5e879445 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>
2015-05-05 12:01:40 +02:00
Michael Kerrisk bbdc3380fd 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>
2015-05-05 12:01:40 +02:00
Michael Kerrisk c38fc25e17 printf.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-05 10:42:33 +02:00
Michael Kerrisk 282ff7db70 printf.3: SEE ALSO: add puts(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-05 10:42:33 +02:00
Michael Kerrisk 648fdb7991 printf.3: Move return value discussion to proper RETURN VALUE section
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-05 10:42:31 +02:00
Michael Kerrisk 6606f1d5f9 printf.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-05 08:30:13 +02:00
Michael Kerrisk 5c1685bd3b printf.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-05 08:27:03 +02:00
Michael Kerrisk beb9356fdc gethostbyname.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-04 22:11:58 +02:00
Carlos O'Donell 923d125a4a 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>
2015-05-04 22:06:11 +02:00
Chris Metcalf a6eb40552a 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>
2015-05-04 14:54:46 +02:00
Joern Heissler 93c2e06972 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>
2015-05-04 14:44:49 +02:00
Michael Kerrisk 3aeefe94f7 setbuf.3: Remove unneeded sentence on an implementation detail
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-04 14:04:55 +02:00
Michael Kerrisk 79f4da9f10 setbuf.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-04 14:04:18 +02:00
Michael Kerrisk 28d33f0e6e get_nprocs_conf.3: Use exit() rather than return in main()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-04 10:09:56 +02:00
Michael Kerrisk 69f32fc092 rpc.3: tfix
Reported-by: Joonas Salo <salo.joonas@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-01 10:00:08 +02:00
Michael Kerrisk 0fe4c79a76 gethostbyname.3: Minor tweaks
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-30 10:45:42 +02:00
Carlos O'Donell 81d6e51d67 gethostbyname.3: NSS plugins searched first
The gethostbyname(3) man page should first and foremost list that
the source of the data comes from the NSS plugins. I accept
that the man page is intentionally trying to be vague because
these things are not guaranteed anywhere, the truth is far
more mundane and "default" here IMO applies to a normal glibc
installation on Linux, and the fallback is always a localhost
nameserver.

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-30 10:36:07 +02:00
Zeng Linggang dfcbc01f6c sysconf.3: ATTRIBUTES: Note function that is thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- sysconf: MT-Safe env

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:26:30 +02:00
Zeng Linggang b24d9e5a74 qsort.3: ATTRIBUTES: Note functions that are thread-safe
qsort() matches glibc marking.
>From research, We think qsort_r() is thread-safe. But, there
is not marking of qsort_r() in glibc document.
- qsort:   MT-Safe
- qsort_r: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:26:30 +02:00
Zeng Linggang 3a29aaee05 putpwent.3: ATTRIBUTES: Note function that is thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- putpwent: MT-Safe locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:26:30 +02:00
Zeng Linggang d388b47f9b on_exit.3: ATTRIBUTES: Note function that is thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- on_exit: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:26:30 +02:00
Zeng Linggang 1ef777eaf0 lsearch.3: ATTRIBUTES: Note functions that are thread-safe
The marking matches glibc marking.
markings of functions in glibc are:
- lfind:   MT-Safe
- lsearch: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:26:30 +02:00
Zeng Linggang 800835baac inet_ntop.3: ATTRIBUTES: Note function that is thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- inet_ntop: MT-Safe locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:26:30 +02:00
Zeng Linggang 9af22d9ea8 iconv_close.3: ATTRIBUTES: Note function that is thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- iconv_close: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:26:29 +02:00
Zeng Linggang a83934bf2a ftw.3: ATTRIBUTES: Note functions that are thread-safe
The marking matches glibc marking.
markings of functions in glibc are:
- nftw: MT-Safe cwd
- ftw:  MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:26:27 +02:00
Zeng Linggang b345bfca5c bsearch.3: ATTRIBUTES: Note function that is thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- bsearch: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:26:24 +02:00
Zeng Linggang e4a2e23763 atexit.3: ATTRIBUTES: Note function that is thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- atexit: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:26:19 +02:00
Zeng Linggang 5e6495f4b4 strsignal.3: ATTRIBUTES: Note function that isn't thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- strsignal: MT-Unsafe race:strsignal locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:16:07 +02:00
Zeng Linggang 7e548eade8 sleep.3: ATTRIBUTES: Note function that isn't thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- sleep: MT-Unsafe sig:SIGCHLD/linux

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:16:04 +02:00
Zeng Linggang eed599dc4a setlogmask.3: ATTRIBUTES: Note function that isn't thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- setlogmask: MT-Unsafe race:LogMask

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:16:02 +02:00
Zeng Linggang b3eedd0626 setlocale.3: ATTRIBUTES: Note function that isn't thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- setlocale: MT-Unsafe const:locale env

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:15:59 +02:00
Zeng Linggang 7855ffa482 setjmp.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.
markings of functions in glibc are:
- setjmp:    MT-Safe
- sigsetjmp: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:15:57 +02:00
Zeng Linggang 834fde7340 mcheck.3: ATTRIBUTES: Note functions that aren't thread-safe
mcheck() and mprobe() match glibc markings.
>From research, We think mcheck_pedantic() and mcheck_check_all() are not
thread-safe. But, there is not markings of mcheck_pedantic() and
mcheck_check_all() in glibc document.
- mcheck:           MT-Unsafe race:mcheck const:malloc_hooks
- mcheck_pedantic:  MT-Unsafe race:mcheck const:malloc_hooks
- mcheck_check_all: MT-Unsafe race:mcheck const:malloc_hooks
- mprobe:           MT-Unsafe race:mcheck const:malloc_hooks

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:15:54 +02:00
Zeng Linggang 4ae638ed18 longjmp.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.
markings of functions in glibc are:
- longjmp:    MT-Safe
- siglongjmp: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:15:52 +02:00
Zeng Linggang b7a0a14489 getmntent.3: ATTRIBUTES: Note functions that are/aren't thread-safe
The markings match glibc markings.
markings of functions in glibc are:
- setmntent:   MT-Safe
- endmntent:   MT-Safe
- hasmntopt:   MT-Safe
- getmntent:   MT-Unsafe race:mntentbuf locale
- addmntent:   MT-Safe race:stream locale
- getmntent_r: MT-Safe locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:15:47 +02:00
Zeng Linggang 406ff2be17 gethostid.3: ATTRIBUTES: Note functions that are/aren't thread-safe
The markings match glibc markings.
markings of functions in glibc are:
- gethostid: MT-Safe hostid env locale
- sethostid: MT-Unsafe const:hostid

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-29 21:15:45 +02:00