xref: /csrg-svn/lib/libc/gen/waitpid.c (revision 36271)
1*36271Sbostic /*
2*36271Sbostic  * Copyright (c) 1988 The Regents of the University of California.
3*36271Sbostic  * All rights reserved.
4*36271Sbostic  *
5*36271Sbostic  * Redistribution and use in source and binary forms are permitted
6*36271Sbostic  * provided that the above copyright notice and this paragraph are
7*36271Sbostic  * duplicated in all such forms and that any documentation,
8*36271Sbostic  * advertising materials, and other materials related to such
9*36271Sbostic  * distribution and use acknowledge that the software was developed
10*36271Sbostic  * by the University of California, Berkeley.  The name of the
11*36271Sbostic  * University may not be used to endorse or promote products derived
12*36271Sbostic  * from this software without specific prior written permission.
13*36271Sbostic  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14*36271Sbostic  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15*36271Sbostic  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16*36271Sbostic  */
17*36271Sbostic 
18*36271Sbostic #if defined(LIBC_SCCS) && !defined(lint)
19*36271Sbostic static char sccsid[] = "@(#)waitpid.c	5.1 (Berkeley) 11/28/88";
20*36271Sbostic #endif /* LIBC_SCCS and not lint */
21*36271Sbostic 
22*36271Sbostic #include <sys/types.h>
23*36271Sbostic #include <sys/time.h>
24*36271Sbostic #include <sys/wait.h>
25*36271Sbostic #include <sys/resource.h>
26*36271Sbostic 
27*36271Sbostic waitpid(pid, pstat, options)
28*36271Sbostic 	int pid;
29*36271Sbostic 	union wait *pstat;
30*36271Sbostic 	int options;
31*36271Sbostic {
32*36271Sbostic 
33*36271Sbostic 	return (wait4(pid, pstat, options, (struct rusage *)0));
34*36271Sbostic }
35