summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-26 20:14:17 -0400
committerIan Moffett <ian@osmora.org>2024-04-26 20:14:17 -0400
commita307a99db39c800d243ea697dabb5d5043e8f26d (patch)
treedb28c4b1d91a3985b449ca22e6bb920f3c402325
parentb2978f087f2df226dc877d3c881d1e0df2fbfd41 (diff)
kernel: filedesc: Implement SEEK_END
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/kern/kern_filedesc.c2
1 files changed, 1 insertions, 1 deletions
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;