All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clearenv.3: ATTRIBUTES: Note function that is not thread-safe
@ 2015-06-18  5:36 Zeng Linggang
       [not found] ` <1434605811-18306-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Zeng Linggang @ 2015-06-18  5:36 UTC (permalink / raw
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

The marking matches glibc marking.
The marking of functions in glibc is:
- clearenv: MT-Unsafe const:env

Signed-off-by: Zeng Linggang <zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
---
 man3/clearenv.3 | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/man3/clearenv.3 b/man3/clearenv.3
index 7a3d57a..101fdef 100644
--- a/man3/clearenv.3
+++ b/man3/clearenv.3
@@ -56,6 +56,19 @@ value on failure.
 .\" Glibc info and the Watcom C library document "a nonzero value".
 .SH VERSIONS
 Available since glibc 2.0.
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lb
+l l l.
+Interface	Attribute	Value
+T{
+.BR clearenv ()
+T}	Thread safety	MT-Unsafe const:env
+.TE
+
 .SH CONFORMING TO
 Various UNIX variants (DG/UX, HP-UX, QNX, ...).
 POSIX.9 (bindings for FORTRAN77).
-- 
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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH] getgrent_r.3: ATTRIBUTES: Note functions that are/aren't thread-safe
       [not found] ` <1434605811-18306-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2015-06-18  5:36   ` Zeng Linggang
       [not found]     ` <1434605811-18306-2-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  2015-06-18  5:36   ` [PATCH] getpwent_r.3: " Zeng Linggang
                     ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Zeng Linggang @ 2015-06-18  5:36 UTC (permalink / raw
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
---
 man3/getgrent_r.3 | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/man3/getgrent_r.3 b/man3/getgrent_r.3
index 00927d6..847e69c 100644
--- a/man3/getgrent_r.3
+++ b/man3/getgrent_r.3
@@ -114,6 +114,34 @@ No more entries.
 .B ERANGE
 Insufficient buffer space supplied.
 Try again with larger buffer.
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lbw27
+l l l.
+Interface	Attribute	Value
+T{
+.BR getgrent_r ()
+T}	Thread safety	MT-Unsafe race:grent locale
+T{
+.BR fgetgrent_r ()
+T}	Thread safety	MT-Safe
+.TE
+
+In the above table,
+.I grent
+in
+.I race:grent
+signifies that if any of the functions
+.BR setgrent (),
+.BR getgrent (),
+.BR endgrent (),
+or
+.BR getgrent_r ()
+are used in parallel in different threads of a program,
+then data races could occur.
 .SH CONFORMING TO
 These functions are GNU extensions, done in a style resembling
 the POSIX version of functions like
-- 
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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH] getpwent_r.3: ATTRIBUTES: Note functions that are/aren't thread-safe
       [not found] ` <1434605811-18306-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  2015-06-18  5:36   ` [PATCH] getgrent_r.3: ATTRIBUTES: Note functions that are/aren't thread-safe Zeng Linggang
@ 2015-06-18  5:36   ` Zeng Linggang
       [not found]     ` <1434605811-18306-3-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  2015-06-18  5:36   ` [PATCH] gsignal.3: ATTRIBUTES: Note functions that are thread-safe Zeng Linggang
  2015-06-18  7:05   ` [PATCH] clearenv.3: ATTRIBUTES: Note function that is not thread-safe Michael Kerrisk (man-pages)
  3 siblings, 1 reply; 8+ messages in thread
From: Zeng Linggang @ 2015-06-18  5:36 UTC (permalink / raw
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
---
 man3/getpwent_r.3 | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/man3/getpwent_r.3 b/man3/getpwent_r.3
index e3c14de..4733987 100644
--- a/man3/getpwent_r.3
+++ b/man3/getpwent_r.3
@@ -115,6 +115,34 @@ No more entries.
 .B ERANGE
 Insufficient buffer space supplied.
 Try again with larger buffer.
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lbw27
+l l l.
+Interface	Attribute	Value
+T{
+.BR getpwent_r ()
+T}	Thread safety	MT-Unsafe race:pwent locale
+T{
+.BR fgetpwent_r ()
+T}	Thread safety	MT-Safe
+.TE
+
+In the above table,
+.I pwent
+in
+.I race:pwent
+signifies that if any of the functions
+.BR setpwent (),
+.BR getpwent (),
+.BR endpwent (),
+or
+.BR getpwent_r ()
+are used in parallel in different threads of a program,
+then data races could occur.
 .SH CONFORMING TO
 These functions are GNU extensions, done in a style resembling
 the POSIX version of functions like
-- 
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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH] gsignal.3: ATTRIBUTES: Note functions that are thread-safe
       [not found] ` <1434605811-18306-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  2015-06-18  5:36   ` [PATCH] getgrent_r.3: ATTRIBUTES: Note functions that are/aren't thread-safe Zeng Linggang
  2015-06-18  5:36   ` [PATCH] getpwent_r.3: " Zeng Linggang
@ 2015-06-18  5:36   ` Zeng Linggang
       [not found]     ` <1434605811-18306-4-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  2015-06-18  7:05   ` [PATCH] clearenv.3: ATTRIBUTES: Note function that is not thread-safe Michael Kerrisk (man-pages)
  3 siblings, 1 reply; 8+ messages in thread
From: Zeng Linggang @ 2015-06-18  5:36 UTC (permalink / raw
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
---
 man3/gsignal.3 | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/man3/gsignal.3 b/man3/gsignal.3
index ff2f582..71bb697 100644
--- a/man3/gsignal.3
+++ b/man3/gsignal.3
@@ -92,6 +92,22 @@ and returns the value returned by that function.
 The range of possible values
 .I signum
 varies (often 1-15 or 1-17).
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lb
+l l l.
+Interface	Attribute	Value
+T{
+.BR gsignal ()
+T}	Thread safety	MT-Safe
+T{
+.BR ssignal ()
+T}	Thread safety	MT-Safe sigintr
+.TE
+
 .SH CONFORMING TO
 These functions are available under AIX, DG/UX, HP-UX, SCO, Solaris, Tru64.
 They are called obsolete under most of these systems, and are
-- 
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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] clearenv.3: ATTRIBUTES: Note function that is not thread-safe
       [not found] ` <1434605811-18306-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
                     ` (2 preceding siblings ...)
  2015-06-18  5:36   ` [PATCH] gsignal.3: ATTRIBUTES: Note functions that are thread-safe Zeng Linggang
@ 2015-06-18  7:05   ` Michael Kerrisk (man-pages)
  3 siblings, 0 replies; 8+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-06-18  7:05 UTC (permalink / raw
  To: Zeng Linggang
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 06/18/2015 07:36 AM, Zeng Linggang wrote:
> The marking matches glibc marking.
> The marking of functions in glibc is:
> - clearenv: MT-Unsafe const:env

Thanks, Zeng Linggang. Applied.

Cheers,

Michael


> Signed-off-by: Zeng Linggang <zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
> ---
>  man3/clearenv.3 | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/man3/clearenv.3 b/man3/clearenv.3
> index 7a3d57a..101fdef 100644
> --- a/man3/clearenv.3
> +++ b/man3/clearenv.3
> @@ -56,6 +56,19 @@ value on failure.
>  .\" Glibc info and the Watcom C library document "a nonzero value".
>  .SH VERSIONS
>  Available since glibc 2.0.
> +.SH ATTRIBUTES
> +For an explanation of the terms used in this section, see
> +.BR attributes (7).
> +.TS
> +allbox;
> +lb lb lb
> +l l l.
> +Interface	Attribute	Value
> +T{
> +.BR clearenv ()
> +T}	Thread safety	MT-Unsafe const:env
> +.TE
> +
>  .SH CONFORMING TO
>  Various UNIX variants (DG/UX, HP-UX, QNX, ...).
>  POSIX.9 (bindings for FORTRAN77).
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] getgrent_r.3: ATTRIBUTES: Note functions that are/aren't thread-safe
       [not found]     ` <1434605811-18306-2-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2015-06-18  7:05       ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-06-18  7:05 UTC (permalink / raw
  To: Zeng Linggang
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 06/18/2015 07:36 AM, Zeng Linggang wrote:
> The markings match glibc markings.
> markings of functions in glibc are:
> - getgrent_r:  MT-Unsafe race:grent locale
> - fgetgrent_r: MT-Safe

Thanks, Zeng Linggang. Applied.

Cheers,

Michael


> Signed-off-by: Zeng Linggang <zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
> ---
>  man3/getgrent_r.3 | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)
> 
> diff --git a/man3/getgrent_r.3 b/man3/getgrent_r.3
> index 00927d6..847e69c 100644
> --- a/man3/getgrent_r.3
> +++ b/man3/getgrent_r.3
> @@ -114,6 +114,34 @@ No more entries.
>  .B ERANGE
>  Insufficient buffer space supplied.
>  Try again with larger buffer.
> +.SH ATTRIBUTES
> +For an explanation of the terms used in this section, see
> +.BR attributes (7).
> +.TS
> +allbox;
> +lb lb lbw27
> +l l l.
> +Interface	Attribute	Value
> +T{
> +.BR getgrent_r ()
> +T}	Thread safety	MT-Unsafe race:grent locale
> +T{
> +.BR fgetgrent_r ()
> +T}	Thread safety	MT-Safe
> +.TE
> +
> +In the above table,
> +.I grent
> +in
> +.I race:grent
> +signifies that if any of the functions
> +.BR setgrent (),
> +.BR getgrent (),
> +.BR endgrent (),
> +or
> +.BR getgrent_r ()
> +are used in parallel in different threads of a program,
> +then data races could occur.
>  .SH CONFORMING TO
>  These functions are GNU extensions, done in a style resembling
>  the POSIX version of functions like
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] getpwent_r.3: ATTRIBUTES: Note functions that are/aren't thread-safe
       [not found]     ` <1434605811-18306-3-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2015-06-18  7:05       ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-06-18  7:05 UTC (permalink / raw
  To: Zeng Linggang
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 06/18/2015 07:36 AM, Zeng Linggang wrote:
> The markings match glibc markings.
> markings of functions in glibc are:
> - getpwent_r:  MT-Unsafe race:pwent locale
> - fgetpwent_r: MT-Safe

Thanks, Zeng Linggang. Applied.

Cheers,

Michael

> Signed-off-by: Zeng Linggang <zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
> ---
>  man3/getpwent_r.3 | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)
> 
> diff --git a/man3/getpwent_r.3 b/man3/getpwent_r.3
> index e3c14de..4733987 100644
> --- a/man3/getpwent_r.3
> +++ b/man3/getpwent_r.3
> @@ -115,6 +115,34 @@ No more entries.
>  .B ERANGE
>  Insufficient buffer space supplied.
>  Try again with larger buffer.
> +.SH ATTRIBUTES
> +For an explanation of the terms used in this section, see
> +.BR attributes (7).
> +.TS
> +allbox;
> +lb lb lbw27
> +l l l.
> +Interface	Attribute	Value
> +T{
> +.BR getpwent_r ()
> +T}	Thread safety	MT-Unsafe race:pwent locale
> +T{
> +.BR fgetpwent_r ()
> +T}	Thread safety	MT-Safe
> +.TE
> +
> +In the above table,
> +.I pwent
> +in
> +.I race:pwent
> +signifies that if any of the functions
> +.BR setpwent (),
> +.BR getpwent (),
> +.BR endpwent (),
> +or
> +.BR getpwent_r ()
> +are used in parallel in different threads of a program,
> +then data races could occur.
>  .SH CONFORMING TO
>  These functions are GNU extensions, done in a style resembling
>  the POSIX version of functions like
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] gsignal.3: ATTRIBUTES: Note functions that are thread-safe
       [not found]     ` <1434605811-18306-4-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2015-06-18  7:05       ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-06-18  7:05 UTC (permalink / raw
  To: Zeng Linggang
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 06/18/2015 07:36 AM, Zeng Linggang wrote:
> The markings match glibc markings.
> markings of functions in glibc are:
> - gsignal: MT-Safe
> - ssignal: MT-Safe sigintr


Thanks, Zeng Linggang. Applied.

Cheers,

Michael


> Signed-off-by: Zeng Linggang <zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
> ---
>  man3/gsignal.3 | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/man3/gsignal.3 b/man3/gsignal.3
> index ff2f582..71bb697 100644
> --- a/man3/gsignal.3
> +++ b/man3/gsignal.3
> @@ -92,6 +92,22 @@ and returns the value returned by that function.
>  The range of possible values
>  .I signum
>  varies (often 1-15 or 1-17).
> +.SH ATTRIBUTES
> +For an explanation of the terms used in this section, see
> +.BR attributes (7).
> +.TS
> +allbox;
> +lb lb lb
> +l l l.
> +Interface	Attribute	Value
> +T{
> +.BR gsignal ()
> +T}	Thread safety	MT-Safe
> +T{
> +.BR ssignal ()
> +T}	Thread safety	MT-Safe sigintr
> +.TE
> +
>  .SH CONFORMING TO
>  These functions are available under AIX, DG/UX, HP-UX, SCO, Solaris, Tru64.
>  They are called obsolete under most of these systems, and are
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-06-18  7:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-18  5:36 [PATCH] clearenv.3: ATTRIBUTES: Note function that is not thread-safe Zeng Linggang
     [not found] ` <1434605811-18306-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-06-18  5:36   ` [PATCH] getgrent_r.3: ATTRIBUTES: Note functions that are/aren't thread-safe Zeng Linggang
     [not found]     ` <1434605811-18306-2-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-06-18  7:05       ` Michael Kerrisk (man-pages)
2015-06-18  5:36   ` [PATCH] getpwent_r.3: " Zeng Linggang
     [not found]     ` <1434605811-18306-3-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-06-18  7:05       ` Michael Kerrisk (man-pages)
2015-06-18  5:36   ` [PATCH] gsignal.3: ATTRIBUTES: Note functions that are thread-safe Zeng Linggang
     [not found]     ` <1434605811-18306-4-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-06-18  7:05       ` Michael Kerrisk (man-pages)
2015-06-18  7:05   ` [PATCH] clearenv.3: ATTRIBUTES: Note function that is not thread-safe Michael Kerrisk (man-pages)

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.