1
0

db.h 515 B

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