diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-13 19:21:56 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-13 19:21:56 -0400 |
commit | 50960b5c42e47ac33556468ce263c2dc3c44abf6 (patch) | |
tree | 0c20db8aced1d8471dfdd674c4afe7b6ca27154f /sys/kern/kern_filedesc.c | |
parent | 19c9a82f6fe0dc25c4edd142d77745d7742a4703 (diff) |
kernel: filedesc: Increment offset per read()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_filedesc.c')
-rw-r--r-- | sys/kern/kern_filedesc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_filedesc.c b/sys/kern/kern_filedesc.c index 8e15d48..5488c35 100644 --- a/sys/kern/kern_filedesc.c +++ b/sys/kern/kern_filedesc.c @@ -337,6 +337,7 @@ read(int fd, void *buf, size_t count) } bytes_read = vfs_read(vnode, &sio); + fd_desc->offset += bytes_read; return bytes_read; } |