aboutsummaryrefslogtreecommitdiff
path: root/src/lib/fs/userdb.h
blob: 5c3979487388586f4f631c97fff61fd8b6b9542d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Copyright (c) 2003-2004, Roger Dingledine
 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
 * Copyright (c) 2007-2019, The Tor Project, Inc. */
/* See LICENSE for licensing information */

/**
 * \file userdb.h
 *
 * \brief Header for userdb.c
 **/

#ifndef TOR_USERDB_H
#define TOR_USERDB_H

#include "orconfig.h"

#ifndef _WIN32
#include <sys/types.h>

struct passwd;
const struct passwd *tor_getpwnam(const char *username);
const struct passwd *tor_getpwuid(uid_t uid);
char *get_user_homedir(const char *username);
#endif

#endif