aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/linux/syscalls.zig
AgeCommit message (Collapse)Author
2025-08-14Linux: Update syscall list for 6.16Stephen Gregoratto
The generic syscall table has different names for syscalls that take a timespec64 on 32-bit targets, in that it adds the `_time64` suffix. Similarly, the `_time32` suffix has been removed. I'm not sure if the existing logic for determining the proper timespec struct to use was subtly broken, but it should be a good chance to finish #4726 - we only have 12 years after all... As for the changes since 6.11..6.16: 6.11: - x86_64 gets `uretprobe`, a syscall to speed up returning BPF probes. - Hexagon gets `clone3`, but don't be fooled: it just returns ENOSYS. 6.13: - The `*xattr` family of syscalls have been enhanced with new `*xattrat` versions, similar to the other file-based `at` calls. 6.15: - Atomically create a detached mount tree and set mount options on it. Finally, this commit also adds the syscall numbers for OpenRISC and maps it to the `or1k` cpu.
2024-11-02generate_linux_syscalls: Generate syscalls for x32.Alex Rønne Petersen
Also update the syscalls file based on Linux 6.10. No diffs other than x32.
2024-10-03generate_linux_syscalls: Rename mmap_pgoff to mmap2.Alex Rønne Petersen
2024-08-09Update Linux syscalls to 6.10.Alex Rønne Petersen
2024-07-30std.os.linux.syscalls: Regenerate based on Linux v6.7.Alex Rønne Petersen
2024-07-29std.os.linux.syscalls: Regenerate based on Linux v6.7.Alex Rønne Petersen
loongarch64 syscalls not updated because it seems like that kernel port hasn't been working for a year or so: In file included from arch/loongarch/include/uapi/asm/unistd.h:5: include/uapi/asm-generic/unistd.h:2:10: fatal error: 'asm/bitsperlong.h' file not found That file is just missing from the tree. :shrug:
2024-06-05generate loongarch64 Linux syscallsYANG Xudong
2024-01-15Linux: Update syscalls for the 6.7 releaseStephen Gregoratto
This release adds the rest of the futex2[1] syscalls, along with shadow stack[2] support for more architectures. [1]: https://lwn.net/Articles/940944/ [2]: https://lwn.net/Articles/926649/
2024-01-13Add `fchmodat2` to the Linux syscall listStephen Gregoratto
This syscall was added to simplify the the libc implementations of fchmodat, as the original syscall does not take a `flags` argument. Another syscall, `map_shadow_stack`, was also added for x86_64.
2023-09-28Update Linux syscalls for kernel 5.5Stephen Gregoratto
The latest addition is `cachestat`, which provides more detailed information for paged files.
2023-02-05Update Linux syscall list for 6.1, support Mips64Stephen Gregoratto
Follow up for #14541.
2023-02-04Add support for mips64/mips64elSuirad
2022-08-05Update Linux syscall list for 5.19Stephen Gregoratto
New changes: memfd_secret implemented for RISC-V.
2022-05-16Generate linux syscalls via. the linux source treeStephen Gregoratto
Previously, updating the `SYS` enum for each architecture required manually looking at the syscall tables and inserting any new additions. This commit adds a tool, `generate_linux_syscalls.zig`, that automates this process using the syscall tables in the Linux source tree. On architectures without a table, it runs `zig cc` as a pre-processor to extract the system-call numbers from the Linux headers.