Commit Graph

13467 Commits

Author SHA1 Message Date
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 32b262a163 symlink.2: ERRORS: add linkpath=="" case for ENOENT
Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 09:58:24 +02:00
Michael Kerrisk bc5e71f562 symlink.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 09:58:24 +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
Michael Kerrisk d01c52164e getdents.2: Update timestamp
Really just a marker to record the reporters of bugs
that stemmed from the fact that the page did not
document getdents64(). I'll fix things up in the changelog.

See https://bugzilla.kernel.org/show_bug.cgi?id=14795

Reported-by: Dima Tisnek <dimaqq@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 09:58:24 +02:00
Michael Kerrisk 31f7afcddf getdents.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 07:42:45 +02:00
Michael Kerrisk 51fe959a97 getdents.2: Document getdents64()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 07:42:45 +02:00
Michael Kerrisk 063fd85422 getdents.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 07:42:45 +02:00
Michael Kerrisk 77cbbd07eb getdents.2: wfix (off-by-one kernel version)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-12 07:42:45 +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 9497142004 stat.2: Add some details on various "stat" versions
Three versions of "stat" appeared on 32-bit systems,
dealing with structures of different (increasing) sizes.
Explain some of the details, and also note that the
situation is simpler on modern 64-bit architectures.

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 a54afa1e7b llseek.2: llseek() exists on 32-bit platforms to support seeking to large offsets
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00
Michael Kerrisk 6cfd51e74c llseek.2: Advise reader to use lseek(2) instead
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-04-11 08:46:27 +02:00