getegid.c 394 B

1234567891011121314151617181920
  1. /*
  2. * getegid() 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_getegid32
  11. # undef __NR_getegid
  12. # define __NR_getegid __NR_getegid32
  13. #endif
  14. #ifdef __NR_getegid
  15. _syscall_noerr0(gid_t, getegid)
  16. libc_hidden_def(getegid)
  17. #endif