Back to index

glibc  2.9
Functions
wait4.c File Reference
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

pid_t __wait4_syscall (pid_t pid, __WAIT_STATUS_DEFN stat_loc, int options, struct rusage *usage)
pid_t __wait4 (pid_t pid, __WAIT_STATUS_DEFN stat_loc, int options, struct rusage *usage)

Function Documentation

pid_t __wait4 ( pid_t  pid,
__WAIT_STATUS_DEFN  stat_loc,
int  options,
struct rusage usage 
)

Definition at line 30 of file wait4.c.

{
  switch (pid)
    {
    case WAIT_ANY:
      pid = 0;
      break;

    case WAIT_MYPGRP:
      pid = - getpgrp ();
      break;
    }

  return __wait4_syscall (pid, stat_loc, options, usage);
}

Here is the call graph for this function:

pid_t __wait4_syscall ( pid_t  pid,
__WAIT_STATUS_DEFN  stat_loc,
int  options,
struct rusage usage 
)

Here is the caller graph for this function: