userdb.h 489 B

1234567891011121314151617181920
  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. #ifndef TOR_USERDB_H
  6. #define TOR_USERDB_H
  7. #include "orconfig.h"
  8. #ifndef _WIN32
  9. #include <sys/types.h>
  10. struct passwd;
  11. const struct passwd *tor_getpwnam(const char *username);
  12. const struct passwd *tor_getpwuid(uid_t uid);
  13. char *get_user_homedir(const char *username);
  14. #endif
  15. #endif