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

@@ -33,7 +33,7 @@ namespace Kernel
BAN::ErrorOr<int> fcntl(int fd, int cmd, int extra);
BAN::ErrorOr<void> seek(int fd, off_t offset, int whence);
BAN::ErrorOr<off_t> seek(int fd, off_t offset, int whence);
BAN::ErrorOr<off_t> tell(int) const;
BAN::ErrorOr<void> fstat(int fd, struct stat*) const;