diff options
author | Anton Kling <anton@kling.gg> | 2023-10-22 19:50:38 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-22 19:50:38 +0200 |
commit | 4e09bca9e34c226b6d7e34b4fa11248405fd988e (patch) | |
tree | 80f156b7940d9d19971395f335530170c69516c7 /fs/tmpfs.h |
Move everything into a new repo.
Diffstat (limited to 'fs/tmpfs.h')
-rw-r--r-- | fs/tmpfs.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fs/tmpfs.h b/fs/tmpfs.h new file mode 100644 index 0000000..4052bd5 --- /dev/null +++ b/fs/tmpfs.h @@ -0,0 +1,16 @@ +#ifndef TMP_H +#define TMP_H +#include <fs/fifo.h> +#include <fs/vfs.h> + +#define TMP_BUFFER_SIZE (1024 * 10) + +typedef struct { + FIFO_FILE *fifo; + uint8_t is_closed; + vfs_inode_t *read_inode; +} tmp_inode; + +void pipe(int fd[2]); +void dual_pipe(int fd[2]); +#endif |