mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Put some file descriptor functions in unix and windows namespaces
It is misleading when platform-specific functions are in the overall `nix` namespace. More namespaces also makes for nicer doxygen.
This commit is contained in:
parent
afdd12be5e
commit
ff87c1a318
7 changed files with 19 additions and 15 deletions
|
@ -24,7 +24,7 @@ AutoCloseFD createUnixDomainSocket()
|
|||
if (!fdSocket)
|
||||
throw SysError("cannot create Unix domain socket");
|
||||
#ifndef _WIN32
|
||||
closeOnExec(fdSocket.get());
|
||||
unix::closeOnExec(fdSocket.get());
|
||||
#endif
|
||||
return fdSocket;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue