10 #include <zypp-core/base/String.h> 12 #include <sys/types.h> 36 if ( mode_r == std::ios_base::in ) {
37 _fd = ::open( name_r, O_RDONLY | O_CLOEXEC );
40 }
else if ( mode_r == std::ios_base::out ) {
41 _fd = ::open( name_r, O_WRONLY|O_CREAT|O_CLOEXEC, 0666 );
50 const int errSrv = errno;
123 ssize_t wrote = zck_write(
_zContext, buffer_r, count_r );
bool writeData(const char *buffer_r, std::streamsize count_r)
std::map< std::string, std::string > read(const Pathname &_path)
Read sysconfig file path_r and return (key,valye) pairs.
bool openImpl(const char *name_r, std::ios_base::openmode mode_r)
bool canSeek(std::ios_base::seekdir way_r) const
off_t seekTo(off_t off_r, std::ios_base::seekdir way_r, std::ios_base::openmode omode_r)
std::streamsize readData(char *buffer_r, std::streamsize maxcount_r)
std::string strerror(int errno_r)
Return string describing the error_r code.
Easy-to use interface to the ZYPP dependency resolver.