Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getgroups(2)

intro(2)

setgroups(2)

initgroups(3)



  getgid(2)                           CLIX                           getgid(2)



  NAME

    getgid, getegid - Gets the process' group IDs

  LIBRARY

    Standard C Library (libc.a)

  SYNOPSIS

    #include <sys/types.h>

    gid_t getgid(
      void );

    gid_t getegid(
      void );

  DESCRIPTION

    The getgid() function returns the real group ID of the calling process.

    The getegid() function returns the effective group ID of the calling
    process.

  EXAMPLES

    For a process to determine its real and effective group IDs:

    real_gid = getgid();
    effective_gid = getegid();


  RETURN VALUES

    The getgid() and getegid() functions return the requested group ID.

  ERRORS

    This function never sets errno.

  RELATED INFORMATION

    Functions: getgroups(2), intro(2), setgroups(2), initgroups(3)










  2/94 - Intergraph Corporation                                              1




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026