public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: POSIX msg queues: implement ioctl(2)
@ 2021-05-25 18:20 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2021-05-25 18:20 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=517c7e79da0a64d8e732409d2c65693cbc931bf3

commit 517c7e79da0a64d8e732409d2c65693cbc931bf3
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Tue May 25 20:17:07 2021 +0200

    Cygwin: POSIX msg queues: implement ioctl(2)
    
    Call into fhandler_base::ioctl immediately, thus only allowing
    FIONBIO to manipulate blocking behaviour.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/fhandler.h         | 1 +
 winsup/cygwin/fhandler_mqueue.cc | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index abb13b0e2..7152482ed 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -3145,6 +3145,7 @@ public:
 
   int __reg2 fstat (struct stat *buf);
   int dup (fhandler_base *child, int);
+  int ioctl (unsigned int, void *);
   int close ();
 
   void copy_from (fhandler_base *x)
diff --git a/winsup/cygwin/fhandler_mqueue.cc b/winsup/cygwin/fhandler_mqueue.cc
index 28aae314e..d1aa8c8e3 100644
--- a/winsup/cygwin/fhandler_mqueue.cc
+++ b/winsup/cygwin/fhandler_mqueue.cc
@@ -411,6 +411,12 @@ fhandler_mqueue::fixup_after_fork (HANDLE parent)
     api_fatal ("Creating IPC object failed in fork, %E");
 }
 
+int
+fhandler_mqueue::ioctl (unsigned int cmd, void *buf)
+{
+  return fhandler_base::ioctl (cmd, buf);
+}
+
 int
 fhandler_mqueue::close ()
 {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-25 18:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 18:20 [newlib-cygwin] Cygwin: POSIX msg queues: implement ioctl(2) Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).