summaryrefslogtreecommitdiff
path: root/include/libc/buffer_io.h
blob: f0b762b4c499ce69727d871f88db71aa49005fda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _BUFFER_IO
#define _BUFFER_IO

#include <stdio.h>

enum { __align_buffer, __dont_align_buffer };

void __convert_from_newlines(unsigned char* p, size_t* n);
void __convert_to_newlines(unsigned char* p, size_t* n);
void __prep_buffer(FILE*);
int __load_buffer(FILE*, size_t* bytes_loaded, int alignment);
int __flush_buffer(FILE*, size_t* bytes_flushed);

#endif // _BUFFER_IO