linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fgetpwent.3: ATTRIBUTES: Note function that is not thread-safe
@ 2015-02-11  7:41 Ma Shimiao
       [not found] ` <1423640516-25520-1-git-send-email-mashimiao.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Ma Shimiao @ 2015-02-11  7:41 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Ma Shimiao

The marking matches glibc marking.

Signed-off-by: Ma Shimiao <mashimiao.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
---
 man3/fgetpwent.3 | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/man3/fgetpwent.3 b/man3/fgetpwent.3
index 3076494..3c4a57a 100644
--- a/man3/fgetpwent.3
+++ b/man3/fgetpwent.3
@@ -98,6 +98,18 @@ structure.
 .TP
 .I /etc/passwd
 password database file
+.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 fgetpwent ()
+T}	Thread safety	MT-Unsafe race:fpwent
+.TE
 .SH CONFORMING TO
 SVr4.
 .SH SEE ALSO
-- 
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] 20+ messages in thread

* Re: [PATCH] fgetpwent.3: ATTRIBUTES: Note function that is not thread-safe
       [not found] ` <1423640516-25520-1-git-send-email-mashimiao.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2015-04-18 18:26   ` Michael Kerrisk (man-pages)
       [not found]     ` <5532A1DB.3030009-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-04-18 18:26 UTC (permalink / raw)
  To: Ma Shimiao
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 02/11/2015 08:41 AM, Ma Shimiao wrote:
> The marking matches glibc marking.

Hello Ma Shimiao,

This is just a reminder for us both that this patch is awaiting
resolution of some questions with Alexandre.

Cheers,

Michael

> Signed-off-by: Ma Shimiao <mashimiao.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
> ---
>  man3/fgetpwent.3 | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/man3/fgetpwent.3 b/man3/fgetpwent.3
> index 3076494..3c4a57a 100644
> --- a/man3/fgetpwent.3
> +++ b/man3/fgetpwent.3
> @@ -98,6 +98,18 @@ structure.
>  .TP
>  .I /etc/passwd
>  password database file
> +.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 fgetpwent ()
> +T}	Thread safety	MT-Unsafe race:fpwent
> +.TE
>  .SH CONFORMING TO
>  SVr4.
>  .SH SEE ALSO
> 


-- 
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] 20+ messages in thread

* Re: [PATCH] fgetpwent.3: ATTRIBUTES: Note function that is not thread-safe
       [not found]     ` <5532A1DB.3030009-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2015-06-18  7:02       ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 20+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-06-18  7:02 UTC (permalink / raw)
  To: Ma Shimiao, Zeng Linggang
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA, Alexandre Oliva

Hello Zeng Linggang,

This patch from a while ago was sent by Ma Shimiao. Since you've now
taken up the work of Ma Shimiao, I bring you into this discussion.
The patch stalled because of some terminology questions that Ma Shimiao
wanted to resolve with Alexandre (in CC), but I'm not sure if there
was any progress. (I'll thread you into that discussion as well, which
took place off list.) Maybe you can discuss with Ma Shimiao and pursue 
with Alexandre?

Cheers,

Michael


On 04/18/2015 08:26 PM, Michael Kerrisk (man-pages) wrote:
> On 02/11/2015 08:41 AM, Ma Shimiao wrote:
>> The marking matches glibc marking.
> 
> Hello Ma Shimiao,
> 
> This is just a reminder for us both that this patch is awaiting
> resolution of some questions with Alexandre.
> 
> Cheers,
> 
> Michael
> 
>> Signed-off-by: Ma Shimiao <mashimiao.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
>> ---
>>  man3/fgetpwent.3 | 12 ++++++++++++
>>  1 file changed, 12 insertions(+)
>>
>> diff --git a/man3/fgetpwent.3 b/man3/fgetpwent.3
>> index 3076494..3c4a57a 100644
>> --- a/man3/fgetpwent.3
>> +++ b/man3/fgetpwent.3
>> @@ -98,6 +98,18 @@ structure.
>>  .TP
>>  .I /etc/passwd
>>  password database file
>> +.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 fgetpwent ()
>> +T}	Thread safety	MT-Unsafe race:fpwent
>> +.TE
>>  .SH CONFORMING TO
>>  SVr4.
>>  .SH SEE ALSO
>>
> 
> 


-- 
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] 20+ messages in thread

* patchset for fgetgrent fgetpwent getspnam mallinfo sigpause and termios
@ 2015-08-24 10:19 Zeng Linggang
       [not found] ` <1440411596-2566-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Zeng Linggang @ 2015-08-24 10:19 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello,

This patchset is for fgetgrent.3, fgetpwent.3, sigpause.3, termios.3,
getspnam.3 and mallinfo.3

1. fgetgrent.3 and fgetpwent.3:
   We have some discussions about these two functions, the Subject:
   "Re: question about markings of fgetgrent and fgetpwent"
   However, something about the copyright impeded the progress.
   I am sorry for that, if you are OK, please see these two patches below,
   I have added some "FIXME:" descriptions in them.

2. getspnam.3
   getspnam.3 is a little like fgetgrent.3 and fgetpwent.3, but there are not
   markings in glibc document. I use the function names for the identifiers like
   fgetgrent.3 and fgetpwent.3.

3. mallinfo.3
   Hope the descriptions about "const:mallopt" could explain clearly enough in
   the patch.

4. sigpause.3 and termios.3
   These two functions are safety in Linux kernel, the markings in glibc manual
   are more detailed. I also have added some "FIXME:" descriptions in them.


Thanks and best regards,
Zeng
--
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] 20+ messages in thread

* [PATCH] fgetgrent.3: ATTRIBUTES: Note function that is not thread-safe
       [not found] ` <1440411596-2566-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2015-08-24 10:19   ` Zeng Linggang
       [not found]     ` <1440411596-2566-2-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  2015-08-24 10:19   ` [PATCH] fgetpwent.3: " Zeng Linggang
                     ` (5 subsequent siblings)
  6 siblings, 1 reply; 20+ messages in thread
From: Zeng Linggang @ 2015-08-24 10:19 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

The marking matches glibc marking.
marking of function in glibc is:
- fgetgrent: MT-Unsafe race:fgrent

ps: We think race:fgrent in glibc maybe hard for users to understand,
and have sent a patch to the GNU libc community for changing it to
race:fgetgrent, however, something about the copyright impeded the progress.
Here we mark it "race:fgetgrent", so there is a little different.

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

diff --git a/man3/fgetgrent.3 b/man3/fgetgrent.3
index 57665dd..aa08e0f 100644
--- a/man3/fgetgrent.3
+++ b/man3/fgetgrent.3
@@ -90,6 +90,25 @@ is set to indicate the cause.
 Insufficient memory to allocate
 .I group
 structure.
+.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 fgetgrent ()
+.\" FIXME: the following marking is different from which in glibc manual,
+.\" marking in glibc manual is,
+.\" fgetgrent: MT-Unsafe race:fgrent
+.\" We think race:fgrent in glibc maybe hard for users to understand,
+.\" and have sent a patch to the GNU libc community for changing it to
+.\" race:fgetgrent, however, something about the copyright impeded the progress.
+T}	Thread safety	MT-Unsafe race:fgetgrent
+.TE
+
 .SH CONFORMING TO
 SVr4.
 .SH SEE ALSO
-- 
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] 20+ messages in thread

* [PATCH] fgetpwent.3: ATTRIBUTES: Note function that is not thread-safe
       [not found] ` <1440411596-2566-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  2015-08-24 10:19   ` [PATCH] fgetgrent.3: ATTRIBUTES: Note function that is not thread-safe Zeng Linggang
@ 2015-08-24 10:19   ` Zeng Linggang
       [not found]     ` <1440411596-2566-3-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  2015-08-24 10:19   ` [PATCH] getspnam.3: ATTRIBUTES: Note functions that are/aren't thread-safe Zeng Linggang
                     ` (4 subsequent siblings)
  6 siblings, 1 reply; 20+ messages in thread
From: Zeng Linggang @ 2015-08-24 10:19 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

The marking matches glibc marking.
marking of function in glibc is:
- fgetgrent: MT-Unsafe race:fpwent

ps: We think race:fpwent in glibc maybe hard for users to understand,
and have sent a patch to the GNU libc community for changing it to
race:fgetpwent, however, something about the copyright impeded the progress.
Here we mark it "race:fgetpwent", so there is a little different.

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

diff --git a/man3/fgetpwent.3 b/man3/fgetpwent.3
index 3076494..84e0379 100644
--- a/man3/fgetpwent.3
+++ b/man3/fgetpwent.3
@@ -98,6 +98,22 @@ structure.
 .TP
 .I /etc/passwd
 password database file
+.TS
+allbox;
+lb lb lb
+l l l.
+Interface	Attribute	Value
+T{
+.BR fgetpwent ()
+.\" FIXME: the following marking is different from which in glibc manual,
+.\" marking in glibc manual is,
+.\" fgetpwent: MT-Unsafe race:fpwent
+.\" We think race:fpwent in glibc maybe hard for users to understand,
+.\" and have sent a patch to the GNU libc community for changing it to
+.\" race:fgetpwent, however, something about the copyright impeded the progress.
+T}	Thread safety	MT-Unsafe race:fgetpwent
+.TE
+
 .SH CONFORMING TO
 SVr4.
 .SH SEE ALSO
-- 
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] 20+ messages in thread

* [PATCH] getspnam.3: ATTRIBUTES: Note functions that are/aren't thread-safe
       [not found] ` <1440411596-2566-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  2015-08-24 10:19   ` [PATCH] fgetgrent.3: ATTRIBUTES: Note function that is not thread-safe Zeng Linggang
  2015-08-24 10:19   ` [PATCH] fgetpwent.3: " Zeng Linggang
@ 2015-08-24 10:19   ` Zeng Linggang
       [not found]     ` <1440411596-2566-4-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  2015-08-24 10:19   ` [PATCH] mallinfo.3: ATTRIBUTES: Note function that is not thread-safe Zeng Linggang
                     ` (3 subsequent siblings)
  6 siblings, 1 reply; 20+ messages in thread
From: Zeng Linggang @ 2015-08-24 10:19 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

After research, We think
* getspnam(),
* getspent(),
* setspent(),
* endspent(),
* getspent_r(),
* fgetspent(),
* sgetspent(),
are not thread-safe. And
* putspent(),
* getspnam_r(),
* sgetspent_r(),
* lckpwdf(),
* ulckpwdf(),
* fgetspent_r(),
are thread-safe. But, there are not
markings of them in glibc document.

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

diff --git a/man3/getspnam.3 b/man3/getspnam.3
index 43ee61c..9efd643 100644
--- a/man3/getspnam.3
+++ b/man3/getspnam.3
@@ -246,6 +246,66 @@ The include file
 defines the constant
 .B _PATH_SHADOW
 to the pathname of the shadow password file.
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lbw25 lb lbw30
+l l l.
+Interface	Attribute	Value
+T{
+.BR getspnam ()
+T}	Thread safety	T{
+MT-Unsafe race:getspnam locale
+T}
+T{
+.BR getspent ()
+T}	Thread safety	T{
+MT-Unsafe race:getspent
+.br
+race:spentbuf locale
+T}
+T{
+.BR setspent (),
+.BR endspent (),
+.br
+.BR getspent_r ()
+T}	Thread safety	T{
+MT-Unsafe race:getspent locale
+T}
+T{
+.BR fgetspent ()
+T}	Thread safety	MT-Unsafe race:fgetspent
+T{
+.BR sgetspent ()
+T}	Thread safety	MT-Unsafe race:sgetspent
+T{
+.BR putspent (),
+.BR getspnam_r (),
+.br
+.BR sgetspent_r ()
+T}	Thread safety	MT-Safe locale
+T{
+.BR lckpwdf (),
+.BR ulckpwdf (),
+.br
+.BR fgetspent_r ()
+T}	Thread safety	MT-Safe
+.TE
+
+In the above table,
+.I getspent
+in
+.I race:getspent
+signifies that if any of the functions
+.BR setspent (3),
+.BR getspent (3),
+.BR getspent_r (3),
+or
+.BR endspent (3)
+are used in parallel in different threads of a program,
+then data races could occur.
 .SH CONFORMING TO
 The shadow password database and its associated API are
 not specified in POSIX.1.
-- 
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] 20+ messages in thread

* [PATCH] mallinfo.3: ATTRIBUTES: Note function that is not thread-safe
       [not found] ` <1440411596-2566-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
                     ` (2 preceding siblings ...)
  2015-08-24 10:19   ` [PATCH] getspnam.3: ATTRIBUTES: Note functions that are/aren't thread-safe Zeng Linggang
@ 2015-08-24 10:19   ` Zeng Linggang
       [not found]     ` <1440411596-2566-5-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  2015-08-24 10:19   ` [PATCH] sigpause.3: srcfix: add FIXME Zeng Linggang
                     ` (2 subsequent siblings)
  6 siblings, 1 reply; 20+ messages in thread
From: Zeng Linggang @ 2015-08-24 10:19 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

The marking matches glibc marking.
The marking of functions in glibc is:
- mallinfo: MT-Unsafe init const:mallopt

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

diff --git a/man3/mallinfo.3 b/man3/mallinfo.3
index 7797169..e6661d1 100644
--- a/man3/mallinfo.3
+++ b/man3/mallinfo.3
@@ -107,6 +107,31 @@ This is the maximum number of bytes that could ideally
 .BR malloc_trim (3).
 .\" .SH VERSIONS
 .\" Available already in glibc 2.0, possibly earlier
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lbw28
+l l l.
+Interface	Attribute	Value
+T{
+.BR mallinfo ()
+T}	Thread safety	MT-Unsafe init const:mallopt
+.TE
+
+.BR mallinfo ()
+would access some global iternal objects. If modify them with non-atomically,
+may get inconsistent results.
+The identifier
+.I mallopt
+in
+.I const:mallopt
+mean that
+.BR mallopt ()
+would modify the global iternal objects with atomics, that make sure
+.BR mallinfo ()
+is safe enough, others modify with non-atomically maybe not.
 .SH CONFORMING TO
 This function is not specified by POSIX or the C standards.
 A similar function exists on many System V derivatives,
-- 
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] 20+ messages in thread

* [PATCH] sigpause.3: srcfix: add FIXME
       [not found] ` <1440411596-2566-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
                     ` (3 preceding siblings ...)
  2015-08-24 10:19   ` [PATCH] mallinfo.3: ATTRIBUTES: Note function that is not thread-safe Zeng Linggang
@ 2015-08-24 10:19   ` Zeng Linggang
       [not found]     ` <1440411596-2566-6-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  2015-08-24 10:19   ` [PATCH] termios.3: " Zeng Linggang
  2015-09-01  8:00   ` patchset for fgetgrent fgetpwent getspnam mallinfo sigpause and termios Zeng Linggang
  6 siblings, 1 reply; 20+ messages in thread
From: Zeng Linggang @ 2015-08-24 10:19 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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

diff --git a/man3/sigpause.3 b/man3/sigpause.3
index 847bd10..dbc10de 100644
--- a/man3/sigpause.3
+++ b/man3/sigpause.3
@@ -63,6 +63,12 @@ l l l.
 Interface	Attribute	Value
 T{
 .BR sigpause ()
+.\" FIXME: the following marking is different from which in glibc manual,
+.\" marking in glibc manual is more detailed.
+.\" sigpause: MT-Unsafe race:sigprocmask/!bsd!linux
+.\" glibc manual says /!linux!bsd indicate the preceding marker only applies
+./" when the underlying kernel is neither Linux nor a BSD kernel.
+.\" So, it is safety in Linux kernel.
 T}	Thread safety	MT-Safe
 .TE
 .SH CONFORMING TO
-- 
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] 20+ messages in thread

* [PATCH] termios.3: srcfix: add FIXME
       [not found] ` <1440411596-2566-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
                     ` (4 preceding siblings ...)
  2015-08-24 10:19   ` [PATCH] sigpause.3: srcfix: add FIXME Zeng Linggang
@ 2015-08-24 10:19   ` Zeng Linggang
       [not found]     ` <1440411596-2566-7-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  2015-09-01  8:00   ` patchset for fgetgrent fgetpwent getspnam mallinfo sigpause and termios Zeng Linggang
  6 siblings, 1 reply; 20+ messages in thread
From: Zeng Linggang @ 2015-08-24 10:19 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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

diff --git a/man3/termios.3 b/man3/termios.3
index 02aee64..1ea5236 100644
--- a/man3/termios.3
+++ b/man3/termios.3
@@ -994,6 +994,13 @@ T{
 .BR cfsetispeed (),
 .BR cfsetospeed (),
 .BR cfsetspeed ()
+.\" FIXME: the following markings are different from which in glibc manual,
+.\" markings in glibc manual are more detailed.
+.\" tcsendbreak: MT-Unsafe race:tcattr(filedes)/bsd
+.\" tcflow: MT-Unsafe race:tcattr(filedes)/bsd
+.\" glibc manual says /bsd indicate the preceding marker only applies
+./" when the underlying kernel is a BSD kernel.
+.\" So, it is safety in Linux kernel.
 T}	Thread safety	MT-Safe
 .TE
 .ad
-- 
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] 20+ messages in thread

* Re: patchset for fgetgrent fgetpwent getspnam mallinfo sigpause and termios
       [not found] ` <1440411596-2566-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
                     ` (5 preceding siblings ...)
  2015-08-24 10:19   ` [PATCH] termios.3: " Zeng Linggang
@ 2015-09-01  8:00   ` Zeng Linggang
  2015-09-09  5:31     ` Zeng Linggang
  6 siblings, 1 reply; 20+ messages in thread
From: Zeng Linggang @ 2015-09-01  8:00 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello,

Ping! :)

Thanks and best regards,
Zeng

On Mon, 2015-08-24 at 18:19 +0800, Zeng Linggang wrote:
> Hello,
> 
> This patchset is for fgetgrent.3, fgetpwent.3, sigpause.3, termios.3,
> getspnam.3 and mallinfo.3
> 
> 1. fgetgrent.3 and fgetpwent.3:
>    We have some discussions about these two functions, the Subject:
>    "Re: question about markings of fgetgrent and fgetpwent"
>    However, something about the copyright impeded the progress.
>    I am sorry for that, if you are OK, please see these two patches below,
>    I have added some "FIXME:" descriptions in them.
> 
> 2. getspnam.3
>    getspnam.3 is a little like fgetgrent.3 and fgetpwent.3, but there are not
>    markings in glibc document. I use the function names for the identifiers like
>    fgetgrent.3 and fgetpwent.3.
> 
> 3. mallinfo.3
>    Hope the descriptions about "const:mallopt" could explain clearly enough in
>    the patch.
> 
> 4. sigpause.3 and termios.3
>    These two functions are safety in Linux kernel, the markings in glibc manual
>    are more detailed. I also have added some "FIXME:" descriptions in them.
> 
> 
> Thanks and best regards,
> Zeng
> --
> 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


--
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] 20+ messages in thread

* Re: patchset for fgetgrent fgetpwent getspnam mallinfo sigpause and termios
  2015-09-01  8:00   ` patchset for fgetgrent fgetpwent getspnam mallinfo sigpause and termios Zeng Linggang
@ 2015-09-09  5:31     ` Zeng Linggang
  2015-09-11 10:10       ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 20+ messages in thread
From: Zeng Linggang @ 2015-09-09  5:31 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello,

Could someone help to review these?
I think these codes is not really too much if you have scanned them.
Please keep a little patience. :)

Thanks and best regards,
Zeng

On Tue, 2015-09-01 at 16:00 +0800, Zeng Linggang wrote:
> Hello,
> 
> Ping! :)
> 
> Thanks and best regards,
> Zeng
> 
> On Mon, 2015-08-24 at 18:19 +0800, Zeng Linggang wrote:
> > Hello,
> > 
> > This patchset is for fgetgrent.3, fgetpwent.3, sigpause.3, termios.3,
> > getspnam.3 and mallinfo.3
> > 
> > 1. fgetgrent.3 and fgetpwent.3:
> >    We have some discussions about these two functions, the Subject:
> >    "Re: question about markings of fgetgrent and fgetpwent"
> >    However, something about the copyright impeded the progress.
> >    I am sorry for that, if you are OK, please see these two patches below,
> >    I have added some "FIXME:" descriptions in them.
> > 
> > 2. getspnam.3
> >    getspnam.3 is a little like fgetgrent.3 and fgetpwent.3, but there are not
> >    markings in glibc document. I use the function names for the identifiers like
> >    fgetgrent.3 and fgetpwent.3.
> > 
> > 3. mallinfo.3
> >    Hope the descriptions about "const:mallopt" could explain clearly enough in
> >    the patch.
> > 
> > 4. sigpause.3 and termios.3
> >    These two functions are safety in Linux kernel, the markings in glibc manual
> >    are more detailed. I also have added some "FIXME:" descriptions in them.
> > 
> > 
> > Thanks and best regards,
> > Zeng
> > --
> > 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
> 
> 
> --
> 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


--
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] 20+ messages in thread

* Re: [PATCH] fgetgrent.3: ATTRIBUTES: Note function that is not thread-safe
       [not found]     ` <1440411596-2566-2-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2015-09-11 10:06       ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 20+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-09-11 10:06 UTC (permalink / raw)
  To: Zeng Linggang
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 08/24/2015 12:19 PM, Zeng Linggang wrote:
> The marking matches glibc marking.
> marking of function in glibc is:
> - fgetgrent: MT-Unsafe race:fgrent
> 
> ps: We think race:fgrent in glibc maybe hard for users to understand,
> and have sent a patch to the GNU libc community for changing it to
> race:fgetgrent, however, something about the copyright impeded the progress.
> Here we mark it "race:fgetgrent", so there is a little different.

Applied!  Thanks, Zeng Linggang.

Cheers,

Michael


> Signed-off-by: Zeng Linggang <zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
> ---
>  man3/fgetgrent.3 | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
> diff --git a/man3/fgetgrent.3 b/man3/fgetgrent.3
> index 57665dd..aa08e0f 100644
> --- a/man3/fgetgrent.3
> +++ b/man3/fgetgrent.3
> @@ -90,6 +90,25 @@ is set to indicate the cause.
>  Insufficient memory to allocate
>  .I group
>  structure.
> +.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 fgetgrent ()
> +.\" FIXME: the following marking is different from which in glibc manual,
> +.\" marking in glibc manual is,
> +.\" fgetgrent: MT-Unsafe race:fgrent
> +.\" We think race:fgrent in glibc maybe hard for users to understand,
> +.\" and have sent a patch to the GNU libc community for changing it to
> +.\" race:fgetgrent, however, something about the copyright impeded the progress.
> +T}	Thread safety	MT-Unsafe race:fgetgrent
> +.TE
> +
>  .SH CONFORMING TO
>  SVr4.
>  .SH SEE ALSO
> 


-- 
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] 20+ messages in thread

* Re: [PATCH] fgetpwent.3: ATTRIBUTES: Note function that is not thread-safe
       [not found]     ` <1440411596-2566-3-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2015-09-11 10:06       ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 20+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-09-11 10:06 UTC (permalink / raw)
  To: Zeng Linggang
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 08/24/2015 12:19 PM, Zeng Linggang wrote:
> The marking matches glibc marking.
> marking of function in glibc is:
> - fgetgrent: MT-Unsafe race:fpwent
> 
> ps: We think race:fpwent in glibc maybe hard for users to understand,
> and have sent a patch to the GNU libc community for changing it to
> race:fgetpwent, however, something about the copyright impeded the progress.
> Here we mark it "race:fgetpwent", so there is a little different.

Applied!  Thanks, Zeng Linggang.

Cheers,

Michael

> Signed-off-by: Zeng Linggang <zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
> ---
>  man3/fgetpwent.3 | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/man3/fgetpwent.3 b/man3/fgetpwent.3
> index 3076494..84e0379 100644
> --- a/man3/fgetpwent.3
> +++ b/man3/fgetpwent.3
> @@ -98,6 +98,22 @@ structure.
>  .TP
>  .I /etc/passwd
>  password database file
> +.TS
> +allbox;
> +lb lb lb
> +l l l.
> +Interface	Attribute	Value
> +T{
> +.BR fgetpwent ()
> +.\" FIXME: the following marking is different from which in glibc manual,
> +.\" marking in glibc manual is,
> +.\" fgetpwent: MT-Unsafe race:fpwent
> +.\" We think race:fpwent in glibc maybe hard for users to understand,
> +.\" and have sent a patch to the GNU libc community for changing it to
> +.\" race:fgetpwent, however, something about the copyright impeded the progress.
> +T}	Thread safety	MT-Unsafe race:fgetpwent
> +.TE
> +
>  .SH CONFORMING TO
>  SVr4.
>  .SH SEE ALSO
> 


-- 
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] 20+ messages in thread

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

On 08/24/2015 12:19 PM, Zeng Linggang wrote:
> After research, We think
> * getspnam(),
> * getspent(),
> * setspent(),
> * endspent(),
> * getspent_r(),
> * fgetspent(),
> * sgetspent(),
> are not thread-safe. And
> * putspent(),
> * getspnam_r(),
> * sgetspent_r(),
> * lckpwdf(),
> * ulckpwdf(),
> * fgetspent_r(),
> are thread-safe. But, there are not
> markings of them in glibc document.

Applied!  Thanks, Zeng Linggang.

Cheers,

Michael

> Signed-off-by: Zeng Linggang <zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
> ---
>  man3/getspnam.3 | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 60 insertions(+)
> 
> diff --git a/man3/getspnam.3 b/man3/getspnam.3
> index 43ee61c..9efd643 100644
> --- a/man3/getspnam.3
> +++ b/man3/getspnam.3
> @@ -246,6 +246,66 @@ The include file
>  defines the constant
>  .B _PATH_SHADOW
>  to the pathname of the shadow password file.
> +.SH ATTRIBUTES
> +For an explanation of the terms used in this section, see
> +.BR attributes (7).
> +.TS
> +allbox;
> +lbw25 lb lbw30
> +l l l.
> +Interface	Attribute	Value
> +T{
> +.BR getspnam ()
> +T}	Thread safety	T{
> +MT-Unsafe race:getspnam locale
> +T}
> +T{
> +.BR getspent ()
> +T}	Thread safety	T{
> +MT-Unsafe race:getspent
> +.br
> +race:spentbuf locale
> +T}
> +T{
> +.BR setspent (),
> +.BR endspent (),
> +.br
> +.BR getspent_r ()
> +T}	Thread safety	T{
> +MT-Unsafe race:getspent locale
> +T}
> +T{
> +.BR fgetspent ()
> +T}	Thread safety	MT-Unsafe race:fgetspent
> +T{
> +.BR sgetspent ()
> +T}	Thread safety	MT-Unsafe race:sgetspent
> +T{
> +.BR putspent (),
> +.BR getspnam_r (),
> +.br
> +.BR sgetspent_r ()
> +T}	Thread safety	MT-Safe locale
> +T{
> +.BR lckpwdf (),
> +.BR ulckpwdf (),
> +.br
> +.BR fgetspent_r ()
> +T}	Thread safety	MT-Safe
> +.TE
> +
> +In the above table,
> +.I getspent
> +in
> +.I race:getspent
> +signifies that if any of the functions
> +.BR setspent (3),
> +.BR getspent (3),
> +.BR getspent_r (3),
> +or
> +.BR endspent (3)
> +are used in parallel in different threads of a program,
> +then data races could occur.
>  .SH CONFORMING TO
>  The shadow password database and its associated API are
>  not specified in POSIX.1.
> 


-- 
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] 20+ messages in thread

* Re: [PATCH] mallinfo.3: ATTRIBUTES: Note function that is not thread-safe
       [not found]     ` <1440411596-2566-5-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2015-09-11 10:06       ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 20+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-09-11 10:06 UTC (permalink / raw)
  To: Zeng Linggang
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 08/24/2015 12:19 PM, Zeng Linggang wrote:
> The marking matches glibc marking.
> The marking of functions in glibc is:
> - mallinfo: MT-Unsafe init const:mallopt

Applied!  Thanks, Zeng Linggang.

Cheers,

Michael

> Signed-off-by: Zeng Linggang <zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
> ---
>  man3/mallinfo.3 | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
> 
> diff --git a/man3/mallinfo.3 b/man3/mallinfo.3
> index 7797169..e6661d1 100644
> --- a/man3/mallinfo.3
> +++ b/man3/mallinfo.3
> @@ -107,6 +107,31 @@ This is the maximum number of bytes that could ideally
>  .BR malloc_trim (3).
>  .\" .SH VERSIONS
>  .\" Available already in glibc 2.0, possibly earlier
> +.SH ATTRIBUTES
> +For an explanation of the terms used in this section, see
> +.BR attributes (7).
> +.TS
> +allbox;
> +lb lb lbw28
> +l l l.
> +Interface	Attribute	Value
> +T{
> +.BR mallinfo ()
> +T}	Thread safety	MT-Unsafe init const:mallopt
> +.TE
> +
> +.BR mallinfo ()
> +would access some global iternal objects. If modify them with non-atomically,
> +may get inconsistent results.
> +The identifier
> +.I mallopt
> +in
> +.I const:mallopt
> +mean that
> +.BR mallopt ()
> +would modify the global iternal objects with atomics, that make sure
> +.BR mallinfo ()
> +is safe enough, others modify with non-atomically maybe not.
>  .SH CONFORMING TO
>  This function is not specified by POSIX or the C standards.
>  A similar function exists on many System V derivatives,
> 


-- 
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] 20+ messages in thread

* Re: [PATCH] sigpause.3: srcfix: add FIXME
       [not found]     ` <1440411596-2566-6-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2015-09-11 10:07       ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 20+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-09-11 10:07 UTC (permalink / raw)
  To: Zeng Linggang
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 08/24/2015 12:19 PM, Zeng Linggang wrote:
> Signed-off-by: Zeng Linggang <zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>

Applied!  Thanks, Zeng Linggang.

Cheers,

Michael

> ---
>  man3/sigpause.3 | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/man3/sigpause.3 b/man3/sigpause.3
> index 847bd10..dbc10de 100644
> --- a/man3/sigpause.3
> +++ b/man3/sigpause.3
> @@ -63,6 +63,12 @@ l l l.
>  Interface	Attribute	Value
>  T{
>  .BR sigpause ()
> +.\" FIXME: the following marking is different from which in glibc manual,
> +.\" marking in glibc manual is more detailed.
> +.\" sigpause: MT-Unsafe race:sigprocmask/!bsd!linux
> +.\" glibc manual says /!linux!bsd indicate the preceding marker only applies
> +./" when the underlying kernel is neither Linux nor a BSD kernel.
> +.\" So, it is safety in Linux kernel.
>  T}	Thread safety	MT-Safe
>  .TE
>  .SH CONFORMING TO
> 


-- 
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] 20+ messages in thread

* Re: [PATCH] termios.3: srcfix: add FIXME
       [not found]     ` <1440411596-2566-7-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2015-09-11 10:07       ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 20+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-09-11 10:07 UTC (permalink / raw)
  To: Zeng Linggang
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 08/24/2015 12:19 PM, Zeng Linggang wrote:
> Signed-off-by: Zeng Linggang <zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>

Applied!  Thanks, Zeng Linggang.

Cheers,

Michael

> ---
>  man3/termios.3 | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/man3/termios.3 b/man3/termios.3
> index 02aee64..1ea5236 100644
> --- a/man3/termios.3
> +++ b/man3/termios.3
> @@ -994,6 +994,13 @@ T{
>  .BR cfsetispeed (),
>  .BR cfsetospeed (),
>  .BR cfsetspeed ()
> +.\" FIXME: the following markings are different from which in glibc manual,
> +.\" markings in glibc manual are more detailed.
> +.\" tcsendbreak: MT-Unsafe race:tcattr(filedes)/bsd
> +.\" tcflow: MT-Unsafe race:tcattr(filedes)/bsd
> +.\" glibc manual says /bsd indicate the preceding marker only applies
> +./" when the underlying kernel is a BSD kernel.
> +.\" So, it is safety in Linux kernel.
>  T}	Thread safety	MT-Safe
>  .TE
>  .ad
> 


-- 
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] 20+ messages in thread

* Re: patchset for fgetgrent fgetpwent getspnam mallinfo sigpause and termios
  2015-09-09  5:31     ` Zeng Linggang
@ 2015-09-11 10:10       ` Michael Kerrisk (man-pages)
       [not found]         ` <55F2A8B1.9070808-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-09-11 10:10 UTC (permalink / raw)
  To: Zeng Linggang
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 09/09/2015 07:31 AM, Zeng Linggang wrote:
> Hello,
> 
> Could someone help to review these?
> I think these codes is not really too much if you have scanned them.
> Please keep a little patience. :)

My apologies for the delay, Zeng Linggang. I'm a little too busy
at the moment.

Cheers,

Michael


> Thanks and best regards,
> Zeng
> 
> On Tue, 2015-09-01 at 16:00 +0800, Zeng Linggang wrote:
>> Hello,
>>
>> Ping! :)
>>
>> Thanks and best regards,
>> Zeng
>>
>> On Mon, 2015-08-24 at 18:19 +0800, Zeng Linggang wrote:
>>> Hello,
>>>
>>> This patchset is for fgetgrent.3, fgetpwent.3, sigpause.3, termios.3,
>>> getspnam.3 and mallinfo.3
>>>
>>> 1. fgetgrent.3 and fgetpwent.3:
>>>    We have some discussions about these two functions, the Subject:
>>>    "Re: question about markings of fgetgrent and fgetpwent"
>>>    However, something about the copyright impeded the progress.
>>>    I am sorry for that, if you are OK, please see these two patches below,
>>>    I have added some "FIXME:" descriptions in them.
>>>
>>> 2. getspnam.3
>>>    getspnam.3 is a little like fgetgrent.3 and fgetpwent.3, but there are not
>>>    markings in glibc document. I use the function names for the identifiers like
>>>    fgetgrent.3 and fgetpwent.3.
>>>
>>> 3. mallinfo.3
>>>    Hope the descriptions about "const:mallopt" could explain clearly enough in
>>>    the patch.
>>>
>>> 4. sigpause.3 and termios.3
>>>    These two functions are safety in Linux kernel, the markings in glibc manual
>>>    are more detailed. I also have added some "FIXME:" descriptions in them.
>>>
>>>
>>> Thanks and best regards,
>>> Zeng
>>> --
>>> 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
>>
>>
>> --
>> 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
> 
> 
> 


-- 
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] 20+ messages in thread

* Re: patchset for fgetgrent fgetpwent getspnam mallinfo sigpause and termios
       [not found]         ` <55F2A8B1.9070808-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2015-09-12  7:00           ` Zeng Linggang
  0 siblings, 0 replies; 20+ messages in thread
From: Zeng Linggang @ 2015-09-12  7:00 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello,

On Fri, 2015-09-11 at 12:10 +0200, Michael Kerrisk (man-pages) wrote:
> On 09/09/2015 07:31 AM, Zeng Linggang wrote:
> > Hello,
> > 
> > Could someone help to review these?
> > I think these codes is not really too much if you have scanned them.
> > Please keep a little patience. :)
> 
> My apologies for the delay, Zeng Linggang. I'm a little too busy
> at the moment.
> 

That's OK.
And thank you very much.

Best regards,
Zeng

> Cheers,
> 
> Michael
> 
> 
> > Thanks and best regards,
> > Zeng
> > 
> > On Tue, 2015-09-01 at 16:00 +0800, Zeng Linggang wrote:
> >> Hello,
> >>
> >> Ping! :)
> >>
> >> Thanks and best regards,
> >> Zeng
> >>
> >> On Mon, 2015-08-24 at 18:19 +0800, Zeng Linggang wrote:
> >>> Hello,
> >>>
> >>> This patchset is for fgetgrent.3, fgetpwent.3, sigpause.3, termios.3,
> >>> getspnam.3 and mallinfo.3
> >>>
> >>> 1. fgetgrent.3 and fgetpwent.3:
> >>>    We have some discussions about these two functions, the Subject:
> >>>    "Re: question about markings of fgetgrent and fgetpwent"
> >>>    However, something about the copyright impeded the progress.
> >>>    I am sorry for that, if you are OK, please see these two patches below,
> >>>    I have added some "FIXME:" descriptions in them.
> >>>
> >>> 2. getspnam.3
> >>>    getspnam.3 is a little like fgetgrent.3 and fgetpwent.3, but there are not
> >>>    markings in glibc document. I use the function names for the identifiers like
> >>>    fgetgrent.3 and fgetpwent.3.
> >>>
> >>> 3. mallinfo.3
> >>>    Hope the descriptions about "const:mallopt" could explain clearly enough in
> >>>    the patch.
> >>>
> >>> 4. sigpause.3 and termios.3
> >>>    These two functions are safety in Linux kernel, the markings in glibc manual
> >>>    are more detailed. I also have added some "FIXME:" descriptions in them.
> >>>
> >>>
> >>> Thanks and best regards,
> >>> Zeng
> >>> --
> >>> 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
> >>
> >>
> >> --
> >> 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
> > 
> > 
> > 
> 
> 


--
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] 20+ messages in thread

end of thread, other threads:[~2015-09-12  7:00 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-24 10:19 patchset for fgetgrent fgetpwent getspnam mallinfo sigpause and termios Zeng Linggang
     [not found] ` <1440411596-2566-1-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-08-24 10:19   ` [PATCH] fgetgrent.3: ATTRIBUTES: Note function that is not thread-safe Zeng Linggang
     [not found]     ` <1440411596-2566-2-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-09-11 10:06       ` Michael Kerrisk (man-pages)
2015-08-24 10:19   ` [PATCH] fgetpwent.3: " Zeng Linggang
     [not found]     ` <1440411596-2566-3-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-09-11 10:06       ` Michael Kerrisk (man-pages)
2015-08-24 10:19   ` [PATCH] getspnam.3: ATTRIBUTES: Note functions that are/aren't thread-safe Zeng Linggang
     [not found]     ` <1440411596-2566-4-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-09-11 10:06       ` Michael Kerrisk (man-pages)
2015-08-24 10:19   ` [PATCH] mallinfo.3: ATTRIBUTES: Note function that is not thread-safe Zeng Linggang
     [not found]     ` <1440411596-2566-5-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-09-11 10:06       ` Michael Kerrisk (man-pages)
2015-08-24 10:19   ` [PATCH] sigpause.3: srcfix: add FIXME Zeng Linggang
     [not found]     ` <1440411596-2566-6-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-09-11 10:07       ` Michael Kerrisk (man-pages)
2015-08-24 10:19   ` [PATCH] termios.3: " Zeng Linggang
     [not found]     ` <1440411596-2566-7-git-send-email-zenglg.jy-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-09-11 10:07       ` Michael Kerrisk (man-pages)
2015-09-01  8:00   ` patchset for fgetgrent fgetpwent getspnam mallinfo sigpause and termios Zeng Linggang
2015-09-09  5:31     ` Zeng Linggang
2015-09-11 10:10       ` Michael Kerrisk (man-pages)
     [not found]         ` <55F2A8B1.9070808-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-12  7:00           ` Zeng Linggang
  -- strict thread matches above, loose matches on Subject: below --
2015-02-11  7:41 [PATCH] fgetpwent.3: ATTRIBUTES: Note function that is not thread-safe Ma Shimiao
     [not found] ` <1423640516-25520-1-git-send-email-mashimiao.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-04-18 18:26   ` Michael Kerrisk (man-pages)
     [not found]     ` <5532A1DB.3030009-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-06-18  7:02       ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).