Skip to content

RLIM_* constants mismatch with system header files #2724

Open
@Nugine

Description

@Nugine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions