system_getgid(3f) - [M_system:QUERY] get the real group ID (GID) of current process from Fortran by calling getgid(3c) (LICENSE:PD)
Synopsis
Description
Return Value
Errors
See Also
Examples
integer(kind=c_int) function system_getgid()
The getgid() function returns the real group ID of the calling process.
The getgid() should always be successful and no return value is reserved to indicate an error.
No errors are defined.
getegid(), system_geteuid(), getuid(), setegid(), seteuid(), setgid(), setregid(), setreuid(), setuid()
Get group ID from Fortran
program demo_system_getgid use M_system, only : system_getgid implicit none write(*,*)GID=,system_getgid() end program demo_system_getgidResults:
> GID= 1000
Nemo Release 3.1 | system_getgid (3m_system) | March 07, 2025 |