12 #ifndef ZYPP_BASE_FD_H
13 #define ZYPP_BASE_FD_H
50 Fd(
const Pathname & file_r,
int open_flags, mode_t mode = 0 );
61 {
return m_fd != -1; }
83 #endif // ZYPP_BASE_FD_H
Fd & operator=(const Fd &)
No assign.
void close()
Explicitly close the file.
int m_fd
The filedescriptor.
bool isOpen() const
Test for valid filedescriptor.
Fd(const Pathname &file_r, int open_flags, mode_t mode=0)
Ctor opens file.
Assert close called on open filedescriptor.
int fd() const
Return the filedescriptor.