aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os
AgeCommit message (Collapse)Author
2021-02-28std: add sendmsgdaurnimator
2021-02-28std: Swap arguments in Thread.spawnLemonBoy
Beside the new order being consistent with the ThreadPool API and making more sense, this shuffling allows to write the context argument type in terms of the startFn arguments, reducing the use of anytype (eg. less explicit casts when using comptime_int parameters, yay). Sorry for the breakage. Closes #8082
2021-02-25initial support for haiku sync updateAl Hoang
* add cpu count * use haiku find_directory * add definitions and exports for building in haiku
2021-02-25initial support for haiku continue clean upAl Hoang
* remove unused definitions * setup os specific blocks
2021-02-25initial support for haiku past stage0Al Hoang
2021-02-24zig fmt the std libAndrew Kelley
2021-02-21std.os.uefi.Guid fixes (#8032)Asherah Connor
* uefi: Guid.format compiles again Also use "writer" nomenclature in argument name. * uefi: add Guid.eql
2021-02-21Rebase link(at) properlyTau
2021-02-21Add epoll_pwait2 Linux syscalldata-man
2021-02-10Convert inline fn to callconv(.Inline) everywhereTadeo Kondrak
2021-01-25Merge pull request #7846 from LemonBoy/filtertestAndrew Kelley
stage1: don't filter test blocks with empty label
2021-01-25linux: add fallocate() to io_uringJoran Dirk Greef
2021-01-25windows: make sure to handle PATH_NOT_FOUND when deleting filesTimon Kruiper
Fixes #7879
2021-01-24fix windows bug in Progress.zigTimon Kruiper
This bug caused the compiler to deadlock when multiple c objects were build in parallel. Thanks @kprotty for finding this bug!
2021-01-22std: Update `test ""` to `test` where it makes senseLemonBoy
2021-01-14organize std lib concurrency primitives and add RwLockAndrew Kelley
* move concurrency primitives that always operate on kernel threads to the std.Thread namespace * remove std.SpinLock. Nobody should use this in a non-freestanding environment; the other primitives are always preferable. In freestanding, it will be necessary to put custom spin logic in there, so there are no use cases for a std lib version. * move some std lib files to the top level fields convention * add std.Thread.spinLoopHint * add std.Thread.Condition * add std.Thread.Semaphore * new implementation of std.Thread.Mutex for Windows and non-pthreads Linux * add std.Thread.RwLock Implementations provided by @kprotty
2021-01-13std.os.uefi.protocols.FileProtocol: fix and expose get_position, ↵Asherah Connor
set_position (#7762)
2021-01-12define nfds_t for windowsBill Nagel
2021-01-11std.os.windows.GetFinalPathNameByHandle: remove intermediate buffersRohlem
... and mem.copy operations. Requires slightly larger input buffers than result length. Add helper functions std.mem.alignInBytes and std.mem.alignInSlice.
2021-01-11std.os.windows.GetFinalPathNameByHandle: remove QueryInformationFile code pathRohlem
2021-01-11std.os.windows.GetFinalPathNameByHandle: address non-structural review commentsRohlem
2021-01-11std.os.windows.GetFinalPathNameByHandle: replace kernel32 by ntdll callRohlem
Removes the call to kernel32.GetFinalPathNameByHandleW in favor of NtQueryObject, which means we can reuse the other codepath's logic for DOS naming.
2021-01-11introduce std.os.windows.QueryObjectNameRohlem
2021-01-11std.os.windows.GetFinalPathNameByHandle: add testRohlem
2021-01-11std.os.windows.GetFinalPathNameByHandle: reintroduce kernel32 for compatibilityRohlem
The NtQueryInformationFile with .FileNormalizedNameInformation is only available in Windows 10 1803 (rs4) and later, however there is probably still another route we can go via ntdll.
2021-01-11Merge pull request #7195 from Aransentin/masterAndrew Kelley
A win32-api proposal, implemented for user32.zig
2021-01-11os/bits/linux: add the termios cc bitsVincent Rischmann
2021-01-11Merge pull request #7134 from alexnask/fix_std_fs_watchAndrew Kelley
The std.fs.Watch rewrite PR
2021-01-07Merge pull request #7720 from Snektron/sockoptAndrew Kelley
Some sockopt stuff
2021-01-07Reduce use of deprecated IO typesJay Petacat
Related: #4917
2021-01-08Add IP_ constantsRobin Voetter
2021-01-06fix LRESULT and LPARAM typedefsJonathan Marler
LRESULT and LPARAM are currently typedef'd as ?*c_void, however, they are supposed to be typedef'd as LONG_PTR which is equivalent to isize in Zig.
2021-01-05std.c add syslogxackus
2021-01-05freebsd, netbsd, dragonfly: add struct timevalxackus
2021-01-03Improve uring definitionsdaurnimator
2021-01-02std: Use {s} instead of {} when printing stringsLemonBoy
2021-01-01openbsd: add pollfd interfaceSébastien Marie
2020-12-31Year++Frank Denis
2020-12-30std: Add more standard type definitions for FreeBSDLemonBoy
Closes #7550
2020-12-29std.ChildProcess: improvements to collectOutputPosixAndrew Kelley
* read directly into the ArrayList buffers. * respect max_output_bytes * std.ArrayList: - make `allocatedSlice` public. - add `unusedCapacitySlice`. I removed the Windows implementation of this stuff; I am doing a partial merge of LemonBoy's patch with the understanding that a later patch can add the Windows implementation after it is vetted.
2020-12-29std: Use WINAPI instead of .StdcallLemonBoy
2020-12-29std: Fix compilation on FreeBSD/DarwinLemonBoy
2020-12-29std: Fix poll definitions for FreeBSD/DarwinLemonBoy
2020-12-29std: 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.
2020-12-26Merge pull request #7449 from kristoff-it/macos-termiosAndrew Kelley
add termios bits for darwin
2020-12-24Merge pull request #7531 from Vexu/orphanageVeikka Tuominen
Move ArrayListSentineled to std lib orphanage
2020-12-24std: clenup, fixes, fmtVeikka Tuominen
2020-12-23openbsd: implement segfault handling on openbsd x86_64Sébastien Marie
2020-12-23added comments, removed useless comptime keywordsLoris Cro
2020-12-23add termios bits for darwinLoris Cro