Skip to content

Cannot find out a way to create fd_set for select call #475

New issue

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

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

Already on GitHub? # to your account

Closed
mikhail-m1 opened this issue Dec 15, 2016 · 1 comment
Closed

Cannot find out a way to create fd_set for select call #475

mikhail-m1 opened this issue Dec 15, 2016 · 1 comment

Comments

@mikhail-m1
Copy link

mikhail-m1 commented Dec 15, 2016

fd_set has a private field and no constructor. May be FD_ZERO should create new fd_set?

@alexcrichton
Copy link
Member

Thanks for the report! Like with C, you can use mem::zeroed or mem::uninitialized to create most structure.

Susurrus pushed a commit to Susurrus/libc that referenced this issue Mar 26, 2017
Susurrus pushed a commit to Susurrus/libc that referenced this issue Mar 26, 2017
Timespec

Make TimeVal an opaque Newtype, and add another Newtype for Timespec.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants