Match and link most of Runtime

Former-commit-id: 8b0c414ae0
This commit is contained in:
2022-10-13 01:02:37 -07:00
parent 6380e4db68
commit aab14dc7b0
17 changed files with 641 additions and 129 deletions

14
libc/buffer_io.h Normal file
View File

@@ -0,0 +1,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