Nix
2.26.3
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
users.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
types.hh
"
5
6
#ifndef _WIN32
7
# include <sys/types.h>
8
#endif
9
10
namespace
nix {
11
12
std::string getUserName();
13
14
#ifndef _WIN32
18
Path
getHomeOf
(uid_t userId);
19
#endif
20
24
Path
getHome
();
25
29
Path
getCacheDir();
30
34
Path
getConfigDir();
35
39
std::vector<Path> getConfigDirs();
40
44
Path
getDataDir();
45
49
Path
getStateDir();
50
54
Path
createNixStateDir();
55
60
std::string expandTilde(std::string_view path);
61
62
68
bool
isRootUser
();
69
70
}
types.hh
nix::Path
std::string Path
Definition
types.hh:22
nix::getHome
Path getHome()
nix::getHomeOf
Path getHomeOf(uid_t userId)
nix::isRootUser
bool isRootUser()
src
libutil
users.hh
Generated by
1.13.2