From: Zeng Linggang <zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH] getnetent.3: ATTRIBUTES: Note functions that aren't thread-safe
Date: Wed, 8 Apr 2015 10:56:15 +0800 [thread overview]
Message-ID: <1428461788-7518-5-git-send-email-zenglg.jy@cn.fujitsu.com> (raw)
In-Reply-To: <1428461788-7518-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
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-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
---
man3/getnetent.3 | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/man3/getnetent.3 b/man3/getnetent.3
index f071744..c4f197e 100644
--- a/man3/getnetent.3
+++ b/man3/getnetent.3
@@ -142,6 +142,57 @@ error occurs or the end of the file is reached.
.TP
.I /etc/networks
networks database file
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lbw14 lb lbw25
+l l l.
+Interface Attribute Value
+T{
+.BR getnetent ()
+T} Thread safety T{
+MT-Unsafe race:netent
+.br
+race:netentbuf env locale
+T}
+T{
+.BR getnetbyname ()
+T} Thread safety T{
+MT-Unsafe race:netbyname
+.br
+env locale
+T}
+T{
+.BR getnetbyaddr ()
+T} Thread safety T{
+MT-Unsafe race:netbyaddr
+.br
+locale
+T}
+T{
+.BR setnetent (),
+.br
+.BR endnetent ()
+T} Thread safety T{
+MT-Unsafe race:netent env
+.br
+locale
+T}
+.TE
+
+In the above table,
+.I netent
+in
+.I race:netent
+signifies that if any of the functions
+.BR setnetent (3),
+.BR getnetent (3),
+or
+.BR endnetent (3)
+are used in parallel in different threads of a program,
+then data races could occur.
.SH CONFORMING TO
4.3BSD, POSIX.1-2001.
.SH NOTES
--
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-04-08 2:56 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-08 2:56 [PATCH ] ATTRIBUTES: new correct versions Zeng Linggang
[not found] ` <1428461788-7518-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-04-08 2:56 ` [PATCH] asprintf.3: ATTRIBUTES: Note functions that are thread-safe Zeng Linggang
2015-04-08 2:56 ` [PATCH] ctime.3: ATTRIBUTES: Note functions that aren't thread-safe Zeng Linggang
2015-04-08 2:56 ` [PATCH] gethostbyname.3: " Zeng Linggang
2015-04-08 2:56 ` Zeng Linggang [this message]
2015-04-08 2:56 ` [PATCH] get_nprocs_conf.3: ATTRIBUTES: Note functions that are thread-safe Zeng Linggang
2015-04-08 2:56 ` [PATCH] getutent.3: ATTRIBUTES: Note functions that aren't thread-safe Zeng Linggang
2015-04-08 2:56 ` [PATCH] mbsnrtowcs.3: ATTRIBUTES: Note function that isn't thread-safe Zeng Linggang
2015-04-08 2:56 ` [PATCH] mbsrtowcs.3: " Zeng Linggang
2015-04-08 2:56 ` [PATCH] perror.3: ATTRIBUTES: Note function that is thread-safe Zeng Linggang
2015-04-08 2:56 ` [PATCH] printf.3: ATTRIBUTES: Note functions that are thread-safe Zeng Linggang
2015-04-08 2:56 ` [PATCH] scandir.3: " Zeng Linggang
2015-04-08 2:56 ` [PATCH] scanf.3: " Zeng Linggang
2015-04-08 2:56 ` [PATCH] unlocked_stdio.3: ATTRIBUTES: Note functions that aren't thread-safe Zeng Linggang
2015-04-08 2:56 ` [PATCH] wcrtomb.3: ATTRIBUTES: Note function that isn't thread-safe Zeng Linggang
2015-04-08 2:56 ` [PATCH] wcsnrtombs.3: " Zeng Linggang
2015-04-08 2:56 ` [PATCH] wcsrtombs.3: " Zeng Linggang
2015-04-08 2:56 ` [PATCH] wprintf.3: ATTRIBUTES: Note functions that are thread-safe Zeng Linggang
2015-04-11 6:53 ` [PATCH ] ATTRIBUTES: new correct versions Michael Kerrisk (man-pages)
[not found] ` <5528C4DC.6000006-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-04-13 1:32 ` Zeng Linggang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1428461788-7518-5-git-send-email-zenglg.jy@cn.fujitsu.com \
--to=zenglg.jy-bthxqxjhjhxqfuhtdcdx3a@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.