Unbuffered stdin/stdout the hard way - I'd guess this should be set to

buffered and determined at runtime if not (i.e. via isatty()) - but that
doesn't seem work at this time.
Must revisit later on!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7340 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-04-27 23:52:55 +00:00
parent d68b82804a
commit 9e2f757a6b
@@ -69,9 +69,10 @@
//# endif //# endif
#endif #endif
DEF_STDFILE(_IO_2_1_stdin_, 0, 0, _IO_NO_WRITES); // ToDo: stdin/stdout were originally buffered
DEF_STDFILE(_IO_2_1_stdout_, 1, &_IO_2_1_stdin_, _IO_NO_READS); DEF_STDFILE(_IO_2_1_stdin_, 0, 0, _IO_NO_WRITES | _IO_UNBUFFERED);
DEF_STDFILE(_IO_2_1_stderr_, 2, &_IO_2_1_stdout_, _IO_NO_READS+_IO_UNBUFFERED); DEF_STDFILE(_IO_2_1_stdout_, 1, &_IO_2_1_stdin_, _IO_NO_READS | _IO_UNBUFFERED);
DEF_STDFILE(_IO_2_1_stderr_, 2, &_IO_2_1_stdout_, _IO_NO_READS |_IO_UNBUFFERED);
struct _IO_FILE_plus *_IO_list_all = &_IO_2_1_stderr_; struct _IO_FILE_plus *_IO_list_all = &_IO_2_1_stderr_;
INTVARDEF(_IO_list_all) INTVARDEF(_IO_list_all)