getgrnam_r.c 442 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 getgrnam_r
  7. #define GETXXKEY_R_PARSER __parsegrent
  8. #define GETXXKEY_R_ENTTYPE struct group
  9. #define GETXXKEY_R_TEST(ENT) (!strcmp((ENT)->gr_name, key))
  10. #define DO_GETXXKEY_R_KEYTYPE const char *__restrict
  11. #define DO_GETXXKEY_R_PATHNAME _PATH_GROUP
  12. #include "pwd_grp.c"