# HG changeset patch # User jlarmour # Date 1045328223 0 # Node ID 659eed39fb511392da894eade9fb0efb57d68c3f # Parent 46a7d2c24f10cf9471d0ccf3b3d3741b360c0ad3 * include/stdio.inl (setbuf): Don't supply size with _IONBF. * src/common/stdioinlines.cxx (setbuf): Ditto. diff --git a/packages/language/c/libc/stdio/current/ChangeLog b/packages/language/c/libc/stdio/current/ChangeLog --- a/packages/language/c/libc/stdio/current/ChangeLog +++ b/packages/language/c/libc/stdio/current/ChangeLog @@ -1,3 +1,8 @@ +2003-02-15 Fabrice Gautier + + * include/stdio.inl (setbuf): Don't supply size with _IONBF. + * src/common/stdioinlines.cxx (setbuf): Ditto. + 2003-01-29 Jonathan Larmour * src/output/vfnprintf.cxx: Add support for C99 'z' flag (size_t). diff --git a/packages/language/c/libc/stdio/current/include/stdio.inl b/packages/language/c/libc/stdio/current/include/stdio.inl --- a/packages/language/c/libc/stdio/current/include/stdio.inl +++ b/packages/language/c/libc/stdio/current/include/stdio.inl @@ -77,7 +77,7 @@ extern __inline__ void setbuf( FILE *stream, char *buf ) { if (buf == NULL) - setvbuf( stream, NULL, _IONBF, BUFSIZ ); + setvbuf( stream, NULL, _IONBF, 0 ); else // NB: Should use full buffering by default ordinarily, but in // the current system we're always connected to an interactive diff --git a/packages/language/c/libc/stdio/current/src/common/stdioinlines.cxx b/packages/language/c/libc/stdio/current/src/common/stdioinlines.cxx --- a/packages/language/c/libc/stdio/current/src/common/stdioinlines.cxx +++ b/packages/language/c/libc/stdio/current/src/common/stdioinlines.cxx @@ -82,7 +82,7 @@ externC void setbuf( FILE *stream, char *buf ) { if (buf == NULL) - setvbuf( stream, NULL, _IONBF, BUFSIZ ); + setvbuf( stream, NULL, _IONBF, 0 ); else // NB: Should use full buffering by default ordinarily, but in // the current system we're always connected to an interactive