-
Notifications
You must be signed in to change notification settings - Fork 674
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
Fixed ptrace::Request cfg conditions #892
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please line-wrap everything to 80 columns? That will make this PR easier to review. Also, it needs a CHANGELOG entry.
@asomers Thnak you for your comment, I applied line-wrap, and added CHANGELOG entry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good. Just tweak the wording of the changelog and squash your commits, and I'll merge them.
CHANGELOG.md
Outdated
@@ -51,6 +51,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). | |||
([#833](https://github.com/nix-rust/nix/pull/833)) | |||
- `ioctl_write_int!` now properly supports passing a `c_ulong` as the parameter on Linux non-musl targets | |||
([#833](https://github.com/nix-rust/nix/pull/833)) | |||
- Fixed `ptrace::Request` cfg conditions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about "Enabled more ptrace::Request
definitions for uncommon Linux platforms"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll change to it.
Should it be moved to Added
or Changed
section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ehh, it could go either way. Maybe Changed
would be best.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it to Changed
setcion.
8e0e904
to
42ffc88
Compare
42ffc88
to
1dda866
Compare
I squashed and changed commit message. |
bors r+ |
892: Fixed ptrace::Request cfg conditions r=asomers a=dalance The cfg condition of ptrace::Request seems to be different from libc. For example, PTRACE_GETREGS is defined by libc to i686-unknown-linux-gnu target, but it is not defined in ptrace::Request. I tried to change the cfg condition to the same as libc's condition. I thinks this change covers the definitions under src/unix/notbsd directory in libc repository. Co-authored-by: dalance <[email protected]>
The cfg condition of ptrace::Request seems to be different from libc.
For example, PTRACE_GETREGS is defined by libc to i686-unknown-linux-gnu target, but it is not defined in ptrace::Request.
I tried to change the cfg condition to the same as libc's condition.
I thinks this change covers the definitions under src/unix/notbsd directory in libc repository.