diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2023-09-06 22:03:18 +0900 |
---|---|---|
committer | Takashi Yano <takashi.yano@nifty.ne.jp> | 2023-09-06 22:06:57 +0900 |
commit | 2c06014f12b0231e40d4256ae5f0d16a4b21be48 (patch) | |
tree | d176f78f13b6c4ad71c77241d356cc16aacb1631 /winsup/cygwin/local_includes/select.h | |
parent | 7a43763d24ab693502b0d0b1323d8cba1123e59a (diff) | |
download | newlib-2c06014f12b0231e40d4256ae5f0d16a4b21be48.zip newlib-2c06014f12b0231e40d4256ae5f0d16a4b21be48.tar.gz newlib-2c06014f12b0231e40d4256ae5f0d16a4b21be48.tar.bz2 |
Cygwin: dsp: Implement select()/poll().
Previously, sound device /dev/dsp did not support select()/poll().
These have been implemented with this patch.
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Diffstat (limited to 'winsup/cygwin/local_includes/select.h')
-rw-r--r-- | winsup/cygwin/local_includes/select.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/winsup/cygwin/local_includes/select.h b/winsup/cygwin/local_includes/select.h index b794690..4e20212 100644 --- a/winsup/cygwin/local_includes/select.h +++ b/winsup/cygwin/local_includes/select.h @@ -87,6 +87,11 @@ struct select_socket_info: public select_info select_socket_info (): select_info (), num_w4 (0), ser_num (0), w4 (NULL) {} }; +struct select_dsp_info: public select_info +{ + select_dsp_info (): select_info () {} +}; + class select_stuff { public: @@ -112,6 +117,7 @@ public: select_pipe_info *device_specific_ptys; select_fifo_info *device_specific_fifo; select_socket_info *device_specific_socket; + select_dsp_info *device_specific_dsp; bool test_and_set (int, fd_set *, fd_set *, fd_set *); int poll (fd_set *, fd_set *, fd_set *); @@ -125,7 +131,8 @@ public: device_specific_pipe (NULL), device_specific_ptys (NULL), device_specific_fifo (NULL), - device_specific_socket (NULL) + device_specific_socket (NULL), + device_specific_dsp (NULL) {} }; |