136270Sbostic /* 236270Sbostic * Copyright (c) 1988 The Regents of the University of California. 336270Sbostic * All rights reserved. 436270Sbostic * 536270Sbostic * Redistribution and use in source and binary forms are permitted 636270Sbostic * provided that the above copyright notice and this paragraph are 736270Sbostic * duplicated in all such forms and that any documentation, 836270Sbostic * advertising materials, and other materials related to such 936270Sbostic * distribution and use acknowledge that the software was developed 1036270Sbostic * by the University of California, Berkeley. The name of the 1136270Sbostic * University may not be used to endorse or promote products derived 1236270Sbostic * from this software without specific prior written permission. 1336270Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 1436270Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 1536270Sbostic * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 1636270Sbostic */ 1736270Sbostic 1836270Sbostic #if defined(LIBC_SCCS) && !defined(lint) 19*38428Skarels static char sccsid[] = "@(#)wait3.c 5.3 (Berkeley) 07/07/89"; 2036270Sbostic #endif /* LIBC_SCCS and not lint */ 2136270Sbostic 2236270Sbostic #include <sys/types.h> 2336270Sbostic #include <sys/time.h> 2436270Sbostic #include <sys/wait.h> 2536270Sbostic #include <sys/resource.h> 2636270Sbostic 2736270Sbostic wait3(pstat, options, rup) 2836270Sbostic union wait *pstat; 2936270Sbostic int options; 3036270Sbostic struct rusage *rup; 3136270Sbostic { 3236270Sbostic 33*38428Skarels return (wait4(WAIT_ANY, pstat, options, rup)); 3436270Sbostic } 35