14 #include <sys/types.h>
36 Fd::Fd(
const Pathname & file_r,
int open_flags, mode_t mode )
39 m_fd = open( file_r.asString().c_str(), open_flags, mode );
#define ZYPP_THROW_ERRNO_MSG(EXCPTTYPE, MSG)
Throw Exception built from errno and a message string.
std::string asString() const
Error message provided by dumpOn as string.
void close()
Explicitly close the file.
int m_fd
The filedescriptor.
Base class for Exception.
Fd(const Pathname &file_r, int open_flags, mode_t mode=0)
Ctor opens file.