getpid man page on Plan9

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

GETPID(2)							     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 executing 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), exec(2), cons(3), proc(3)

DIAGNOSTICS
       Returns 0 and sets errstr if unsuccessful.

								     GETPID(2)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Plan9

List of man pages available for Plan9

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