getgrgid_r.c 417 B

12345678910111213
  1. /*
  2. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  3. *
  4. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  5. */
  6. #define GETXXKEY_R_FUNC getgrgid_r
  7. #define GETXXKEY_R_PARSER __parsegrent
  8. #define GETXXKEY_R_ENTTYPE struct group
  9. #define GETXXKEY_R_TEST(ENT) ((ENT)->gr_gid == key)
  10. #define DO_GETXXKEY_R_KEYTYPE gid_t
  11. #define DO_GETXXKEY_R_PATHNAME _PATH_GROUP
  12. #include "pwd_grp.c"