Commit Graph

4672 Commits

Author SHA1 Message Date
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
Zeng Linggang bcbdc98f51 err.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.
markings of functions in glibc are:
- err:    MT-Safe locale
- err:    MT-Safe locale
- errx:   MT-Safe locale
- warn:   MT-Safe locale
- warnx:  MT-Safe locale
- verr:   MT-Safe locale
- verrx:  MT-Safe locale
- vwarn:  MT-Safe locale
- vwarnx: 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:43 +02:00
Michael Kerrisk c6e4887f69 dprintf.3: Convert to a link to printf.3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-27 15:49:21 +02:00
Michael Kerrisk 62730046cc printf.3: Merge dprintf() and vdprintf() discussion into this page
Reported-by: Egmont Koblinger <egmont@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-27 15:47:37 +02:00
Michael Kerrisk f26710858b tzset.3: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-22 12:04:26 +02:00
Michael Kerrisk 6bea32429c rint.3: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-22 12:04:26 +02:00
Michael Kerrisk 5b12fe6d92 resolver.3: Add descriptions of some other resolver functions
Add res_ninit(), res_nquery(), res_nsearch(),
and res_nquerydomain(), res_nmkquery(), res_nsend().

Reported-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-21 15:01:13 +02:00
Michael Kerrisk 11e8504e29 resolver.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-21 15:01:13 +02:00
Michael Kerrisk b6a4576f23 res_ninit.3, res_nmkquery.3, res_nquery.3, res_nquerydomain.3, res_nsearch.3, res_nsend.3: New links to resolver(3) man page
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-21 15:01:13 +02:00
Stéphane Aulery 25fe58e4c7 resolver.3: Add info about RES_INSECURE1 and RES_INSECURE2 option in debug mode
Signed-off-by: Stéphane Aulery <saulery@free.fr>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-21 14:59:59 +02:00
William Woodruff b9e14fc975 undocumented.3: Remove documented functions
Signed-off-by: William Woodruff <william@tuffbizz.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-21 14:45:25 +02:00
Michael Kerrisk b82cc8c776 cmsg.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-21 12:25:52 +02:00
Michael Kerrisk 5933ed88ea CMSG_LEN.3: New link to cmsg(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-21 12:16:30 +02:00
Michael Kerrisk 3c2ae3f56f CMSG_DATA.3: New link to cmsg(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-21 12:15:37 +02:00
Michael Kerrisk cd358be37a Removed trailing white space at end of lines 2015-04-19 11:21:53 +02:00
Michael Kerrisk c73595c249 getent.1, fallocate.2, getrlimit.2, llseek.2, madvise.2, mount.2, poll.2, posix_fadvise.2, pread.2, stat.2, symlink.2, timer_create.2, timerfd_create.2, unshare.2, acos.3, acosh.3, asin.3, asinh.3, asprintf.3, atan.3, atan2.3, atanh.3, cabs.3, cacos.3, cacosh.3, carg.3, casin.3, casinh.3, catan.3, catanh.3, cbrt.3, ccos.3, ccosh.3, ceil.3, cexp.3, cimag.3, clog.3, conj.3, copysign.3, cos.3, cosh.3, cpow.3, cproj.3, creal.3, csin.3, csinh.3, csqrt.3, ctan.3, ctanh.3, ctime.3, erf.3, erfc.3, exec.3, exp.3, exp2.3, expm1.3, fabs.3, fdim.3, floor.3, fma.3, fmax.3, fmin.3, fmod.3, frexp.3, ftw.3, get_nprocs_conf.3, getcwd.3, gethostbyname.3, getnetent.3, getutent.3, glob.3, ilogb.3, insque.3, j0.3, ldexp.3, lgamma.3, log.3, log10.3, log1p.3, log2.3, logb.3, login.3, lrint.3, lround.3, lseek64.3, malloc.3, mbsnrtowcs.3, mbsrtowcs.3, modf.3, mq_notify.3, mq_open.3, nan.3, nextafter.3, openpty.3, perror.3, posix_memalign.3, pow.3, printf.3, qsort.3, realpath.3, remainder.3, remquo.3, rint.3, round.3, scalbln.3, scandir.3, scanf.3, setnetgrent.3, significand.3, sin.3, sinh.3, sqrt.3, strcasecmp.3, tan.3, tanh.3, tgamma.3, trunc.3, unlocked_stdio.3, updwtmp.3, wcrtomb.3, wcsnrtombs.3, wcsrtombs.3, wordexp.3, wprintf.3, y0.3, epoll.7, icmp.7, nptl.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-19 11:20:58 +02:00
Michael Kerrisk b99daa3ffc posix_madvise.3: New page documenting posix_madvise(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-19 09:54:55 +02:00
Michael Kerrisk fccc2ad848 qsort.3: alphasort() and versionsort() are not suitable for 'compar'
In glibc 2.10, the prototypes of alphasort() and versionsort()
were changed so that the arguments switched from 'const void *' to
'const struct dirent **', to match the POSIX.1-2008 specification
of alphasort(). As such, compiler warnings will result if
these functions are used as the arguments of qsort().

    warning: passing argument 4 of 'qsort' from incompatible
    pointer type
    expected '__compar_fn_t' but argument is of type
    'int (*)(const struct dirent **, const struct dirent **)'

Therefore, remove the ancient NOTES text suggesting that
alphasort() and versionsort() can be used as suitable
'compar' arguments for qsort().

Reported-by: Rob Landley <rob@landley.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-19 09:25:20 +02:00
Michael Kerrisk 57cc00ecbf scandir.3: glibc 2.10 changed the argument types for alphasort() and versionsort()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-19 09:25:20 +02:00
Zeng Linggang 0cebdbbcd1 updwtmp.3: ATTRIBUTES: Note functions that aren't thread-safe
The markings match glibc markings.

updwtmp: MT-Unsafe sig:ALRM timer
logwtmp: MT-Unsafe sig:ALRM timer

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 20:37:17 +02:00
Zeng Linggang ff4465781b setnetgrent.3: ATTRIBUTES: Note functions that aren't thread-safe
The markings match glibc markings.

setnetgrent:   MT-Unsafe race:netgrent locale
getnetgrent_r: MT-Unsafe race:netgrent locale
innetgr:       MT-Unsafe race:netgrent locale

endnetgrent:   MT-Unsafe race:netgrent

getnetgrent:   MT-Unsafe race:netgrent race:netgrentbuf locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 20:37:12 +02:00
Zeng Linggang b63bb31a91 posix_memalign.3: ATTRIBUTES: Note functions that aren't thread-safe
The markings match glibc markings.

posix_memalign: MT-Safe
aligned_alloc:  MT-Safe
memalign:       MT-Safe

valloc:         MT-Unsafe init
pvalloc:        MT-Unsafe init

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 20:37:07 +02:00
Zeng Linggang a46e97ad29 openpty.3: ATTRIBUTES: Note functions that isn't thread-safe
The markings match glibc markings.

openpty:   MT-Safe locale
forkpty:   MT-Safe locale

login_tty: MT-Unsafe race:ttyname

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 20:37:03 +02:00
Zeng Linggang a330706ca7 login.3: ATTRIBUTES: Note functions that aren't thread-safe
The markings match glibc markings.

login:  MT-Unsafe race:utent sig:ALRM timer
logout: MT-Unsafe race:utent sig:ALRM timer

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 20:36:54 +02:00
Zeng Linggang afe3272b63 wordexp.3: ATTRIBUTES: Note functions that aren't thread-safe
The markings match glibc markings.

wordexp:  MT-Unsafe race:utent const:env env sig:ALRM timer locale

wordfree: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 20:36:00 +02:00
Zeng Linggang 624e75795b glob.3: ATTRIBUTES: Note functions that aren't thread-safe
The markings match glibc markings.

glob:     MT-Unsafe race:utent env sig:ALRM timer local

globfree: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 20:35:20 +02:00
Ma Shimiao a19859cd2c insque.3: ATTRIBUTES: Note functions that are thread-safe
But, there is not markings of insque() and remque() in glibc document.

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 20:32:05 +02:00
Ma Shimiao 11cf4a69cf clock.3: ATTRIBUTES: Note functions that is thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- clock: MT-Safe

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 20:31:55 +02:00
Ma Shimiao 27a428439c significand.3:ATTRIBUTES: Note functions that are thread-safe
The marking matches glibc marking.
markings of functions in glibc are:
- significand: MT-Safe
- significandf: MT-Safe
- significandl: MT-Safe

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 20:31:48 +02:00