Kernel/LibC: Update SYS_SEEK to return new offset and implement lseek

This commit is contained in:
2024-05-23 14:49:23 +03:00
parent 7630170ed6
commit 83e3409bd8
4 changed files with 9 additions and 5 deletions

View File

@@ -93,6 +93,11 @@ ssize_t pread(int fildes, void* buf, size_t nbyte, off_t offset)
return syscall(SYS_PREAD, fildes, buf, nbyte, offset);
}
off_t lseek(int fildes, off_t offset, int whence)
{
return syscall(SYS_SEEK, fildes, offset, whence);
}
int dup(int fildes)
{
return syscall(SYS_DUP, fildes);