C Library Functions - system_getgid (3)
NAME
system_getgid(3f) - [M_system:QUERY] get the real group ID (GID) of
current process from Fortran by calling getgid(3c)
(LICENSE:PD)
CONTENTS
Synopsis
Description
Return Value
Errors
See Also
Examples
SYNOPSIS
integer(kind=c_int) function system_getgid()
DESCRIPTION
The getgid() function returns the real group ID of the calling
process.
RETURN VALUE
The getgid() should always be successful and no return value is
reserved to indicate an error.
ERRORS
No errors are defined.
SEE ALSO
getegid(), system_geteuid(), getuid(), setegid(), seteuid(), setgid(),
setregid(), setreuid(), setuid()
EXAMPLES
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_getgid
Results:
> GID= 1000
| Nemo Release 3.1 | system_getgid (3) | June 29, 2025 |
Generated by manServer 1.08 from 754ceb6a-7ea2-4a41-9e2d-ca53a2d97850 using man macros.