From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin-patches@cygwin.com
Subject: Re: [PATCH v2] Cygwin: Make native clipboard layout same for 32- and 64-bit
Date: Tue, 26 Oct 2021 12:43:14 +0200 [thread overview]
Message-ID: <YXfbwhOHlXBYgCFA@calimero.vinschen.de> (raw)
In-Reply-To: <20211025092540.4819-1-mark@maxrnd.com>
On Oct 25 02:25, Mark Geisert wrote:
> This patch unifies the layout of the clipboard descriptor cygcb_t for
> 32- and 64-bit Cygwin. It allows correct copy/paste between the two
> environments without corruption of user's copied data and without access
> violations due to interpreting that data as a size field.
>
> The definitions of CYGWIN_NATIVE and cygcb_t are moved to a new include
> file, sys/clipboard.h. The include file is used by fhandler_clipboard.cc
> as well as getclip.c and putclip.c in the Cygwin cygutils package.
>
> When copy/pasting between 32- and 64-bit Cygwin environments, both must
> be running version 3.3.0 or later for successful operation.
>
> ---
> winsup/cygwin/fhandler_clipboard.cc | 42 +++++++++++++----------
> winsup/cygwin/include/sys/clipboard.h | 49 +++++++++++++++++++++++++++
> winsup/cygwin/release/3.3.0 | 4 +++
> 3 files changed, 78 insertions(+), 17 deletions(-)
> create mode 100644 winsup/cygwin/include/sys/clipboard.h
>
> diff --git a/winsup/cygwin/fhandler_clipboard.cc b/winsup/cygwin/fhandler_clipboard.cc
> index ccdb295f3..7adb50991 100644
> --- a/winsup/cygwin/fhandler_clipboard.cc
> +++ b/winsup/cygwin/fhandler_clipboard.cc
> @@ -17,6 +17,7 @@ details. */
> #include "dtable.h"
> #include "cygheap.h"
> #include "child_info.h"
> +#include "sys/clipboard.h"
Pushed with a minor change:
#include <sys/clipboard.h>
given this is a system header.
Thanks,
Corinna
prev parent reply other threads:[~2021-10-26 10:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-25 9:25 Mark Geisert
2021-10-26 10:43 ` Corinna Vinschen [this message]
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=YXfbwhOHlXBYgCFA@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--cc=cygwin-patches@cygwin.com \
/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: 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).