Commit Graph

3703 Commits

Author SHA1 Message Date
Michael Kerrisk 6cc61889f8 sched_getcpu.3: SEE ALSO: add sched(7)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-29 15:00:55 +02:00
Michael Kerrisk 2b9b829d52 time.1, get_kernel_syms.2, getitimer.2, open.2, perf_event_open.2, wait.2, alloca.3, bcmp.3, catopen.3, fputwc.3, iconv.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, mbsinit.3, putwchar.3, rcmd.3, rexec.3, sigqueue.3, strverscmp.3, wctrans.3, wctype.3, wcwidth.3, console_codes.4, initrd.4, st.4, elf.5, nss.5, ip.7, netdevice.7, path_resolution.7, socket.7, udp.7, ld.so.8: grfix: s/Otherwise /Otherwise, /
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-28 10:15:47 +02:00
Peng Haitao 88b11b50cb pthread_attr_setstack.3: ATTRIBUTES: Note functions that are thread-safe
The functions pthread_attr_setstack() and pthread_attr_getstack()
are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-23 20:40:00 +02:00
Peng Haitao 180a948b37 pthread_attr_setscope.3: ATTRIBUTES: Note functions that are thread-safe
The functions pthread_attr_setscope() and pthread_attr_getscope()
are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-23 20:40:00 +02:00
Peng Haitao 1cfb294673 pthread_attr_setschedpolicy.3: ATTRIBUTES: Note functions that are thread-safe
The functions pthread_attr_setschedpolicy() and
pthread_attr_getschedpolicy() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-23 20:40:00 +02:00
Peng Haitao 6fea3867c0 pthread_attr_setschedparam.3: ATTRIBUTES: Note functions that are thread-safe
The functions pthread_attr_setschedparam() and
pthread_attr_getschedparam() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-23 20:40:00 +02:00
Peng Haitao 47fb8a7f94 pthread_attr_setinheritsched.3: ATTRIBUTES: Note functions that are thread-safe
The functions pthread_attr_setinheritsched() and
pthread_attr_getinheritsched() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-23 20:40:00 +02:00
Michael Kerrisk 1df20d51b3 dlopen.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-23 20:40:00 +02:00
Michael Kerrisk fe8b1358a6 Removed trailing white space at end of lines 2014-04-20 11:06:01 +02:00
Michael Kerrisk 62bd7742ff fexecve.3: If 'fd' is a close-on-exec file descriptor for a script, fexecve() fails
See https://bugzilla.kernel.org/show_bug.cgi?id=74481

Reported-by: Steven Stewart-Gallus <sstewartgallus00@mylangara.bc.ca>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-20 07:48:15 +02:00
Michael Kerrisk 0dbfbe8e71 fexecve.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-20 07:48:15 +02:00
Michael Kerrisk 5526923ae2 inet.3: The form 'a.b' if is suitable for Class A addresses (not class C)
Reported-by: Craig McQueen <craig.mcqueen@beamcommunications.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-19 10:44:40 +02:00
Michael Kerrisk 4cbfaed0ad inet.3: Note success and error return for inet_aton()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-19 10:44:28 +02:00
Michael Kerrisk 43d19bc76f crypt.3: Minor fixes to Mike Frysinger's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-18 17:51:25 +02:00
Mike Frysinger 3cc95d3f42 crypt(3): Use real dashes in regex
I don't think rendering the dashes in the regex expression as the
en style makes sense.  This is a literal regex, so use literal
dashes.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-18 17:50:07 +02:00
David Prévot 8563c24924 termios.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-17 07:45:52 +02:00
Michael Kerrisk 49d2b31216 inet_net_pton.3: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-14 12:50:42 +02:00
Michael Kerrisk ebd9e5df0d inet.3: SEE ALSO: add inet_net_pton(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-14 12:50:41 +02:00
Michael Kerrisk 90fb795078 inet_net_ntop.3: New link to new inet_net_pton.3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-14 12:50:41 +02:00
Michael Kerrisk 6227c31dc6 inet_net_pton.3: New page describing inet_net_pton(3) and inet_net_ntop(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-14 12:50:41 +02:00
Peng Haitao 738e78b2c9 pthread_attr_setguardsize.3: ATTRIBUTES: Note functions that are thread-safe
The functions pthread_attr_setguardsize() and
pthread_attr_getguardsize() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-14 12:26:40 +02:00
Peng Haitao 681f627eee pthread_attr_setdetachstate.3: ATTRIBUTES: Note functions that are thread-safe
The functions pthread_attr_setdetachstate() and
pthread_attr_getdetachstate() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-14 12:26:35 +02:00
Peng Haitao 7eea6fc323 ffs.3: ATTRIBUTES: Note functions that are thread-safe
The functions ffs(), ffsl() and ffsll() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-14 12:26:30 +02:00
Peng Haitao ec3f0bf778 sigsetops.3: ATTRIBUTES: Note functions that are thread-safe
The functions sigemptyset(), sigfillset(), sigaddset(),
sigdelset(), sigismember(), sigisemptyset(), sigorset() and
sigandset() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-14 12:26:23 +02:00
Peng Haitao e3de721c1a makecontext.3: ATTRIBUTES: Note functions that are thread-safe
The functions makecontext() and swapcontext() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-14 12:26:16 +02:00
David Prévot 8a9849f29e toupper.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-14 12:24:30 +02:00
Michael Kerrisk 7c5ca6668f malloc.3: srcfix: Add FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-14 06:54:27 +02:00
Peng Haitao 9ac2ef8325 getcontext.3: ATTRIBUTES: Note functions that are thread-safe
The functions getcontext() and setcontext() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-10 21:19:10 +02:00
Peng Haitao b727421c8c getauxval.3: ATTRIBUTES: Note function that is thread-safe
The function getauxval() is thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-10 21:18:52 +02:00
Peng Haitao e511c66a5b getutmp.3: ATTRIBUTES: Note functions that are thread-safe
The functions getutmp() and getutmpx() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-10 21:18:27 +02:00
Peng Haitao 631f7a0962 getsubopt.3: ATTRIBUTES: Note function that is thread-safe
The function getsubopt() is thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-10 21:18:16 +02:00
Peng Haitao 7998494a13 byteorder.3: ATTRIBUTES: Note functions that are thread-safe
The functions htonl(), htons(), ntohl() and ntohs() are thread
safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-10 21:17:48 +02:00
Simon Paillard a03c016c7d isalpha.3, stat.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-10 21:15:37 +02:00
Simon Paillard 5ee5df69ac isalpha.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-10 21:14:52 +02:00
David Prévot 509a10ef17 man3/mbstowcs.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-10 21:00:09 +02:00
David Prévot 2654d1a86f duplocale.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-10 20:59:32 +02:00
Michael Kerrisk b8dbf73de8 bdflush.2, fsync.2, mmap.2, open.2, perf_event_open.2, sync.2, syscall.2, fmemopen.3, getaddrinfo.3, getline.3, mq_notify.3, offsetof.3, aio.7, symlink.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:47:35 +02:00
Michael Kerrisk f8f8b9c1f6 termios.3: Add descriptive titles to noncanonical read() cases
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:20:51 +02:00
Michael Kerrisk a9f0126fa6 termios.3: Clarify termination conditions for MIN > 0, TIME > 0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:20:51 +02:00
Michael Kerrisk e764d1b79d termios.3: Clarify behavior if data is available before noncanonical read()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:20:51 +02:00
Michael Kerrisk 5ee2d3c5d6 termios.3: Add a note on interaction of O_NONBLOCK with noncanonical MIN/TIME
POSIX leaves the behavior open.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:20:50 +02:00
Michael Kerrisk 4b985dd60a termios.3: Fix error in discussion of MIN > 0, TIME == 0 noncanonical mode
As reported by Peter Hurley, for the MIN > 0, TIME == 0 case:

    read() may unblock when MIN bytes are available but return
    up to the 'count' parameter if more input arrives in between
    waking and copying into the user buffer.
    ...
    read() may also _not_ return until MIN bytes have been
    received, even if 'count' bytes have been received.

MTK: verified the above by experiment.

Reported-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:20:50 +02:00
Michael Kerrisk 959c4b2519 termios.3: ffix: reformat MIN/TIME list to use .TP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:20:50 +02:00
Alexey Samsonov cc82e457b2 getline.3: Caller should free the allocated buffer even if getline() failed
Relevant discussion in glibc bugzilla:
https://sourceware.org/bugzilla/show_bug.cgi?id=5666
test program:

    $ cat tmp/getline/a.cc
    #include <stdio.h>
    int main() {
      for (int x = 0; x < 2; x++) {
        char *lineptr = 0;
        size_t size = 0;
        int res = getline(&lineptr, &size, stdin);
        printf("%d\n%p\n", res, lineptr);
      }
      return 0;
    }
    $ gcc tmp/getline/a.cc && echo -n "xxx" > x && ./a.out < x
    3
    0x11ae010
    -1
    0x11ae090

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-02 12:10:03 +02:00
Michael Kerrisk f3ef455821 fseek.3: Document EINVAL error for negative file offset
Reported-by: Petr Gajdos <pgajdos@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-02 09:45:02 +02:00
Peng Haitao 2995190026 fenv.3: ATTRIBUTES: Note functions that are thread-safe
The functions feclearexcept(), fegetexceptflag(), feraiseexcept(),
fesetexceptflag(), fetestexcept(), fegetround(), fesetround(),
fegetenv(), feholdexcept(), fesetenv(), feupdateenv(),
feenableexcept(), fedisableexcept() and fegetexcept() are thread
safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:43:02 +02:00
Peng Haitao 3c7682247a getpt.3: ATTRIBUTES: Note function that is thread-safe
The function getpt() is thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:42:39 +02:00
Peng Haitao 2841248208 getloadavg.3: ATTRIBUTES: Note function that is thread-safe
The function getloadavg() is thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:42:06 +02:00
Peng Haitao 8cad35ef8d index.3: ATTRIBUTES: Note functions that are thread-safe
The functions index() and rindex() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:41:39 +02:00
Peng Haitao 60bd4d858f if_nametoindex.3: ATTRIBUTES: Note functions that are thread-safe
The functions if_nametoindex() and if_indextoname() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:40:11 +02:00