Commit Graph

9425 Commits

Author SHA1 Message Date
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
Michael Kerrisk e9bd9b2ca9 perf_event_open.2: tstamp + white space fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:46 +13:00
Vince Weaver 135cba8b70 perf_event_open.2: Linux 3.12 rdpmc/mmap
It turns out that the perf_event mmap page rdpmc/time setting was
broken, dating back to the introduction of the feature.  Due
to a mistake with a bitfield, two different values mapped to
the same feature bit.

A new somewhat backwards compatible interface was introduced
in Linux 3.12.  A much longer report on the issue can be found
here:
   https://lwn.net/Articles/567894/

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:46 +13:00
Vince Weaver a0dcc8dd16 perf_event_open.2: Linux 3.12 adds PERF_EVENT_IOC_ID
A new perf_event related ioctl, PERF_EVENT_IOC_ID, was added
in Linux 3.12.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:46 +13:00
Vince Weaver 7480dabbeb perf_event_open.2: Linux 3.12 adds PERF_SAMPLE_IDENTIFIER
A new PERF_SAMPLE_IDENTIFIER sample type was added in Linux 3.12.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:46 +13:00
Vince Weaver dab3845542 perf_event_open.2: PERF_COUNT_SW_DUMMY support
Support for the PERF_COUNT_SW_DUMMY event type was added in
Linux 3.12.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:46 +13:00
Michael Kerrisk 4d4cecd6fa fallocate.2: tfix + tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:46 +13:00
Christoph Hellwig c166fac5cb fallocate.2: Clarify the zeroing behavior
fallocate() zeroes only space that did not previously contain
data, but leaves existing data untouched.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:39 +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
Michael Kerrisk 4eec160988 send.2: RETURN VALUE: these calls return number of bytes (not characters) sent
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-04 18:58:07 +13:00
Michael Kerrisk 52598da4b9 tcp.7: Fix (nontrivial) wordo in discussion of MSG_TRUNC
s/MSG_PEEK/MSG_TRUNC/

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-04 17:42:18 +13:00
Michael Kerrisk 4256bf84e5 recv.2: Remove out-of-date statement that UNIX domain does not support MSG_TRUNC
Should have removed that sentence as part of
commit a25601b48b

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-04 17:14:07 +13:00
Michael Kerrisk bcd49f31a8 symlink.2: Further fine tuning of argument names
Follow-up to f2ae6dde0c
See https://sourceware.org/bugzilla/show_bug.cgi?id=16073

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-30 14:53:01 +13:00
David Prévot d6af98f849 perf_event_open.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-30 14:46:19 +13:00
Vince Weaver e6cf569408 perf_event_open.2: PERF_EVENT_IOC_PERIOD update
The PERF_EVENT_IOC_PERIOD ioctl was broken until 2.6.36,
and it turns out that the ARM architecture has some
differing behavior too.

Reported-by: Andreas Sandberg <andreas.sandberg@it.uu.se>
Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-30 14:45:11 +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
Michael Kerrisk 297c144f01 setreuid.2: Small clarification to description of when saved set-user-ID is set
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-29 00:25:41 +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
Vince Weaver 82b09254af perf_event_open.2: E2BIG documentation
The following documents the E2BIG error return for
perf_event_open().

I actually ran into this error the hard way and it took me
half a day to figure out why my ->size value was changing.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:21:38 +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
Maxin B. John fa9efa8632 flock.2: tfix
Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:04:52 +13:00
Michael Kerrisk 3468b312bc readlink.2: Fix typo in eror message in example program
Reported-by: Yuanhang Zheng <zhengyhn@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:00:05 +13:00
Michael Kerrisk f2ae6dde0c symlink.2: Give arguments of symlink() more meaningful names
Reported-by:  Fabrice Bauzac <libnoon@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 10:53:02 +13:00
Rodrigo Campos a605264d16 futex.2: Fix link to Rusty's futex example library
When I asked to webmaster@kernel.org, Konstantin Ryabitsev
answered that the ".nl." is "an obsolete scheme and really
should be changed to just ftp.kernel.org".

Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 10:41:37 +13:00
Michael Kerrisk a2954fe6ed execve.2: 'arg...' for interpreter scripts starts with argv[1]
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 06:45:46 +13:00