ladybird/Kernel/Syscalls
Brian Gianforcaro bad6d50b86 Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE()
This change lays the foundation for making the require_promise return
an error hand handling the process abort outside of the syscall
implementations, to avoid cases where we would leak resources.

It also has the advantage that it makes removes a gs pointer read
to look up the current thread, then process for every syscall. We
can instead go through the Process this pointer in most cases.
2021-12-29 18:08:15 +01:00
..
access.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
alarm.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
anon_create.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
beep.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
chdir.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
chmod.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
chown.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
clock.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
debug.cpp Kernel+UE+LibC: Remove unused dbgputch syscall 2021-11-24 22:56:39 +01:00
disown.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
dup2.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
emuctl.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
execve.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
exit.cpp Kernel: Fix a few typos 2021-10-01 00:51:49 +01:00
fcntl.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
fork.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
fsync.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
ftruncate.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
futex.cpp Kernel: Fix futex syscall return values 2021-11-24 19:44:57 +01:00
get_dir_entries.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
get_stack_bounds.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
getrandom.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
getuid.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
hostname.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
inode_watcher.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
ioctl.cpp Kernel: Use copy_typed_from_user() in more places :^) 2021-12-18 11:30:10 +01:00
keymap.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
kill.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
link.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
lseek.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
mkdir.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
mknod.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
mmap.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
mount.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
open.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
perf_event.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
pipe.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
pledge.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
poll.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
prctl.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
process.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
profiling.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
ptrace.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
purge.cpp AK: Make Vector::try_* functions return ErrorOr<void> 2021-11-10 21:58:58 +01:00
read.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
readlink.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
realpath.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
rename.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
rmdir.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
sched.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
sendfd.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
setpgid.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
setuid.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
sigaction.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
socket.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
stat.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
statvfs.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
sync.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
sysconf.cpp Kernel: Return the actual number of CPU cores that we have 2021-12-29 03:17:41 -08:00
thread.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
times.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
ttyname.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
umask.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
uname.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
unlink.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
unveil.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
utime.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
waitid.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
write.cpp Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00