Skip to contentSkip to conversation

wait4.2: Add a note that these functions are deprecated

PATCH In review Adrian Bunk 2 participants 7 messages Sep 18, 2012 – Sep 24, 2012 6 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wait4.2: Add a note that these functions are deprecated

---
 man2/wait4.2 |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
man2/wait4.2 +6 -1
index 68e49ad..3548396 100644
@@ -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)
Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to a message not in the archive

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

Quoted 36 lines · Adrian Bunk
---
 man2/wait4.2 |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
man2/wait4.2 +6 -2
index 68e49ad..3548396 100644
@@ -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

Signature · 7 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw
In reply to a message not in the archive
Quoted 1 line · Michael Kerrisk (man-pages)

Adrian,

Hi Michael,

Quoted 12 lines

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

Quoted 7 lines

.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).

Quoted 3 lines

Cheers,

Michael

cu
Adrian

Quoted 28 lines · Adrian Bunk
Quoted 27 lines
---
 man2/wait4.2 |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
man2/wait4.2 +5 -1
index 68e49ad..3548396 100644
@@ -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),
Quoted 8 lines
Quoted 8 lines
man2/wait4.2 +1 -1
 .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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
In reply to a message not in the archive

Hi Adrian,

Quoted 23 lines · Adrian Bunk
Quoted 1 line · Michael Kerrisk (man-pages)

Adrian,

Hi Michael,

Quoted 18 lines

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.
]]

Quoted 4 lines
Quoted 1 line

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

Quoted 36 lines
Quoted 36 lines · Adrian Bunk
Quoted 35 lines
---
 man2/wait4.2 |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
man2/wait4.2 +6 -2
index 68e49ad..3548396 100644
@@ -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

Signature · 7 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#8 lore raw
In reply to a message not in the archive
Quoted 28 lines · Michael Kerrisk (man-pages)

Hi Adrian,

Quoted 25 lines · Adrian Bunk
Quoted 1 line · Michael Kerrisk (man-pages)

Adrian,

Hi Michael,

Quoted 19 lines

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?

Quoted 7 lines
Quoted 2 lines

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?

Quoted 3 lines

Cheers,

Michael

cu
Adrian

Signature · 9 lines
       "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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#10 lore raw
In reply to a message not in the archive
Quoted 28 lines
Quoted 20 lines
Quoted 20 lines
Quoted 19 lines

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?

Quoted 7 lines
Quoted 2 lines

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.

Quoted 4 lines

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

What about "obsolete" instead?

Okay -- done!

Cheers,

Michael

Signature · 7 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#12 lore raw
In reply to a message not in the archive
Quoted 28 lines · Michael Kerrisk (man-pages)
Quoted 28 lines
Quoted 27 lines
Quoted 18 lines
Quoted 18 lines

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.
]]

Quoted 4 lines
Quoted 1 line

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.

Quoted 6 lines
Quoted 4 lines

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

What about "obsolete" instead?

Okay -- done!

Thanks!

Quoted 3 lines

Cheers,

Michael

cu
Adrian

Signature · 9 lines
       "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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html