1
0

db.h 445 B

1234567891011121314151617181920212223
  1. #ifndef _lub_passwd_h
  2. #define _lub_passwd_h
  3. #include <stddef.h>
  4. #ifdef HAVE_PWD_H
  5. #include <pwd.h>
  6. #endif
  7. #ifdef HAVE_GRP_H
  8. #include <grp.h>
  9. #endif
  10. /* Wrappers for ugly getpwnam_r()-like functions */
  11. #ifdef HAVE_PWD_H
  12. struct passwd *lub_db_getpwnam(const char *name);
  13. struct passwd *lub_db_getpwuid(uid_t uid);
  14. #endif
  15. #ifdef HAVE_GRP_H
  16. struct group *lub_db_getgrnam(const char *name);
  17. struct group *lub_db_getgrgid(gid_t gid);
  18. #endif
  19. #endif