mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-12 09:17:53 +00:00
Buffering now has optimal performance, bugs have been fixed, and some missing apis have been introduced. This implementation is also now more production worthy since it's less brittle now in terms of system errors. That's going to help redbean since lua i/o is all based on stdio. See #97
19 lines
496 B
C
19 lines
496 B
C
#ifndef COSMOPOLITAN_LIBC_STDIO_INTERNAL_H_
|
|
#define COSMOPOLITAN_LIBC_STDIO_INTERNAL_H_
|
|
#include "libc/stdio/stdio.h"
|
|
|
|
#define PUSHBACK 12
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
extern char g_stdinbuf[BUFSIZ];
|
|
extern char g_stdoutbuf[BUFSIZ];
|
|
extern char g_stderrbuf[BUFSIZ];
|
|
|
|
int __fflush_register(FILE *) hidden;
|
|
void __fflush_unregister(FILE *) hidden;
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_STDIO_INTERNAL_H_ */
|