Back to index

glibc  2.9
waitpid.c File Reference
#include <errno.h>
#include <stddef.h>
#include <sys/wait.h>
#include <sys/types.h>

Go to the source code of this file.


pid_t kwaitpid (int *stat_loc, pid_t pid, int options, struct rusage *ru_loc, siginfo_t *infop)
pid_t __libc_waitpid (pid_t pid, int *stat_loc, int options)

Function Documentation

pid_t __libc_waitpid ( pid_t  pid,
int stat_loc,
int  options 

Definition at line 41 of file waitpid.c.

  if ((options & ~(WNOHANG|WUNTRACED)) != 0)
      __set_errno (EINVAL);
      return (pid_t) -1;

  return kwaitpid (stat_loc, pid, options, NULL, NULL);

Here is the call graph for this function:

pid_t kwaitpid ( int stat_loc,
pid_t  pid,
int  options,
struct rusage ru_loc,
siginfo_t *  infop