mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-09 16:23:23 +03:00
01d9fe4d9f
These are mostly copied from riscv64. _Addr and _Reg had to become int to match compiler-controlled parts of the ABI (result type of sizeof, etc.). There is no kernel stat struct; the userspace stat matches glibc in the sizes and offsets of all fields (including glibc's __dev_t __pad1). The jump buffer is 12 words larger to account for 12 saved double-precision floats; additionally it should be 64-bit aligned to save doubles. The syscall list was significantly revised by deleting all time32 and pre-statx syscalls, and renaming several syscalls that have different names depending on __BITS_PER_LONG, notably mmap2 and _llseek. futex was added as an alias to futex_time64 since it is widely used by software which does not pass time arguments.
7 lines
174 B
C
7 lines
174 B
C
#include <signal.h>
|
|
|
|
#define ELF_NGREG 32
|
|
#define ELF_NFPREG 33
|
|
typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG];
|
|
typedef union __riscv_mc_fp_state elf_fpregset_t;
|