aboutsummaryrefslogtreecommitdiff
path: root/std/os.zig
AgeCommit message (Collapse)Author
2019-09-25mv std/ lib/Andrew Kelley
that's all this commit does. further commits will fix cli flags and such. see #2221
2019-09-25enable test coverage for armv8-linux-musleabihfAndrew Kelley
* fix libc prototypes of offsets to have correct integer sizes and signedness. This gets all behavior tests to pass for armv8-linux-musleabihf * fix linux mmap syscall to have correct integer size and signedness for offset * disable failing armv8-linux-musleabihf std lib tests. See 3289. I suspect compiler-rt issue. Note these tests fail with this target triple regardless of whether musl is actually linked (-lc).
2019-09-25Fix llseek behaviorLemonBoy
2019-09-22libc implementation of gethostnameAndrew Kelley
2019-09-22linux implementation of std.net.getHostNameAndrew Kelley
2019-09-13Merge branch 'uefi' of https://github.com/nrdmn/zig into nrdmn-uefiAndrew Kelley
2019-09-10make the std lib support event-based I/OAndrew Kelley
also add -fstack-report
2019-08-20fixupsAndrew Kelley
* getrandom libc prototypes had the wrong return type * `total_read` local variable was unnecessary since the sub-slice buffer has a length * I was able to get rid of all the integer casts * the err == 0 check can be a switch case * add missing `return` statement
2019-08-20fix os.getrandom logic to fill the entire bufferEuan Torano
2019-08-16improvements to std lib for event-based I/OAndrew Kelley
2019-08-05Fix #2993 - use getrandom on freebsdEuan Torano
2019-08-04initial work torwards std lib support for uefiNick Erdmann
2019-08-03Omit system namespace.Euan T
Co-Authored-By: Andrew Kelley <andrew@ziglang.org>
2019-08-03Update returned error return when not a character device.Euan T
Co-Authored-By: Andrew Kelley <andrew@ziglang.org>
2019-08-02Fix call to S_ISCHR and implement for MacEuan Torano
2019-08-02Check if /dev/urandom is a character deviceEuan Torano
2019-07-29os: missing accessW since recent refactoringSahnvour
2019-07-15move some of the installation from cmake to zig buildAndrew Kelley
This moves the installation of shipped source files from large CMakeLists.txt lists to zig build recursive directory installation. On my computer a cmake `make install` takes 2.4 seconds even when it has to do nothing, and prints a lot of unnecessary lines to stdout that say "up-to-date: [some file it is installing]". After this commit, the default output of `make` is down to 1 second, and it does not print any junk to stdout. Further, a `make install` is no longer required and `make` is sufficient. This closes #2874. It also closes #2585. `make` now always invokes `zig build` for installing files and libuserland.a, and zig's own caching system makes that go fast.
2019-07-08std.os.getrandom does a libc version checkAndrew Kelley
closes #397
2019-07-07std: MAP_FAILED is a libc concept on linuxdaurnimator
2019-07-05std.os.abort no longer calls msvcrt abort() when linking libcAndrew Kelley
closes #2071
2019-07-02stack traces on segfault by default for linux-x86_64Andrew Kelley
closes #2355
2019-06-09different array literal syntax when inferring the sizeAndrew Kelley
old syntax: []i32{1, 2, 3} new syntax: [_]i32{1, 2, 3} closes #1797
2019-06-04std.os.mmap: update doc comments for previous commitsAndrew Kelley
2019-05-31Move dl_iterate_phdr to os.zigLemonBoy
2019-05-31Remove length restriction in mmap wrapperLemonBoy
2019-05-30Fix some syscalls on arm64LemonBoy
2019-05-29Merge pull request #2546 from LemonBoy/sigaltstackAndrew Kelley
Add sigaltstack syscall for Linux
2019-05-29run zig fmt to update `use` to `usingnamespace`Andrew Kelley
2019-05-29Add sigaltstack wrapper in os.zigLemonBoy
2019-05-28thread.spawn: bubble up mprotect error.OutOfMemoryAndrew Kelley
2019-05-28Fix os.mprotect signatureLemonBoy
2019-05-27freebsd fixesAndrew Kelley
2019-05-27windows does not integrate cleanly with libcAndrew Kelley
2019-05-27fixes for windows to build self hosted compilerAndrew Kelley
2019-05-27use close$NOCANCEL on darwinAndrew Kelley
2019-05-27fixes for darwinAndrew Kelley
2019-05-27nanosleep: move windows logic to std.timeAndrew Kelley
2019-05-27std lib fixes for zig build on windowsAndrew Kelley
2019-05-27more fixes for windows and wasiAndrew Kelley
2019-05-27fixes for Windows and WASIAndrew Kelley
2019-05-26tests passing on linuxAndrew Kelley
2019-05-26behavior tests passing on LinuxAndrew Kelley
2019-05-26more cleanup. down to just the `@hasDecl` builtinAndrew Kelley
2019-05-26clean up references to osAndrew Kelley
2019-05-26clean up references to posixAndrew Kelley
2019-05-26starting to fix the regressionsAndrew Kelley
2019-05-26rename "posix" to "bits"Andrew Kelley
2019-05-26do Jay's suggestion with posix/os API naming & layoutAndrew Kelley
2019-05-26more progress. moving windows API layer to its own fileAndrew Kelley