Skip to content

Commit 1cf7659

Browse files
committed
sysdeps/managarm: handle fs and posix interruption errors
1 parent 268f06f commit 1cf7659

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sysdeps/managarm/include/bits/errors.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ inline int operator|(managarm::fs::Errors e, ToErrno) {
7676
return ENOTSOCK;
7777
case managarm::fs::Errors::INTERNAL_ERROR:
7878
return EIO;
79+
case managarm::fs::Errors::INTERRUPTED:
80+
return EINTR;
7981
}
8082

8183
mlibc::panicLogger() << "unhandled managarm::fs::Errors " << static_cast<int32_t>(e)
@@ -145,6 +147,8 @@ inline int operator|(managarm::posix::Errors e, ToErrno) {
145147
return EISCONN;
146148
case managarm::posix::Errors::UNSUPPORTED_SOCKET_TYPE:
147149
return ESOCKTNOSUPPORT;
150+
case managarm::posix::Errors::INTERRUPTED:
151+
return EINTR;
148152
}
149153

150154
mlibc::panicLogger() << "unhandled managarm::posix::Errors " << static_cast<int32_t>(e)

0 commit comments

Comments
 (0)