Skip to content
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

<sys/uio.h> header (Scatter-gather IO) #18

Open
glebm opened this issue Feb 8, 2020 · 8 comments
Open

<sys/uio.h> header (Scatter-gather IO) #18

glebm opened this issue Feb 8, 2020 · 8 comments

Comments

@glebm
Copy link

glebm commented Feb 8, 2020

<sys/uio.h> header is missing.
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_uio.h.html

It is needed for the asio library.

@glebm glebm changed the title <sys/uio.h> header is missing (Scatter-gather IO) <sys/uio.h> header (Scatter-gather IO) Feb 8, 2020
@WinterMute
Copy link
Member

I don't really see how we can support this header given that readv/writev are required to be atomic. We have no way to guarantee atomicity given that we're running on top of an OS that isn't POSIX compliant.

@glebm
Copy link
Author

glebm commented Feb 28, 2020

I don't see any mention of atomicity guarantees in the 2018 edition:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/readv.html
https://pubs.opengroup.org/onlinepubs/9699919799/functions/writev.html

Is it specified elsewhere?

@glebm
Copy link
Author

glebm commented Feb 28, 2020

The Linux readv is atomic but look like it's a Linux thing and not a POSIX requirement. (http://man7.org/linux/man-pages/man2/readv.2.html)

@Levev
Copy link

Levev commented Jul 3, 2023

I'm curious if there is a method to enable websockets on the switch. I've looked far and wide and I have yet to come across a library that provides this functionality and can be actually compiled for the switch

@xfangfang
Copy link

@Levev This works fine for me: https://github.com/xfangfang/mongoose

@Levev
Copy link

Levev commented Jul 3, 2023

@xfangfang thank you so much, you just saved my project!

@antigloss
Copy link

Still no plan to add <sys/uio.h> header?
I tried to use asio to develop a switch app today, got the same error as glebm.

@WinterMute
Copy link
Member

WinterMute commented Dec 21, 2023

Still no plan to add <sys/uio.h> header? I tried to use asio to develop a switch app today, got the same error as glebm.

Upstream newlib snapshot has been delayed until tomorrow. We'll probably have a look when we're doing toolchain updates which will likely be in the new year depending on how much work it turns out to be. We currently have something else in progress that should hopefully see a release soon so it will have to wait until that's done.

fwiw, if there were no plans at all then we'd have just closed this issue. Thanks for the reminder thiough.

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

No branches or pull requests

5 participants