12 #ifndef ZYPP_BASE_IOTOOLS_H 13 #define ZYPP_BASE_IOTOOLS_H 18 #include <zypp-core/base/Exception.h> 38 bool writeAll (
int fd,
void *buf,
size_t size );
85 std::pair<ReceiveUpToResult, std::string>
receiveUpto( FILE * file,
char c,
timeout_type timeout,
bool failOnUnblockError =
true );
TimeoutException()
Ctor taking message.
BlockingMode setFILEBlocking(FILE *file, bool mode)
Enables or disabled non blocking mode on a file descriptor.
Failed to block or unblock the fd.
TimeoutException(const std::string &msg_r)
Ctor taking message.
bool writeAll(int fd, void *buf, size_t size)
std::pair< ReceiveUpToResult, std::string > receiveUpto(FILE *file, char c, timeout_type timeout, bool failOnUnblockError)
Base class for Exception.
FD was non blocking before.
static const timeout_type no_timeout
virtual ~TimeoutException() noexcept override
Dtor.
ReadAllResult readAll(int fd, void *buf, size_t size)
BlockingMode setFDBlocking(int fd, bool mode)