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

Fix the sign of the EVFILT_* defines #506

Closed
wants to merge 1 commit into from
Closed

Fix the sign of the EVFILT_* defines #506

wants to merge 1 commit into from

Conversation

TethysSvensson
Copy link
Contributor

The sign of the defines are not actually consistent with where they are used.

They are used in the kevent struct, which defines the filter field as uint32_t. This is also consistent with the netbsd header files, where the field is a uint32_t and the constants are defined as e.g.:

#define	EVFILT_READ		0U

@rust-highfive
Copy link

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@TethysSvensson
Copy link
Contributor Author

Note that this only affects netbsd.

@alexcrichton
Copy link
Member

Looks good to me, but unfortunately like #503 we'll probably have to wait until the next major version :(

Susurrus pushed a commit to Susurrus/libc that referenced this pull request Mar 26, 2017
Susurrus pushed a commit to Susurrus/libc that referenced this pull request Mar 26, 2017
Improve AIO API

- Turn most `aio_*` functions into `AioCb` methods
- Add runtime checks to `AioCb` methods
- Implement `Drop` for `AioCb`
@gnzlbg
Copy link
Contributor

gnzlbg commented Feb 20, 2019

@TethysSvensson I think this can be merged without issues. Could you rebase this on top of master ?

@TethysSvensson
Copy link
Contributor Author

This was already fixed independently in a0e683e.

@TethysSvensson
Copy link
Contributor Author

As far as I can tell, this was the only change included in #787 -- so I guess no breakage was found?

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

Successfully merging this pull request may close these issues.

4 participants