aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/bits/linux
AgeCommit message (Collapse)Author
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
2019-10-17mipsel: fix padding on stat structAndrew Kelley
2019-10-12Fix signedness for some fields in ARM stat definitionLemonBoy
2019-10-01Correct signal bits for MIPSLemonBoy
Also enable the segfault handler for all the supported architectures beside MIPS.
2019-09-26Errno changes for MIPSLemonBoy
2019-09-26Initial support for mipsel architecture¬LemonBoy
2019-09-25mv std/ lib/Andrew Kelley
that's all this commit does. further commits will fix cli flags and such. see #2221