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>
This commit is contained in:
Corinna Vinschen 2021-05-25 20:17:07 +02:00
parent 46f3b0ce85
commit 517c7e79da
2 changed files with 7 additions and 0 deletions

View File

@ -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)

View File

@ -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 ()
{