summaryrefslogtreecommitdiff
path: root/src/libc/stdio/file.h
blob: 86d33c1259fbd35fe3691ad3af105203116d337b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once
#include <stdbool.h>
#include <stdio.h>

struct _LIBC_FILE {
	int fd;
	long pos;
	bool eof;
	bool error;
	int extflags;

	char *readbuf;
	size_t rblen, rbcap;

	bool pushedback;
	char pushback;
};