[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, 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 (getgroups Subroutine) subroutine, initgroups (initgroups Subroutine) subroutine, setgid subroutine, setgroups subroutine.

The groups command, setgroups command.

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


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]