summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-04-28Fix float conversions in casts.Ori Bernstein
We were dropping the intness, and didn't registerize the args to comisd.
2019-04-28Revert "Add a missing tysearch."Ori Bernstein
This reverts commit b31626248ea64c23d2020846e2cac1c751348b61.
2019-04-12Rename traits correctly.Ori Bernstein
2019-03-21Commit bio.readtermOri Bernstein
2019-03-21bio.readto and EOFCarlin Bingham
Hi, When using bio.readto I often want to be able to tell if the delimeter was found, or if the file was truncated, but there doesn't appear to be a way to tell if readto stopped searching because it found what it was looking for or if it reached EOF, other than to do another read. A simple solution to this would be a new function that reads to and includes the delimeter in the returned slice if it was found, which can be used intead when you care. I've tentatively included a patch for this. Is this something that would be wanted? Is there a better solution? Or a better name? -- Carlin NB. I've stolen the `Keep tag that was already there but apparently never used. Not sure if it was intended for a higher purpose. >From c230b380fbf0e7ba2c24aae332e4ce8016843d66 Mon Sep 17 00:00:00 2001 From: Carlin Bingham <cb@viennan.net> Date: Sat, 16 Mar 2019 10:20:23 +1300 Subject: [PATCH] Add bio.readtoinc - read to including delimiter X-Spam-Status: No, hits=0.000000 required=0.900000 Similar to bio.readto except it includes the delimeter in the returned slice if it was found, making the absence of the delimiter indicate EOF
2019-03-16Add synchronization to xset.iriri
Unfortunately, this is necessary to achieve sequential consistency.
2019-03-14Add explicit abi conversions for syscall args.Ori Bernstein
Sure, the types happen to work, but consistency is nice.
2019-03-14Fix use-after-free in futex-based semaphore implementations.iriri
The current implementation of `sem_post` first increments the value of the semaphore and then checks the waiter count to see if it must call `ftxwake`. However, it is possible for `sem_wait` to return at any time after the value has been incremented, meaning that the memory this check looks at might already be deallocated. Happily, it turns out the OS X futex operations actually take a 32 bit value which greatly simplifies things.
2019-03-14Get a bit better at wrangling type bindings.Ori Bernstein
2019-03-13readdelim: don't leak memory if there's an errorCarlin Bingham
2019-03-13Fix bio.readtoCarlin Bingham
Don't change rstart on each iteration as that prevents it being able to return characters at the start of the buffer if the delim is found, and only read characters from the buffer that were actually checked
2019-03-03Give traits the necessary env.Ori Bernstein
2019-03-03Don't set the env on typedef psuedodecls.Ori Bernstein
We want to specialize the args in the parent env.
2019-03-03Merge envs correctly.Ori Bernstein
Still a couple of straggling issues, but almost there.
2019-02-28Fix type substitution in sizeof.Ori Bernstein
2019-02-27Merge github.com:oridb/mcOri Bernstein
2019-02-27Remove unused lines from the regmap.Ori Bernstein
These were placeholders for %rpb, %rsp -- but we never use %rsp and %rbp in the colormap, so they were just dead lines that caused confusion.
2019-02-27Fix __fini__ on openbsdCarlin Bingham
2019-02-26Hook in __fini__ on 9front.Ori Bernstein
2019-02-26Accept that `file` isn't a node.Ori Bernstein
Shrink node sizes, simplify code a bit.
2019-02-26Add support for `__fini__` functions.Ori Bernstein
2019-02-19Handle (-1) + (1) and (-3) - (-2) with bigintsS. Gilles
2019-02-19Allow bigparse to handle negative numbersS. Gilles
2019-02-19Convert bigint tests to use testrS. Gilles
2019-02-18We don't need the last array, just the count.Ori Bernstein
Fixes #187
2019-02-16Clean up redundant code.Ori Bernstein
2019-02-10Pass the type envs through properly in delayed unification.Ori Bernstein
2019-02-10Work towards removing the streq check.Ori Bernstein
2019-02-10Boundtype should be harmless on non-params.Ori Bernstein
2019-02-09Work towards removing the streq check.Ori Bernstein
2019-02-08Runsrc is now consistent with -bOri Bernstein
2019-02-08Unbreak runsrc.Ori Bernstein
2019-02-07Fix declaration of mktraitmapOri Bernstein
2019-02-06Fix indentation.Ori Bernstein
2019-02-05Add a missing tysearch.Ori Bernstein
2019-02-04Error if we forgot to give code to build.Ori Bernstein
2019-01-29Add test for previous failure.Ori Bernstein
2019-01-29Remove pointless call overhead and casting.Ori Bernstein
2019-01-29Align slices correctly in vaenter.Ori Bernstein
2019-01-28Bump ABI version.Ori Bernstein
Fixes bug for slices in varargs.
2019-01-28Missed type alignment for slices.Ori Bernstein
Holy crap, how did this work until now.
2019-01-27Add commonly used constants.Ori Bernstein
2019-01-27Fix formatting.Ori Bernstein
2019-01-20Fix package name.Ori Bernstein
2019-01-19Fix curve25519.Ori Bernstein
2019-01-15And a bit more tweaking: Just git-reset.Ori Bernstein
2019-01-14Make rebootstrapping more robust.Ori Bernstein
2019-01-14Merge branch 'pathabs' of https://github.com/typeless/mcOri Bernstein
2019-01-12Fix thread spawning on OSX 10.14Ori Bernstein
2019-01-12Allow folding character-typed designated array inits.Ori Bernstein