4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-10 11:09:25 +08:00
Takashi Yano eaa606c0b7 Cygwin: dsp: Fix incorrect openflags when opening multiple /dev/dsp
Previously, the following steps failed with error:
  1) Open /dev/dsp with O_RDONLY
  2) Open /dev/dsp with O_WRONLY
  3) Issue SNDCTL_DSP_GETOSPACE ioctl() for 2)
This is because IS_WRITE() returns false for 2) due to incorrect
openflags handling in archetype instance. This patch fixes the
issue by adding open_setup() to fhandler_dev_dsp to set openflags
correctly for each instance.

Fixes: 92ddb7429065 ("* fhandler_dsp.cc (fhandler_dev_dsp::open): Remove archetype handling.")
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
2024-06-28 19:54:19 +09:00
..
2022-08-22 14:53:30 +02:00
2024-03-19 23:21:35 +01:00
2022-08-19 15:51:49 +02:00
2022-10-28 16:26:53 +02:00