Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(2)

setuid(2)



  getuid(2)                           CLIX                           getuid(2)



  NAME

    getuid, geteuid - Gets the process' real or effective user ID

  LIBRARY

    Standard C Library (libc.a)

  SYNOPSIS

    #include <sys/types.h>

    uid_t getuid(
      void );

    uid_t geteuid(
      void );

  DESCRIPTION

    The getuid() function returns the real user ID of the current process.

    The geteuid() function returns the effective user ID of the current
    process.

  EXAMPLES

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

    real_uid = getuid();
    effective_uid = geteuid();


  RETURN VALUES

    The getuid() and geteuid() functions return the requested user ID.

  ERRORS

    These functions never set errno.

  RELATED INFORMATION

    Functions:  intro(2), setuid(2)










  2/94 - Intergraph Corporation                                              1




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