projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
normalize routine bug; bug report net2/lib/4
[unix-history]
/
usr
/
src
/
lib
/
libc
/
gen
/
waitpid.c
diff --git
a/usr/src/lib/libc/gen/waitpid.c
b/usr/src/lib/libc/gen/waitpid.c
index
e87e70c
..
6ae7e7c
100644
(file)
--- a/
usr/src/lib/libc/gen/waitpid.c
+++ b/
usr/src/lib/libc/gen/waitpid.c
@@
-6,7
+6,7
@@
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)waitpid.c 5.
3
(Berkeley) %G%";
+static char sccsid[] = "@(#)waitpid.c 5.
4
(Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@
-15,10
+15,14
@@
static char sccsid[] = "@(#)waitpid.c 5.3 (Berkeley) %G%";
#include <sys/resource.h>
pid_t
#include <sys/resource.h>
pid_t
-waitpid(pid, pstat, options)
- int pid;
- union wait *pstat;
+#if __STDC__
+waitpid(pid_t pid, int *istat, int options)
+#else
+waitpid(pid, istat, options)
+ pid_t pid;
+ int *istat;
int options;
int options;
+#endif
{
{
- return (wait4(pid,
p
stat, options, (struct rusage *)0));
+ return (wait4(pid,
i
stat, options, (struct rusage *)0));
}
}