Tor
0.4.9.1-alpha-dev
lib
fs
userdb.h
Go to the documentation of this file.
1
/* Copyright (c) 2003-2004, Roger Dingledine
2
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3
* Copyright (c) 2007-2021, The Tor Project, Inc. */
4
/* See LICENSE for licensing information */
5
6
/**
7
* \file userdb.h
8
*
9
* \brief Header for userdb.c
10
**/
11
12
#ifndef TOR_USERDB_H
13
#define TOR_USERDB_H
14
15
#include "orconfig.h"
16
17
#ifndef _WIN32
18
#include <sys/types.h>
19
20
struct
passwd;
21
const
struct
passwd *
tor_getpwnam
(
const
char
*username);
22
const
struct
passwd *
tor_getpwuid
(uid_t uid);
23
char
*
get_user_homedir
(
const
char
*username);
24
#endif
/* !defined(_WIN32) */
25
26
#endif
/* !defined(TOR_USERDB_H) */
get_user_homedir
char * get_user_homedir(const char *username)
Definition:
userdb.c:127
tor_getpwnam
const struct passwd * tor_getpwnam(const char *username)
Definition:
userdb.c:70
tor_getpwuid
const struct passwd * tor_getpwuid(uid_t uid)
Definition:
userdb.c:106
Generated by
1.9.4