diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-01-02 10:09:37 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-01-02 10:09:37 +0800 |
| commit | 1c8e37f63d413a559825020289178d442537449e (patch) | |
| tree | 9779a712b5eec91035272e7646eb6811979d7eab /include/fs | |
| parent | d8eaa13f2efc1eeca4e5f230d5a2d535aaf27338 (diff) | |
| download | lume-1c8e37f63d413a559825020289178d442537449e.tar.gz lume-1c8e37f63d413a559825020289178d442537449e.tar.xz | |
dev(sell): add simple libc and implement shell
please see the log for detail.
Diffstat (limited to 'include/fs')
| -rw-r--r-- | include/fs/file.h | 1 | ||||
| -rw-r--r-- | include/fs/fs.h | 1 |
2 files changed, 2 insertions, 0 deletions
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 |
