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

RLIM_* constants mismatch with system header files #2724

Open
Tracked by #27
Nugine opened this issue Mar 15, 2022 · 0 comments
Open
Tracked by #27

RLIM_* constants mismatch with system header files #2724

Nugine opened this issue Mar 15, 2022 · 0 comments
Labels
C-bug Category: bug

Comments

@Nugine
Copy link

Nugine commented Mar 15, 2022

The three constants defined in libc are different from those defined in <sys/resources.h> on some platforms.

libc::RLIM_INFINITY
libc::RLIM_SAVED_CUR
libc::RLIM_SAVED_MAX

Targets

arm-unknown-linux-gnueabi
arm-unknown-linux-gnueabihf
armv5te-unknown-linux-gnueabi
armv7-unknown-linux-gnueabihf
i586-unknown-linux-gnu
i686-unknown-linux-gnu
mips-unknown-linux-gnu
mipsel-unknown-linux-gnu
powerpc-unknown-linux-gnu

Test code: https://github.com/Nugine/libc-rlim-mismatch/blob/master/src/lib.rs
Test result: https://github.com/Nugine/libc-rlim-mismatch/actions/runs/1984774750

This bug is initially discovered in Nugine/rlimit tests.

Test result: https://github.com/Nugine/rlimit/actions/runs/1984623879
Workflow file: https://github.com/Nugine/rlimit/actions/runs/1984623879/workflow
Issue: Nugine/rlimit#30

@Nugine Nugine added the C-bug Category: bug label Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

1 participant