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

Add RLIMIT_* constants for RISC-V 64-bit GNU/Linux and minor fixes for type definitions #1745

Merged
merged 2 commits into from Apr 29, 2020

Conversation

msizanoen1
Copy link
Contributor

No description provided.

@rust-highfive
Copy link

r? @JohnTitor

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

msizanoen1 referenced this pull request in nix-rust/nix Apr 25, 2020
@andreas-schwab
Copy link
Contributor

That doesn't make sense. PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS, PTRACE_GETFPXREGS, PTRACE_SETFPXREGS don't exist on riscv64, and PTRACE_PEEKSIGINFO_SHARED is not architecture dependent.

@msizanoen1
Copy link
Contributor Author

msizanoen1 commented Apr 25, 2020

I checked and it seems like those constants are not in the Linux headers for riscv64 but it is still in the glibc headers and therefore is mistakenly included.

@msizanoen1
Copy link
Contributor Author

PTRACE_PEEKSIGINFO_SHARED is arch-independent but is not present in arch-independent files so this should be fixed in another PR.

@msizanoen1 msizanoen1 changed the title Add more PTRACE_* and RLIMIT_* constants for RISC-V 64-bit GNU/Linux Add RLIMIT_* constants for RISC-V 64-bit GNU/Linux and minor fixes for type definitions Apr 25, 2020
@msizanoen1
Copy link
Contributor Author

There is still another part of this PR for minor type definition fixes by removing redundant type definitions that is already in the platform-independent type defintions.

tblah added a commit to tblah/rustup that referenced this pull request Apr 28, 2020
This just forces effective-limits to use a patched libc with
riscv64-unknown-linux-gnu support for RLIMIT constants.

See rust-lang/libc#1745
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@JohnTitor JohnTitor merged commit 3218423 into rust-lang:master Apr 29, 2020
@msizanoen1 msizanoen1 deleted the riscv-add-constants branch April 29, 2020 08:27
tblah added a commit to tblah/effective-limits.rs that referenced this pull request Apr 29, 2020
The riscv65gc-unknown-linux-gnu target requires fixes in
rust-lang/libc#1745. These are merged but aren't
in a release yet.
tblah added a commit to tblah/rustup that referenced this pull request Apr 29, 2020
This just forces effective-limits to use a patched libc with
riscv64-unknown-linux-gnu support for RLIMIT constants.

See rust-lang/libc#1745
tblah added a commit to tblah/rustup that referenced this pull request Apr 29, 2020
This just forces effective-limits to use a patched libc with
riscv64-unknown-linux-gnu support for RLIMIT constants.

See rust-lang/libc#1745
@tblah tblah mentioned this pull request May 12, 2020
tblah added a commit to tblah/effective-limits.rs that referenced this pull request May 13, 2020
libc 0.2.70 includes rust-lang/libc#1745 which
fixes compilation for riscv64gc-unknown-linux-gnu.
rbtcollins pushed a commit to rbtcollins/effective-limits.rs that referenced this pull request May 25, 2020
libc 0.2.70 includes rust-lang/libc#1745 which
fixes compilation for riscv64gc-unknown-linux-gnu.
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.

None yet

4 participants