aboutsummaryrefslogtreecommitdiff
path: root/std/os
AgeCommit message (Collapse)Author
2018-08-29use RtlCaptureStackBackTrace on windowsAndrew Kelley
2018-08-28Merge branch 'windows-coff-issue721' of https://github.com/Sahnvour/zig into ↵Andrew Kelley
Sahnvour-windows-coff-issue721
2018-08-27zig fmtAndrew Kelley
2018-08-25fix stack traces on linuxAndrew Kelley
2018-08-21fix selfExePath on macosxAndrew Kelley
2018-08-21fix linuxAndrew Kelley
* error.BadFd is not a valid error code. it would always be a bug to get this error code. * merge error.Io with existing error.InputOutput * merge error.PathNotFound with existing error.FileNotFound. Not all OS's support both. * add os.File.openReadC * add error.BadPathName for windows file operations with invalid characters * add os.toPosixPath to help stack allocate a null terminating byte * add some TODOs for other functions to investigate removing the allocator requirement * optimize some implementations to use the alternate functions when a null byte is already available * add a missing error.SkipZigTest * os.selfExePath uses a non-allocating API * os.selfExeDirPath uses a non-allocating API * os.path.real uses a non-allocating API * add os.path.realAlloc and os.path.realC * convert many windows syscalls to use the W versions (See #534)
2018-08-21fix windowsAndrew Kelley
2018-08-21*WIP* std.os assumes comptime-known max path sizeAndrew Kelley
this allows us to remove the requirement of allocators for a lot of functions See #1392
2018-08-20Merge branch 'path_max' of https://github.com/shawnl/zig into shawnl-path_maxAndrew Kelley
2018-08-20refactor std.os.makePath to use a switch instead of ifAndrew Kelley
2018-08-19do not use an allocator when we don't need to because of the existance of ↵Shawn Landden
PATH_MAX
2018-08-10Merge pull request #1294 from ziglang/async-fsAndrew Kelley
introduce std.event.fs for async file system functions
2018-08-10windows: call CancelIo when canceling an fs watchAndrew Kelley
2018-08-09windows fs watching: fix not initializing table valueAndrew Kelley
2018-08-09windows: only create io completion port onceAndrew Kelley
2018-08-09initial windows implementation of std.event.fs.WatchAndrew Kelley
2018-08-08std.event.fs.preadv windows implementationAndrew Kelley
2018-08-08std.event.fs.pwritev windows implementationAndrew Kelley
also fix 2 bugs where the function didn't call allocator.shrink: * std.mem.join * std.os.path.resolve
2018-08-07std.event.fs support for macosAndrew Kelley
The file I/O stuff is working, but the fs watching stuff is not yet.
2018-08-06merge @kristate's std lib changes to darwinAndrew Kelley
2018-08-06fix Thread impl on Linux and add docsAndrew Kelley
2018-08-06separate os.Thread.Id and os.Thread.Handle because of windowsAndrew Kelley
2018-08-06fix std.os.Thread.getCurrentId for linuxAndrew Kelley
2018-08-06Merge branch 'threadid' of https://github.com/mdsteele/zig into ↵Andrew Kelley
mdsteele-threadid
2018-08-06More type cast fixesAndrea Orru
2018-08-06Fix castsAndrea Orru
2018-08-06Merge branch 'master' into zen_stdlibAndrea Orru
2018-08-04Don't compare ?Thread.Id == Thread.Id in the testMatthew D. Steele
It doesn't work, because of issue #1332.
2018-08-04zig/std/os/index.zig: clean-up thread id; (#1)kristopher tate
Ref #1316 #1330
2018-08-03Add thread ID support to std.os.Thread (fixes #1316)Matthew D. Steele
2018-08-03Merge remote-tracking branch 'origin/master' into async-fsAndrew Kelley
2018-08-03Fix a type error in std.os.linux.getpid() (#1326)Matthew D. Steele
syscall0() returns usize, but we were trying to @bitCast to i32.
2018-08-02Merge remote-tracking branch 'origin/master' into async-fsAndrew Kelley
2018-08-02fix API of RtlGenRandomAndrew Kelley
2018-08-02Merge branch 'windows-RtlGenRandom-issue1318' of ↵Andrew Kelley
https://github.com/kristate/zig into pr-1319
2018-08-03std/os/windows/util.zig: SKIP instead of PASS on non-windows systems;kristopher tate
Tracking Issue #1318 ;
2018-08-03std/os/index.zig: call getRandomBytes() twice and compare;kristopher tate
Tracking Issue #1318 ;
2018-08-03std/os/index.zig: swap CryptGetRandom() with RtlGenRandom();kristopher tate
Tracking Issue #1318 ;
2018-08-03std/os/windows/advapi32.zig: add SystemFunction036;kristopher tate
Tracking Issue #1318 ;
2018-08-02std/os/index.zig: use "hw.logicalcpu" instead of "hw.ncpu" in macOS; (#1317)kristopher tate
Tracking Issue #1252 ; hw.ncpu was deprecated in macOS. Among 4 new options available (hw.{physicalcpu, physicalcpu_max, logicalcpu, logicalcpu_max}), hw.logicalcpu was chosen because it actually reflects the number of logical cores the OS sees.
2018-07-30std: file system watching for linuxAndrew Kelley
2018-07-30introduce std.event.fs for async file system functionsAndrew Kelley
only works on linux so far
2018-07-24self-hosted: find all libc paths; windows linker codeAndrew Kelley
2018-07-23Merge remote-tracking branch 'origin/master' into self-hosted-libc-hello-worldAndrew Kelley
2018-07-23self-hosted: add first compare-output testAndrew Kelley
2018-07-22re-organize std lib darwin filesAndrew Kelley
2018-07-21Very much WIP base implementation for #721.Sahnvour
Currently does: - read COFF executable file - locate and load corresponding .pdb file - expose .pdb content as streams (PDB format)
2018-07-21std.os.posix: Add SOCK_* for darwin;kristopher tate
Tracking issue #1271;
2018-07-21std.os.posix: Add SYSPROTO_* for darwin;kristopher tate
Tracking issue #1271;
2018-07-21std.os.posix: Add AF_* for darwin;kristopher tate
Tracking issue #1271;