2021-01-28 03:34:02 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_STDIO_FFLUSH_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_STDIO_FFLUSH_H_
|
|
|
|
#include "libc/stdio/stdio.h"
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
|
|
|
struct StdioFlushHandles {
|
|
|
|
size_t i, n;
|
|
|
|
FILE **p;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct StdioFlush {
|
2022-05-17 11:14:28 +00:00
|
|
|
int lock;
|
2021-01-28 03:34:02 +00:00
|
|
|
struct StdioFlushHandles handles;
|
|
|
|
FILE *handles_initmem[8];
|
|
|
|
};
|
|
|
|
|
2022-05-14 11:33:58 +00:00
|
|
|
hidden extern struct StdioFlush __fflush;
|
2021-01-28 03:34:02 +00:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_STDIO_FFLUSH_H_ */
|