Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-06-29 06:20:01 +0400
committerChristopher Faylor <me@cgf.cx>2001-06-29 06:20:01 +0400
commit2113bf6c1a318131673187fb40726fc56f739d1c (patch)
treed47797f3deb2eea9257492643dd572a6e99189c6
parent2b6b730c986a53e9e10ef22508541bdb3151a5fe (diff)
* fhandler_dsp.cc (fhandler_dev_dsp::ioctl): Return 0 for success.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/fhandler_dsp.cc12
2 files changed, 10 insertions, 6 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 0aa24996d..39a15c1ed 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+Thu Jun 28 22:19:08 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * fhandler_dsp.cc (fhandler_dev_dsp::ioctl): Return 0 for success.
+
Wed Jun 27 22:19:07 2001 Christopher Faylor <cgf@cygnus.com>
* path.cc (path_conv::check): Add signal protection here since
diff --git a/winsup/cygwin/fhandler_dsp.cc b/winsup/cygwin/fhandler_dsp.cc
index a62fdb1d3..5c9b2f918 100644
--- a/winsup/cygwin/fhandler_dsp.cc
+++ b/winsup/cygwin/fhandler_dsp.cc
@@ -524,7 +524,7 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *ptr)
audiofreq_ = 8000;
audiobits_ = 8;
audiochannels_ = 1;
- return 1;
+ return 0;
CASE (SNDCTL_DSP_GETBLKSIZE)
*intptr = Audio::BLOCK_SIZE;
@@ -546,7 +546,7 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *ptr)
if (s_audio->open (audiofreq_, nBits, audiochannels_) == true)
{
audiobits_ = nBits;
- return 1;
+ return 0;
}
else
{
@@ -562,7 +562,7 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *ptr)
if (s_audio->open (*intptr, audiobits_, audiochannels_) == true)
{
audiofreq_ = *intptr;
- return 1;
+ return 0;
}
else
{
@@ -579,7 +579,7 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *ptr)
if (s_audio->open (audiofreq_, audiobits_, nChannels) == true)
{
audiochannels_ = nChannels;
- return 1;
+ return 0;
}
else
{
@@ -609,7 +609,7 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *ptr)
debug_printf ("ptr %p nblocks %d leftblocks %d left bytes %d ",
ptr, nBlocks, leftblocks, left);
- return 1;
+ return 0;
}
break;
@@ -617,7 +617,7 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *ptr)
{
// Fake!! esound & mikmod require this on non PowerPC platforms.
//
- return 1;
+ return 0;
}
break;