Back to index

glibc  2.9
Functions
geteuid.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

uid_t __geteuid (void)

Function Documentation

uid_t __geteuid ( void  )

Definition at line 35 of file geteuid.c.

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

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

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

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

Here is the call graph for this function:

Here is the caller graph for this function: