Back to index

glibc  2.9
Functions | Variables
wait.h File Reference
#include <posix/sys/wait.h>

Go to the source code of this file.

Functions

__pid_t __waitpid (__pid_t __pid, int *__stat_loc, int __options)
 libc_hidden_proto (__waitpid) extern int __waitid(idtype_t idtype
__pid_t __libc_waitpid (pid_t __pid, int *__stat_loc, int __options)
__pid_t __libc_wait (int *__stat_loc)
__pid_t __wait (__WAIT_STATUS __stat_loc)
__pid_t __wait3 (__WAIT_STATUS __stat_loc, int __options, struct rusage *__usage)
__pid_t __wait4 (__pid_t __pid, __WAIT_STATUS __stat_loc, int __options, struct rusage *__usage) attribute_hidden

Variables

id_t id
id_t siginfo_t * infop
id_t siginfo_t int options

Function Documentation

__pid_t __libc_wait ( int __stat_loc)
__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 __wait ( __WAIT_STATUS  __stat_loc)
__pid_t __wait3 ( __WAIT_STATUS  __stat_loc,
int  __options,
struct rusage __usage 
)

Definition at line 33 of file wait3.c.

{
  if (usage != NULL)
    {
      __set_errno (ENOSYS);
      return (pid_t) -1;
    }
  return kwaitpid (stat_loc.__iptr, WAIT_ANY, options, usage, NULL);
}

Here is the call graph for this function:

__pid_t __wait4 ( __pid_t  __pid,
__WAIT_STATUS  __stat_loc,
int  __options,
struct rusage __usage 
)

Definition at line 28 of file wait4.c.

{
  return kwaitpid (stat_loc.__iptr, pid, options, usage, NULL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

__pid_t __waitpid ( __pid_t  __pid,
int __stat_loc,
int  __options 
)

Here is the caller graph for this function:


Variable Documentation

Definition at line 8 of file wait.h.

id_t siginfo_t* infop

Definition at line 8 of file wait.h.

id_t siginfo_t int options

Definition at line 8 of file wait.h.