Turnstone Operating System
Loading...
Searching...
No Matches
stdbufs.64.c File Reference

standard buffers for input and output More...

#include <stdbufs.h>
#include <cpu/task.h>
#include <video.h>
#include <strings.h>
#include <windowmanager.h>

Typedefs

typedef buffer_t *(* stdbuf_task_buffer_getter_f) (void)
 

Functions

 MODULE ("turnstone.lib.stdbufs")
 
static void stdbufs_video_null_printer (const char_t *text)
 
int8_t stdbufs_init_buffers (stdbufs_video_printer video_printer)
 
static buffer_tstdbufs_get_task_get_input_buffer (void)
 
static buffer_tstdbufs_get_task_get_output_buffer (void)
 
static buffer_tstdbufs_get_task_get_error_buffer (void)
 
buffer_tbuffer_get_io_buffer (uint64_t buffer_io_id)
 returns a buffer for io buffer id, first three buffers are stdin, stdout, stderr More...
 
int64_t printf (const char *format,...)
 
int64_t vprintf (const char *format, va_list ap)
 
int64_t stdbufs_flush_buffer (buffer_t *buffer)
 

Variables

buffer_tstdbufs_default_input_buffer = NULL
 
buffer_tstdbufs_default_output_buffer = NULL
 
buffer_tstdbufs_default_error_buffer = NULL
 
stdbufs_video_printer stdbufs_video_print = stdbufs_video_null_printer
 
stdbuf_task_buffer_getter_f stdbufs_task_get_input_buffer = NULL
 
stdbuf_task_buffer_getter_f stdbufs_task_get_output_buffer = NULL
 
stdbuf_task_buffer_getter_f stdbufs_task_get_error_buffer = NULL
 

Detailed Description

standard buffers for input and output

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Function Documentation

◆ buffer_get_io_buffer()

buffer_t * buffer_get_io_buffer ( uint64_t  buffer_io_id)

returns a buffer for io buffer id, first three buffers are stdin, stdout, stderr

Parameters
[in]buffer_io_idio buffer id
Returns
buffer_t* pointer to buffer