Andreas Kling
afc5bbd56b
Kernel: Use TRY() in sys$write()
2021-09-05 18:15:05 +02:00
Andreas Kling
17933b193a
Kernel: Use TRY() in sys$perf_register_string()
2021-09-05 18:15:05 +02:00
Andreas Kling
77b7a44691
Kernel: Use TRY() in sys$recvfd()
2021-09-05 18:15:05 +02:00
Andreas Kling
ea911bc125
Kernel: Use TRY() in sys$pledge()
2021-09-05 18:15:05 +02:00
Andreas Kling
95e74d1776
Kernel: Use TRY() even more in sys$mmap() and friends :^)
2021-09-05 18:15:05 +02:00
Andreas Kling
cf2c04eb13
Kernel: Use TRY() in sys$dbgputstr()
2021-09-05 18:15:05 +02:00
Andreas Kling
6dddd500bf
Kernel: Use TRY() in sys$map_time_page()
2021-09-05 18:15:05 +02:00
Andreas Kling
d53c60fd9f
Kernel: Use TRY() in sys$setkeymap()
2021-09-05 18:15:05 +02:00
Andreas Kling
1f475f7bbc
Kernel: Use TRY() in sys$realpath()
2021-09-05 18:15:05 +02:00
Andreas Kling
4ea3dc77f0
Kernel: Use TRY() in sys$statvfs()
2021-09-05 18:15:05 +02:00
Andreas Kling
7efa742a39
Kernel: Use TRY() in sys$stat()
2021-09-05 17:58:08 +02:00
Andreas Kling
de2c1bc5c3
Kernel: Use TRY() in sys$unlink()
2021-09-05 17:56:40 +02:00
Andreas Kling
4e4b7c272c
Kernel: Use TRY() in sys$readlink()
2021-09-05 17:55:43 +02:00
Andreas Kling
e0cf9152ca
Kernel: Use TRY() in sys$rmdir()
2021-09-05 17:54:33 +02:00
Andreas Kling
780737de7a
Kernel: Use TRY() in sys$rename()
2021-09-05 17:53:59 +02:00
Andreas Kling
c5d046c23a
Kernel: Use TRY() in sys$utime()
2021-09-05 17:53:28 +02:00
Andreas Kling
789db813d3
Kernel: Use copy_typed_from_user<T> for fetching syscall parameters
2021-09-05 17:51:37 +02:00
Andreas Kling
d7e5768763
Kernel: Add copy_typed_from_userspace<T>(Userspace<T const*>)
...
This allows easy retrieval of typed POD values from userspace with
implicit error propagation.
2021-09-05 17:50:34 +02:00
Andreas Kling
48a0b31c47
Kernel: Make copy_{from,to}_user() return KResult and use TRY()
...
This makes EFAULT propagation flow much more naturally. :^)
2021-09-05 17:38:37 +02:00
Andreas Kling
9903f5c6ef
Kernel: Use TRY() in sys$read() and sys$readv()
2021-09-05 16:25:40 +02:00
Andreas Kling
c1e18befe8
Kernel: Reorder sys$pipe() to fail more nicely
...
Try to do both FD allocations up front instead of interleaved between
assigning them to the descriptor table. This prevents us from failing
in the middle of setting up the pipes.
2021-09-05 16:25:40 +02:00
Andreas Kling
4483110990
Kernel: Use TRY() in sys$open()
2021-09-05 16:25:40 +02:00
Andreas Kling
b01e4b171d
Kernel: Use TRY() in sys$mknod()
2021-09-05 16:25:40 +02:00
Andreas Kling
2658ab4a80
Kernel: Use TRY() in sys$mkdir()
2021-09-05 16:25:40 +02:00
Andreas Kling
e899ea459c
Kernel: Use TRY() in sys$lseek()
2021-09-05 16:25:40 +02:00
Andreas Kling
f605cd04b6
Kernel: Use TRY() in sys$fork()
...
There's a lot of work to do on improving error propagation in the
fork system call. This just scratches the surface.
2021-09-05 16:25:40 +02:00
Andreas Kling
29bafec43b
Kernel: Use is_error() in sys$fcntl()
2021-09-05 16:25:40 +02:00
Andreas Kling
c767e20f91
Kernel: Use TRY() in sys$chown()
2021-09-05 16:25:40 +02:00
Andreas Kling
24e8ad5ade
Kernel: Use TRY() in sys$chmod()
2021-09-05 16:25:40 +02:00
Andreas Kling
3631ebe963
Kernel: Use TRY() in AnonymousVMObject
2021-09-05 16:25:40 +02:00
Andreas Kling
abb43468dc
Kernel: Use TRY() in FileDescription::attach()
2021-09-05 16:25:40 +02:00
Andreas Kling
aa4d5817af
Kernel: Use TRY() in sys$ptrace()
2021-09-05 16:25:40 +02:00
Andreas Kling
b2950c67ea
Kernel: Use TRY() in Inode
2021-09-05 16:25:40 +02:00
Andreas Kling
f20d1f0cc6
Kernel: Use TRY() in Region
2021-09-05 16:25:40 +02:00
Andreas Kling
c9a20bcd87
Kernel: Use TRY() in the SoundBlaster16 driver
2021-09-05 16:25:40 +02:00
Andreas Kling
4a2b0f6bec
Kernel: Use TRY() in sys$access()
2021-09-05 16:25:40 +02:00
Andreas Kling
c1c774da91
Kernel: Use TRY() in FIFO
2021-09-05 16:25:40 +02:00
Andreas Kling
cad78f5904
Kernel: Use TRY() in InodeFile
2021-09-05 16:25:40 +02:00
Andreas Kling
29a9f80ecf
Kernel/USB: Use TRY() in the various USB classes
2021-09-05 16:25:40 +02:00
Andreas Kling
f8fba5f017
Kernel: Use TRY() in sys$socket() and friends
2021-09-05 16:25:40 +02:00
Andreas Kling
8714c550b4
Kernel: Use TRY() in TCPSocket
2021-09-05 16:25:40 +02:00
FrHun
2a57cb19af
Emoji: Add various Emoji/Arrows
2021-09-05 14:49:47 +01:00
Andreas Kling
4b7575fabd
Kernel: Unbreak x86_64 build (PageDirectory)
2021-09-05 15:38:57 +02:00
Andreas Kling
865eb54f75
Kernel/Ext2FS: Use TRY() in the Ext2FS
...
This class was just *full* of great opportunities for TRY(). :^)
2021-09-05 15:30:15 +02:00
Andreas Kling
83fed5b2de
Kernel: Tidy up Memory::AddressSpace construction
...
- Return KResultOr<T> in places
- Propagate errors
- Use TRY()
2021-09-05 15:13:20 +02:00
Andreas Kling
0cf65cf7ec
Kernel: Use TRY() even more in VirtualFileSystem
...
Allowing TRY() with KResult unlocked a whole lot more opportunities.
2021-09-05 14:55:51 +02:00
Andreas Kling
e1af24eac8
Kernel: Make KResult usable with TRY() as well
...
This patch adds release_error() and release_value() to KResult, making
it usable with TRY().
Note that release_value() returns void, since there is no value inside
a KResult.
2021-09-05 14:50:52 +02:00
Andreas Kling
71187d865e
Kernel: Tidy up VirtualFileSystem::mount_root() a little bit
...
- Return KResult instead of bool
- Use TRY()
2021-09-05 14:46:44 +02:00
Andreas Kling
b0f2acbd91
Kernel: Use TRY() in FileDescription
2021-09-05 14:43:51 +02:00
Andreas Kling
f2f5df793a
Kernel: Use TRY() in sys$chdir()
2021-09-05 14:41:13 +02:00