diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-12 00:37:26 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-16 22:57:45 +0100 |
| commit | 2ce58c995946f85666e793c4f06efff683e76ae4 (patch) | |
| tree | fbf2658bb0b0f61dadcf4ca27f997eaded78aae5 /src/fs/include | |
| parent | 5ce25ae3b5d8666d373f7d7e336546ce8508c213 (diff) | |
fixesHEADhelloworldmaster
Diffstat (limited to 'src/fs/include')
| -rw-r--r-- | src/fs/include/fs/fs.h | 40 | ||||
| -rw-r--r-- | src/fs/include/fs/inode.h | 1 |
2 files changed, 24 insertions, 17 deletions
diff --git a/src/fs/include/fs/fs.h b/src/fs/include/fs/fs.h index 60c1788..66bfe84 100644 --- a/src/fs/include/fs/fs.h +++ b/src/fs/include/fs/fs.h @@ -30,6 +30,23 @@ struct fs_mountpoint; struct fs_mp_prv; struct fs_fd_prv; +struct fs_mp +{ + const char *src, *tgt; + const struct fs *fs; + struct fs_mp_prv *prv; +}; + +struct fs_fd +{ + int error; + off_t start, offset, size; + struct fs_fd_prv *prv; + struct fs_mp mp; + const struct fs_mp *tgt_mp; + union inode_result inode; +}; + struct fs_stat { const char *path; @@ -62,6 +79,11 @@ struct fs_umount gid_t gid; }; +struct fs_stdstreams +{ + struct fs_fd streams[3]; +}; + struct fs_open { const char *path; @@ -70,6 +92,7 @@ struct fs_open mode_t mode; uid_t uid; gid_t gid; + struct fs_stdstreams ss; }; struct fs_read @@ -114,23 +137,6 @@ struct fs struct inode_ops iops; }; -struct fs_mp -{ - const char *src, *tgt; - const struct fs *fs; - struct fs_mp_prv *prv; -}; - -struct fs_fd -{ - int error; - off_t start, offset, size; - struct fs_fd_prv *prv; - struct fs_mp mp; - const struct fs_mp *tgt_mp; - union inode_result inode, tgt_inode; -}; - typedef int (*fs_update_fn)(struct fs_mp_prv *); int fs_register(const struct fs *fs); diff --git a/src/fs/include/fs/inode.h b/src/fs/include/fs/inode.h index a7759f9..9447ab2 100644 --- a/src/fs/include/fs/inode.h +++ b/src/fs/include/fs/inode.h @@ -20,6 +20,7 @@ #define FS_INODE_H #include <state.h> +#include <sys/stat.h> #include <sys/types.h> #include <time.h> |
