geteuid.c 394 B

1234567891011121314151617181920
  1. /*
  2. * geteuid() for uClibc
  3. *
  4. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  5. *
  6. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. */
  8. #include <sys/syscall.h>
  9. #include <unistd.h>
  10. #ifdef __NR_geteuid32
  11. # undef __NR_geteuid
  12. # define __NR_geteuid __NR_geteuid32
  13. #endif
  14. #ifdef __NR_geteuid
  15. _syscall_noerr0(uid_t, geteuid)
  16. libc_hidden_def(geteuid)
  17. #endif