summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authorPancakeTAS <pancake@mgnet.work>2026-06-25 12:33:32 +0200
committerPancakeTAS <pancake@mgnet.work>2026-06-25 12:33:32 +0200
commitcf7e9496e92e496840c5cd235f4cd52a6789a11d (patch)
tree6749f44341ba6445d0ec63a57bb3c5799841cb1a /src/helper
parentProject hierarchy overhaul (diff)
Generalize device class
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/ioctl.cpp7
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;