<html> <head> <title>getpid</title> <body bgcolor=#ffffff> <h2 align=center>getpid</h2> <h4 align=center>OS/161 Reference Manual</h4> <h3>Name</h3> getpid - get process id <h3>Library</h3> Standard C Library (libc, -lc) <h3>Synopsis</h3> #include <unistd.h><br> <br> pid_t<br> getpid(void); <h3>Description</h3> getpid returns the process id of the current process. <h3>Errors</h3> getpid does not fail. </body> </html>