Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
current-process.hh
Go to the documentation of this file.
1#pragma once
3
4#include <optional>
5
6#ifndef _WIN32
7# include <sys/resource.h>
8#endif
9
10#include "types.hh"
11
12namespace nix {
13
18unsigned int getMaxCPU();
19
23void setStackSize(size_t stackSize);
24
31void restoreProcessContext(bool restoreMounts = true);
32
36std::optional<Path> getSelfExe();
37
38}