public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] wait4.2: Add a note that these functions are deprecated
@ 2012-09-18 21:01 Adrian Bunk
       [not found] ` <20120918210116.GA22808-c9qLp6CXzmZPEsXTsnYjsA@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Adrian Bunk @ 2012-09-18 21:01 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

---
 man2/wait4.2 |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/man2/wait4.2 b/man2/wait4.2
index 68e49ad..3548396 100644
--- a/man2/wait4.2
+++ b/man2/wait4.2
@@ -31,7 +31,7 @@
 .\"	Rewrote much of this page, and removed much duplicated text,
 .\"		replacing with pointers to wait.2
 .\"
-.TH WAIT4 2  2010-09-20 "Linux" "Linux Programmer's Manual"
+.TH WAIT4 2  2012-09-18 "Linux" "Linux Programmer's Manual"
 .SH NAME
 wait3, wait4 \- wait for process to change state, BSD style
 .SH SYNOPSIS
@@ -150,10 +150,15 @@ On Linux,
 is a library function implemented on top of the
 .BR wait4 ()
 system call.
+
+These functions are deprecated (not in POSIX.1-2001), use
+.BR waitpid (2)
+in new programs.
 .SH "SEE ALSO"
 .BR fork (2),
 .BR getrusage (2),
 .BR sigaction (2),
 .BR signal (2),
 .BR wait (2),
+.BR waitpid (2),
 .BR signal (7)
-- 
1.7.10.4

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

* Re: [patch] wait4.2: Add a note that these functions are deprecated
       [not found] ` <20120918210116.GA22808-c9qLp6CXzmZPEsXTsnYjsA@public.gmane.org>
@ 2012-09-23 14:02   ` Michael Kerrisk (man-pages)
       [not found]     ` <CAKgNAkiiNGhVRi-ddBA2t8tdZMRq_rrJWEAumVyXikZCzCW1UA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Kerrisk (man-pages) @ 2012-09-23 14:02 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Adrian,

I think the idea of your patch is good, but I prefer to use a word
other than "deprecated". The problem is that "deprecated" implies a
standards body or a vendor made a formal statement about this. It's
true that LSB 2.1 says that wait3() is deprecated
(http://refspecs.linuxbase.org/LSB_2.1.0/LSB-generic/LSB-generic/baselib-wait3-3.html),
but wait4() is currently still part of LSB. So, I applied a slightly
modified version of your test:

[[
These functions are nonstandard; use
.BR waitpid (2)
or
.BR waitid (2)
in new programs.
]]

Seem okay?

Cheers,

Michael




On Tue, Sep 18, 2012 at 11:01 PM, Adrian Bunk <bunk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> ---
>  man2/wait4.2 |    7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/man2/wait4.2 b/man2/wait4.2
> index 68e49ad..3548396 100644
> --- a/man2/wait4.2
> +++ b/man2/wait4.2
> @@ -31,7 +31,7 @@
>  .\"    Rewrote much of this page, and removed much duplicated text,
>  .\"            replacing with pointers to wait.2
>  .\"
> -.TH WAIT4 2  2010-09-20 "Linux" "Linux Programmer's Manual"
> +.TH WAIT4 2  2012-09-18 "Linux" "Linux Programmer's Manual"
>  .SH NAME
>  wait3, wait4 \- wait for process to change state, BSD style
>  .SH SYNOPSIS
> @@ -150,10 +150,15 @@ On Linux,
>  is a library function implemented on top of the
>  .BR wait4 ()
>  system call.
> +
> +These functions are deprecated (not in POSIX.1-2001), use
> +.BR waitpid (2)
> +in new programs.
>  .SH "SEE ALSO"
>  .BR fork (2),
>  .BR getrusage (2),
>  .BR sigaction (2),
>  .BR signal (2),
>  .BR wait (2),
> +.BR waitpid (2),
>  .BR signal (7)
> --
> 1.7.10.4
>



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
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] 7+ messages in thread

* Re: [patch] wait4.2: Add a note that these functions are deprecated
       [not found]     ` <CAKgNAkiiNGhVRi-ddBA2t8tdZMRq_rrJWEAumVyXikZCzCW1UA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-09-23 14:24       ` Adrian Bunk
       [not found]         ` <20120923142425.GC13319-c9qLp6CXzmZPEsXTsnYjsA@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Adrian Bunk @ 2012-09-23 14:24 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

On Sun, Sep 23, 2012 at 04:02:27PM +0200, Michael Kerrisk (man-pages) wrote:
> Adrian,

Hi Michael,

> I think the idea of your patch is good, but I prefer to use a word
> other than "deprecated". The problem is that "deprecated" implies a
> standards body or a vendor made a formal statement about this. It's
> true that LSB 2.1 says that wait3() is deprecated
> (http://refspecs.linuxbase.org/LSB_2.1.0/LSB-generic/LSB-generic/baselib-wait3-3.html),
> but wait4() is currently still part of LSB. So, I applied a slightly
> 
> modified version of your test:
> 
> [[
> These functions are nonstandard; use
> 
> .BR waitpid (2)
> or
> .BR waitid (2)
> in new programs.
> ]]
> 
> Seem okay?

the wait3() function is not "nonstandard, since as the URL you gave 
correctly states it is part of SuSv2 (and also of SuSv1).

> Cheers,
> 
> Michael

cu
Adrian


> On Tue, Sep 18, 2012 at 11:01 PM, Adrian Bunk <bunk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> > ---
> >  man2/wait4.2 |    7 ++++++-
> >  1 file changed, 6 insertions(+), 1 deletion(-)
> >
> > diff --git a/man2/wait4.2 b/man2/wait4.2
> > index 68e49ad..3548396 100644
> > --- a/man2/wait4.2
> > +++ b/man2/wait4.2
> > @@ -31,7 +31,7 @@
> >  .\"    Rewrote much of this page, and removed much duplicated text,
> >  .\"            replacing with pointers to wait.2
> >  .\"
> > -.TH WAIT4 2  2010-09-20 "Linux" "Linux Programmer's Manual"
> > +.TH WAIT4 2  2012-09-18 "Linux" "Linux Programmer's Manual"
> >  .SH NAME
> >  wait3, wait4 \- wait for process to change state, BSD style
> >  .SH SYNOPSIS
> > @@ -150,10 +150,15 @@ On Linux,
> >  is a library function implemented on top of the
> >  .BR wait4 ()
> >  system call.
> > +
> > +These functions are deprecated (not in POSIX.1-2001), use
> > +.BR waitpid (2)
> > +in new programs.
> >  .SH "SEE ALSO"
> >  .BR fork (2),
> >  .BR getrusage (2),
> >  .BR sigaction (2),
> >  .BR signal (2),
> >  .BR wait (2),
> > +.BR waitpid (2),
> >  .BR signal (7)
> > --
> > 1.7.10.4
--
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] 7+ messages in thread

* Re: [patch] wait4.2: Add a note that these functions are deprecated
       [not found]         ` <20120923142425.GC13319-c9qLp6CXzmZPEsXTsnYjsA@public.gmane.org>
@ 2012-09-23 14:34           ` Michael Kerrisk (man-pages)
       [not found]             ` <CAKgNAkiHYrerfCDab8UFrFZbqd=jEBXScLjM2j7LHAJHLnNhmg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Kerrisk (man-pages) @ 2012-09-23 14:34 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hi Adrian,

On Sun, Sep 23, 2012 at 4:24 PM, Adrian Bunk <bunk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> On Sun, Sep 23, 2012 at 04:02:27PM +0200, Michael Kerrisk (man-pages) wrote:
>> Adrian,
>
> Hi Michael,
>
>> I think the idea of your patch is good, but I prefer to use a word
>> other than "deprecated". The problem is that "deprecated" implies a
>> standards body or a vendor made a formal statement about this. It's
>> true that LSB 2.1 says that wait3() is deprecated
>> (http://refspecs.linuxbase.org/LSB_2.1.0/LSB-generic/LSB-generic/baselib-wait3-3.html),
>> but wait4() is currently still part of LSB. So, I applied a slightly
>>
>> modified version of your test:
>>
>> [[
>> These functions are nonstandard; use
>>
>> .BR waitpid (2)
>> or
>> .BR waitid (2)
>> in new programs.
>> ]]
>>
>> Seem okay?
>
> the wait3() function is not "nonstandard, since as the URL you gave
> correctly states it is part of SuSv2 (and also of SuSv1).

Yep, but marked LEGACY in SUSv2, and removed altogether in SUSv3. So,
not part of contemporary standard. (BTW, I did also add text under
CONFORMING TO to note those details.) So, I think I'll leave the text
as I gave already, unless you have a better alternative to propose.

Cheers,

Michael


>> On Tue, Sep 18, 2012 at 11:01 PM, Adrian Bunk <bunk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
>> > ---
>> >  man2/wait4.2 |    7 ++++++-
>> >  1 file changed, 6 insertions(+), 1 deletion(-)
>> >
>> > diff --git a/man2/wait4.2 b/man2/wait4.2
>> > index 68e49ad..3548396 100644
>> > --- a/man2/wait4.2
>> > +++ b/man2/wait4.2
>> > @@ -31,7 +31,7 @@
>> >  .\"    Rewrote much of this page, and removed much duplicated text,
>> >  .\"            replacing with pointers to wait.2
>> >  .\"
>> > -.TH WAIT4 2  2010-09-20 "Linux" "Linux Programmer's Manual"
>> > +.TH WAIT4 2  2012-09-18 "Linux" "Linux Programmer's Manual"
>> >  .SH NAME
>> >  wait3, wait4 \- wait for process to change state, BSD style
>> >  .SH SYNOPSIS
>> > @@ -150,10 +150,15 @@ On Linux,
>> >  is a library function implemented on top of the
>> >  .BR wait4 ()
>> >  system call.
>> > +
>> > +These functions are deprecated (not in POSIX.1-2001), use
>> > +.BR waitpid (2)
>> > +in new programs.
>> >  .SH "SEE ALSO"
>> >  .BR fork (2),
>> >  .BR getrusage (2),
>> >  .BR sigaction (2),
>> >  .BR signal (2),
>> >  .BR wait (2),
>> > +.BR waitpid (2),
>> >  .BR signal (7)
>> > --
>> > 1.7.10.4



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
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] 7+ messages in thread

* Re: [patch] wait4.2: Add a note that these functions are deprecated
       [not found]             ` <CAKgNAkiHYrerfCDab8UFrFZbqd=jEBXScLjM2j7LHAJHLnNhmg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-09-23 15:25               ` Adrian Bunk
       [not found]                 ` <20120923152512.GD13319-c9qLp6CXzmZPEsXTsnYjsA@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Adrian Bunk @ 2012-09-23 15:25 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

On Sun, Sep 23, 2012 at 04:34:36PM +0200, Michael Kerrisk (man-pages) wrote:
> Hi Adrian,
> 
> On Sun, Sep 23, 2012 at 4:24 PM, Adrian Bunk <bunk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> > On Sun, Sep 23, 2012 at 04:02:27PM +0200, Michael Kerrisk (man-pages) wrote:
> >> Adrian,
> >
> > Hi Michael,
> >
> >> I think the idea of your patch is good, but I prefer to use a word
> >> other than "deprecated". The problem is that "deprecated" implies a
> >> standards body or a vendor made a formal statement about this. It's
> >> true that LSB 2.1 says that wait3() is deprecated
> >> (http://refspecs.linuxbase.org/LSB_2.1.0/LSB-generic/LSB-generic/baselib-wait3-3.html),
> >> but wait4() is currently still part of LSB. So, I applied a slightly
> >>
> >> modified version of your test:
> >>
> >> [[
> >> These functions are nonstandard; use
> >>
> >> .BR waitpid (2)
> >> or
> >> .BR waitid (2)
> >> in new programs.
> >> ]]
> >>
> >> Seem okay?
> >
> > the wait3() function is not "nonstandard, since as the URL you gave
> > correctly states it is part of SuSv2 (and also of SuSv1).
> 
> Yep, but marked LEGACY in SUSv2, and removed altogether in SUSv3. So,
> not part of contemporary standard. (BTW, I did also add text under
> CONFORMING TO to note those details.) So, I think I'll leave the text
> as I gave already, unless you have a better alternative to propose.

My problem is with the word "nonstandard" for wait3(), that was 
specified in older standards.

What about "obsolete" instead?

> Cheers,
> 
> Michael

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

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

* Re: [patch] wait4.2: Add a note that these functions are deprecated
       [not found]                 ` <20120923152512.GD13319-c9qLp6CXzmZPEsXTsnYjsA@public.gmane.org>
@ 2012-09-24  5:16                   ` Michael Kerrisk (man-pages)
       [not found]                     ` <CAKgNAkio1wJeZ9wr=PGO5zw-h6BkY4tNHG0y=5wvGeVRNwhr2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Kerrisk (man-pages) @ 2012-09-24  5:16 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

>> >> I think the idea of your patch is good, but I prefer to use a word
>> >> other than "deprecated". The problem is that "deprecated" implies a
>> >> standards body or a vendor made a formal statement about this. It's
>> >> true that LSB 2.1 says that wait3() is deprecated
>> >> (http://refspecs.linuxbase.org/LSB_2.1.0/LSB-generic/LSB-generic/baselib-wait3-3.html),
>> >> but wait4() is currently still part of LSB. So, I applied a slightly
>> >>
>> >> modified version of your test:
>> >>
>> >> [[
>> >> These functions are nonstandard; use
>> >>
>> >> .BR waitpid (2)
>> >> or
>> >> .BR waitid (2)
>> >> in new programs.
>> >> ]]
>> >>
>> >> Seem okay?
>> >
>> > the wait3() function is not "nonstandard, since as the URL you gave
>> > correctly states it is part of SuSv2 (and also of SuSv1).
>>
>> Yep, but marked LEGACY in SUSv2, and removed altogether in SUSv3. So,
>> not part of contemporary standard. (BTW, I did also add text under
>> CONFORMING TO to note those details.) So, I think I'll leave the text
>> as I gave already, unless you have a better alternative to propose.
>
> My problem is with the word "nonstandard" for wait3(), that was
> specified in older standards.
>
> What about "obsolete" instead?

Okay -- done!

Cheers,

Michael




-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
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] 7+ messages in thread

* Re: [patch] wait4.2: Add a note that these functions are deprecated
       [not found]                     ` <CAKgNAkio1wJeZ9wr=PGO5zw-h6BkY4tNHG0y=5wvGeVRNwhr2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-09-24 13:04                       ` Adrian Bunk
  0 siblings, 0 replies; 7+ messages in thread
From: Adrian Bunk @ 2012-09-24 13:04 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

On Mon, Sep 24, 2012 at 07:16:28AM +0200, Michael Kerrisk (man-pages) wrote:
> >> >> I think the idea of your patch is good, but I prefer to use a word
> >> >> other than "deprecated". The problem is that "deprecated" implies a
> >> >> standards body or a vendor made a formal statement about this. It's
> >> >> true that LSB 2.1 says that wait3() is deprecated
> >> >> (http://refspecs.linuxbase.org/LSB_2.1.0/LSB-generic/LSB-generic/baselib-wait3-3.html),
> >> >> but wait4() is currently still part of LSB. So, I applied a slightly
> >> >>
> >> >> modified version of your test:
> >> >>
> >> >> [[
> >> >> These functions are nonstandard; use
> >> >>
> >> >> .BR waitpid (2)
> >> >> or
> >> >> .BR waitid (2)
> >> >> in new programs.
> >> >> ]]
> >> >>
> >> >> Seem okay?
> >> >
> >> > the wait3() function is not "nonstandard, since as the URL you gave
> >> > correctly states it is part of SuSv2 (and also of SuSv1).
> >>
> >> Yep, but marked LEGACY in SUSv2, and removed altogether in SUSv3. So,
> >> not part of contemporary standard. (BTW, I did also add text under
> >> CONFORMING TO to note those details.) So, I think I'll leave the text
> >> as I gave already, unless you have a better alternative to propose.
> >
> > My problem is with the word "nonstandard" for wait3(), that was
> > specified in older standards.
> >
> > What about "obsolete" instead?
> 
> Okay -- done!

Thanks!

> Cheers,
> 
> Michael

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

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

end of thread, other threads:[~2012-09-24 13:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-18 21:01 [patch] wait4.2: Add a note that these functions are deprecated Adrian Bunk
     [not found] ` <20120918210116.GA22808-c9qLp6CXzmZPEsXTsnYjsA@public.gmane.org>
2012-09-23 14:02   ` Michael Kerrisk (man-pages)
     [not found]     ` <CAKgNAkiiNGhVRi-ddBA2t8tdZMRq_rrJWEAumVyXikZCzCW1UA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-09-23 14:24       ` Adrian Bunk
     [not found]         ` <20120923142425.GC13319-c9qLp6CXzmZPEsXTsnYjsA@public.gmane.org>
2012-09-23 14:34           ` Michael Kerrisk (man-pages)
     [not found]             ` <CAKgNAkiHYrerfCDab8UFrFZbqd=jEBXScLjM2j7LHAJHLnNhmg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-09-23 15:25               ` Adrian Bunk
     [not found]                 ` <20120923152512.GD13319-c9qLp6CXzmZPEsXTsnYjsA@public.gmane.org>
2012-09-24  5:16                   ` Michael Kerrisk (man-pages)
     [not found]                     ` <CAKgNAkio1wJeZ9wr=PGO5zw-h6BkY4tNHG0y=5wvGeVRNwhr2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-09-24 13:04                       ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox