diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-05-04 11:41:22 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-05-04 11:41:22 +0000 |
commit | 5152a53adeaa86135dd7ca1ce3ae64e7353b3729 (patch) | |
tree | 3dace1f3496f81a7248193f070deb1abd079d4f2 /newlib/libc/stdio/vsniprintf.c | |
parent | 307b0a5d4b1801305ad4da3eb8447376d1260709 (diff) | |
download | cygnal-5152a53adeaa86135dd7ca1ce3ae64e7353b3729.tar.gz cygnal-5152a53adeaa86135dd7ca1ce3ae64e7353b3729.tar.bz2 cygnal-5152a53adeaa86135dd7ca1ce3ae64e7353b3729.zip |
* fhandler_dsp.cc (fhandler_dev_dsp::Audio): Add fh member.
(fhandler_dev_dsp::Audio_out::Audio_out): Take pointer to encapsulating
fhandler_dev_dsp as parameter.
(fhandler_dev_dsp::Audio_in::Audio_in): Ditto.
(fhandler_dev_dsp::Audio::Audio): Take pointer to encapsulating
fhandler_dev_dsp as parameter and store in fh.
(fhandler_dev_dsp::Audio_out::write): Change return type to int and
return number of bytes written. Return -1 if waitforspace returns false
and no bytes have been written so far.
(fhandler_dev_dsp::Audio_out::waitforspace): Change return type to bool.
Handle O_NONBLOCK. Make waiting loop interruptible and cancelable.
Return false in any of these cases, otherwise true.
(fhandler_dev_dsp::Audio_in::read): Set returned nBytes to -1 if
waitfordata returns false and nothing has been read so far.
(fhandler_dev_dsp::Audio_in::waitfordata): Change return type to bool.
Handle O_NONBLOCK. Make waiting loop interruptible and cancelable.
Return false in any of these cases, otherwise true.
(fhandler_dev_dsp::write): Call Audio_out constructor with this as
parameter.
(fhandler_dev_dsp::read): Call Audio_in constructor with this as
parameter.
Diffstat (limited to 'newlib/libc/stdio/vsniprintf.c')
0 files changed, 0 insertions, 0 deletions