aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/linux.zig
AgeCommit message (Collapse)Author
2023-10-06Add pause() to linux.zigRatakor
2023-10-06Add filled_sigset to os.linuxRatakor
filled_sigset is equivalent to sigfillset() as empty_sigset is equivalent to sigemptyset().
2023-10-04x86_64: implement C abi for 128-bit integersJacob Young
2023-10-04linux: add fanotify APInikneym
2023-10-04Update IORING_OP to reflect upstream (#17388)Kai Jellinghaus
Reference [upstream io_uring.h](https://github.com/torvalds/linux/blob/cbf3a2cb156a2c911d8f38d8247814b4c07f49a2/include/uapi/linux/io_uring.h#L234)
2023-09-28Linux: Add cachestat wrapper.Stephen Gregoratto
Can be tested using this program I whipped up: https://gist.github.com/The-King-of-Toasters/aee448f5975c50f735fd1946794574f7
2023-09-26Add new fields to io_sqring_offsets & io_cqring_offsetsKai Jellinghaus
`user_addr`s were introduced in `03d89a2` ([github link](https://github.com/torvalds/linux/commit/03d89a2de25bbc5c77e61a0cf77663978c4b6ea7) which was shipped in v6.5 `flags` was introduced even earlier
2023-08-27linux: fixup for platforms that don't support extern functions yetkcbanner
2023-08-27linux: only export getauxval if not linking libckcbanner
2023-08-27linux: instead of export elf_aux_maybe, export getauxval itselfkcbanner
2023-08-26linux: export elf_aux_maybe so that libraries can call getauxvalkcbanner
2023-08-09linux: add setsidmllken
2023-07-31Merge pull request #16622 from jacobly0/cbe-asm-compatAndrew Kelley
CBE: fix regressions and get new targets passing behavior tests
2023-07-31Revert "linux adding some NUMA support"Andrew Kelley
This reverts commit 6f418c11e1ad1150fbdb002cfe1be92bda4e93cb.
2023-07-31Revert "std.os: adding linux's sched_setaffinity and its wrapper"Andrew Kelley
This reverts commit c7bf8bab38f8b89c1371eedb9229e00a29b5ca5b.
2023-07-31Revert "std.os: add linux timer api"Andrew Kelley
This reverts commit b9d2e0e308794463db1b1acf04d76778c470a070.
2023-07-31std: finish cleanup up asmJacob Young
This also required implementing the necessary syntax in the x86_64 backend.
2023-07-25std.os.linux | Fix sendmmsg function | Issue #16513Zachary Raineri
Closes #16513
2023-07-24Use builtin inference over @as where possibleZachary Raineri
2023-07-20debug: fix initialization of the optional fields on StackIteratorkcbanner
dwarf: documentation fixups target: enable unwind tables on macho
2023-07-20linux: add getcontext for x86_64kcbanner
2023-06-24all: migrate code to new cast builtin syntaxmlugg
Most of this migration was performed automatically with `zig fmt`. There were a few exceptions which I had to manually fix: * `@alignCast` and `@addrSpaceCast` cannot be automatically rewritten * `@truncate`'s fixup is incorrect for vectors * Test cases are not formatted, and their error locations change
2023-06-19all: zig fmt and rename "@XToY" to "@YFromX"Eric Joldasov
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-16migration: std.math.{min, min3, max, max3} -> `@min` & `@max`r00ster91
2023-05-26std.Target adjustmentsVeikka Tuominen
* move `ptrBitWidth` from Arch to Target since it needs to know about the abi * double isn't always 8 bits * AVR uses 1-byte alignment for everything in GCC
2023-05-22fix type errors in os.linux (#15801)yujiri8
* fix NUMA-related functions in os.linux * fix os.linux.CPU_ISSET
2023-05-19std.os: add linux timer apiDavid CARLIER
2023-05-13std.os: adding linux's sched_setaffinity and its wrapperDavid CARLIER
2023-05-13linux adding some NUMA supportDavid CARLIER
2023-05-11Add tc{set,get}pgrp to std.os.linuxGregory Mullen
2023-04-30std: fix a bunch of typosLinus Groh
The majority of these are in comments, some in doc comments which might affect the generated documentation, and a few in parameter names - nothing that should be breaking, however.
2023-04-27fix incorrect struct definition朕与将军解战袍
2023-04-25change semantics of `@memcpy` and `@memset`Andrew Kelley
Now they use slices or array pointers with any element type instead of requiring byte pointers. This is a breaking enhancement to the language. The safety check for overlapping pointers will be implemented in a future commit. closes #14040
2023-04-23std.os.linux: Add new CAP constantsHubert Jasudowicz
2023-04-06std.os: add mincore syscalljim price
The mincore syscall is available on some UNIX like operating systems and allows a user to determine if a page is resident in memory.
2023-03-15std: child process API supports rusage dataAndrew Kelley
2023-03-15hot code swapping PoC workingAndrew Kelley
- improve fn prototypes of process_vm_writev - make the memory writable in the ELF file - force the linker to always append the function - write updates with process_vm_writev
2023-03-15std.os.linux: add ptraceAndrew Kelley
2023-03-03std: add fchmodatAndrew Kelley
Also add `std.fs.has_executable_bit` for doing conditional compilation. This adds the linux syscalls for chmod and fchmodat, as well as the extern libc function declarations. Only `fchmodat` is added to `std.os`, and it is not yet added to std.fs.
2023-02-18update std lib and compiler sources to new for loop syntaxAndrew Kelley
2023-02-04Add support for mips64/mips64elSuirad
2023-01-02remove the experimental std.x namespaceAndrew Kelley
Playtime is over. I'm working on networking now.
2022-12-27update uses of overflow arithmetic builtinsVeikka Tuominen
2022-12-13update usages of `@call`Veikka Tuominen
2022-12-06remove most conditional compilation based on stage1Andrew Kelley
There are still a few occurrences of "stage1" in the standard library and self-hosted compiler source, however, these instances need a bit more careful inspection to ensure no breakage.
2022-11-18run zig fmt on everything checked by CIStevie Hryciw
2022-11-16stdlib: make linux.PERF.TYPE non-exhaustiveBjörn Linse
perf_event_attr.type needs to take a runtime defined value to enable dynamic PMU:s, such as kprobe and uprobe. This value can exceed predefined values defined in the linux headers. reference: perf_event_open(2) man page
2022-11-15std.os.linux: Add setitimer and getitimer syscallsHayden Pope
2022-11-09Merge pull request #13418 from ryanschneider/signal-alignment-13216Veikka Tuominen
std.os: fix alignment of Sigaction.handler_fn
2022-11-06std.os.linux.T: translate more MIPS valuesr00ster91
This fixes the broken terminal for me and thus fixes #13198.