*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> getpid (2)              
Title
Content
Arch
Section
 

GETPID(2)

Contents


NAME    [Toc]    [Back]

     getpid, getppid - get parent or calling process identification

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <unistd.h>

     pid_t
     getpid(void);

     pid_t
     getppid(void);

DESCRIPTION    [Toc]    [Back]

     getpid() returns the process ID of the calling process.  The ID is guaranteed
 to be unique and is useful for constructing temporary file names.

     getppid() returns the process ID of the parent of the calling process.

ERRORS    [Toc]    [Back]

     The getpid() and getppid() functions are always successful, and no return
     value is reserved to indicate an error.

SEE ALSO    [Toc]    [Back]

      
      
     gethostid(3)

STANDARDS    [Toc]    [Back]

     getpid() and getppid() conform to ISO/IEC 9945-1:1990 (``POSIX.1'').

BSD                              June 4, 1993                              BSD
[ Back ]
 Similar pages
Name OS Title
pthread_atfork Tru64 Declares fork handler routines to be called when the calling thread's process forks a child process
pxfwait IRIX Obtains information about a calling process' child process
getppid Tru64 Get the process ID, process group ID, or parent process ID
getpgid HP-UX get process, process group and parent process ID.
getpgrp HP-UX get process, process group and parent process ID.
getpid HP-UX get process, process group and parent process ID.
getpgrp2 HP-UX get process, process group and parent process ID.
getppid HP-UX get process, process group and parent process ID.
getpid IRIX get process, process group, and parent process IDs
getpid Tru64 Get the process ID, process group ID, or parent process ID
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service