getgid.c 555 B

1234567891011121314151617181920212223242526
  1. /*
  2. * getgid() 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_getxgid
  11. # undef __NR_getgid
  12. # define __NR_getgid __NR_getxgid
  13. #endif
  14. #ifdef __NR_getgid32
  15. # undef __NR_getgid
  16. # define __NR_getgid __NR_getgid32
  17. #endif
  18. _syscall_noerr0(gid_t, getgid)
  19. libc_hidden_def(getgid)
  20. #if !defined __NR_getegid32 && !defined __NR_getegid
  21. strong_alias(getgid,getegid)
  22. libc_hidden_def(getegid)
  23. #endif