Lines 33-39
Link Here
|
33 |
#undef fflush |
33 |
#undef fflush |
34 |
|
34 |
|
35 |
|
35 |
|
36 |
#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ |
36 |
#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ |
37 |
|
37 |
|
38 |
/* Clear the stream's ungetc buffer, preserving the value of ftello (fp). */ |
38 |
/* Clear the stream's ungetc buffer, preserving the value of ftello (fp). */ |
39 |
static void |
39 |
static void |
Lines 72-78
clear_ungetc_buffer (FILE *fp)
Link Here
|
72 |
|
72 |
|
73 |
#endif |
73 |
#endif |
74 |
|
74 |
|
75 |
#if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */) |
75 |
#if ! (defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */) |
76 |
|
76 |
|
77 |
# if (defined __sferror || defined __DragonFly__ || defined __ANDROID__) && defined __SNPT |
77 |
# if (defined __sferror || defined __DragonFly__ || defined __ANDROID__) && defined __SNPT |
78 |
/* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Android */ |
78 |
/* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Android */ |
Lines 148-154
rpl_fflush (FILE *stream)
Link Here
|
148 |
if (stream == NULL || ! freading (stream)) |
148 |
if (stream == NULL || ! freading (stream)) |
149 |
return fflush (stream); |
149 |
return fflush (stream); |
150 |
|
150 |
|
151 |
#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ |
151 |
#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ |
152 |
|
152 |
|
153 |
clear_ungetc_buffer_preserving_position (stream); |
153 |
clear_ungetc_buffer_preserving_position (stream); |
154 |
|
154 |
|