summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2017-08-06Add generated system calls.Ori Bernstein
2017-08-05Add all syscalls for OpenBSD 6.1Ori Bernstein
2017-08-03Add readlink syscallRyan Gonzalez
2017-08-03Add set/getuid and set/getgid syscallsRyan Gonzalez
Also my editor may or may not have stripped some whitespace...
2017-08-01Add autogenerated freebsd syscalls.Ori Bernstein
2017-08-01HACK: Work around bug in mbld.Ori Bernstein
It picks up the wrong test util library right now.
2017-07-31Optimize sleq.Ori Bernstein
Now the comparison is done in assembly, using quads for checking the larger loop, and words for the smaller.
2017-07-31Don't copy slices byte-by-byte.Ori Bernstein
2017-07-26Bitset iterator doesn't need to be generic.Ori Bernstein
A const works perfectly fine.
2017-07-25Update all bootstrapsmbld-rebaseOri Bernstein
- FreeBSD - Linux - Plan 9 - OSX - OpenBSD - NetBSD
2017-07-25Add support for obj/ directory.Ori Bernstein
Currently, it's unconditional.
2017-07-25New parallel mbld.Ori Bernstein
2017-07-25Add fallback ncpu for all OSes.Ori Bernstein
It just returns a hard-coded value, but that should be good enough for correctness.
2017-07-25Remove spandrels.Ori Bernstein
Match patterns can't be null. They haven't been nullable for ages. And even if they could be nullable, $2 isn't the match statement any more.
2017-07-23Add back error signalling on close.Ori Bernstein
2017-07-23Implement waitany() on 9front.Ori Bernstein
2017-07-23Conform to new generic scoping on plan 9.Ori Bernstein
2017-07-23Preparing for the new mbld.Ori Bernstein
It's a tad stricter about a couple of things.
2017-07-22Terminate error message lines.Ori Bernstein
2017-07-22Using implicit util files in tests is a bad idea.Ori Bernstein
Also, it's going to go away in the new mbld.
2017-07-18Update hashes in tests to match fixed algorithm.Ori Bernstein
2017-07-18Fix murmurhash2 when string length is a multiple of a 4Michael Forney
The first h *= m after the loop should only happen for len % 4 != 0.
2017-07-18Add the abiity to wait for any proc.Ori Bernstein
2017-07-17Convert from `in` to `:`.Ori Bernstein
The winds of change are a-blowin.
2017-07-16Byref should return a refiter.Ori Bernstein
Oops.
2017-07-15Type binding refactoring now compiles.Ori Bernstein
Still a bit sloppy on a few things, needs some dedup work, but it's working.
2017-07-08Remap type params according to bound scope.Ori Bernstein
Getting closer to scoping type params properly. Still not fully there.
2017-07-07Use the correct syscall for kill on OpenBSDCarlin Bingham
2017-07-03Function args should go into the block stab.Ori Bernstein
Now we get errors if a function body shadows its args.
2017-06-25Fix some actual type bugs.Ori Bernstein
Strictness fixes issues. Oops.
2017-06-25Add memfdcreate for linux-x64Michael Forney
2017-06-25Add fallocate for linux-x64Michael Forney
2017-06-25Add newer linux syscall numbersMichael Forney
2017-06-25Add sendmsg/recvmsg for linux-x64Michael Forney
Also, make sockproto int32 so that the level field in cmsghdr has the correct size.
2017-06-25Rename Solsock to Solsocket and make it type sockprotoMichael Forney
This constant is used as a protocol level in getsockopt/setsockopt as well as msghdr. Valid values for level include the same constants used as the protocol argument of socket (IPPROTO_*), so it needs to have the same type so the constants can be used in both functions. The rename is for consistency with the C API.
2017-06-25Use an iovec struct for readv/writevMichael Forney
This avoids the assumption that iovec and byte[:] are laid out the same way in memory.
2017-06-24Fix uninitialized variable access.Ori Bernstein
2017-06-22Remove sigpipe handler.Ori Bernstein
It's useful, but we don't want it by default. Should add a good API for it, though.
2017-06-21Fix the last commit.Ori Bernstein
Shit. Trivial commits need to be tested too.
2017-06-21Move `canget()` to appropriate place.Ori Bernstein
2017-06-21Add function to test for something in std.optionLucas Gabriel Vuotto
Signed-off-by: Lucas Gabriel Vuotto <lvuotto92@gmail.com>
2017-06-17Fix compile.Ori Bernstein
Whee, typos.
2017-06-17Fix parameter names in memblit/memfill signaturesMichael Forney
2017-06-17Misc 9front fixes.Ori Bernstein
2017-06-17Fix big endian putle.Ori Bernstein
Well, we don't support any big endian systems, but that doens't mean we can't patch them...
2017-06-17Add host-order getters for ints.Ori Bernstein
Ugly, but necessary for some file formats.
2017-06-13Fix std.optparse maxargs checkLucas Gabriel Vuotto
Signed-off-by: Lucas Gabriel Vuotto <lvuotto92@gmail.com>
2017-06-13Show usage when wrong flags are given or parameters are expectedLucas Gabriel Vuotto
Signed-off-by: Lucas Gabriel Vuotto <lvuotto92@gmail.com>
2017-06-13Vastart isn't free. It's cheap.Ori Bernstein
In a tight loop, it makes a measurable difference.
2017-06-12Signals now work right on linux.Ori Bernstein
We weren't calling the restorer. Linux really wants this. Oops.