Commit Graph

8990 Commits

Author SHA1 Message Date
Michael Kerrisk 0a8f18a044 Changes: Ready for 3.52
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-04 12:50:45 +02:00
Michael Kerrisk ac9167ae16 execve.2, aio_error.3, aio_return.3, clock_getcpuclockid.3, ctermid.3, ecvt.3, ether_aton.3, rexec.3, signbit.3, timegm.3: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-04 10:36:51 +02:00
Peng Haitao 543840ca7b signbit.3: ATTRIBUTES: Note macro that is thread-safe
The macro signbit() is thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-03 12:02:57 +02:00
Peng Haitao 0a82339877 clock_getcpuclockid.3: ATTRIBUTES: Note function that is thread-safe
The function clock_getcpuclockid() is thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-03 12:02:48 +02:00
Vince Weaver d1007d147c perf_event_open.2: Update to match the Linux 3.10 release
This patch updates the perf_event_open() documentation to include
new interfaces added in the 3.10 kernel.

It also documents a few [To be documented] instances left over
from the 3.7 kernel.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-02 06:12:11 +02:00
Michael Kerrisk af6e5ad89b perf_event_open.2: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-02 06:08:29 +02:00
Vince Weaver 8cc8b90de8 perf_event_open.2 Add PERF_IOC_FLAG_GROUP documentation
The perf_event_open() ENABLE/DISABLE/RESET ioctls can take an
argument, PERF_IOC_FLAG_GROUP.  This wasn't documented at all
until about a year ago (despite the support being there from
the beginning) so I missed this when initially writing
the man page.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-02 06:05:48 +02:00
Michael Kerrisk 58c7d0c279 strftime.3: BUGS: 'errno' is not set if the result string would exceed 'max' bytes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-28 04:24:10 +02:00
Michael Kerrisk 511b30188b strftime.3: Clarify details of return value
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-28 04:19:55 +02:00
Michael Kerrisk 6f78750b5e strftime.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-28 03:58:37 +02:00
Michael Kerrisk 1788df41b3 strftime.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-28 03:56:24 +02:00
Michael Kerrisk 2b7a2ac549 proc.5: Document /proc/[pid]/fd/ anon_inode symlinks
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-27 01:57:03 +02:00
Michael Kerrisk f75715e003 proc.5: Tweaks to Mike Frysinger's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-27 01:57:03 +02:00
Mike Frysinger d4529654b2 proc.5: Document /proc/[pid]/fd/ symlinks a bit more
Describe the type:[inode] syntax used in this dir

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-27 01:19:01 +02:00
Peng Haitao 0b0a32b833 aio_return.3: ATTRIBUTES: Note function that is thread-safe
The function aio_return() is thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-27 00:34:10 +02:00
Peng Haitao 34a8bc858e aio_error.3: ATTRIBUTES: Note function that is thread-safe
The function aio_error() is thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-27 00:34:02 +02:00
Peng Haitao d768f1d966 ctermid.3: ATTRIBUTES: Note function that is thread safe with exceptions
The function ctermid() is thread safe with exceptions.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-27 00:33:50 +02:00
Jérémie Galarneau 00a9a8997f timegm.3: copy the string returned by getenv()
The example of a portable version of timegm() uses the string
returned by getenv() after calling setenv() on the same
environment variable. The tz string may be invalid as per
getenv.3:

        "The string pointed to by the return value of getenv()
         may be statically allocated, and can be modified by a
         subsequent call to getenv(), putenv(3), setenv(3), or
         unsetenv(3)."

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-27 00:27:33 +02:00
Peter LaDow 0c42642f86 execve: Add envp to the Linux notes about NULL pointers
During the review of static analysis results, we discovered a
functional, but non-portable, use of execve().  For example:

    char *cmd[] = { "/path/to/some/file", NULL };
    execve(cmd[0], cmd, NULL);

The call succeeds.  Yet, the static analysis tool (rightly)
pointed out that envp could be dereferenced.  But digging into
glibc and the kernel, it appears that like argv, envp when NULL
is treated as if it were an empty list.

So, to clear things up, I'm submitting this patch to update the
man page to indicate that envp is treated like argv.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-21 14:21:43 +02:00
Michael Kerrisk f9293d9857 io_setup.2, perf_event_open.2, readdir.2, syscall.2, a64l.3, abs.3, asprintf.3, bindresvport.3, catgets.3, ceil.3, cimag.3, conj.3, crypt.3, drand48.3, encrypt.3, ether_aton.3, fcloseall.3, ferror.3, fmtmsg.3, getdate.3, getgrent.3, getgrnam.3, getpass.3, getpwent.3, getpwnam.3, getttyent.3, getusershell.3, localeconv.3, mblen.3, mbrlen.3, mbrtowc.3, modf.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_setname_np.3, ptsname.3, qecvt.3, re_comp.3, readdir.3, rexec.3, round.3, scalbln.3, stdio_ext.3, strerror.3, tmpnam.3, trunc.3, ttyname.3, ttyslot.3, inotify.7, man-pages.7, socket.7, tcp.7, udp.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-21 13:35:03 +02:00
Michael Kerrisk 2857d3ff8a pread.2: pread() and pwrite() are especially useful in multithreaded applications
Reported-by: Марк Коренберг <socketpair@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-21 12:30:25 +02:00
Michael Kerrisk 04aa92829d argz_add.3: ffix
Reported-by: Eric S. Raymond <esr@thyrsus.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-21 00:06:56 +02:00
Michael Kerrisk dcf163b97b envz_add.3: ffix
Reported-by: Eric S. Raymond <esr@thyrsus.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-21 00:02:24 +02:00
Eric S. Raymond 9b1c7a292f regex.3: Remove unused macro
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-20 23:59:18 +02:00
Michael Kerrisk 474446468e basename.3: Fix errors from Eric Raymond's previous commit
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-20 23:47:42 +02:00
Eric S. Raymond c6076d0e53 basename.3: Replace an ad-hoc table with a real one
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-20 23:43:32 +02:00
Eric S. Raymond 4df3a4bc62 console_codes.4: Replace some .in uses with equivalent .RS/.RE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-20 23:40:13 +02:00
Peng Haitao de541d4b88 mblen.3: ATTRIBUTES: Note function that is not thread-safe
The function mblen() is not thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
2013-06-20 23:36:52 +02:00
Peng Haitao 5621da57fa conj.3: ATTRIBUTES: Note functions that are thread-safe
The functions conj(), conjf() and conjl() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
2013-06-20 23:36:52 +02:00
Peng Haitao 6d74e86185 scalbln.3: ATTRIBUTES: Note functions that are thread-safe
The functions scalbn(), scalbnf(), scalbnl(), scalbln(),
scalblnf() and scalblnl() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
2013-06-20 23:36:52 +02:00
Michael Kerrisk 8f0d86a3d5 Merge branch 'master' of ra.kernel.org:/pub/scm/docs/man-pages/man-pages 2013-06-19 10:19:41 +02:00
Peng Haitao 18b3fa616f strerror.3: ATTRIBUTES: Note function that is not thread-safe
The function strerror() is not thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
2013-06-19 03:34:44 +02:00
Peng Haitao e3543fbba9 cimag.3: ATTRIBUTES: Note functions that are thread-safe
The functions cimag(), cimagf() and cimagl() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
2013-06-19 03:34:44 +02:00
Peng Haitao 907036968e modf.3: ATTRIBUTES: Note functions that are thread-safe
The functions modf(), modff() and modfl() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
2013-06-19 03:34:44 +02:00
Peng Haitao d265b8f2fc trunc.3: ATTRIBUTES: Note functions that are thread-safe
The functions trunc(), truncf() and truncl() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
2013-06-19 03:34:44 +02:00
Peng Haitao ed21d74901 ceil.3, round.3: ATTRIBUTES: tfix
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
2013-06-19 03:34:44 +02:00
Peng Haitao 7836c64d88 round.3: ATTRIBUTES: Note functions that are thread-safe
The functions round(), roundf() and roundl() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
2013-06-19 03:34:44 +02:00
Peng Haitao ea32445bea ceil.3: ATTRIBUTES: Note functions that are thread-safe
The functions ceil(), ceilf() and ceill() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
2013-06-19 03:34:44 +02:00
Peng Haitao 1ad7b08940 mbrtowc.3: ATTRIBUTES: Note function that is thread safe with exceptions
The function mbrtowc() is thread safe with exceptions.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-19 03:34:44 +02:00
Peng Haitao 3220895675 strtok.3: ATTRIBUTES: Note function that is not thread-safe
The function strtok() is not thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-19 03:31:33 +02:00
Peng Haitao b6c6e0a33d abs.3: ATTRIBUTES: Note functions that are thread-safe
The functions abs(), labs(), llabs() and imaxabs() are
thread-safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-19 03:31:33 +02:00
Michael Kerrisk 8ee22ae82c ferror.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-19 03:31:33 +02:00
Peng Haitao 82e25934ab ferror.3: ATTRIBUTES: Note functions that are thread-safe
The functions ferror(), clearerr(), feof() and fileno() are
thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-19 03:31:33 +02:00
Peng Haitao 70f5f10ecb tmpnam.3: ATTRIBUTES: Note function that is thread safe with exceptions
The function tmpnam() is thread safe with exceptions.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-19 03:31:33 +02:00
Michael Kerrisk 7ec74538de mbrlen.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-19 03:31:33 +02:00
Peng Haitao 6c2ec40d25 mbrlen.3: ATTRIBUTES: Note function that is thread safe with exceptions
The function mbrlen() is thread safe with exceptions.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-19 03:31:33 +02:00
Peng Haitao 7c51f0e341 getusershell.3: ATTRIBUTES: Note functions that are not thread-safe
The functions getusershell(), setusershell() and endusershell()
are not thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-19 03:31:02 +02:00
Peng Haitao 6a92c34cff ether_aton.3: ATTRIBUTES: Note functions that are not thread-safe
The functions ether_aton() and ether_ntoa() are not thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-19 03:31:02 +02:00
Michael Kerrisk 3f69da2862 getgrent.3, getlogin.3, getpwent.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-19 03:31:02 +02:00
Michael Kerrisk b6cab55bd6 a64l.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-19 03:31:02 +02:00