HPlogo MPE/iX Developer's Kit Reference Manual Volume I: HP 3000 MPE/iX Computer Systems > Chapter 4  POSIX/iX Library Function Descriptions

getpid

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Returns the process ID.

Syntax

   #include <sys/types.h>

   #include <unistd.h>

   pid_t getpid (void);

Parameters

None.

Return Values

The process ID of the calling process.

Description

The getpid() function returns the process ID (PID) of the calling process.

Implementation Considerations

None.

Errors

None.

See Also

getppid(), execl(), execv(), fork(), kill(), POSIX.1 (Section 4.1.1)

Feedback to webmaster