Back to index

glibc  2.9
Functions
waitpid.c File Reference
#include <errno.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <stub-tag.h>

Go to the source code of this file.

Functions

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 37 of file waitpid.c.

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

  __set_errno (ENOSYS);
  return (pid_t) -1;
}