Thanks to visit codestin.com
Credit goes to github.com

Skip to content

extmod/uos: Expose stream ioctl constants, an ioctl() function #10030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

damz
Copy link
Contributor

@damz damz commented Nov 20, 2022

This PR exposes a new uos.ioctl() function, and the related ioctl constants.

I have three reasons to do this:

  • It would allow us to write unit tests for ussl: Fix polling of SSL sockets #9871;
  • It would remove the need for each custom implementation of io.IOBase to re-define all these constants;
  • It enables advanced use cases where an user-space implementation of ioctl(MP_STREAM_POLL) needs to forward that request to an underlying stream (like ussl has to do)

@damz damz closed this Nov 20, 2022
@damz damz deleted the mr/uos-ioctl branch November 20, 2022 21:31
@damz
Copy link
Contributor Author

damz commented Nov 20, 2022

See #10031

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant