From 1c8e37f63d413a559825020289178d442537449e Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Fri, 2 Jan 2026 10:09:37 +0800 Subject: dev(sell): add simple libc and implement shell please see the log for detail. --- include/fs/file.h | 1 + include/fs/fs.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include/fs') diff --git a/include/fs/file.h b/include/fs/file.h index fc0c5d9..2f23176 100644 --- a/include/fs/file.h +++ b/include/fs/file.h @@ -32,4 +32,5 @@ namespace FileTable int stat(struct file *f, uint64 addr); int read(struct file *f, uint64 addr, int n); int write(struct file *f, uint64 addr, int n); + int lseek(struct file *f, int offset, int whence); } // namespace FileTable diff --git a/include/fs/fs.h b/include/fs/fs.h index 6e4ec4b..f40bc0c 100644 --- a/include/fs/fs.h +++ b/include/fs/fs.h @@ -83,6 +83,7 @@ namespace VFS void ilock(Inode *ip); // unlock void iunlock(Inode *ip); + void iunlockput(Inode *ip); // Mount the root filesystem void mount_root(Inode *root); // Get system root node -- cgit v1.2.3