Commit Graph

9455 Commits

Author SHA1 Message Date
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
Michael Kerrisk 1ef5b28054 stat.2: Cosmetic reworking of timestamp discussion in NOTES
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-25 15:42:26 +13:00
Michael Kerrisk 96f92a7cb6 stat.2: Not filesystem support for nanosecond timestamps
Add some detail on which native filesystems do and don't
support nanosecond timestamps.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-25 15:39:02 +13:00
Michael Kerrisk e9e9e87ecf stat.2: Update discussion of nanosecond timestamps
The existing text describes the timestamp fields as 'time_t'
and delegates discussion of nanosecond timestamps under NOTES.
Nanosecond timestamps have been around for a while now,
and are in POSIX.1-2008, so reverse the orientation of the
discussion, putting the nanosecond fields into DESCRIPTION
and detailing the historical situation under NOTES.

Reported-by: Yang Yang <yangyang.gnu@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-25 15:39:02 +13:00
Michael Kerrisk 36e3fa2641 fexecve.3: Explain the use and rationale of fexecve()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-25 12:37:41 +13:00
Michael Kerrisk 0397bccf5c fexecve.3: POSIX.1-2008 specifies fexecve()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-25 11:57:07 +13:00
Michael Kerrisk d2fc9a713e getgroups.2: Document /proc/sys/kernel/ngroups_max
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-18 11:40:30 +13:00
Michael Kerrisk b146454a96 getgroups.2: Clarify that sysconf(_SC_NGROUPS_MAX) is a run-time technique
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-18 11:40:29 +13:00
Michael Kerrisk 1f9e80f0e9 getgroups.2: Note that NGROUPS_MAX is defined in <limits.h>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-18 11:35:21 +13:00
Michael Kerrisk 8fb0ddc0e1 proc.5: Document /proc/sys/kernel/ngroups_max
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-18 11:33:33 +13:00
Michael Kerrisk 779e42d021 setenv.3: Clarify that setenv() returns success in the overwrite==0 case
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-11 07:47:13 +13:00
Michael Kerrisk 5c0fa6d885 capabilities.7: Fix 2 version numbers under "Effect of user ID changes on capabilities"
Reported by Liu Jiaming <storypku@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-27 11:17:46 +02:00
Peng Haitao adb7cd334e des_crypt.3: ATTRIBUTES: Note functions that are thread-safe
The functions ecb_crypt(), cbc_crypt() and des_setparity() are
thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:17:11 +02:00
Peng Haitao 9f4658a7c9 creal.3: ATTRIBUTES: Note functions that are thread-safe
The functions creal(), crealf() and creall() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:16:39 +02:00
Peng Haitao 2d6c69dfdf cproj.3: wfix
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:15:56 +02:00
Peng Haitao 1e50524784 cproj.3: ATTRIBUTES: Note functions that are thread-safe
The functions cproj(), cprojf() and cprojl() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:15:33 +02:00
Peng Haitao 680c76f15f cbrt.3: ATTRIBUTES: Note functions that are thread-safe
The functions cbrt(), cbrtf() and cbrtl() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:15:05 +02:00
Peng Haitao 3e323f1255 dysize.3: ATTRIBUTES: Note function that is thread-safe
The function dysize() is thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:14:21 +02:00
Peng Haitao 94a133a483 euidaccess.3: ATTRIBUTES: Note functions that are thread-safe
The functions euidaccess() and eaccess() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:13:54 +02:00
Peng Haitao e0cf6f25d3 statvfs.3: ATTRIBUTES: Note functions that are thread-safe
The functions statvfs() and fstatvfs() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:12:34 +02:00
Peng Haitao 53d029b310 ftime.3: ATTRIBUTES: Note function that is thread-safe
The function ftime() is thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-26 15:11:51 +02:00