mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-09 01:20:46 +00:00
CIODevice: Add is_open()
This commit is contained in:
parent
ce837d157f
commit
16de02cce0
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue