diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2024-06-28 13:42:03 +0900 |
---|---|---|
committer | Takashi Yano <takashi.yano@nifty.ne.jp> | 2024-06-28 19:54:19 +0900 |
commit | eaa606c0b7c1ce3aeda2594eb4a1ad0341cc4b06 (patch) | |
tree | 93df77ecd1b254c08e4d6664f98f887e1abd6886 /winsup/cygwin/fhandler/console.cc | |
parent | 36e398b04e91668403bac94b4c28f4822997b535 (diff) | |
download | newlib-eaa606c0b7c1ce3aeda2594eb4a1ad0341cc4b06.zip newlib-eaa606c0b7c1ce3aeda2594eb4a1ad0341cc4b06.tar.gz newlib-eaa606c0b7c1ce3aeda2594eb4a1ad0341cc4b06.tar.bz2 |
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>
Diffstat (limited to 'winsup/cygwin/fhandler/console.cc')
0 files changed, 0 insertions, 0 deletions