aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os
AgeCommit message (Collapse)Author
2020-10-24Fix boolean operator in if clauseKoakuma
2020-10-24Fix sigaction(2) call on sparc64Koakuma
2020-10-24Add sparc64-specific values for the various SA_ and SIG_ constantsKoakuma
2020-10-24Fix constantsKoakuma
2020-10-24Move comptime outKoakuma
2020-10-24Add TLS implementation for sparc64Koakuma
2020-10-24Add pipe(2) supportKoakuma
2020-10-24Account for the delay slotKoakuma
2020-10-24Add sp loadingKoakuma
2020-10-24Fix register namingKoakuma
2020-10-24Add sparc64 linux bitsKoakuma
2020-10-24Add sparc64 syscall interfaceKoakuma
2020-10-22Merge branch 'improve-windows-networking'Andrew Kelley
of https://github.com/BarabasGitHub/zig into BarabasGitHub-improve-windows-networking Conflicts: lib/std/os.zig This commit resolves conflicts with the changes to std.os which removed the EAGAIN error handling interactions with the event loop. The solution to the conflict was to apply EAGAIN => return error.WouldBlock into the improved windows networking branch.
2020-10-22Merge pull request #6743 from LemonBoy/someppc64stuffAndrew Kelley
Some ppc64 stuff
2020-10-21std: Slim down the error code path in initStaticTLSLemonBoy
Calling @panic made the executable ~30x times bigger, use a simple `abort()` and let the user figure out what went wrong. Supporting ARMv6 (and earlier?) platforms is not a priority. Closes #6676
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-17code cleanupsAndrew Kelley
* in selfExePath, return errors instead of defaulting to bogus data * less invasive edits to the logic of link/Elf.zig * less indentation
2020-10-17Merge branch 'openbsd-minimal' of https://github.com/semarie/zig into ↵Andrew Kelley
semarie-openbsd-minimal
2020-10-17Merge branch 'master' into openbsd-minimalSebastien Marie
2020-10-17Make std.meta.Int accept a signedness parameterJan Prudil
2020-10-15fixups regarding windows wide stringsAndrew Kelley
* remove GetModuleHandleA from kernel32.zig. use of A functions considered harmful. * make it a compile error to expose WinMain instead of wWinMain. same thing. * start code declares wWinMainCRTStartup instead of WinMainCRTStartup when it has the choice.
2020-10-15Merge branch '5002-fix-entrypoint-with-winmain' of ↵Andrew Kelley
https://github.com/AnthonyYoManz/zig into AnthonyYoManz-5002-fix-entrypoint-with-winmain
2020-10-15Merge pull request #6616 from fengb/darwin-rusageAndrew Kelley
Darwin rusage
2020-10-12Rename .macosx to .macosVignesh Rajagopalan
2020-10-11add minimal openbsd supportSébastien Marie
2020-10-08Rename ix_rss -> ixrssBenjamin Feng
2020-10-08Pull in Darwin definitions for rusageBenjamin Feng
2020-10-06Update zig files for opaque type syntaxTadeo Kondrak
2020-10-05Test the range of user_data bitsJoran Dirk Greef
2020-10-04simplify api and add smoke testxackus
2020-10-04implement {get, set}rlimit for linuxxackus
2020-10-04Split openat/close test into two separate testsJoran Dirk Greef
If an older kernel fails the `openat` test because of `AT_FDCWD` then we don't want to skip the `close` test.
2020-10-04Use const wherever possibleJoran Dirk Greef
2020-10-04Skip openat test only for older kernels that do not fully support AT_FDCWDJoran Dirk Greef
2020-10-04Improve openat/accept test debuggingJoran Dirk Greef
2020-10-04Add openat(), close(), connect(), send(), recv(), as well as testsJoran Dirk Greef
Removes non-essential .hardlink_with_next_sqe() and .drain_previous_sqes().
2020-10-04Use load relaxed semantics when reading the SQPOLL wakeup flagJoran Dirk Greef
2020-10-04Allow for advanced non-sequential SQE allocation schemesJoran Dirk Greef
Decouples SQE queueing and SQE prepping methods to allow for non-sequential SQE allocation schemes as suggested by @daurnimator. Adds essential SQE prepping methods from liburing to reduce boilerplate. Removes non-essential .link_with_next_sqe() and .use_registered_fd().
2020-10-04Limit entries to u12, add errors for invalid entries, use mem.zeroInitJoran Dirk Greef
2020-10-04Expose available kernel featuresJoran Dirk Greef
2020-10-03Add IORING_FEAT_POLL_32BITSJoran Dirk Greef
2020-10-03Use load acquire semantics when reading the SQPOLL wakeup flagJoran Dirk Greef
Ensures that the wakeup flag is read after the tail pointer has been written. It's important to use memory load acquire semantics for the flags read, otherwise the application and the kernel might not agree on the consistency of the wakeup flag, leading to I/O starvation. Refs: https://github.com/axboe/liburing/commit/6768ddcc562adb6ea141cf508bccecb6be8ce666 Refs: https://github.com/axboe/liburing/issues/219
2020-10-03Handle EBADFD (ring fd in bad state) in enter()Joran Dirk Greef
2020-09-30Merge pull request #6250 from ziglang/stage2-zig-ccAndrew Kelley
move `zig cc`, `zig translate-c`, `zig libc`, main(), and linking from stage1 to stage2
2020-09-29Windows: Handle ACCESS_DENIED in DeviceIoControlRyan Liptak
This was causing the Dir.readLink test to fail for me locally with error.Unexpected NTSTATUS=0xc0000022. Not sure if PRIVILEGE_NOT_HELD is actually possible or not.
2020-09-29Merge remote-tracking branch 'origin/master' into stage2-zig-ccAndrew Kelley
This merges in the revert that fixes the broken Windows build of master branch.
2020-09-29Revert "Fix for Windows: std.os.windows.DeleteFile()"Jakub Konka
2020-09-29Merge remote-tracking branch 'origin/master' into stage2-zig-ccAndrew Kelley
2020-09-27Merge pull request #6397 from suirad/fix-5537Jakub Konka
Fix for Windows: std.os.windows.DeleteFile()
2020-09-27uefi system_tableWoze Parrrot