diff options
| author | Damien George <damien@micropython.org> | 2023-07-31 12:10:18 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-08-07 12:09:38 +1000 |
| commit | df08c38c286561c08d5ac354428074817eb0c163 (patch) | |
| tree | bd73db3f77e81239c1d25a7dca28548072e8f799 /extmod/modselect.c | |
| parent | 22106bf2fa574ba947eceb3b9cfa401c67c6a7eb (diff) | |
unix/modselect: Remove unix-specific implementation of select module.
The unix port has a custom select module which only works with objects that
have a file descriptor, eg files and sockets. On the other hand, bare
metal ports use the common extmod/modselect.c implementation of the select
module that supports polling of arbitrary objects, as long as those objects
provide a MP_STREAM_POLL in their ioctl implementation (which can be done
in C or Python).
This commit removes the unix-specific code and makes unix use the common
one provided by extmod/modselect.c instead. All objects with file
descriptors implement MP_STREAM_POLL so they continue to work.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/modselect.c')
0 files changed, 0 insertions, 0 deletions
