aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/bits/linux.zig
AgeCommit message (Collapse)Author
2021-01-11os/bits/linux: add the termios cc bitsVincent Rischmann
2021-01-08Add IP_ constantsRobin Voetter
2021-01-03Improve uring definitionsdaurnimator
2020-12-31Year++Frank Denis
2020-12-18std.crypto.random: introduce fork safetyAndrew Kelley
Everybody gets what they want! * AT_RANDOM is completely ignored. * On Linux, MADV_WIPEONFORK is used to provide fork safety. * On pthread systems, `pthread_atfork` is used to provide fork safety. * For systems that do not have the capability to provide fork safety, the implementation falls back to calling getrandom() every time. * If madvise is unavailable or returns an error, or pthread_atfork fails for whatever reason, it falls back to calling getrandom() every time. * Applications may choose to opt-out of fork safety. * Applications may choose to opt-in to unconditionally calling getrandom() for every call to std.crypto.random.fillFn. * Added `std.meta.globalOption`. * Added `std.os.madvise` and related bits. * Bumped up the size of the main thread TLS buffer. See the comment there for justification. * Simpler hot path in TLS initialization.
2020-12-17Add baudrate constantsTau
This adds the missing baudrate constants for linux where I've used them directly.
2020-12-12std: Further siginfo refinementsLemonBoy
* Define siginfo and sigaction for Darwin * Define sigaction/handler union for maximum libc compatibility * Minor correction to some type definitions
2020-12-12std: Improve sigaction interfaceLemonBoy
Add a smoke test to prevent regressions.
2020-11-05Merge pull request #6978 from LemonBoy/statshitAndrew Kelley
Decouple kernel and libc stat definitions
2020-11-05Merge pull request #6895 from jorangreef/fallocateAndrew Kelley
linux: add fallocate()
2020-11-04std: Correct stack_t definition for mipsLemonBoy
2020-11-01Merge pull request #6792 from koachan/sparc64-linuxAndrew Kelley
Initial sparc64-linux bringup
2020-11-01Add definitions for FALLOC_FL_ mode flagsJoran Dirk Greef
2020-10-29Merge pull request #6356 from jorangreef/io_uringAndrew Kelley
std: add io_uring library
2020-10-25Fix SA_* constants for sparc64Koakuma
2020-10-24Add sparc64-specific values for the various SA_ and SIG_ constantsKoakuma
2020-10-24Add sparc64 linux bitsKoakuma
2020-10-19std: Minor changes to startup codeLemonBoy
* Smaller startup sequence for ppc64 * Terminate the frame-pointer chain when executing _start * Make the stack traces work on ppc64 * Make the stack traces coloured on ppc64, some ioctls numbers are different and the whole set of constants should be audited.
2020-10-17Make std.meta.Int accept a signedness parameterJan Prudil
2020-10-08Rename ix_rss -> ixrssBenjamin Feng
2020-10-04implement {get, set}rlimit for linuxxackus
2020-10-03Add IORING_FEAT_POLL_32BITSJoran Dirk Greef
2020-09-21Define SPLICE, PROVIDE_BUFFERS, REMOVE_BUFFERS and TEE opcodes and flagsJoran Dirk Greef
2020-09-20Add IORING_FEAT_FAST_POLLJoran Dirk Greef
2020-09-19Fix io_uring_sqe to use the names of the first member of each unionJoran Dirk Greef
Now we're really future-proof... no more `opflags` creeping in. When anonymous unions land, we can start using `accept_flags` etc. Until then, code using this struct won't break when the kernel adds features. Refs: https://github.com/ziglang/zig/issues/6349 Refs: https://github.com/ziglang/zig/issues/985
2020-09-19Remove default values from io_uring_sqe structJoran Dirk Greef
2020-09-19Add splice_fd_in to io_uring_sqe and future-proof for anonymous unionsJoran Dirk Greef
2020-09-17Add IORING_SQ_CQ_OVERFLOW to std/os/bits/linux.zigJoran Dirk Greef
2020-09-11std: add securebits definitions for linuxIsaac Freund
2020-09-11std: add prctl definition for linuxIsaac Freund
2020-09-10Merge pull request #5527 from shawnanastasio/ppc64leAndrew Kelley
Implement support for powerpc64{,le}
2020-09-08Add the Linux TCP socket optionsJens Goldberg
2020-09-05Merge pull request #6246 from Vexu/fieldVeikka Tuominen
Remove deprecated fields on `type`
2020-09-03update uses of deprecated type field accessVexu
2020-09-03std: fix linux uid_t, use uid_t/gid_t in std.osIsaac Freund
- correct uid_t from i32 to u32 on linux - define uid_t and gid_t for OSes missing definitions - use uid_t/gid_t instead of plain u32s throughout std.os
2020-08-22Bpf: move under os/linux instead of bits (#6126)Matthew Knight
* moved bpf syscall, added some bpf instructions and tests * had to move bpf out of bits so that a freestanding target could import it * removed line * fixed imports
2020-08-21fixed bpf namespaceMatt Knight
2020-08-20add UTIME_NOW and UTIME_OMIT constants for use in utimensat/futimensheidezomp
copied from lib/libc/include/generic-musl/sys/stat.h
2020-08-20add license header to all std lib filesAndrew Kelley
add SPDX license identifier copyright ownership is zig contributors
2020-08-17added bpf() syscall and some supporting structs (#6061)Matthew Knight
* added bpf syscall and some supporting structs * moved bpf to bits and added flags
2020-07-22Add signalfd support (#5322)luna
* add signalfd_siginfo to linux bits * Cast sigaddset's shift value to u5 * linux: add signalfd4 * os: add signalfd
2020-07-01Implement std.os for powerpc64{,le}Shawn Anastasio
2020-06-02cleanupsAndrew Kelley
* improve docs * add TODO comments for things that don't have open issues * remove redundant namespacing of struct fields * guard against ioctl returning EINTR * remove the general std.os.ioctl function in favor of the specific ioctl_SIOCGIFINDEX function. This allows us to have a more precise error set, and more type-safe API.
2020-06-02Make ifru fields sentinel-terminatedLuna
2020-06-02Replace C types in declarationsLuna
2020-06-02Replace C shorts by integer typesLuna
2020-06-02Fix ifreq definitionLuna
2020-06-02Only resolve scope id when neededLuna
2020-06-02Add some interface structs to linux bitsLuna
2020-05-30linux: fix IOSQE_BIT decl and io_uring_sqe flagsVincent Rischmann