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
27
28
29
30
|
/// @file WASM stub for unix-domain-socket.cc
/// Sockets are not needed by the evaluator; all store I/O goes through the host import.
#include "lix/libutil/unix-domain-socket.hh"
#include "lix/libutil/error.hh"
#include "lix/libutil/file-descriptor.hh"
namespace nix {
AutoCloseFD createUnixDomainSocket()
{
throw Error("unix domain sockets not supported in WASM evaluator");
}
AutoCloseFD createUnixDomainSocket(const Path &, mode_t)
{
throw Error("unix domain sockets not supported in WASM evaluator");
}
void bind(int, const std::string &)
{
throw Error("unix domain sockets not supported in WASM evaluator");
}
void connect(int, const std::string &)
{
throw Error("unix domain sockets not supported in WASM evaluator");
}
} // namespace nix
|