mirror of https://github.com/flysand7/ciabatta.git
28 lines
629 B
C
28 lines
629 B
C
|
|
#pragma once
|
|
|
|
#include <cia/def.h>
|
|
#include <cia/sync.h>
|
|
#include <tinyrt.h>
|
|
#include <stdarg.h>
|
|
|
|
typedef struct FILE FILE;
|
|
struct FILE {
|
|
_RT_File rt_file;
|
|
Cia_Mutex mutex;
|
|
};
|
|
|
|
#define EOF (-1)
|
|
|
|
extern FILE *stdin;
|
|
extern FILE *stdout;
|
|
extern FILE *stderr;
|
|
|
|
FILE *fopen(const char *restrict filename, const char *restrict mode);
|
|
int fgetc(FILE *file);
|
|
int fputc(int c, FILE *file);
|
|
size_t fread(void *restrict buf, size_t size, size_t count, FILE *restrict file);
|
|
size_t fwrite(void const *restrict buf, size_t size, size_t count, FILE *restrict file);
|
|
int fclose(FILE *file);
|
|
|
|
int printf(char const *restrict fmt, ...); |