mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 21:16:02 +01:00
Remove std::set alias
This commit is contained in:
parent
afcdc7606c
commit
fe9afb65bb
11 changed files with 15 additions and 16 deletions
|
|
@ -11,12 +11,11 @@
|
|||
|
||||
namespace nix {
|
||||
|
||||
using std::set;
|
||||
using std::vector;
|
||||
using std::string;
|
||||
|
||||
typedef std::list<string> Strings;
|
||||
typedef set<string> StringSet;
|
||||
typedef std::set<string> StringSet;
|
||||
typedef std::map<string, string> StringMap;
|
||||
|
||||
/* Paths are just strings. */
|
||||
|
|
@ -24,7 +23,7 @@ typedef std::map<string, string> StringMap;
|
|||
typedef string Path;
|
||||
typedef std::string_view PathView;
|
||||
typedef std::list<Path> Paths;
|
||||
typedef set<Path> PathSet;
|
||||
typedef std::set<Path> PathSet;
|
||||
|
||||
typedef vector<std::pair<string, string>> Headers;
|
||||
|
||||
|
|
|
|||
|
|
@ -1174,7 +1174,7 @@ void runProgram2(const RunOptions & options)
|
|||
}
|
||||
|
||||
|
||||
void closeMostFDs(const set<int> & exceptions)
|
||||
void closeMostFDs(const std::set<int> & exceptions)
|
||||
{
|
||||
#if __linux__
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ std::vector<char *> stringsToCharPtrs(const Strings & ss);
|
|||
|
||||
/* Close all file descriptors except those listed in the given set.
|
||||
Good practice in child processes. */
|
||||
void closeMostFDs(const set<int> & exceptions);
|
||||
void closeMostFDs(const std::set<int> & exceptions);
|
||||
|
||||
/* Set the close-on-exec flag for the given file descriptor. */
|
||||
void closeOnExec(int fd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue