The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

getppid - get the parent process ID

 SYNOPSIS



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

pid_t getppid(void);

 DESCRIPTION

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

 RETURN VALUE

The getppid() function is always successful and no return value is reserved to indicate an error.

 ERRORS

No errors are defined.

 EXAMPLES

None.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

exec, fork(), getpgid(), getpgrp(), getpid(), kill(), setpgid(), setsid(), <sys/types.h>, <unistd.h>.

DERIVATION

Derived from Issue 1 of the SVID.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]