Skip to content

Commit 1fa9bd8

Browse files
authored
target/ext/host_io: Add HostIoErrno::{EIO,ENOSYS} variants (#175)
When HostIoErrno was created, EIO and ENOSYS were missing from the GDB manual despite being supported by the File-I/O. This patch adds both to the enum.
1 parent 0a86ab9 commit 1fa9bd8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/target/ext/host_io.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ pub enum HostIoErrno {
136136
ENOENT = 2,
137137
/// Interrupted function call (POSIX.1-2001); see signal(7).
138138
EINTR = 4,
139+
/// Input/output error (POSIX.1-2001).
140+
EIO = 5,
139141
/// Bad file descriptor (POSIX.1-2001).
140142
EBADF = 9,
141143
/// Permission denied (POSIX.1-2001).
@@ -168,6 +170,8 @@ pub enum HostIoErrno {
168170
ESPIPE = 29,
169171
/// Read-only filesystem (POSIX.1-2001).
170172
EROFS = 30,
173+
/// Function not implemented (POSIX.1-2001).
174+
ENOSYS = 88,
171175
/// Filename too long (POSIX.1-2001).
172176
ENAMETOOLONG = 91,
173177
/// Unknown errno - there may not be a GDB mapping for this value

0 commit comments

Comments
 (0)