kopia lustrzana https://github.com/micropython/micropython
extmod/vfs_posix_file: Add poll support for missing ERR,HUP,NVAL values.
Signed-off-by: Damien George <damien@micropython.org>pull/12138/head
rodzic
6a179019e8
commit
22106bf2fa
|
@ -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) {
|
if (pfd.revents & POLLOUT) {
|
||||||
ret |= MP_STREAM_POLL_WR;
|
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;
|
return ret;
|
||||||
#endif
|
#endif
|
||||||
|
|
Ładowanie…
Reference in New Issue