2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
6 .. index:: GETPID, system, process ID, process ID
10 GETPID --- Process ID function
11 ******************************
13 .. function:: GETPID()
15 Returns the numerical process identifier of the current process.
18 The return value of ``GETPID`` is an ``INTEGER`` of the default
28 .. code-block:: fortran
33 .. code-block:: fortran
36 print *, "The current process ID is ", getpid()
37 print *, "Your numerical user ID is ", getuid()
38 print *, "Your numerical group ID is ", getgid()