]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: dsp: Fix a problem that fcntl() does not take effect. cygwin-3.4.4
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Thu, 19 Jan 2023 13:02:47 +0000 (22:02 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Thu, 19 Jan 2023 13:49:53 +0000 (22:49 +0900)
Previously, fhandler_dev_dsp (OSS) has a problem that fcntl() does
not take effect at all. This patch fixes the issue.

Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/fhandler/dsp.cc
winsup/cygwin/local_includes/fhandler.h

index c37bedea5c19378de76cc5a29dfb1c306bdac54e..8798cf8762f926bc8c1fbcb5ae7a2c63ff0dd93f 100644 (file)
@@ -1038,6 +1038,12 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *buf)
   return base ()->_ioctl (cmd, buf);
 }
 
+int
+fhandler_dev_dsp::fcntl (int cmd, intptr_t arg)
+{
+  return base ()->_fcntl (cmd, arg);
+}
+
 void
 fhandler_dev_dsp::fixup_after_fork (HANDLE parent)
 {
@@ -1417,6 +1423,12 @@ fhandler_dev_dsp::_ioctl (unsigned int cmd, void *buf)
     }
 }
 
+int
+fhandler_dev_dsp::_fcntl (int cmd, intptr_t arg)
+{
+  return fhandler_base::fcntl(cmd, arg);
+}
+
 void
 fhandler_dev_dsp::_fixup_after_fork (HANDLE parent)
 { // called from new child process
index bc02eae66d7f71a07ac37ac9dd47701ca7960ff6..5fe9795387f13612c5939938ccd754fd92383c86 100644 (file)
@@ -2766,6 +2766,7 @@ class fhandler_dev_dsp: public fhandler_base
   ssize_t write (const void *, size_t);
   void read (void *, size_t&);
   int ioctl (unsigned int, void *);
+  int fcntl (int cmd, intptr_t);
   int close ();
   void fixup_after_fork (HANDLE);
   void fixup_after_exec ();
@@ -2774,6 +2775,7 @@ class fhandler_dev_dsp: public fhandler_base
   ssize_t _write (const void *, size_t);
   void _read (void *, size_t&);
   int _ioctl (unsigned int, void *);
+  int _fcntl (int cmd, intptr_t);
   void _fixup_after_fork (HANDLE);
   void _fixup_after_exec ();
 
This page took 0.03746 seconds and 5 git commands to generate.