Kernel: Implement pread syscall

The OpenFileDescription class already offers the necessary functionlity,
so implementing this was only a matter of following the structure for
`read` while handling the additional `offset` argument.
This commit is contained in:
Rodrigo Tobar 2021-10-12 21:13:28 +08:00 committed by Andreas Kling
commit e1093c3403
Notes: sideshowbarker 2024-07-18 02:47:22 +09:00
3 changed files with 23 additions and 0 deletions

View file

@ -140,6 +140,7 @@ enum class NeedsBigProcessLock {
S(ptsname, NeedsBigProcessLock::Yes) \
S(purge, NeedsBigProcessLock::Yes) \
S(read, NeedsBigProcessLock::Yes) \
S(pread, NeedsBigProcessLock::Yes) \
S(readlink, NeedsBigProcessLock::Yes) \
S(readv, NeedsBigProcessLock::Yes) \
S(realpath, NeedsBigProcessLock::Yes) \