Home Man
Search
Today's Posts
Register

Linux & Unix Commands - Search Man Pages

Plan 9 - man page for getpid (plan9 section 2)

GETPID(2)			       System Calls Manual				GETPID(2)

NAME
       getpid, getppid - get process ids

SYNOPSIS
       #include <u.h>
       #include <libc.h>

       int getpid(void)

       int getppid(void)

DESCRIPTION
       Getpid  reads  /dev/pid (see cons(3)) and converts it to get the process id of the current
       process, a number guaranteed to be unique among all running processes on the machine  exe-
       cuting getpid.

       Getppid	reads  /dev/ppid (see cons(3)) and converts it to get the id of the parent of the
       current process.

SOURCE
       /sys/src/libc/9sys

SEE ALSO
       intro(2), cons(3), proc(3)

DIAGNOSTICS
       Returns 0 and sets errstr if unsuccessful.

											GETPID(2)


All times are GMT -4. The time now is 05:05 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password