CIODevice: Add is_open()

This commit is contained in:
Andreas Kling 2019-09-04 15:13:55 +02:00
parent ce837d157f
commit 16de02cce0

View file

@ -21,6 +21,7 @@ public:
int fd() const { return m_fd; }
unsigned mode() const { return m_mode; }
bool is_open() const { return m_mode != NotOpen; }
bool eof() const { return m_eof; }
int error() const { return m_error; }