aboutsummaryrefslogtreecommitdiff
path: root/std/os
AgeCommit message (Collapse)Author
2018-03-20Zen specific hacksAndrea Orru
2018-03-20Public SplitIteratorAndrea Orru
2018-03-18Message type, Undefined mailbox, read syscall, more constructorsAndrea Orru
2018-03-16Service -> ServerAndrea Orru
2018-03-16Add Thread option for MailboxesAndrea Orru
2018-03-15Some POSIX stuff, including a primitive writeAndrea Orru
2018-03-15subscribeIRQ supportAndrea Orru
2018-03-15More precise namingAndrea Orru
2018-03-14IPC structure updatesAndrea Orru
2018-03-09Fixed syntax errors in linux-i386 syscallsAndrea Orru
2018-03-09Added 6 parameters syscalls for zenAndrea Orru
2018-03-06ptrCast builtin now gives an error for removing const qualifierAndrew Kelley
closes #384
2018-02-27remove signal hanlding stuff from std.os.ChildProcessAndrew Kelley
2018-02-17improve std lib linux epoll APIAndrew Kelley
2018-02-12remove std.heap.IncrementingAllocatorAndrew Kelley
Use std.heap.FixedBufferAllocator combined with std.heap.DirectAllocator instead. std.mem.FixedBufferAllocator is moved to std.heap.FixedBufferAllocator
2018-02-12introduce std.heap.ArenaAllocator and std.heap.DirectAllocatorAndrew Kelley
* DirectAllocator does the underlying syscall for every allocation. * ArenaAllocator takes another allocator as an argument and allocates bytes up front, falling back to DirectAllocator with increasingly large allocation sizes, to avoid calling it too often. Then the entire arena can be freed at once. The self hosted parser is updated to take advantage of ArenaAllocator for the AST that it returns. This significantly reduces the complexity of cleanup code. docgen and build runner are updated to use the combination of ArenaAllocator and DirectAllocator instead of IncrementingAllocator, which is now deprecated in favor of FixedBufferAllocator combined with DirectAllocator. The C allocator calls aligned_alloc instead of malloc, in order to respect the alignment parameter. Added asserts in Allocator to ensure that implementors of the interface return slices of the correct size. Fixed a bug in Allocator when you call realloc to grow the allocation.
2018-02-11std: refactor posixOpen to be friendlier to error return tracesAndrew Kelley
2018-02-10std.os and std.io API updateAndrew Kelley
* move std.io.File to std.os.File * add `zig fmt` to self hosted compiler * introduce std.io.BufferedAtomicFile API * introduce std.os.AtomicFile API * add `std.os.default_file_mode` * change FileMode on posix from being a usize to a u32 * add std.os.File.mode to return mode of an open file * std.os.copyFile copies the mode from the source file instead of using the default file mode for the dest file * move `std.os.line_sep` to `std.cstr.line_sep`
2018-02-09std lib: modify allocator idiomAndrew Kelley
Before we accepted a nullable allocator for some stuff like opening files. Now we require an allocator. Use the mem.FixedBufferAllocator pattern if a bound on the amount to allocate is known. This also establishes the pattern that usually an allocator is the first argument to a function (possibly after "self"). fix docs for std.cstr.addNullByte self hosted compiler: * only build docs when explicitly asked to * clean up main * stub out zig fmt
2018-02-09fix build runner on windowsAndrew Kelley
2018-02-08Merge remote-tracking branch 'origin/master' into error-setsAndrew Kelley
2018-02-08error sets - most tests passingAndrew Kelley
2018-02-07implement openSelfExe() on darwin (#753)Ben Noordhuis
2018-02-05handle linux returning EINVAL for large writesAndrew Kelley
See #743
2018-02-05handle linux returning EINVAL for large readsAndrew Kelley
see #743
2018-02-05fix test failure, organize code, add new compile errorAndrew Kelley
2018-02-04fix accidentally linking against kernel32 on non windowsAndrew Kelley
2018-02-04Use /dev/urandom and sysctl(RANDOM_UUID) on Linux.Ben Noordhuis
Add fallback paths for when the getrandom(2) system call is not available. Try /dev/urandom first and sysctl(RANDOM_UUID) second. The sysctl issues a warning in the system logs with some kernels but that seems like an acceptable tradeoff for the fallback of a fallback.
2018-02-03*WIP* error sets - std lib test compile but try to link against windowsAndrew Kelley
2018-02-03*WIP* error sets - an inferred error set can end up being the global oneAndrew Kelley
2018-02-03*WIP* error sets - support fns called at comptimeAndrew Kelley
2018-02-02*WIP* error sets - correctly resolve inferred error setsAndrew Kelley
2018-02-01*WIP* error sets - fix implicit castAndrew Kelley
2018-01-31*WIP* error sets converting std libAndrew Kelley
2018-01-31*WIP* error setsAndrew Kelley
2018-01-29std: fix fn return syntax for zen osAndrew Kelley
2018-01-25syntax: functions require return type. remove `->`Andrew Kelley
The purpose of this is: * Only one way to do things * Changing a function with void return type to return a possible error becomes a 1 character change, subtly encouraging people to use errors. See #632 Here are some imperfect sed commands for performing this update: remove arrow: ``` sed -i 's/\(\bfn\b.*\)-> /\1/g' $(find . -name "*.zig") ``` add void: ``` sed -i 's/\(\bfn\b.*\))\s*{/\1) void {/g' $(find ../ -name "*.zig") ``` Some cleanup may be necessary, but this should do the bulk of the work.
2018-01-23replace %defer with errdeferAndrew Kelley
See #632 now we have 1 less sigil
2018-01-22add new kind of test: generating .h files. and moreAndrew Kelley
* docgen supports obj_err code kind for demonstrating errors without explicit test cases * add documentation for `extern enum`. See #367 * remove coldcc keyword and add @setIsCold. See #661 * add compile errors for non-extern struct, enum, unions in function signatures * add .h file generation for extern struct, enum, unions
2018-01-19Removed PLARGE_INTEGERJimmi Holst Christensen
2018-01-19Implemented windows versions of seekTo and getPosJimmi Holst Christensen
2018-01-15clean up error return tracingAndrew Kelley
* error return tracing is disabled in release-fast mode * add @errorReturnTrace * zig build API changes build return type from `void` to `%void` * allow `void`, `noreturn`, and `u8` from main. closes #535
2018-01-09remove %% prefix operatorAndrew Kelley
See #632 closes #545 closes #510 this makes #651 higher priority
2018-01-08exit, createThread for zenAndrea Orru
2018-01-07replace `a %% b` with `a catch b`Andrew Kelley
See #632 better fits the convention of using keywords for control flow
2018-01-07replace `%return` with `try`Andrew Kelley
See #632 better fits the convention of using keywords for control flow
2018-01-07Adding zen supportAndrea Orru
2018-01-06Darwin -> MacOSX, added Zen. See #438Andrea Orru
2018-01-04fix test regressions on windows from previous commitAndrew Kelley
2018-01-04self-hosted compiler works on macosAndrew Kelley