Convert file descriptors to generic streams

This commit is contained in:
2026-06-18 21:46:18 +03:00
parent bcf2e5bac6
commit 9761e3e870
20 changed files with 150 additions and 79 deletions
+3
View File
@@ -1,5 +1,6 @@
#pragma once
#include "src/kernel/stream.h"
#include <stdint.h>
#define FILENAME_SIZE_LIMIT 255
@@ -19,6 +20,8 @@ fs_node_t *fs_open_at(const fs_node_t *directory, uint64_t index);
fs_node_t *fs_open_again(const fs_node_t *source);
stream_t *fs_open_stream(const fs_node_t *source);
void fs_read(const fs_node_t *file, uint64_t offset, uint64_t size, void *to);
void fs_close(fs_node_t *node);