mirror of
https://github.com/NixOS/nix
synced 2025-06-29 10:31:15 +02:00
* Simplify communication with the hook a bit (don't use file
descriptors 3/4, just use stdin/stderr).
This commit is contained in:
parent
7fb548aa26
commit
3a2bbe7f8a
6 changed files with 68 additions and 117 deletions
|
@ -60,6 +60,12 @@ string readFile(const Path & path);
|
|||
/* Write a string to a file. */
|
||||
void writeFile(const Path & path, const string & s);
|
||||
|
||||
/* Read a line from a file descriptor. */
|
||||
string readLine(int fd);
|
||||
|
||||
/* Write a line to a file descriptor. */
|
||||
void writeLine(int fd, string s);
|
||||
|
||||
/* Compute the sum of the sizes of all files in `path'. */
|
||||
void computePathSize(const Path & path,
|
||||
unsigned long long & bytes, unsigned long long & blocks);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue