1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

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
parent 8936b111a7
commit e1093c3403
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) \