public inbox for
help / color / mirror / Atom feed
From: Corinna Vinschen <>
Subject: [newlib-cygwin] Cygwin: POSIX msg queues: implement ioctl(2)
Date: Tue, 25 May 2021 18:20:09 +0000 (GMT)	[thread overview]
Message-ID: <> (raw);h=517c7e79da0a64d8e732409d2c65693cbc931bf3

commit 517c7e79da0a64d8e732409d2c65693cbc931bf3
Author: Corinna Vinschen <>
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 <>

 winsup/cygwin/fhandler.h         | 1 +
 winsup/cygwin/ | 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/ b/winsup/cygwin/
index 28aae314e..d1aa8c8e3 100644
--- a/winsup/cygwin/
+++ b/winsup/cygwin/
@@ -411,6 +411,12 @@ fhandler_mqueue::fixup_after_fork (HANDLE parent)
     api_fatal ("Creating IPC object failed in fork, %E");
+fhandler_mqueue::ioctl (unsigned int cmd, void *buf)
+  return fhandler_base::ioctl (cmd, buf);
 fhandler_mqueue::close ()

                 reply	other threads:[~2021-05-25 18:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).