unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (HP-UX-11.11)
Page:
Section:
Apropos / Subsearch:
optional field



 getuid(2)							   getuid(2)




 NAME
      getuid, geteuid, getgid, getegid - get real user, effective user, real
      group, and effective group IDs

 SYNOPSIS
      #include <&lt&lt&lt;unistd.h>&gt&gt&gt;

      uid_t getuid(void);

      uid_t geteuid(void);

      gid_t getgid(void);

      gid_t getegid(void);

 DESCRIPTION
      The following functions return the information indicated:

	   getuid()	     Real-user-ID of the calling process.

	   geteuid()	     Effective-user-ID of the calling process.

	   getgid()	     Real-group-ID of the calling process.

	   getegid()	     Effective-group-ID of the calling process.

      No means is available for ascertaining the saved-user-ID or saved-
      group-ID of a process.

 SEE ALSO
      setuid(2).

 STANDARDS CONFORMANCE
      getuid(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1

      getegid(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1

      geteuid(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1

      getgid(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1














 Hewlett-Packard Company	    - 1 -   HP-UX Release 11i: November 2000