summaryrefslogtreecommitdiff
path: root/Kernel/KResult.h
AgeCommit message (Collapse)Author
2019-06-14Kernel: Fix KResultOr move constructor not copying errors.Sergey Bugaev
2019-06-07Meta: Tweak .clang-format to not wrap braces after enums.Andreas Kling
2019-05-28Add clang-format fileRobin Burchell
Also run it across the whole tree to get everything using the One True Style. We don't yet run this in an automated fashion as it's a little slow, but there is a snippet to do so in makeall.sh.
2019-04-09Kernel: Yet more work on bringing up POSIX SHM.Andreas Kling
2019-03-06Kernel: Port more code to KResult and KResultOr<T>.Andreas Kling
2019-02-27Kernel: Use KResult in unlink() and rmdir().Andreas Kling
2019-02-26LibC: Make errno codes be #defines instead of enum values.Andreas Kling
It turns out that a lot of 3rd party software does things like: #ifdef EINTR ... #endif This won't work if EINTR is an enum. So much for that nice idea.
2019-02-25Kernel: Add KResult and KResultOr<T> classes.Andreas Kling
The idea here is to combine a potential syscall error code with an arbitrary type in the case of success. I feel like this will end up much less error prone than returning some arbitrary type that kinda sorta has bool semantics (but sometimes not really) and passing the error through an out-param. This patch only converts a few syscalls to using it. More to come.