Whamcloud - gitweb
Flush stdio buffers before calling setbuf()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 13 Jul 2008 19:40:15 +0000 (15:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 13 Jul 2008 20:06:57 +0000 (16:06 -0400)
commit2a7bfe835317bb9f3ebcd20079b2bb800f4b9eaa
tree3b61ff73be02de3624fb922347b803323003bb95
parentebabf2ad6d19af5c674b624bafe619dedbc94403
Flush stdio buffers before calling setbuf()

On Solaris setbuf() will discard any pending output to the stream, so
make we call fflush() before calling setbuf().

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/debugfs.c
lib/ss/test_ss.c
tests/progs/test_icount.c
tests/progs/test_rel.c