C Library Functions  - system_getpid (3)

NAME

system_getpid(3f) - [M_system:QUERY] get PID (process ID) of current process from Fortran by calling getpid(3c) (LICENSE:PD)

CONTENTS

Synopsis
Description
Return Value
Examples

SYNOPSIS

integer function system_getpid()

DESCRIPTION

The system_getpid() function returns the process ID of the calling process.

RETURN VALUE

The value returned is the integer process ID. The system_getpid() function shall always be successful and no return value is reserved to indicate an error.

EXAMPLES

Get process PID from Fortran

   program demo_system_getpid
   use M_system, only : system_getpid
   implicit none
      write(*,*)’PID=’,system_getpid()
   end program demo_system_getpid

Results:

 >  PID=      484721


Nemo Release 3.1 system_getpid (3) June 29, 2025
Generated by manServer 1.08 from 27699e44-508e-440d-abd7-eb7d8f396d03 using man macros.