![]() |
FrostWing
A lightweight raw-control operating system.
|
Unix like standard streams. More...
#include <stddef.h>#include <stdbool.h>#include <stdint.h>

Go to the source code of this file.
Macros | |
| #define | STREAM_MAX_FDS 256 |
Typedefs | |
| typedef struct vfs_file | vfs_file_t |
Enumerations | |
| enum | stream_t { STDIN = 0 , STDOUT = 1 , STDERR = 2 } |
Functions | |
| void | stream_init (void) |
| void | stream_write (stream_t s, const char *buf, size_t len) |
| Redirect output to a file. | |
| void | stream_putc (stream_t s, char c) |
| void | fd_table_init (void) |
| bool | fd_valid (int fd) |
| vfs_file_t * | fd_get_file (int fd) |
| int | fd_open (const char *path, int flags) |
| int | fd_close (int fd) |
| int | fd_dup (int oldfd) |
| int | fd_dup2 (int oldfd, int newfd) |
| int | fd_flags (int fd) |
| const char * | fd_get_path (int fd) |
| uint32_t | fd_file_size (int fd) |
| uint32_t * | fd_pos_ptr (int fd) |
Unix like standard streams.
Definition in file stream.h.
| void stream_write | ( | stream_t | s, |
| const char * | buf, | ||
| size_t | len ) |
Redirect output to a file.
| s | the stream type. |
| file | If file is 'null' then output will be in terminal. |