Commit Graph

4800 Commits

Author SHA1 Message Date
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
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
Michael Kerrisk d954cea8fd ftw.3: Reorganize the page to give primacy to nftw()
nftw() is the better API, and POSIX.1-2008 marks ftw() obsolete.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 13:20:40 +02:00
Michael Kerrisk 3591ce3e19 ftw.3: ftw() and nftw() differ for the non-stat-able symlink case
The POSIX specification of ftw() says that an un-stat-able
symlink may yield either FTW_NS or FTW_SL. The specification
of nftw() does not carry this statement.

Reported-by: Felix Sedlmeier <sedlmeier@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 13:20:40 +02:00
Michael Kerrisk f6c19db018 ftw.3: Update POSIX version references in NOTES
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 13:20:40 +02:00
Michael Kerrisk 3dd43f24b3 ftw.3: srcfix: FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 13:20:40 +02:00
Michael Kerrisk c47fe813bb ftw.3: CONFORMING TO: add POSIX.1-2008
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 13:20:40 +02:00
Michael Kerrisk bdbe038293 ftw.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 13:20:40 +02:00
Michael Kerrisk 67de1cc92e exec.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 13:20:39 +02:00
Michael Kerrisk 2a3bc44ea7 exec.3: SYNOPSIS: Clarify calling signature for execl() and execlp()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 13:20:39 +02:00
Michael Kerrisk 5f3dafbf06 exec.3: Correct prototype for execle()
Make the prototype shown into correct C.

Reported-by: Andreas Baak <andreas.baak@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-18 13:20:39 +02:00
Michael Kerrisk 5600f73afd acos.3, acosh.3, asin.3, asinh.3, atan.3, atan2.3, atanh.3, cabs.3, cacos.3, cacosh.3, casin.3, casinh.3, catan.3, catanh.3, cbrt.3, cexp.3, cimag.3, conj.3, copysign.3, cos.3, cosh.3, cpow.3, creal.3, erf.3, erfc.3, exp.3, exp10.2, exp2.3, expm1.3, fma.3, fmod.3, frexp.3, hypot.3, ldexp.3, lgamma.3, log.3, log10.3, log1p.3, log2.3, modf.3, pow.3, pow10.3, remainder.3, significand.3, sin.3, sinh.3, sqrt.3, tan.3, tanh.3, tgamma.3: wfix: use consistent wording to describe functions
exp10.3, lgamma.3, modf.3, pow10.3, remainder.3, significand.3:dd
Where a page describes multiple math functions with float, double,
and long double variants, just describe them as "These functions"
rather than describing in terms of just the double variant.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:58 +02:00
Michael Kerrisk 4f337c124b ctanh.3: Add introductory sentence explaining what these functions calculate
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:58 +02:00
Michael Kerrisk ca9f5e079d ctan.3: Add introductory sentence explaining what these functions calculate
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:58 +02:00
Michael Kerrisk b0b0c4db8b csqrt.3: Simplify description of what these functions calculate
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:58 +02:00
Michael Kerrisk b571cae4d1 csinh.3: Add introductory sentence explaining what these functions calculate
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:58 +02:00
Michael Kerrisk 2feb67afc8 csin.3: Add introductory sentence explaining what these functions calculate
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:58 +02:00
Michael Kerrisk defcc3383a clog.3: Add introductory sentence explaining what these functions calculate
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:58 +02:00
Michael Kerrisk f0a0305b38 ccosh.3: Add introductory sentence explaining what these functions calculate
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:58 +02:00
Michael Kerrisk a6899b9509 ccos.3: Add introductory sentence explaining what these functions calculate
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:58 +02:00
Michael Kerrisk 8fd531f3f4 carg.3: Add introductory sentence explaining what these functions calculate
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:57 +02:00
Michael Kerrisk 9a74e0188a acos.3, acosh.3, asin.3, asinh.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, erf.3, erfc.3, exp.3, exp2.3, expm1.3, fabs.3, fdim.3, floor.3, fma.3, fmax.3, fmin.3, fmod.3, frexp.3, hypot.3, ilogb.3, ldexp.3, log.3, log10.3, log1p.3, log2.3, logb.3, lrint.3, lround.3, modf.3, nan.3, nextafter.3, pow.3, remquo.3, rint.3, round.3, scalbln.3, sin.3, sinh.3, sqrt.3, tan.3, tanh.3, tgamma.3, trunc.3: These functions are also in POSIX.1-2008
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:57 +02:00
Michael Kerrisk e05e36354c acos.3, acosh.3, asin.3, asinh.3, atan.3, atan2.3, atanh.3, ceil.3, cos.3, cosh.3, erf.3, erfc.3, exp.3, exp2.3, fabs.3, floor.3, fmod.3, frexp.3, hypot.3, ldexp.3, log.3, log10.3, log2.3, modf.3, pow.3, sin.3, sinh.3, sqrt.3, tan.3, tanh.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:57 +02:00
Michael Kerrisk 9a0216acae j0.3, lgamma.3, remainder.3, y0.3: CONFORMING TO: note functions that are also in POSIX.1-2008
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:57 +02:00
Michael Kerrisk 674546eff6 sincos.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:57 +02:00
Michael Kerrisk 6cf65aa66f clog10.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:57 +02:00
Michael Kerrisk 553dbcef8c cabs.3, cacos.3, cacosh.3, carg.3, casin.3, casinh.3, catan.3, catanh.3, ccos.3, ccosh.3, cexp.3, cimag.3, clog.3, conj.3, cpow.3, cproj.3, creal.3, csin.3, csinh.3, csqrt.3, ctan.3, ctanh.3: These C99 math functions are also in POSIX.1-2001
POSIX.1-2001 includes all of the C99 APIs

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:57 +02:00
Michael Kerrisk ae9b41ac79 gethostbyname.3: Add some detail for NO_DATA
Text consistent with POSIX and FreeBSD's gethostbyname() man page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:57 +02:00
Michael Kerrisk 491e87a59d gethostbyname.3: Clarify the NO_ADDRESS and NO_DATA are synonyms
Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 15:49:57 +02:00
Michael Kerrisk e20476d370 strcasecmp.3: Clarify that strcasecmp() does a byte-wise comparison
Reported-0by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 09:58:24 +02:00
Michael Kerrisk cad62ef6ab strcasecmp.3: CONFORMING TO: add POSIX.1-2008
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 09:58:24 +02:00
Michael Kerrisk d25d8988ed strcasecmp.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 09:58:24 +02:00
Michael Kerrisk b739e8e108 strcat.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 09:58:24 +02:00
Michael Kerrisk 1892fceef3 realpath.3: Add ENOMEM error
Reported-by: Jon Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 09:58:24 +02:00
Michael Kerrisk 28e8ce31e7 getcwd.3: Add ENOMEM error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 09:58:24 +02:00
Michael Kerrisk afd6bcb8d9 malloc.3: Add ENOMEM error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 09:58:24 +02:00
Walter Harms 30e3ba675c printf.3: Simplify the example code
(Minor tweaks by mtk)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 09:34:05 +02:00
Zeng Linggang 3d597ecab1 wcrtomb.3: ATTRIBUTES: Note function that isn't thread-safe
The marking matches glibc marking.

wcrtomb: MT-Unsafe race:wcrtomb/!ps

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:50:03 +02:00
Zeng Linggang 4aefbee837 unlocked_stdio.3: ATTRIBUTES: Note functions that aren't thread-safe
The markings match glibc markings.

getc_unlocked:     MT-Safe race:stream
putc_unlocked:     MT-Safe race:stream
clearerr_unlocked: MT-Safe race:stream
fflush_unlocked:   MT-Safe race:stream
fgetc_unlocked:    MT-Safe race:stream
fputc_unlocked:    MT-Safe race:stream
fread_unlocked:    MT-Safe race:stream
fwrite_unlocked:   MT-Safe race:stream
fgets_unlocked:    MT-Safe race:stream
fputs_unlocked:    MT-Safe race:stream
getwc_unlocked:    MT-Safe race:stream
fgetwc_unlocked:   MT-Safe race:stream
fputwc_unlocked:   MT-Safe race:stream
putwc_unlocked:    MT-Safe race:stream
fgetws_unlocked:   MT-Safe race:stream
fputws_unlocked:   MT-Safe race:stream

getchar_unlocked:  MT-Unsafe race:stdin
getwchar_unlocked: MT-Unsafe race:stdin

putchar_unlocked:  MT-Unsafe race:stdout
putwchar_unlocked: MT-Unsafe race:stdout

feof_unlocked:     MT-Safe
ferror_unlocked:   MT-Safe
fileno_unlocked:   MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:50:03 +02:00
Zeng Linggang 9534c08c80 wprintf.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.

wprintf:   MT-Safe locale
fwprintf:  MT-Safe locale
swprintf:  MT-Safe locale
vwprintf:  MT-Safe locale
vfwprintf: MT-Safe locale
vswprintf: MT-Safe locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:28 +02:00
Zeng Linggang 652318eefe wcsrtombs.3: ATTRIBUTES: Note function that isn't thread-safe
The marking matches glibc marking.

wcsrtombs: MT-Unsafe race:wcsrtombs/!ps

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:28 +02:00
Zeng Linggang 6d4209dec5 wcsnrtombs.3: ATTRIBUTES: Note function that isn't thread-safe
The marking matches glibc marking.

wcsnrtombs: MT-Unsafe race:wcsnrtombs/!ps

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Zeng Linggang bec786289f scanf.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.

scanf:   MT-Safe locale
fscanf:  MT-Safe locale
sscanf:  MT-Safe locale
vscanf:  MT-Safe locale
vsscanf: MT-Safe locale
vfscanf: MT-Safe locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Zeng Linggang 9ec9e8274e scandir.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.

scandir:     MT-Safe
scandirat:   MT-Safe

alphasort:   MT-Safe locale
versionsort: MT-Safe locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Zeng Linggang 1567901b96 printf.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.

printf:    MT-Safe locale
fprintf:   MT-Safe locale
sprintf:   MT-Safe locale
snprintf:  MT-Safe locale
vprintf:   MT-Safe locale
vfprintf:  MT-Safe locale
vsprintf:  MT-Safe locale
vsnprintf: MT-Safe locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Zeng Linggang 80563762a2 perror.3: ATTRIBUTES: Note function that is thread-safe
The marking matches glibc marking.

perror: MT-Safe race:stderr

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Zeng Linggang 03c07cb1e5 mbsrtowcs.3: ATTRIBUTES: Note function that isn't thread-safe
The marking matches glibc marking.

mbsrtowcs: MT-Unsafe race:mbsrtowcs/!ps

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Zeng Linggang adad095fc6 mbsnrtowcs.3: ATTRIBUTES: Note function that isn't thread-safe
The marking matches glibc marking.

mbsnrtowcs: MT-Unsafe race:mbsnrtowcs/!ps

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Zeng Linggang a5047c38da getutent.3: ATTRIBUTES: Note functions that aren't thread-safe
The markings match glibc markings.

getutent:  MT-Unsafe init race:utent race:utentbuf sig:ALRM timer

getutid:   MT-Unsafe init race:utent sig:ALRM timer
getutline: MT-Unsafe init race:utent sig:ALRM timer

pututline: MT-Unsafe race:utent sig:ALRM timer

setutent:  MT-Unsafe race:utent
endutent:  MT-Unsafe race:utent
utmpname:  MT-Unsafe race:utent

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Zeng Linggang 08da409ade get_nprocs_conf.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.

get_nprocs:      MT-Safe
get_nprocs_conf: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Zeng Linggang d476c6315a getnetent.3: ATTRIBUTES: Note functions that aren't thread-safe
The markings match glibc markings.

getnetent:    MT-Unsafe race:netent race:netentbuf env locale

getnetbyname: MT-Unsafe race:netbyname env locale

getnetbyaddr: MT-Unsafe race:netbyaddr locale

setnetent:    MT-Unsafe race:netent env locale
endnetent:    MT-Unsafe race:netent env locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Zeng Linggang c7bd50f134 gethostbyname.3: ATTRIBUTES: Note functions that aren't thread-safe
The markings match glibc markings.

gethostbyname:    MT-Unsafe race:hostbyname env locale

gethostbyaddr:    MT-Unsafe race:hostbyaddr env locale

sethostent:       MT-Unsafe race:hostent env locale
endhostent:       MT-Unsafe race:hostent env locale
gethostent_r:     MT-Unsafe race:hostent env locale

herror:           MT‐Safe
hstrerror:        MT‐Safe

gethostent:       MT-Unsafe race:hostent race:hostentbuf env locale

gethostbyname2:   MT-Unsafe race:hostbyname2 env locale

gethostbyaddr_r:  MT-Safe env locale
gethostbyname_r:  MT-Safe env locale
gethostbyname2_r: MT-Safe env locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Zeng Linggang c8b6813699 ctime.3: ATTRIBUTES: Note functions that aren't thread-safe
The markings match glibc markings.

asctime:     MT-Unsafe race:asctime locale

asctime_r:   MT-Safe locale

ctime:       MT-Unsafe race:tmbuf race:asctime env locale

ctime_r:     MT-Safe env locale
gmtime_r:    MT-Safe env locale
localtime_r: MT-Safe env locale
mktime:      MT-Safe env locale

gmtime:      MT-Unsafe race:tmbuf env locale
localtime:   MT-Unsafe race:tmbuf env locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Zeng Linggang 0f6cf80d74 asprintf.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.

asprintf:  MT-Safe locale
vasprintf: MT-Safe locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Ma Shimiao 8716ac0756 ctanh.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Ma Shimiao 96fb9f0b27 ctan.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Ma Shimiao 551dcfd58c csqrt.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Ma Shimiao 31652f0b15 csinh.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Ma Shimiao 212127d17f csin.3: ATTRIBUTES: Note functions that are thread-safe
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Ma Shimiao 71557c6da5 cexp.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Ma Shimiao a597364f3e ccos.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Michael Kerrisk b981bf291e lseek64.3: Clarify details with respect to 32-bit and 64-bit systems
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Michael Kerrisk 2d5b086a03 lseek64.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Michael Kerrisk 7824ab2333 lseek64.3: wfix
Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:26 +02:00
William Woodruff 83685d1e91 getcwd.3: ffix - make EINVAL and ENAMETOOLONG bold
Neither EINVAL nor ENAMETOOLONG were bolded in the ERRORS section.

Signed-off-by: William Woodruff <william@tuffbizz.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:26 +02:00
Michael Kerrisk 2b1f1a35b5 getcwd.3: Add kernel version/commit details to Jann Horn's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-06 16:13:55 +02:00
Michael Kerrisk de0dd42776 getcwd.3: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-06 16:13:55 +02:00
Jann Horn a2ac97c78b getcwd.3: Note behavior for unreachable current working directory
For the code that does this, see fs/dcache.c, search for
"prepend_unreachable".

Test case to demonstrate:

$ cat getcwd.c

int main(void) {
  unshare(CLONE_NEWUSER | CLONE_NEWNS);
  chdir("/usr");
  chroot("bin");

  printf("current directory: \"%s\"\n", get_current_dir_name());

  char *real = realpath(".", NULL);
  printf("realpath of .: \"%s\"\n", real ? real : "{none}");
  real = realpath("../home/jann/.ssh", NULL);
  printf("realpath of path: \"%s\"\n", real ? real : "{none}");

  return 0;
}
$ cat getcwd_test.c

int main(void) {
  unshare(CLONE_NEWUSER | CLONE_NEWNS);
  chdir("/usr");
  chroot("bin");
  printf("current directory: \"%s\"\n", get_current_dir_name());
  return 0;
}
$ gcc -o getcwd_test getcwd_test.c -Wall
$ ./getcwd_test
current directory: "(unreachable)/usr"

realpath.3 doesn't currently seem to handle this
case in a sane way, so I'm not going to document
its behavior yet. I'll report that as a bug instead.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-06 16:13:55 +02:00
Michael Kerrisk c5aee02706 mq_notify.3: Add "C library/kernel ABI differences" subsection
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-06 16:13:54 +02:00
Michael Kerrisk 5eeca37ce1 mq_open.3: NOTES: explain differences from the underlying system call
The check for the slash at the start of a pathname is done in glibc

Reported-by: Fabien Pichot <fpichot@bouledef.eu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-06 16:13:31 +02:00
Michael Kerrisk 1e64c86bbf intro.1, ldd.1, clone.2, getgroups.2, getpid.2, getsockopt.2, ioctl_list.2, msgop.2, open.2, seccomp.2, setgid.2, setresuid.2, setreuid.2, setuid.2, sigaction.2, sigpending.2, sigprocmask.2, sigreturn.2, sigsuspend.2, sigwaitinfo.2, socket.2, syscall.2, syscalls.2, umount.2, clock.3, dlopen.3, fmemopen.3, fpathconf.3, fputwc.3, fputws.3, fseek.3, fseeko.3, gcvt.3, getline.3, getwchar.3, hypot.3, if_nameindex.3, initgroups.3, popen.3, resolver.3, strcoll.3, strdup.3, tzset.3, ulimit.3, wcstombs.3, wctob.3, xdr.3, console_codes.4, random.4, filesystems.5, host.conf.5, hosts.5, proc.5, resolv.conf.5, securetty.5, credentials.7, feature_test_macros.7, hier.7, ipv6.7, packet.7, pthreads.7, raw.7, signal.7, tcp.7, user_namespaces.7, ld.so.8, ldconfig.8: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-03-29 22:30:09 +02:00
Michael Kerrisk 3f1982b218 sigsetops.3: Note treatment of signals used internally by NPTL
The glibc sigfillset() function excludes the two real-time
signals used by NPTL.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-03-28 23:58:04 +01:00
Michael Kerrisk 59526510f2 pthread_sigqueue.3: Note treatment of signals used internally by NPTL
The glibc pthread_sigqueue() function gives an error on attempts
to send either of the real-time signals used by NPTL.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-03-28 23:58:04 +01:00
Michael Kerrisk 4ea239b05e pthread_kill.3: Note treatment of signals used internally by NPTL
The glibc pthread_kill() function gives an error on attempts
to send either of the real-time signals used by NPTL.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-03-28 23:58:04 +01:00