From 517c7e79da0a64d8e732409d2c65693cbc931bf3 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 25 May 2021 20:17:07 +0200 Subject: [PATCH] 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/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 () {