Skip to content

Commit

Permalink
io: change unimplemented ioperm() status from EIO to ENOSYS
Browse files Browse the repository at this point in the history
jewelcodes committed Jan 17, 2025
1 parent ab4fc87 commit 917a258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io.c
Original file line number Diff line number Diff line change
@@ -148,7 +148,7 @@ int close(Thread *t, uint64_t id, int fd) {

int ioperm(struct Thread *t, uintptr_t from, uintptr_t count, int enable) {
// not all platforms implement I/O ports and this is really relevant to x86
// on platforms that don't implement I/O ports, simply return -EIO
// on platforms that don't implement I/O ports, simply return -ENOSYS

if(!count) return -EINVAL;

0 comments on commit 917a258

Please sign in to comment.