Skip to content

change FD_ISSET to use *const raw pointer.#308

Closed
cpjreynolds wants to merge 1 commit intorust-lang:masterfrom
cpjreynolds:master
Closed

change FD_ISSET to use *const raw pointer.#308
cpjreynolds wants to merge 1 commit intorust-lang:masterfrom
cpjreynolds:master

Conversation

@cpjreynolds
Copy link
Copy Markdown

Considering that FD_ISSET does not modify fd_set, it only needs a *const pointer to it.

@rust-highfive
Copy link
Copy Markdown

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@alexcrichton
Copy link
Copy Markdown
Member

This unfortunately has the potential to be a breaking change, and according to the spec it looks like this "function" signature uses *mut instead of *const?

@cpjreynolds
Copy link
Copy Markdown
Author

Interesting, I hadn't considered the spec when making the changes. Unfortunate that the spec doesn't specify a const pointer. Thanks anyway! I'll close this now.

@cpjreynolds cpjreynolds closed this Jun 2, 2016
danielverkamp pushed a commit to danielverkamp/libc that referenced this pull request Apr 28, 2020
Looks like intrinsics that weren't listing a target feature were accidentally
omitted from the verification logic, so this commit fixes that!

Along the way I've ended up filing rust-lang#307 and rust-lang#308 for detected inconsistencies.
danielverkamp pushed a commit to danielverkamp/libc that referenced this pull request Apr 28, 2020
Some more info should be in rust-lang#308, and otherwise ...

Closes rust-lang#308
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.

3 participants