home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / linux / atari / source / source.lzh / atari-linux-0.01pl3 / lib / wait.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-05  |  675 b   |  29 lines

  1. /*
  2.  *  linux/lib/wait.c
  3.  *
  4.  *  Copyright (C) 1991, 1992  Linus Torvalds
  5.  *
  6.  * This file is subject to the terms and conditions of the GNU General Public
  7.  * License.  See the file README.legal in the main directory of this archive
  8.  * for more details.
  9.  */
  10.  
  11. #define __LIBRARY__
  12. #include <linux/unistd.h>
  13. #include <linux/time.h>
  14. #include <linux/resource.h>
  15. #include <linux/types.h>
  16.  
  17. _syscall4(pid_t,wait4,pid_t,pid,unsigned long *,stat_addr,int,options,
  18.       struct rusage *, ru);
  19.  
  20. pid_t wait(int * wait_stat)
  21. {
  22.     return wait4(-1,(unsigned long *)wait_stat,0,0);
  23. }
  24.  
  25. pid_t waitpid(pid_t pid, int *wait_stat, int options)
  26. {
  27.     return wait4(pid,(unsigned long *)wait_stat,options,0);
  28. }
  29.