summaryrefslogtreecommitdiff
path: root/Kernel/ProcFS.h
AgeCommit message (Collapse)Author
2019-03-16Move Lock from AK to Kernel, since it only works inside the kernel.Andreas Kling
2019-02-27Kernel: Use KResult in link().Andreas Kling
2019-02-27Kernel: Use KResult in unlink() and rmdir().Andreas Kling
2019-02-27Add chown() syscall and a simple /bin/chown program.Andreas Kling
2019-02-25More moving towards using signed types.Andreas Kling
I'm still feeling this out, but I am starting to like the general 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.
2019-02-25AK: Add Retained<T>, like RetainPtr, but never null.Andreas Kling
Also use some Clang attribute wizardry to get a warning for use-after-move.
2019-02-15Use modern C++ attributes instead of __attribute__ voodoo.Andreas Kling
This is quite nice, although I wish [[gnu::always_inline]] implied inline. Also "gnu::" is kind of a wart, but whatcha gonna do.
2019-02-08Kernel: Use a Lockable<bool> for sysctl booleans as well.Andreas Kling
2019-02-08ProcFS: Add sysctl strings.Andreas Kling
They are backed by a Lockable<String> to ensure that access is synchronized.
2019-02-03Kernel: Rewrite ProcFS.Andreas Kling
Now the filesystem is generated on-the-fly instead of manually adding and removing inodes as processes spawn and die. The code is convoluted and bloated as I wrote it while sleepless. However, it's still vastly better than the old ProcFS, so I'm committing it. I also added /proc/PID/fd/N symlinks for each of a process's open fd's.