12#ifndef ZYPP_BASE_IOTOOLS_H 
   13#define ZYPP_BASE_IOTOOLS_H 
   39  bool writeAll ( 
int fd, 
void *buf, 
size_t size );
 
   86  std::pair<ReceiveUpToResult, std::string> 
receiveUpto( FILE * file, 
char c, 
timeout_type timeout, 
bool failOnUnblockError = 
true );
 
   91  std::vector<char> 
peek_data_fd ( FILE *fd, off_t offset, 
size_t count );
 
TimeoutException(const std::string &msg_r)
Ctor taking message.
TimeoutException()
Ctor taking message.
bool writeAll(int fd, void *buf, size_t size)
BlockingMode setFILEBlocking(FILE *file, bool mode)
Enables or disabled non blocking mode on a file descriptor.
std::pair< ReceiveUpToResult, std::string > receiveUpto(FILE *file, char c, timeout_type timeout, bool failOnUnblockError)
@ WasBlocking
FD was blocking before.
@ FailedToSetMode
Failed to block or unblock the fd.
@ WasNonBlocking
FD was non blocking before.
ReadAllResult readAll(int fd, void *buf, size_t size)
BlockingMode setFDBlocking(int fd, bool mode)
static constexpr timeout_type no_timeout
std::vector< char > peek_data_fd(FILE *fd, off_t offset, size_t count)
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API