source:
trunk/sys/dietlibc/stdout.c
@
240
Last change on this file since 240 was 1, checked in by , 8 years ago | |
---|---|
File size: 410 bytes |
Line | |
---|---|
1 | #include "dietstdio.h" |
2 | |
3 | static char __stdout_buf[BUFSIZE]; |
4 | static 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 | |
19 | FILE *stdout=&__stdout; |
20 | |
21 | int __fflush_stdout(void) { |
22 | return fflush(stdout); |
23 | } |
Note: See TracBrowser
for help on using the repository browser.