[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[External] Re: dtusb module
From: |
Luke Yelavich |
Subject: |
[External] Re: dtusb module |
Date: |
Tue, 17 Mar 2015 16:31:15 +1100 |
On Tue, Mar 17, 2015 at 01:28:38AM AEDT, Klarich, Terry J. wrote:
> i Trev:
>
> It seemed wasteful to me to call fflush each time printf was called to output
> a line of text. I originally used setvbuf() to put stdout in line mode.
> Evidently, I did something wrong or don't understand setvbuf(). I have since
> switched to fflush() for now so I can continue. I'll revisit setvbuf() later.
Speech Dispatcher sets the descriptor between the server and the module to
_IONBF which according to the setvbuf manpage, is unbuffered. The manpage
states that fflush is only useful when the fd is in line buffered mode, so if
my understanding is correct, fflush wouldn't have any effect.
Luke
- dtusb module, Klarich , Terry J ., 2015/03/05
- dtusb module, Luke Yelavich, 2015/03/05
- [External] Re: dtusb module, Klarich , Terry J ., 2015/03/06
- [External] Re: dtusb module, Trevor Saunders, 2015/03/15
- [External] Re: dtusb module, Klarich , Terry J ., 2015/03/16
- [External] Re: dtusb module, Trevor Saunders, 2015/03/16
- [External] Re: dtusb module, Luke Yelavich, 2015/03/17
- [External] Re: dtusb module,
Luke Yelavich <=