source: trunk/sys/dietlibc/stdout.c @ 1

Last change on this file since 1 was 1, checked in by alain, 5 years ago

First import

File size: 410 bytes
Line 
1#include "dietstdio.h"
2
3static char __stdout_buf[BUFSIZE];
4static FILE __stdout = {
5  .fd=1,
6  .flags=BUFLINEWISE|STATICBUF|CANWRITE,
7  .bs=0, .bm=0,
8  .buflen=BUFSIZE,
9  .buf=__stdout_buf,
10  .next=0,
11  .popen_kludge=0,
12  .ungetbuf=0,
13  .ungotten=0,
14#ifdef WANT_THREAD_SAFE
15  .m=PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,
16#endif
17};
18
19FILE *stdout=&__stdout;
20
21int __fflush_stdout(void) {
22  return fflush(stdout);
23}
Note: See TracBrowser for help on using the repository browser.