[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Base Operating System and Extensions Technical Reference, Volume 1

getgid or getegid Subroutine

Purpose

Gets the process group IDs.

Library

Standard C Library (libc.a)

Syntax

#include <unistd.h>
#include <sys/types.h>
gid_t getgid (void);
gid_t getegid (void);

Description

The getgid subroutine returns the real group ID of the calling process.

The getegid subroutine returns the effective group ID of the calling process.

Return Values

The getgid and getegid subroutines return the requested group ID. The getgid and getegid subroutines are always successful.

Implementation Specifics

These subroutines are part of Base Operating System (BOS) Runtime.

Related Information

The getgroups subroutine, initgroups subroutine, setgid subroutine, setgroups subroutine.

The groups command, setgroups command.

List of Security and Auditing Subroutines and Subroutines Overview in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]