Back to index

glibc  2.9
Functions
getpid.c File Reference
#include <errno.h>
#include <unistd.h>
#include <hurd.h>

Go to the source code of this file.

Functions

pid_t __getpid ()

Function Documentation

pid_t __getpid ( void  )

Definition at line 25 of file getpid.c.

{
  /* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock.  */
  return _hurd_pid;
}