Query: getpid
OS: ultrix
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
getpid(2) System Calls Manual 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)
Related Man Pages |
---|
getpid(2) - opensolaris |
getpgrp(2) - opensolaris |
getppid(2) - opensolaris |
getppid(2) - osf1 |
getpid(2) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Help for getpid() |
Error while using getpid() is shell script |