1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00

Merge remote-tracking branch 'origin/master' into flakes

This commit is contained in:
Eelco Dolstra 2019-12-04 00:31:09 +01:00
commit c3c23a52ee
76 changed files with 1387 additions and 631 deletions

View file

@ -35,7 +35,7 @@ extern const std::string nativeSystem;
/* Return an environment variable. */
string getEnv(const string & key, const string & def = "");
std::optional<std::string> getEnv(const std::string & key);
/* Get the entire environment. */
std::map<std::string, std::string> getEnv();
@ -158,7 +158,7 @@ void readFull(int fd, unsigned char * buf, size_t count);
void writeFull(int fd, const unsigned char * buf, size_t count, bool allowInterrupts = true);
void writeFull(int fd, const string & s, bool allowInterrupts = true);
MakeError(EndOfFile, Error)
MakeError(EndOfFile, Error);
/* Read a file descriptor until EOF occurs. */
@ -339,10 +339,10 @@ void inline checkInterrupt()
_interrupted();
}
MakeError(Interrupted, BaseError)
MakeError(Interrupted, BaseError);
MakeError(FormatError, Error)
MakeError(FormatError, Error);
/* String tokenizer. */