Commit Graph

4775 Commits

Author SHA1 Message Date
Zeng Linggang af64225343 gsignal.3: ATTRIBUTES: Note functions that are thread-safe
The markings match glibc markings.
markings of functions in glibc are:
- gsignal: MT-Safe
- ssignal: MT-Safe sigintr

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-18 09:04:30 +02:00
Zeng Linggang 98a731cd5f getpwent_r.3: ATTRIBUTES: Note functions that are/aren't thread-safe
The markings match glibc markings.
markings of functions in glibc are:
- getpwent_r:  MT-Unsafe race:pwent locale
- fgetpwent_r: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-18 09:04:25 +02:00
Zeng Linggang f8c46262e6 getgrent_r.3: ATTRIBUTES: Note functions that are/aren't thread-safe
The markings match glibc markings.
markings of functions in glibc are:
- getgrent_r:  MT-Unsafe race:grent locale
- fgetgrent_r: MT-Safe

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-18 09:04:21 +02:00
Zeng Linggang cc0d547f4d clearenv.3: ATTRIBUTES: Note function that is not thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- clearenv: MT-Unsafe const:env

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-18 09:04:14 +02:00
Zeng Linggang 0326cdf21e fexecve.3: ATTRIBUTES: Note function that is thread-safe
After research, We think fexecve() is thread-safe. But, there
is not marking of fexecve() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-16 08:48:41 +02:00
Michael Kerrisk 8f7977002a resolver.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:46:36 +02:00
Michael Kerrisk 78b0e70aa8 rcmd.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:45:08 +02:00
Michael Kerrisk ea48f0aaa0 getrpcent.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:44:09 +02:00
Michael Kerrisk b1c3107a47 getprotoent_r.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:42:44 +02:00
Zeng Linggang 764ae61ffd setaliasent.3: ATTRIBUTES: Note functions that are/aren't thread-safe
After research, We think
* setaliasent(),
* endaliasent(),
* getaliasent_r(),
* getaliasbyname_r(),
are thread-safe. And
* getaliasent(),
* getaliasbyname(),
are not thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:41:18 +02:00
Zeng Linggang 402219318b resolver.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think
* res_ninit(),
* res_nquery(),
* res_nsearch(),
* res_nquerydomain(),
* res_nmkquery(),
* res_nsend(),
* dn_comp(),
* dn_expand()
are thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:41:05 +02:00
Zeng Linggang e196c9004e rcmd.3: ATTRIBUTES: Note functions that are/aren't thread-safe
After research, We think
* rresvport(),
* iruserok(),
* ruserok(),
* rresvport_af(),
* iruserok_af(),
* ruserok_af(),
are thread-safe. And
* rcmd(),
* rcmd_af(),
are not thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:40:52 +02:00
Zeng Linggang 44518c2d1d profil.3: ATTRIBUTES: Note function that is not thread-safe
After research, We think profil() is not thread-safe. But,
there is not marking of profil() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:40:46 +02:00
Zeng Linggang 67e569aa71 getservent_r.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think
* getservent_r(),
* getservbyname_r(),
* getservbyport_r(),
are thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:40:03 +02:00
Zeng Linggang 0a167f3161 getrpcent_r.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think
* getrpcent_r(),
* getrpcbyname_r(),
* getrpcbynumber_r(),
are thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:39:49 +02:00
Zeng Linggang b4f1e052aa getrpcent.3: ATTRIBUTES: Note functions that are/aren't thread-safe
After research, We think
* setrpcent(),
* endrpcent(),
are thread-safe. And
* getrpcent(),
* getrpcbyname(),
* getrpcbynumber(),
are not thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:39:24 +02:00
Zeng Linggang 252c5d6b48 getprotoent_r.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think
* getprotoent_r(),
* getprotobyname_r(),
* getprotobynumber_r(),
are thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:39:08 +02:00
Zeng Linggang 9038b7f6eb getaddrinfo_a.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think
* getaddrinfo_a(),
* gai_suspend(),
* gai_error(),
* gai_cancel(),
are thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:38:57 +02:00
Zeng Linggang 2e3b24fc5c fts.3: ATTRIBUTES: Note functions that are/aren't thread-safe
After research, We think
* fts_open(),
* fts_set(),
* fts_close(),
are thread-safe. And
* fts_read(),
* fts_children(),
are not thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:38:41 +02:00
Zeng Linggang 011b525117 sem_close.3: ATTRIBUTES: Note function that is thread-safe
After research, We think sem_close() is thread-safe. But, there
is not marking of sem_close() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:27:55 +02:00
Zeng Linggang c17fc186c2 rpmatch.3: ATTRIBUTES: Note function that is thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- rpmatch: MT-Safe locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:27:49 +02:00
Zeng Linggang 0cc0b5e4eb malloc_trim.3: ATTRIBUTES: Note function that is thread-safe
After research, We think malloc_trim() is thread-safe. But, there
is not marking of malloc_trim() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:27:18 +02:00
Zeng Linggang 99f8b6661b malloc_get_state.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think malloc_get_state() and malloc_set_state() are
thread-safe. But, there are not markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:27:05 +02:00
Zeng Linggang 9927122be4 getservent.3: ATTRIBUTES: Note functions that aren't thread-safe
The marking matches glibc marking.
markings of functions in glibc are:
- getservent:    MT-Unsafe race:servent race:serventbuf locale

- getservbyname: MT-Unsafe race:servbyname locale

- getservbyport: MT-Unsafe race:servbyport locale

- setservent:    MT-Unsafe race:servent locale
- endservent:    MT-Unsafe race:servent locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:26:45 +02:00
Zeng Linggang bd1725063f getrpcport.3: ATTRIBUTES: Note function that is thread-safe
After research, We think getrpcport() is thread-safe. But, there
is not marking of getrpcport() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:26:25 +02:00
Zeng Linggang 18813d7b52 getprotoent.3: ATTRIBUTES: Note functions that aren't thread-safe
The marking matches glibc marking.
markings of functions in glibc are:
- getprotoent:      MT-Unsafe race:protoent race:protoentbuf locale

- getprotobyname:   MT-Unsafe race:protobyname locale

- getprotobynumber: MT-Unsafe race:protobynumber locale

- setprotoent:      MT-Unsafe race:protoent locale
- endprotoent:      MT-Unsafe race:protoent locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:26:17 +02:00
Zeng Linggang a9e30c8c12 getnameinfo.3: ATTRIBUTES: Note function that is thread-safe
After research, We think getnameinfo() is thread-safe. But, there
is not marking of getnameinfo() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:25:54 +02:00
Zeng Linggang bb89d1ef8f getaddrinfo.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think getaddrinfo(), freeaddrinfo() and
gai_strerror() are thread-safe. But, there are not markings
of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:25:28 +02:00
Zeng Linggang 1ee2274c39 dl_iterate_phdr.3: ATTRIBUTES: Note function that is thread-safe
After research, We think dl_iterate_phdr() is thread-safe. But, there
is not marking of dl_iterate_phdr() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:25:10 +02:00
Michael Kerrisk 332d685555 xcrypt.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:18:06 +02:00
Michael Kerrisk e2d7e8a112 key_setsecret.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:16:16 +02:00
Zeng Linggang 8d2cf26d8b xcrypt.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think passwd2des(), xencrypt() and xdecrypt() are
thread-safe. But, there are not markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:47 +02:00
Zeng Linggang 45932f13d9 putgrent.3: ATTRIBUTES: Note function that is thread-safe
After research, We think putgrent() is thread-safe. But, there
is not marking of putgrent() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:47 +02:00
Zeng Linggang 672a9903d3 pthread_tryjoin_np.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think pthread_tryjoin_np() and
pthread_timedjoin_np() are thread-safe. But, there
are not markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:47 +02:00
Zeng Linggang 5effafa2f6 pthread_getattr_np.3: ATTRIBUTES: Note function that is thread-safe
After research, We think pthread_getattr_np() is thread-safe. But,
there is not marking of pthread_getattr_np() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:47 +02:00
Zeng Linggang 598445e0a5 pthread_cleanup_push.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think pthread_cleanup_push() and
pthread_cleanup_pop() are thread-safe. But, there
are not markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:43 +02:00
Zeng Linggang 5b911d96f8 pthread_attr_setaffinity_np.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think pthread_attr_setaffinity_np() and
pthread_attr_getaffinity_np() are thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:12:27 +02:00
Zeng Linggang f8f22117d0 key_setsecret.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think key_decryptsession(), key_setsecret(),
key_encryptsession(), key_gendes() and key_secretkey_is_set() are
thread-safe. But, there are not markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:10:03 +02:00
Zeng Linggang 91a7c37560 getpw.3: ATTRIBUTES: Note function that is thread-safe
After research, We think getpw() is thread-safe. But, there
is not marking of getpw() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:09:46 +02:00
Zeng Linggang 8eb0dd50e5 getnetent_r.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think getnetent_r(), getnetbyname_r() and
getnetbyaddr_r() are thread-safe. But, there are not markings
of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:09:02 +02:00
Andries E. Brouwer 981fffea98 fread.3: Clarify terminology
In the "RETURN VALUE" section the word item is in italics
as if it were one of the function parameters. But the word
"item" occurs here for the first time, earlier the text
uses "element". [Patch improves this.]

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 20:56:13 +02:00
Marko Myllynen be1e94afe1 strfmon.3: Rewrite the example
I think the example is more accurate when we use the exact
locale names and also the Euro sign where appropriate.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:45:56 +02:00
Marko Myllynen 88b801ec78 strfmon.3: Document strfmon_l(3)
Describe strfmon_l(3).

http://pubs.opengroup.org/onlinepubs/9699919799/functions/strfmon.html

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:45:53 +02:00
Marko Myllynen af1eec3c8a strfmon.3: Fix CONFORMING TO
AFAICS strfmon(3) is now defined in POSIX and the glibc
implementation is as specified there.

http://pubs.opengroup.org/onlinepubs/9699919799/functions/strfmon.html

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:45:53 +02:00
Marko Myllynen 5f756e5ba5 setlocale.3: Update CONFORMING TO
http://pubs.opengroup.org/onlinepubs/9699919799/functions/setlocale.html

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:27:09 +02:00
Marko Myllynen 9ce8a1e00e setlocale.3: Tweak C/POSIX locale portability description
As discussed earlier, the current description might be a little
bit too stringent, let's avoid the issue by describing the
portability aspect on a slightly higher level.

References:

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap06.html
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html
http://pubs.opengroup.org/onlinepubs/9699919799/functions/setlocale.html

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:24:46 +02:00
Michael Kerrisk 70a9fec73b __ppc_get_timebase.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-27 10:32:12 +02:00
Michael Kerrisk 56aa9a9535 __ppc_get_timebase.3: Minor tweaks to example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-27 10:31:58 +02:00
Tulio Magno Quites Machado Filho 1e6e376298 __ppc_get_timebase_freq.3: Document the Power-specific __ppc_get_timebase_freq(3)
Glibc 2.17 adds a function to read the frequency at which the Time
Base Register of Power processors is updated.

Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-27 10:23:15 +02:00
Zeng Linggang 412793f9ff pthread_setname_np.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think pthread_setname_np() and pthread_getname_np()
are thread-safe. But, there are not markings of pthread_setname_np()
and pthread_getname_np() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-05-20 16:13:27 +02:00