home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / D / LIBC / LIBC-4.6 / LIBC-4 / libc-linux / sysdeps / linux / __waitpid.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-17  |  389 b   |  18 lines

  1. #include <syscall.h>
  2. #include <sys/types.h>
  3. #include <sys/wait.h>
  4.  
  5. static inline
  6. _syscall4(__pid_t,wait4,__pid_t,pid,__WAIT_STATUS_DEFN,status,int,options,struct rusage *,ru)
  7.  
  8. __pid_t
  9. __waitpid(__pid_t pid, int *wait_stat, int options)
  10. {
  11.     return wait4(pid, (__WAIT_STATUS_DEFN) wait_stat, options, NULL);
  12. }
  13.  
  14. #include <gnu-stabs.h>
  15. #ifdef weak_alias
  16. weak_alias (__waitpid, waitpid);
  17. #endif
  18.