Back to index

glibc  2.9
Functions
getgid.c File Reference
#include <errno.h>
#include <unistd.h>
#include <sysdep.h>
#include <sys/syscall.h>
#include <kernel-features.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

gid_t __getgid (void)

Function Documentation

gid_t __getgid ( void  )

Definition at line 36 of file getgid.c.

{
  INTERNAL_SYSCALL_DECL (err);
#if __ASSUME_32BITUIDS > 0
  /* No error checking.  */
  return INTERNAL_SYSCALL (getgid32, err, 0);
#else
# ifdef __NR_getgid32
  if (__libc_missing_32bit_uids <= 0)
    {
      int result;

      result = INTERNAL_SYSCALL (getgid32, err, 0);
      if (! INTERNAL_SYSCALL_ERROR_P (result, err)
         || INTERNAL_SYSCALL_ERRNO (result, err) != ENOSYS)
       return result;

      __libc_missing_32bit_uids = 1;
    }
# endif /* __NR_getgid32 */

  /* No error checking.  */
  return INTERNAL_SYSCALL (getgid, err, 0);
#endif
}

Here is the call graph for this function:

Here is the caller graph for this function: