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

Is readfs typo in select and pselect? #2976

Closed
giraffate opened this issue Oct 24, 2022 · 0 comments · Fixed by #2981
Closed

Is readfs typo in select and pselect? #2976

giraffate opened this issue Oct 24, 2022 · 0 comments · Fixed by #2981
Labels

Comments

@giraffate
Copy link
Contributor

Is readfds right?

https://docs.rs/libc/latest/libc/fn.select.html

pub unsafe extern "C" fn select(
    nfds: c_int,
    readfs: *mut fd_set,
    writefds: *mut fd_set,
    errorfds: *mut fd_set,
    timeout: *mut timeval
) -> c_int

https://docs.rs/libc/latest/libc/fn.pselect.html

pub unsafe extern "C" fn pselect(
    nfds: c_int,
    readfs: *mut fd_set,
    writefds: *mut fd_set,
    errorfds: *mut fd_set,
    timeout: *const timespec,
    sigmask: *const sigset_t
) -> c_int
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants