#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <assert.h>
#include <str.h>
#include <errno.h>
#include <bool.h>
#include <malloc.h>
#include <async.h>
#include <io/klog.h>
#include <vfs/vfs.h>
#include <ipc/devmap.h>
#include <adt/list.h>
#include "../private/io.h"
Go to the source code of this file.
Functions | |
void | __stdio_done (void) |
void | __stdio_init (int filc, fdi_node_t *filv[]) |
static int | _fallocbuf (FILE *stream) |
Allocate stream buffer. | |
static void | _ffillbuf (FILE *stream) |
Read some data in stream buffer. | |
static void | _fflushbuf (FILE *stream) |
Write out stream buffer, do not sync stream. | |
static size_t | _fread (void *buf, size_t size, size_t nmemb, FILE *stream) |
Read from a stream (unbuffered). | |
static size_t | _fwrite (const void *buf, size_t size, size_t nmemb, FILE *stream) |
Write to a stream (unbuffered). | |
static void | _setvbuf (FILE *stream) |
void | clearerr (FILE *stream) |
int | fclose (FILE *stream) |
FILE * | fdopen (int fd, const char *mode) |
int | feof (FILE *stream) |
int | ferror (FILE *stream) |
int | fflush (FILE *stream) |
int | fgetc (FILE *stream) |
char * | fgets (char *str, int size, FILE *stream) |
int | fileno (FILE *stream) |
int | fnode (FILE *stream, fdi_node_t *node) |
FILE * | fopen (const char *path, const char *mode) |
Open a stream. | |
FILE * | fopen_node (fdi_node_t *node, const char *mode) |
int | fphone (FILE *stream) |
int | fputc (wchar_t c, FILE *stream) |
int | fputs (const char *str, FILE *stream) |
size_t | fread (void *dest, size_t size, size_t nmemb, FILE *stream) |
Read from a stream. | |
int | fseek (FILE *stream, off64_t offset, int whence) |
off64_t | ftell (FILE *stream) |
size_t | fwrite (const void *buf, size_t size, size_t nmemb, FILE *stream) |
Write to a stream. | |
int | getchar (void) |
static bool | parse_mode (const char *mode, int *flags) |
int | putchar (wchar_t c) |
int | puts (const char *str) |
void | rewind (FILE *stream) |
void | setvbuf (FILE *stream, void *buf, int mode, size_t size) |
Set stream buffer. | |
Variables | |
FILE * | stderr = NULL |
static FILE | stderr_klog |
FILE * | stdin = NULL |
static FILE | stdin_null |
FILE * | stdout = NULL |
static FILE | stdout_klog |
Definition in file io.c.