Skip to content

Unusable syscall numbers defined for riscv32gc-unknown-linux-gnu #5379

Description

@taiki-e

riscv32gc-unknown-linux-gnu currently defines this:

pub const SYS_futex: c_long = 98;

But riscv32 doesn't have time32 syscalls:
https://github.com/torvalds/linux/blob/v7.1/arch/riscv/kernel/Makefile.syscalls
https://github.com/torvalds/linux/blob/v7.1/include/uapi/asm-generic/unistd.h#L269
https://github.com/bminor/glibc/blob/glibc-2.42/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h#L64-L68

These must either be left undefined or aliased to time64 syscalls, as musl does:

pub const SYS_futex: c_long = SYS_futex_time64;

I only checked the SYS_futex, but other time32 system calls may have the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions