Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
posix-fs-canonicalise.hh
Go to the documentation of this file.
1#pragma once
3
4#include <sys/stat.h>
5#include <sys/time.h>
6
7#include "types.hh"
8#include "error.hh"
9
10namespace nix {
11
12typedef std::pair<dev_t, ino_t> Inode;
13typedef std::set<Inode> InodesSeen;
14
15
33void canonicalisePathMetaData(
34 const Path & path,
35#ifndef _WIN32
36 std::optional<std::pair<uid_t, uid_t>> uidRange,
37#endif
38 InodesSeen & inodesSeen);
39
40void canonicalisePathMetaData(
41 const Path & path
42#ifndef _WIN32
43 , std::optional<std::pair<uid_t, uid_t>> uidRange = std::nullopt
44#endif
45 );
46
47void canonicaliseTimestampAndPermissions(const Path & path);
48
49MakeError(PathInUse, Error);
50
51}
This file defines two main structs/classes used in nix error handling.
std::string Path
Definition types.hh:22