summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/libstdio/stdout.c
blob: 08054d0d475f66946305888366c0225b04f31fc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <dietstdio.h>

static char __stdout_buf[BUFSIZE];
static FILE __stdout = {
  .fd=1,
  .flags=BUFLINEWISE|STATICBUF,
  .bs=0, .bm=0,
  .buflen=BUFSIZE,
  .buf=__stdout_buf,
  .next=0,
  .popen_kludge=0,
  .ungetbuf=0,
  .ungotten=0
#ifdef WANT_THREAD_SAFE
  , .m=PTHREAD_MUTEX_INITIALIZER
#endif
};

FILE *stdout=&__stdout;

int __fflush_stdout(void) {
  return fflush(stdout);
}