Merge branch 'v0.21.x' into master

This commit is contained in:
Max Kellermann
2020-09-07 20:17:44 +02:00
5 changed files with 42 additions and 48 deletions

View File

@@ -243,6 +243,12 @@ public:
return ::write(fd, buffer, length);
}
/**
* Write until all of the given buffer has been written.
* Throws on error.
*/
void FullWrite(const void *buffer, size_t length);
#ifndef _WIN32
int Poll(short events, int timeout) const noexcept;