Michael Kerrisk
14d7071359
lround.3, proc.5: Reword to avoid use of "etc."
2014-01-18 23:58:12 +13:00
Michael Kerrisk
8001742129
y0.3: Reword to avoid clumsy use of "etc."
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-18 23:56:55 +13:00
Michael Kerrisk
6f9ea7787e
lrint.3: Reword to avoid clumsy use of "etc."
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-18 23:51:48 +13:00
Michael Kerrisk
853a2abafe
lgamma.3: Reword to avoid clumsy use of "etc."
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-18 23:50:32 +13:00
Michael Kerrisk
4e0344e4a2
j0.3: Reword to avoid clumsy use of "etc."
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-18 23:50:32 +13:00
Michael Kerrisk
c1234a3ba5
mq_receive.3, mq_send.3: SYNOPSIS: s/unsigned/unsigned int/
...
Reported-by: Simone Piccardi <piccardi@truelite.it>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-18 23:50:32 +13:00
Michael Kerrisk
85908442e0
rand.3: s/unsigned/unsigned int/ in example
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-18 23:50:32 +13:00
Michael Kerrisk
5a6194a405
execve.2, get_robust_list.2, getunwind.2, pipe.2, quotactl.2, clock_getcpuclockid.3, endian.3, fmemopen.3, getgrouplist.3, getservent_r.3, mq_notify.3, qsort.3, rtime.3, mailaddr.7: ffix: replace tabs with white space in code examples
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-18 20:47:47 +13:00
Michael Kerrisk
b458e1bfa7
getdate.3, strptime.3, locale.5: Replace "weekday" with less ambiguous language
...
Notwithstanding POSIX's use of the term "weekday", in everyday
English, "weekday" is commonly understood to mean a day in the
set [Monday..Friday] (vs one of the "weekend" days).
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-17 21:08:16 +13:00
Brandon Edens
32afd19741
strftime.3: Change "week day" to "day of week"
...
See https://bugzilla.kernel.org/show_bug.cgi?id=68861
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-17 20:59:04 +13:00
Michael Kerrisk
bc9d68d53e
printf.3: Samll reorganization of text in EXAMPLE
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-17 20:46:49 +13:00
Michael Kerrisk
f76e404e3d
ferror.3: CONFORMING TO: add fileno()
...
Reported-by: Reuben Thomas <rrt@sc3d.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-16 17:12:57 +13:00
Michael Kerrisk
28d286ed66
ferror.3: clearerr(), feof(), and ferror() are also POSIX-conformant
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-16 17:06:32 +13:00
Michael Kerrisk
23c9c56419
dlopen.3: grfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-16 12:43:53 +13:00
Peng Haitao
d51899bba0
strstr.3: ATTRIBUTES: Note function that is thread safe with exceptions
...
The function strstr() is thread safe.
The function strcasestr() is thread safe with exceptions.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-16 12:16:20 +13:00
Yuri Kozlov
fac55da599
recno.3: ffix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-15 17:17:55 +13:00
Yuri Kozlov
cd4e22e8b7
recno.3: tfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-15 17:16:44 +13:00
Ian Abbott
e0368396c0
gets.3: SEE ALSO: add fgets(3)
...
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-15 17:13:13 +13:00
Michael Kerrisk
ca5d006fec
wcpncpy.3: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-13 21:49:49 +13:00
Michael Kerrisk
d75efe7376
wcstombs.3: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-13 21:48:03 +13:00
Michael Kerrisk
4bd05f8fe0
wcsncpy.3: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-13 21:47:45 +13:00
Michael Kerrisk
05766b0234
mbstowcs.3: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-13 21:47:35 +13:00
Peng Haitao
61a70efcfc
mq_receive.3: tfix
...
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-13 21:41:33 +13:00
Peng Haitao
f27f40b7e8
stpncpy.3: ATTRIBUTES: Note function that is thread-safe
...
The function stpncpy() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-13 21:41:09 +13:00
Peng Haitao
1a10d985a1
stpcpy.3: ATTRIBUTES: Note function that is thread-safe
...
The function stpcpy() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-13 21:41:05 +13:00
Peng Haitao
87a77f93a8
tcgetsid.3: ATTRIBUTES: Note function that is thread-safe
...
The function tcgetsid() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-13 21:40:59 +13:00
Peng Haitao
8f9d0619d3
tcgetpgrp.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions tcgetpgrp() and tcsetpgrp() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-13 21:40:53 +13:00
Peng Haitao
0d2eda1a16
stpncpy.3: wfix
...
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-13 21:40:45 +13:00
Michael Kerrisk
d7f093e95d
gets.3: tfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-12 06:22:31 +13:00
Michael Kerrisk
d35326474f
Removed trailing white space at end of lines
2014-01-11 08:04:54 +13:00
Michael Kerrisk
babc6dd47b
syscall.2, syscalls.2, ftw.3, getauxval.3, mcheck.3, puts.3, scanf.3, strftime.3, libc.7: tstamp
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-11 06:44:42 +13:00
Michael Kerrisk
f14ae16e57
accept.2, clock_getres.2, mkdir.2, request_key.2, wait.2, printf.3, bootparam.7: grfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-11 06:25:02 +13:00
Michael Kerrisk
76c637e18c
getcpu.2, getunwind.2, kcmp.2, mmap.2, perf_event_open.2, perfmonctl.2, quotactl.2, restart_syscall.2, btree.3, dbopen.3, hash.3, recno.3, sched_getcpu.3, elf.5, bootparam.7, hier.7, netdevice.7, rtnetlink.7: wfix: "xxxx specific" ==> "xxxx-specific"
2014-01-11 06:16:28 +13:00
Michael Kerrisk
f2cc5c88c2
pthread_setname_np.3: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-11 06:06:57 +13:00
Michael Kerrisk
6d42f0dc9c
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>
2014-01-08 14:07:34 +13:00
Michael Kerrisk
d72a31c6f0
adjtime.3, getw.3: srcfix: Start new sentence on new source line
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-08 13:54:41 +13:00
Michael Kerrisk
dbb73b9a3d
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>
2014-01-08 12:14:21 +13:00
Michael Kerrisk
0588c9a30f
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>
2014-01-08 12:14:21 +13:00
Michael Kerrisk
38029932e7
sigpause.3: Correct feature text macro requirements
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-08 12:14:14 +13:00
Michael Kerrisk
b60327309b
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>
2014-01-08 11:57:45 +13:00
Michael Kerrisk
ac16fdff8a
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>
2014-01-08 10:02:50 +13:00
Peng Haitao
38d62724b2
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>
2014-01-07 22:42:44 +13:00
Peng Haitao
7501f871fd
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>
2014-01-07 00:48:47 +13:00
Peng Haitao
2b2d07c0c7
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>
2014-01-07 00:48:40 +13:00
Peng Haitao
c15158e2e8
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>
2014-01-07 00:48:33 +13:00
Peng Haitao
1c9b2a60ff
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>
2014-01-07 00:48:24 +13:00
Michael Kerrisk
7020f14d3e
regex.3: tfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-07 00:47:47 +13:00
Yuri Kozlov
75cd78ea10
regex.3: tfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-07 00:47:15 +13:00
Michael Kerrisk
476d2ddea6
getauxval.3: Added FIXME for AT_HWCAP2
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-06 19:40:30 +13:00
Michael Kerrisk
3487d63b4c
dlopen.3: tfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-05 14:59:13 +13:00
Michael Kerrisk
f7a6a3b42b
pthread_getcpuclockid.3: ffix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-05 13:30:44 +13:00
Michael Kerrisk
68ed9d7228
if_nameindex.3: ffix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-05 13:30:41 +13:00
Michael Kerrisk
f30b741526
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>
2014-01-05 13:30:41 +13:00
Michael Kerrisk
3d6efadb2c
rtime.3: ffix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-05 13:22:12 +13:00
Michael Kerrisk
2ba8b63e9f
hsearch.3: Add "static" to global variable in example program
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-05 13:20:09 +13:00
Michael Kerrisk
57b1aaa4a7
getsubopt.3: ffix (K&R style in example program)
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-05 13:19:04 +13:00
Michael Kerrisk
0d89715efc
tsearch.3: Add "static" to global variables and functions in example program
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-05 13:08:57 +13:00
Michael Kerrisk
94daa6cf33
strftime.3: Add "Program source" subsection heading
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-05 13:07:30 +13:00
Michael Kerrisk
722d8902ef
stpcpy.3: ffix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-05 13:06:45 +13:00
Michael Kerrisk
5c91a6243a
rtime.3: Add "static" qualifier to global variable in example program
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-05 13:04:30 +13:00
Michael Kerrisk
872127dd8d
rtime.3: ffix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-05 13:03:27 +13:00
Michael Kerrisk
65b1e0ed19
strstr.3: Clarify RETURN VALUE: s/substring/located substring/
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-05 00:34:01 +13:00
Michael Kerrisk
4d9fbd4e6e
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>
2014-01-05 00:34:01 +13:00
Michael Kerrisk
dd827c27b0
string.3: Fixes and enhancements to Moritz Str?be's patch
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-05 00:34:01 +13:00
Moritz 'Morty' Strübe
0612e12ee7
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>
2014-01-04 23:20:02 +13:00
Michael Kerrisk
b437fdd90a
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>
2014-01-03 15:47:06 +13:00
Michael Kerrisk
efb12489de
exec.3, fts.3: srcfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-03 15:47:06 +13:00
Michael Kerrisk
03407e3388
termios.3: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-03 15:47:05 +13:00
Michael Kerrisk
246414a67a
mtrace.3: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-03 15:47:05 +13:00
Michael Kerrisk
3a935ca8a4
fts.3: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-03 15:47:05 +13:00
Michael Kerrisk
fa797358b5
INFINITY.3: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-03 10:29:37 +13:00
Michael Kerrisk
1b0892e8c3
mallopt.3: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-03 10:16:54 +13:00
Michael Kerrisk
4318a7d0f5
dlopen.3: Minor fixes
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-03 09:58:37 +13:00
Michael Kerrisk
5e0622bad2
dlopen.3: srcfix: add a reference to Austin "Pointer Types" issue
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 23:14:28 +13:00
Michael Kerrisk
daf28a2b22
dlopen.3: Tweaks to previous patch
...
Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 22:34:20 +13:00
Michael Kerrisk
299653455f
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>
2014-01-02 14:42:09 +13:00
Mike Frysinger
951ae9c063
syscall.2, syscalls.2, getauxval.3: Add references to new vdso(7) page
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:16 +13:00
Michael Kerrisk
10850212d0
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>
2014-01-02 11:49:16 +13:00
Michael Kerrisk
88879aebdd
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>
2014-01-02 11:49:16 +13:00
Michael Kerrisk
5aecfe9017
puts.3: SEE ALSO: replace reference to gets(3) with fgets(3)
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:16 +13:00
Michael Kerrisk
d098e934d0
getline.3: Remove SEE ALSO reference to unsafe gets(3)
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:16 +13:00
Michael Kerrisk
d4df4e8ad4
fgetc.3: Minor fix to ordering in SEE ALSO
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:16 +13:00
Michael Kerrisk
7e2b0db30f
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>
2014-01-02 11:49:16 +13:00
Michael Kerrisk
a5539262a5
gets.3: Tweaks to David Malcolm's patch
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:16 +13:00
Michael Kerrisk
42818f2072
fgetc.3, gets.3: tstamp
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:16 +13:00
Michael Kerrisk
845f05b519
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>
2014-01-02 11:49:16 +13:00
David Malcolm
beef277092
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>
2014-01-02 11:49:16 +13:00
Michael Kerrisk
8a7ac774ba
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>
2014-01-02 11:49:15 +13:00
Michael Kerrisk
aefd6f899d
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>
2014-01-02 11:49:15 +13:00
Michael Kerrisk
b0e6462a0b
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>
2014-01-02 11:49:15 +13:00
Michael Kerrisk
213d25801a
ctime.3: grfix: add some commas
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Michael Kerrisk
3dd08d1d72
strptime.3: grfix: add some commas
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Michael Kerrisk
77f48c37e0
strptime.3: Some rewording and reorganization
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Michael Kerrisk
652d08e1fd
strptime.3: Point to ctime(3) for more details on 'tm' structure
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Michael Kerrisk
290bb720cd
strptime.3: Add number ranges to comments in 'tm' structure
...
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729570
Reported-by: Mathieu Malaterre <malat@debian.org>
Reported-by: Simon Paillard <spaillard@debian.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Michael Kerrisk
0566afc5af
pthread_kill.3: POSIX.1-2008 removes ESRCH
...
POSIX.1-2001 mistakenly documented an ESRCH error, and
POSIX.1-2008 removes this error. Glibc does return
this error in cases where it can determine that a thread ID
is invalid, but equally, the use of an invalid thread ID
can cause a segmentation fault.
See http://thread.gmane.org/gmane.comp.lib.glibc.alpha/35598
Subject: Race and segmentation fault in pthread_kill() vs thread teardown
Newsgroups: gmane.comp.lib.glibc.alpha
Date: 2013-10-02 04:06:04 GMT
See http://udrepper.livejournal.com/16844.html
Reported-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Shawn Landden
e8785f3de4
cmsg.3: tfix: be not --> not be
...
Signed-off-by: Shawn Landden <shawn@churchofgit.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Michael Kerrisk
b87b8bd088
mkstemp.3: Better describe 'flags' that can be specified for mkostemp()
...
As reported by Janne Blomqvist:
currently the man page for mkostemp/mkostemps says:
The mkostemp() function is like mkstemp(), with the
difference that flags as for open(2) may be specified
in flags (e.g., O_APPEND, O_SYNC).
To be more precise, the implementation massages the flags argument
as follows:
(flags & ~O_ACCMODE) | O_RDWR | O_CREAT | O_EXCL
That is, there is no need to explicitly include O_RDWR | O_CREAT |
O_EXCL in flags, as it's added implicitly.
So I suggest that the manpage should instead state that
*additional* flags may be specified in the flags argument.
This issue is a potential portability problem. FreeBSD 10+ also
has mkostemp{s}, but generates an error if O_RDWR | O_CREAT |
O_EXCL is present instead of silently accepting it. While
annoying, this difference in behavior seems Ok by the proposed
addition of mkostemp to some future POSIX standard, see
http://austingroupbugs.net/view.php?id=411
The mkostemp() function shall be equivalent to the mkstemp()
function, except that the flag argument may contain
additional flags (from <fcntl.h>) to be used as if by open().
Behavior is unspecified if the flag argument contains more
than the following flags:
O_APPEND Set append mode.
O_CLOEXEC Set the FD_CLOEXEC file descriptor flag.
<SIO>O_DSYNC Write according to the synchronized I/O data
integrity completion.</SIO>
<SIO>O_RSYNC Synchronized read I/O operations.</SIO>
<XSI|SIO>O_SYNC Write according to synchronized I/O file
integrity completion.</XSI|SIO>
Reported-by: Janne Blomqvist <blomqvist.janne@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Peng Haitao
8cceed6998
sin.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions sin(), sinf() and sinl() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:14 +13:00
Peng Haitao
598a7a2d14
sigwait.3: ATTRIBUTES: Note function that is thread-safe
...
The function sigwait() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:14 +13:00
Peng Haitao
19d5bec94f
sigqueue.3: ATTRIBUTES: Note function that is thread-safe
...
The function sigqueue() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:14 +13:00
Peng Haitao
9840d4da1e
sigpause.3: ATTRIBUTES: Note function that is thread-safe
...
The function sigpause() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:14 +13:00
Peng Haitao
31c861cf30
wcpncpy.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcpncpy() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:14 +13:00
David Prévot
8fec36298f
ftw.3: tfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:14 +13:00
Simon Paillard
8f7f19ade9
mcheck.3: typo in compiler flag
...
See http://bugs.debian.org/732464
Reported-by: Raphael Geissert <geissert@debian.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-27 07:27:34 +13:00
Peng Haitao
1c2794e784
towctrans.3: ATTRIBUTES: Note function that is thread-safe
...
The function towctrans() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-27 07:26:48 +13:00
Peng Haitao
0462e39274
toupper.3: ATTRIBUTES: Note functions that are thread safe with exceptions
...
The functions toupper() and tolower() are thread safe with
exceptions.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-27 07:26:03 +13:00
Peng Haitao
ec3ca30fe7
toascii.3: wfix
...
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-27 07:25:41 +13:00
Peng Haitao
9a677ed639
toascii.3: ATTRIBUTES: Note function that is thread-safe
...
The function toascii() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-27 07:25:35 +13:00
Peng Haitao
2b50e9609d
ualarm.3: ATTRIBUTES: Note function that is thread-safe
...
The function ualarm() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-27 07:23:48 +13:00
Peng Haitao
4d46869843
sincos.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions sincos(), sincosf() and sincosl() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-27 07:23:14 +13:00
Michael Kerrisk
42f05d6438
futex.2, send.2, setreuid.2, malloc.3, tcp.7: tstamp
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 20:40:15 +13:00
Peng Haitao
9d5acc264b
wcpcpy.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcpcpy() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Peng Haitao
0d7bdb2a57
stdarg.3: ATTRIBUTES: Note macros that are thread-safe
...
The macros va_start(), va_arg(), va_end() and va_copy() are
thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Peng Haitao
e0fc49a497
usleep.3: ATTRIBUTES: Note function that is thread-safe
...
The function usleep() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Peng Haitao
d17763e0a6
unlockpt.3: ATTRIBUTES: Note function that is thread-safe
...
The function unlockpt() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Peng Haitao
b611d27285
ungetwc.3: ATTRIBUTES: Note function that is thread-safe
...
The function ungetwc() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Michael Kerrisk
078ac12da9
confstr.3: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Yuri Kozlov
8830fd6498
catopen.3: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Peng Haitao
d32f180238
wcscspn.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcscspn() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Peng Haitao
07e9b4f956
wcscpy.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcscpy() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Peng Haitao
0c54d3bb44
wcscmp.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcscmp() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Peng Haitao
ef7f6e8f0a
wcschr.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcschr() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
05fcab7407
wcscat.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcscat() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
0ba1ba74ef
wcsncasecmp.3: ATTRIBUTES: Note function that is thread safe with exceptions
...
The function wcsncasecmp() is thread safe with exceptions.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
f4fe579b08
wcsnlen.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcsnlen() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
c126be2277
wcsncpy.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcsncpy() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
c5880ed97d
wcsncmp.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcsncmp() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
2d7fd8d857
wcsncat.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcsncat() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
fde423dcfd
wcscasecmp.3: ATTRIBUTES: Note function that is thread safe with exceptions
...
The function wcscasecmp() is thread safe with exceptions.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
4b69e1bbbc
wcslen.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcslen() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
97bcd00d36
wcsrchr.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcsrchr() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
6142537162
wcspbrk.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcspbrk() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
3a87fa937e
wcswidth.3: ATTRIBUTES: Note function that is thread safe with exceptions
...
The function wcswidth() is thread safe with exceptions.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
2721cf12de
wcstok.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcstok() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
9597ae2b14
wcstoimax.3: ATTRIBUTES: Note functions that are thread safe with exceptions
...
The functions wcstoimax() and wcstoumax() are thread safe with
exceptions.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
83e0c152e3
wcsstr.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcsstr() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
a958468abc
wcsspn.3: ATTRIBUTES: Note function that is thread-safe
...
The function wcsspn() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
27c1d76a9d
wmemset.3: ATTRIBUTES: Note function that is thread-safe
...
The function wmemset() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
c70b981bfb
wmemmove.3: ATTRIBUTES: Note function that is thread-safe
...
The function wmemmove() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Peng Haitao
851daa08cb
wmemcpy.3: ATTRIBUTES: Note function that is thread-safe
...
The function wmemcpy() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Michael Kerrisk
b466283adc
ftw.3: Explain probable cause of FTW_NS
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-15 08:04:47 +13:00
Michael Kerrisk
0f21c3e2e0
ftw.3: nftw() visits directories with FTW_D if FTW_DEPTH was not specified
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-15 07:59:04 +13:00
Michael Kerrisk
2534ef153e
getaddrinfo.3: Explain one use case for AI_ADDRCONFIG
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 14:24:57 +13:00
Michael Kerrisk
bf68db183b
getaddrinfo.3: Highlight difference in ai_flags when hints==NULL
...
NOTES already described how glibc differs from POSIX.
Add a pointer to that text from the point in DESCRIPTION
where hints==NULL is discussed.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 14:18:44 +13:00
Michael Kerrisk
ef3fbada32
mq_receive.3: msg_len must be greater than *or equal to* mq_msgsize
...
See https://bugzilla.kernel.org/show_bug.cgi?id=64571
Reported-by: janh <a0vhv@t-online.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:47 +13:00
Peng Haitao
500d891eb2
wmemcmp.3: ATTRIBUTES: Note function that is thread-safe
...
The function wmemcmp() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:00:16 +13:00
Peng Haitao
7f1c8d16de
wmemchr.3: ATTRIBUTES: Note function that is thread-safe
...
The function wmemchr() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 05:59:42 +13:00
Peng Haitao
b2e49efdc6
wcwidth.3: ATTRIBUTES: Note function that is thread safe with exceptions
...
The function wcwidth() is thread safe with exceptions.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 05:59:21 +13:00
Peng Haitao
060d7a6e95
wctype.3: ATTRIBUTES: Note function that is thread safe with exceptions
...
The function wctype() is thread safe with exceptions.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 05:59:14 +13:00
Peng Haitao
afe8b22860
wctrans.3: ATTRIBUTES: Note function that is thread safe with exceptions
...
The function wctrans() is thread safe with exceptions.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 05:58:03 +13:00
David Prévot
1fb3fb8b17
fexecve.3: ffix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 05:54:36 +13:00
Peng Haitao
40b42b6f43
futimes.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions futimes() and lutimes() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-30 14:44:33 +13:00
Peng Haitao
f1915e1ee3
erfc.3: wfix
...
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-30 14:44:05 +13:00
Peng Haitao
c34520675c
erfc.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions erfc(), erfcf() and erfcl() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-30 14:43:42 +13:00
Peng Haitao
43b7b5ee23
erf.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions erf(), erff() and erfl() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-30 14:43:26 +13:00
Peng Haitao
51f3762661
difftime.3: ATTRIBUTES: Note function that is thread-safe
...
The function difftime() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-30 14:42:54 +13:00
Peng Haitao
be63524ed3
daemon.3: ATTRIBUTES: Note function that is thread-safe
...
The function daemon() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-30 14:42:28 +13:00
Peng Haitao
18c5047e79
bzero.3: ATTRIBUTES: Note function that is thread-safe
...
The function bzero() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:26:10 +13:00
Peng Haitao
2be8b1b283
termios.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions tcgetattr(), tcsetattr(), tcsendbreak(),
tcdrain(), tcflush(), tcflow(), cfmakeraw(), cfgetispeed(),
cfgetospeed(), cfsetispeed(), cfsetospeed() and cfsetspeed()
are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:26:05 +13:00
Peng Haitao
1d4be868bd
bsd_signal.3: ATTRIBUTES: Note function that is thread-safe
...
The function bsd_signal() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:25:59 +13:00
Peng Haitao
d1dcc57fba
bcopy.3: ATTRIBUTES: Note function that is thread-safe
...
The function bcopy() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:25:53 +13:00
Peng Haitao
3d678a4c57
bcmp.3: ATTRIBUTES: Note function that is thread-safe
...
The function bcmp() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:25:40 +13:00
Peng Haitao
a2f0602bdd
expm1.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions expm1(), expm1f() and expm1l() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:24:40 +13:00
Peng Haitao
ad6be0a409
cos.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions cos(), cosf() and cosl() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:24:13 +13:00
Peng Haitao
a5398d89ac
asinh.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions asinh(), asinhf() and asinhl() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:23:48 +13:00
Peng Haitao
a2d1783de2
copysign.3: wfix
...
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:23:24 +13:00
Peng Haitao
e244bc6982
copysign.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions copysign(), copysignf() and copysignl() are thread
safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:23:04 +13:00
Peng Haitao
843204f875
atoi.3: ATTRIBUTES: Note functions that are thread safe with exceptions
...
The functions atoi(), atol() and atoll() are thread safe with
exceptions.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:22:49 +13:00
Peng Haitao
b5dedda7d3
atof.3: ATTRIBUTES: Note function that is thread safe with exceptions
...
The function atof() is thread safe with exceptions.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:20:06 +13:00
Peng Haitao
941daa87c7
atan.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions atan(), atanf() and atanl() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:18:36 +13:00
Peng Haitao
fdceb0bdc6
alloca.3: ATTRIBUTES: Note function that is thread-safe
...
The function alloca() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:18:21 +13:00
Peng Haitao
31047e642c
adjtime.3: ATTRIBUTES: Note function that is thread-safe
...
The function adjtime() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:18:11 +13:00
Peng Haitao
bea300ad81
ftok.3: ATTRIBUTES: Note function that is thread-safe
...
The function ftok() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:18:04 +13:00
Greg Price
25630b2764
malloc.3: Scale back promises of alignment
...
It's not true that the return value is suitably aligned for "any
variable"; for example, it's unsuitable for a variable like
float *x __attribute__ ((__vector_size__ (32)));
which requires 32-byte alignment. Types like this are defined in
<avxintrin.h>, and with 16-byte alignment in <emmintrin.h> and
<xmmintrin.h>, so the application programmer need not even know
that a vector_size attribute has been applied.
On an x86 architecture, a program that loads from or stores to a
pointer with this type derived from malloc can crash because GCC
generates an aligned load/store, like MOVDQA.
The C99 standard (TC3, as of N1256) does say the return value is
suitably aligned for "any type of object". The C11 standard (as
of N1570) revises this to any type with "fundamental alignment",
which means an alignment "supported by the implementation in all
contexts", which I suppose tautologically includes aligning
malloc/realloc return values.
The actual behavior of current glibc malloc is to align to the
greater of 2 * sizeof(size_t) and __alignof__ (long double),
which may be one bit greater than this commit promises.
Signed-off-by: Greg Price <price@mit.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:16:19 +13:00
Michael Kerrisk
36e3fa2641
fexecve.3: Explain the use and rationale of fexecve()
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-25 12:37:41 +13:00
Michael Kerrisk
0397bccf5c
fexecve.3: POSIX.1-2008 specifies fexecve()
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-25 11:57:07 +13:00
Michael Kerrisk
779e42d021
setenv.3: Clarify that setenv() returns success in the overwrite==0 case
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-11 07:47:13 +13:00
Peng Haitao
adb7cd334e
des_crypt.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions ecb_crypt(), cbc_crypt() and des_setparity() are
thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:17:11 +02:00
Peng Haitao
9f4658a7c9
creal.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions creal(), crealf() and creall() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:16:39 +02:00
Peng Haitao
2d6c69dfdf
cproj.3: wfix
...
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:15:56 +02:00
Peng Haitao
1e50524784
cproj.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions cproj(), cprojf() and cprojl() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:15:33 +02:00
Peng Haitao
680c76f15f
cbrt.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions cbrt(), cbrtf() and cbrtl() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:15:05 +02:00
Peng Haitao
3e323f1255
dysize.3: ATTRIBUTES: Note function that is thread-safe
...
The function dysize() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:14:21 +02:00
Peng Haitao
94a133a483
euidaccess.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions euidaccess() and eaccess() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:13:54 +02:00
Peng Haitao
e0cf6f25d3
statvfs.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions statvfs() and fstatvfs() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:12:34 +02:00
Peng Haitao
53d029b310
ftime.3: ATTRIBUTES: Note function that is thread-safe
...
The function ftime() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:11:51 +02:00
Michael Kerrisk
886ea57d14
assert.3, assert_perror.3, rexec.3, rpc.3: Reword a sentence to use more gender-neutral language
...
Reported-by: Jon Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:07:35 +02:00
Michael Kerrisk
9267ec37f4
sigsetops.3: Add 'const' to sigisemptyset(), sigorset(), sigandset() declarations
...
Reported-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-24 08:35:48 +02:00
Michael Kerrisk
f9d8c4e6fc
sigsetops.3: Rework text describing sigisemptyset(), sigorset(), and sigandset()
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-24 08:31:23 +02:00
Michael Kerrisk
ae7656b2a7
sigsetops.3: tfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-24 08:12:41 +02:00
Michael Kerrisk
48b6f08669
ioctl_list.2, kill.2, nfsservctl.2, sched_setaffinity.2, sched_setparam.2, sched_setscheduler.2, syscall.2, fma.3, fmax.3, fmin.3, ip.7: tstamp
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-17 08:27:30 +02:00
Peng Haitao
69e8f02f23
wctomb.3: ATTRIBUTES: Note function that is not thread-safe
...
The function wctomb() is not thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-13 09:02:29 +02:00
Peng Haitao
8cb0cd8252
drand48_r.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions drand48_r(), erand48_r(), lrand48_r(),
nrand48_r(), mrand48_r(), jrand48_r(), srand48_r(), seed48_r(),
and lcong48_r() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-13 09:02:29 +02:00
Peng Haitao
bbb97a015c
seekdir.3: ATTRIBUTES: Note function that is thread-safe
...
The function seekdir() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-13 09:02:28 +02:00
Michael Kerrisk
464e572e99
pthread_sigqueue.3: tfix in SYNOPSIS
...
Reported-by: Andrew Hunter <andrewhhunter@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-13 05:48:14 +02:00
Michael Kerrisk
533b9c5cb3
printf.3: srcfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 09:27:34 +02:00
Christopher Hall
abbcef30df
printf.3: Correctly describe the meaning of a negative precision
...
The printf(3) manpage says that a negative precision is taken to
be zero, whereas printf(3p) says that a negative precision is
taken as if the precision were omitted. glibc agrees with the
latter (POSIX) specification.
Test code:
printf("%f\n",42.0); // "42.000000"
printf("%.*f\n",0,42.0); // "42"
printf("%.*f\n",-1,42.0); // "42.000000"
This patch corrects the explanation to match what actually happens.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 09:26:28 +02:00
Michael Kerrisk
7d0ec5b670
gethostbyname.3: gai_strerror() is the modern replacement for herror() and hstrerror()
...
Reported-by: Jon Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 09:18:39 +02:00
Michael Kerrisk
930c9b6d23
gethostbyname.3: Add feature test macro requirements for errno
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 09:16:45 +02:00