aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os
AgeCommit message (Collapse)Author
2020-11-18std: add chdir smoke testJakub Konka
2020-11-18Move utf8->utf16 up one level into os.zigLee Cannon
2020-11-18Switch to RtlSetCurrentDirectory_ULee Cannon
2020-11-18Implement chdir and chdirZ for WindowsLee Cannon
2020-11-16std: Make windows.ReadFile allow short readsLemonBoy
Make it behave like the read() wrapper for unix systems. Reading the whole buffer breaks some use-cases like buffered readers over sockets. Closes #7121
2020-11-10openbsd: proper implementation for Thread.cpuCount()Sébastien Marie
2020-11-10openbsd: add time definitions for gettimeofday()Sébastien Marie
2020-11-10openbsd: add sockets constantsSébastien Marie
2020-11-10openbsd: add dlfcn.h definitions for dlopen()Sébastien Marie
2020-11-05Merge pull request #6978 from LemonBoy/statshitAndrew Kelley
Decouple kernel and libc stat definitions
2020-11-05Merge pull request #6974 from daurnimator/prctl-cleanupAndrew Kelley
prctl improvements
2020-11-05Merge pull request #6895 from jorangreef/fallocateAndrew Kelley
linux: add fallocate()
2020-11-05Label WASI stat as kernel_statLemonBoy
We're using WASI syscalls, it makes sense to put the kernel_ prefix.
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-04Add missing LONG_PTR typerageoholic
2020-11-04Fix CoInitializeEx so it can take a null pointerrageoholic
2020-11-04std: Correct stack_t definition for mipsLemonBoy
2020-11-04std: Fix pipe syscall stub for sparc64LemonBoy
2020-11-04std: use PR enum as only location of opcode numbersdaurnimator
2020-11-04std: add PR enum for the prctl opcodedaurnimator
2020-11-03Merge pull request #6921 from xackus/gimmeMoreOfThoseSweetSweetFileDescriptorsJakub Konka
stage2: ask for more file descriptors
2020-11-03Support 32-bit big-endian targetsJoran Dirk Greef
2020-11-03Fix Darwin codepathJakub Konka
On Darwin, according to the man pages for setrlimit(), when adjusting max number of open fds, the reported hard max by getrlimit() is only theoretical, while the actual maximum, set in the kernel, is hardcoded in the header file. Therefore, the reported max has to be adjusted as `min(OPEN_MAX, lim.max)`. Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-11-02std: Fix syscall stubs passing 64bit offsets for BE targetsLemonBoy
2020-11-02Pending #5127Joran Dirk Greef
2020-11-02Switch back to writing ZigJoran Dirk Greef
2020-11-02Debug unhandled errnoJoran Dirk Greef
2020-11-01Merge pull request #6792 from koachan/sparc64-linuxAndrew Kelley
Initial sparc64-linux bringup
2020-11-01std: add {set,get}rlimit bits and improve testxackus
2020-11-01Swap endiannessJoran Dirk Greef
2020-11-01Add testJoran Dirk Greef
2020-11-01"The Traveling Wilburys' - Handle With Care"Joran Dirk Greef
Both `offset` and `len` are `off_t`. Like the rest of the std lib we assume that `_FILE_OFFSET_BITS == 64` is always true, so that `off_t` is a `u64`. When passing to 32-bit kernels, we split these into two `u32` parameters.
2020-11-01Add definitions for FALLOC_FL_ mode flagsJoran Dirk Greef
2020-10-31linux: add fallocate()Joran Dirk Greef
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-27std.os.linux.accept/accept4: allow null for addr and lenjohnLate
std.os.accept already wants to allow null, which matches `man 3p accept`: > address Either a null pointer, or a pointer to a sockaddr structure > where the address of the connecting socket shall be re‐ > turned. > > address_len Either a null pointer, if address is a null pointer, or a > pointer to a socklen_t object which on input specifies the > length of the supplied sockaddr structure, and on output > specifies the length of the stored address. Fixes ziglang#6832.
2020-10-27std: Add basic smoke test for net functionalityLemonBoy
2020-10-26std/*: add missing MIT license headersFrank Denis
2020-10-25openbsd: make dl_phdr_info cross archesSébastien Marie
introduce Addr and Half definition to std.elf, and use them for dl_phdr_info
2020-10-25Separate libc stat and kernel stat definitionsKoakuma
2020-10-25Various formatting fixesKoakuma
2020-10-25Fix sparc64 bits definitionsKoakuma
2020-10-25Fix SA_* constants for sparc64Koakuma
2020-10-25Predict error-less path on syscallsKoakuma
2020-10-25Add back ppc input/output/clobber definitionsKoakuma
Accidentally removed when rebasing, this adds it back.
2020-10-25"zig fmt" on lib/std/os/linux.zigKoakuma