Convert file descriptors to generic streams
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user