aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os
AgeCommit message (Collapse)Author
2021-08-21linux: Add recent clone/clone3 and missing signalfd flags.Aydin Mercan
The following flags have been introduced: - CLONE_PIDFD (>=5.2) - CLONE_INTO_CGROUP (>=5.7) - SFD_CLOEXEC and SFD_NONBLOCK (>=2.6.27)
2021-08-13Expose register_eventfd, register_eventfd_async, unregister_eventfd i… (#9449)Ayende Rahien
* Expose register_eventfd, register_eventfd_async, unregister_eventfd in the IO URing API * Fixing formatting * Fixing typo * Removing unnecessary casts and adding better comments for a single registration of eventfd * Update lib/std/os/linux/io_uring.zig Co-authored-by: Joran Dirk Greef <joran@coil.com> * Update lib/std/os/linux/io_uring.zig Co-authored-by: Joran Dirk Greef <joran@coil.com> * Updating util function name Co-authored-by: Joran Dirk Greef <joran@coil.com>
2021-08-09Merge remote-tracking branch 'origin' into libc-wasi-testTakeshi Yoneda
2021-08-09review: use defined flag for oflags.Takeshi Yoneda
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2021-08-07linux: add missing FUTEX definitionsKlecko
2021-08-02Move iovec and log levels to bits/posix.zigN00byEdge
This lets only the OSes that uses them to import them, and removes dependencies on bits.zig for the os/<os>/<arch>.zig files
2021-08-02Make linux syscalls accessible with non-Linux target OSN00byEdge
2021-07-29windows: add wrappers for LocalFree, SetThreadDescription and ↵Vincent Rischmann
GetThreadDescription
2021-07-29windows/kernel32: add LocalFree, SetThreadDescription and GetThreadDescriptionVincent Rischmann
2021-07-28linux: add mknod and mknodat syscallsMahdi Khanalizadeh
2021-07-27WASI,libc: enable tests.Takeshi Yoneda
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2021-07-22Fixed compile error: 'bMenu' needs to casted. (#9426)Michal Ziulek
2021-07-22linux stdlib: fix definition of RW flags (#9428)Biolunar
2021-07-11io_uring: add sqe prep methods for epoll_ctl, poll_add, and poll_removeKenta Iwasaki
Implement io_uring submission queue entry preparation methods for epoll_ctl, poll_add and poll_remove. Poll masks are designated as 32-bit little-endian integers as specified in liburing's definitions. Updated io_uring_prep_rw to take in an unsigned 64-bit address instead of an anytype. io_uring_sqe by default assumes that the address specified in a submission queue entry is an unsigned 64-bit integer.
2021-07-10Add waitid syscall on linux (#9335)Malcolm Still
2021-07-07Fixed builtin.Target -> std.TargetCarlos Zúñiga
2021-07-04Merge pull request #9175 from kprotty/threadAndrew Kelley
std.Thread enhancements
2021-07-02AstGen: detect redeclaration of function parametersAndrew Kelley
Also improve redeclaration error message to include the category of variable.
2021-06-30std.Thread: more cleanup & testingkprotty
2021-06-30std.Thread: more fixeskprotty
2021-06-30std.Thread.getCpuCount(): fix usageskprotty
2021-06-30changes to accomodate std.Thread updatekprotty
2021-06-30std/os/uefi: fix packed struct bitfieldsNameless
2021-06-30boot_services: allow custom MemoryTypesSreehari Sreedev
2021-06-29std: implement a cross platform file locking abstractionAndrew Kelley
This modifies the lock semantics from using AccessMode to using NtLockFile/NtUnlockFile. This is a breaking change.
2021-06-29implement std.fs.File.setLock for WindowsAndrew Kelley
2021-06-25Merge pull request #9148 from marler8997/windowsChildOutputAndrew Kelley
finish ChildProcess collectOutputWindows
2021-06-21mips: fix syscall_pipeAndrew Kelley
Previously the fd parameter was ignored and so the result would not get populated. Now it passes the fd pointer to the inline assembly so that the results can be observed.
2021-06-21std.os.linux.bpf: fix incorrect usage of unexpectedErrnoAndrew Kelley
2021-06-21std.os.linux: fix splitValueBE64Andrew Kelley
2021-06-21fix code broken from previous commitJacob G-W
2021-06-21std, src, doc, test: remove unused variablesJacob G-W
2021-06-19std: Fix PIE startup sequenceLemonBoy
* Don't skip the TLS initialization (Fixes #9083) * Add a test case where a PIE program is built and run * Refactor the common initialization code in the Linux startup sequence.
2021-06-18finish ChildProcess collectOutputWindowsJonathan Marler
This finishes LemonBoy's Draft PR ziglang#6750. It updates ChildProcess to collect the output from stdout/stderr asynchronously using Overlapped IO and named pipes.
2021-06-17std: Use WINAPI instead of .StdcallLemonBoy
2021-06-17std: Avoid deadlocking in ChildProcess.execLemonBoy
Reading stdin&stderr at different times may lead to nasty deadlocks (eg. when stdout is read before stderr and the child process doesn't write anything onto stdout). Implement a polling mechanism to make sure this won't happen: we read data from stderr/stdout as it becomes ready and then it's copied into an ArrayList provided by the user, avoiding any kind of blocking read.
2021-06-16netbsd: add more std.os.bitsMichael Dusan
2021-06-14add a test for dup and dup2Veikka Tuominen
2021-06-14Add std.os.dup()Samadi van Koten
2021-06-13std.windows: fix `OVERLAPPED`, add `OVERLAPPED_ENTRY`viri
2021-06-12Make std.ChildProcess exit code u8 to match std.process.exitGarrett Squire
This patch adjusts the exit code for a child process to be a u8. Since the WEXITSTATUS macro returns the lower eight bits, it's safe to assume that we can truncate the returned u32.
2021-06-12Renamed @byteOffsetOf to @offsetOfExonorid
2021-06-12std.Thread.Futex addition (#9070)protty
* std.Thread.Futex: implementation + tests * std.Thread.Futex: fix darwin compile errors * std.Thread.Futex: fix wait() documentation typo * std.Thread.Futex: fix darwin version check * std.Thread.Futex: remove unnecessary comptime keyword
2021-06-11std.os.windows: implement <timeapi.h> (#8801)viri
2021-06-10netlink ifi_change no longer reservedJens Goldberg
The documentation (e.g. `man 7 rtnetlink`) states that ifi_change "is reserved for future use and should be always set to 0xFFFFFFFF". This is no longer true, even though the text hasn't been updated.
2021-06-09std.Progress: use `*W` functions on windowsviri
Closes #534. See: https://source.winehq.org/git/wine.git/blob/refs/heads/stable:/dlls/kernelbase/console.c#l520
2021-06-09windows: remove `TCHAR` idiom entirelyviri
2021-06-09os/linux: add fadviseVincent Rischmann
2021-06-09os/bits/linux: add the fadvise advice valuesVincent Rischmann
2021-06-07Add Linux XDP bits (#9019)Jens Goldberg