summaryrefslogtreecommitdiff
path: root/extmod/vfs_posix_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/vfs_posix_file.c')
-rw-r--r--extmod/vfs_posix_file.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/extmod/vfs_posix_file.c b/extmod/vfs_posix_file.c
index cfc56df99..41d7622b3 100644
--- a/extmod/vfs_posix_file.c
+++ b/extmod/vfs_posix_file.c
@@ -209,6 +209,15 @@ STATIC mp_uint_t vfs_posix_file_ioctl(mp_obj_t o_in, mp_uint_t request, uintptr_
if (pfd.revents & POLLOUT) {
ret |= MP_STREAM_POLL_WR;
}
+ if (pfd.revents & POLLERR) {
+ ret |= MP_STREAM_POLL_ERR;
+ }
+ if (pfd.revents & POLLHUP) {
+ ret |= MP_STREAM_POLL_HUP;
+ }
+ if (pfd.revents & POLLNVAL) {
+ ret |= MP_STREAM_POLL_NVAL;
+ }
}
return ret;
#endif