aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/bits/linux
AgeCommit message (Collapse)Author
2020-12-31Year++Frank Denis
2020-12-17Add process_madvise to Linux syscalls (#7450)Dmitry Atamanov
2020-12-14Add missed Linux syscallsdata-man
2020-11-25std/os: fix prctl constantsIsaac Freund
2020-11-20std/os: define and use dev_t for linux x86_64Isaac Freund
2020-11-20std/os: add time_t definiton for x86_64 linuxIsaac Freund
2020-11-05Merge pull request #6978 from LemonBoy/statshitAndrew Kelley
Decouple kernel and libc stat definitions
2020-11-05std: Split kernel&libc definitions of stat structLemonBoy
There's no guarantee for the kernel definition to be ABI compatible with the libc one (and vice versa). There's also no guarantee of ABI compatibility between musl/glibc. Fun, isn't it?
2020-11-04std: use PR enum as only location of opcode numbersdaurnimator
2020-11-04std: add PR enum for the prctl opcodedaurnimator
2020-11-01Merge pull request #6792 from koachan/sparc64-linuxAndrew Kelley
Initial sparc64-linux bringup
2020-10-30Add close_range, faccessat2 and process_madviseJoran Dirk Greef
2020-10-30Add more mips syscall numbersJoran Dirk Greef
As per: lib/libc/musl/arch/mips/bits/syscall.h.in ...and as promised: https://github.com/ziglang/zig/pull/6356#issuecomment-696023349 Thanks @daurnimator again for the help with #6356.
2020-10-30Select stat struct type based on whether we are linking with libcKoakuma
2020-10-29Merge pull request #6356 from jorangreef/io_uringAndrew Kelley
std: add io_uring library
2020-10-29Use the *_stat type as selfKoakuma
2020-10-26std/*: add missing MIT license headersFrank Denis
2020-10-25Separate libc stat and kernel stat definitionsKoakuma
2020-10-25Fix sparc64 bits definitionsKoakuma
2020-10-24Fix constantsKoakuma
2020-10-24Add sp loadingKoakuma
2020-10-24Fix register namingKoakuma
2020-10-24Add sparc64 linux bitsKoakuma
2020-09-21Add io_uring syscalls to os.bits.linux.mips.SYSJoran Dirk Greef
As per lib/libc/musl/arch/mips/bits/syscall.h.in: ```c ```
2020-09-11std: add securebits definitions for linuxIsaac Freund
2020-09-11std: add prctl definition for linuxIsaac Freund
2020-09-10update the stack trace test case for lines added to start.zigAndrew Kelley
2020-09-10Merge pull request #5527 from shawnanastasio/ppc64leAndrew Kelley
Implement support for powerpc64{,le}
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-21decided to split up loading of 64-bit immediatesMatt Knight
2020-08-21moved bpf syscall, added some bpf instructions and testsMatt Knight
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-01Implement std.os for powerpc64{,le}Shawn Anastasio
2020-04-24Add mips support to standard libraryTimon Kruiper
2020-04-18update std lib to decls being disallowed between fieldsVexu
2020-04-02Use `flock` instead of `fcntl` to lock filesLeRoyce Pearson
`flock` locks based on the file handle, instead of the process id. This brings the file locking on unix based systems closer to file locking on Windows.
2020-04-02Merge branch 'master' into feature-file-locksLeRoyce Pearson
2020-03-31std: linux syscall numbers are now an extensible enumdaurnimator
2020-03-30std: add some missing errnos on linuxdaurnimator
2020-03-30std: update for linux 5.6 releasedaurnimator
2020-03-14Define Flock for all posix systemsLeRoyce Pearson
2020-03-14Implement blocking file locking API for windowsLeRoyce Pearson
2020-03-14Add fnctlFlock system call, use it to lock filesLeRoyce Pearson
2020-03-09std: add some definitions for netlink socketsdaurnimator
2020-03-08Define ino_t for systems not yet defining itLeRoyce Pearson
Also, use ino_t instead of u64 in fs.File.INode
2020-03-03breaking: std.os read/write functions + sendfileAndrew Kelley
* rework os.sendfile and add macosx support, and a fallback implementation for any OS. * fix sendto compile error * std.os write functions support partial writes. closes #3443. * std.os pread / pwrite functions can now return `error.Unseekable`. * std.fs.File read/write functions now have readAll/writeAll variants which loop to complete operations even when partial reads/writes happen. * Audit std.os read/write functions with respect to Linux returning EINVAL for lengths greater than 0x7fff0000. * std.os read/write shim functions do not unnecessarily loop. Since partial reads/writes are part of the API, the caller will be forced to loop anyway, and so that would just be code bloat. * Improve doc comments * Add a non-trivial test for std.os.sendfile * Fix std.os.pread on 32 bit Linux * Add missing SYS_sendfile bit on aarch64
2020-02-06more std lib async I/O integrationAndrew Kelley
* `zig test` gainst `--test-evented-io` parameter and gains the ability to seamlessly run async tests. * `std.ChildProcess` opens its child process pipe with O_NONBLOCK when using evented I/O * `std.io.getStdErr()` gives a File that is blocking even in evented I/O mode. * Delete `std.event.fs`. The functionality is now merged into `std.fs` and async file system access (using a dedicated thread) is automatically handled. * `std.fs.File` can be configured to specify whether its handle is expected to block, and whether that is OK to block even when in async I/O mode. This makes async I/O work correctly for e.g. the file system as well as network. * `std.fs.File` has some deprecated functions removed. * Missing readv,writev,pread,pwrite,preadv,pwritev functions are added to `std.os` and `std.fs.File`. They are all integrated with async I/O. * `std.fs.Watch` is still bit rotted and needs to be audited in light of the new async/await syntax. * `std.io.OutStream` integrates with async I/O * linked list nodes in the std lib have default `null` values for `prev` and `next`. * Windows async I/O integration is enabled for reading/writing file handles. * Added `std.os.mode_t`. Integer sizes need to be audited. * Fixed #4403 which was causing compiler to crash. This is working towards: ./zig test ../test/stage1/behavior.zig --test-evented-io Which does not successfully build yet. I'd like to enable behavioral tests and std lib tests with --test-evented-io in the test matrix in the future, to prevent regressions.
2019-11-30linux-i386 supportLemonBoy