diff options
| author | PancakeTAS <pancake@mgnet.work> | 2026-06-25 12:33:32 +0200 |
|---|---|---|
| committer | PancakeTAS <pancake@mgnet.work> | 2026-06-25 12:33:32 +0200 |
| commit | cf7e9496e92e496840c5cd235f4cd52a6789a11d (patch) | |
| tree | 6749f44341ba6445d0ec63a57bb3c5799841cb1a /src/helper | |
| parent | Project hierarchy overhaul (diff) | |
Generalize device class
Diffstat (limited to '')
| -rw-r--r-- | src/helper/ioctl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/helper/ioctl.cpp b/src/helper/ioctl.cpp index 21a1ccb..8889efc 100644 --- a/src/helper/ioctl.cpp +++ b/src/helper/ioctl.cpp @@ -19,6 +19,13 @@ Exception::Exception(int fd, unsigned long op) this->m_fd, this->m_op ); break; + case EACCES: + this->m_code = Error::NoAccess; + this->m_what = std::format( + "ioctl({}, 0x{:x}) failed: Permission denied", + this->m_fd, this->m_op + ); + break; case EINVAL: case ENOTTY: this->m_code = Error::InvalidArgument; |
