getpid man page on Ultrix

Printed from http://www.polarhome.com/service/man/?qf=getpid&af=0&tf=2&of=Ultrix

getpid(2)							     getpid(2)

Name
       getpid, getppid - get process identification

Syntax
       #include <sys/types.h>
       #include <unistd.h>

       pid = getpid()
       pid_t pid;

       ppid = getppid()
       pid_t ppid;

Description
       The  system  call  returns the process ID of the current process.  Most
       often it is used, with the host identifier to generate  uniquely	 named
       temporary files.

Return Values
       The  system  call  returns  the process ID of the parent of the current
       process.

Environment
   POSIX
       When your program is compiled in POSIX mode, the and functions return a
       value of type pid_t.

See Also
       gethostid(2)

								     getpid(2)
[top]

List of man pages available for Ultrix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net