userdb.h 550 B

1234567891011121314151617181920212223242526
  1. /* Copyright (c) 2003-2004, Roger Dingledine
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2018, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. /**
  6. * \file userdb.h
  7. *
  8. * \brief Header for userdb.c
  9. **/
  10. #ifndef TOR_USERDB_H
  11. #define TOR_USERDB_H
  12. #include "orconfig.h"
  13. #ifndef _WIN32
  14. #include <sys/types.h>
  15. struct passwd;
  16. const struct passwd *tor_getpwnam(const char *username);
  17. const struct passwd *tor_getpwuid(uid_t uid);
  18. char *get_user_homedir(const char *username);
  19. #endif
  20. #endif