From a307a99db39c800d243ea697dabb5d5043e8f26d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 26 Apr 2024 20:14:17 -0400 Subject: kernel: filedesc: Implement SEEK_END Signed-off-by: Ian Moffett --- sys/kern/kern_filedesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/kern/kern_filedesc.c b/sys/kern/kern_filedesc.c index 203eefc..6bce6d2 100644 --- a/sys/kern/kern_filedesc.c +++ b/sys/kern/kern_filedesc.c @@ -391,7 +391,7 @@ lseek(int fd, off_t offset, int whence) fd_desc->offset += offset; break; case SEEK_END: - /* TODO */ + fd_desc->offset = vattr.size; break; default: return -EINVAL; -- cgit v1.2.3