public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: POSIX msg queues: implement ioctl(2) Date: Tue, 25 May 2021 18:20:09 +0000 (GMT) [thread overview] Message-ID: <20210525182009.E44313858038@sourceware.org> (raw) 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 () {
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: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210525182009.E44313858038@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe 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).