From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: pipe Date: Fri, 13 Mar 2015 08:28:50 -0700 Message-ID: <55030232.6020302@dancol.org> References: <83pp8d2bi5.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Onnxo0ijmVrhS7uj4W6qbcUnMFLTgGoK0" X-Trace: ger.gmane.org 1426260562 21390 80.91.229.3 (13 Mar 2015 15:29:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Mar 2015 15:29:22 +0000 (UTC) Cc: ueno@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 13 16:29:18 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YWRWY-0004yf-4B for ged-emacs-devel@m.gmane.org; Fri, 13 Mar 2015 16:29:18 +0100 Original-Received: from localhost ([::1]:37377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWRWX-0006sT-JQ for ged-emacs-devel@m.gmane.org; Fri, 13 Mar 2015 11:29:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWRWI-0006sD-7E for emacs-devel@gnu.org; Fri, 13 Mar 2015 11:29:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWRWH-0002mY-1z for emacs-devel@gnu.org; Fri, 13 Mar 2015 11:29:02 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:36330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWRWG-0002lj-O1; Fri, 13 Mar 2015 11:29:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=YXb/SJdpmpDvkubHvOfAK+weI1mgMixbupu1XCxH6Qo=; b=cFCGPro78kA6kzjHU12gckJvkr71qltA/1Hd5+UsFyji/WQyprd3sDCUYwUV7i8qDQEIW0u25QQh3/K2xMY3xX7IkY6HEwHAiPYU+U1j8/vMgyE5lXqcxo2v/06cgJLSFyPFrWyiRX5xnf+LspvJ88tGSFMlus54VLrG9O49RehAZH0dJuHtgBZElavA7yHFElQmHxqBcbK6nXN/5+V9TJcRNZAcA83Kj27dgY/Q2eDuD135db5jYTVZEECQ9pKSSFe/sWniSjxXTsbaSneEL35NMg4ek5C5g5QdgBbWx/U+c0CPfhAeFYhXJfrgBO98g8kdjcgWgQ2ZedLwTeftIg==; Original-Received: from [2601:8:b240:1c1::2b1] by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1YWRW7-0002YB-An; Fri, 13 Mar 2015 08:28:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: <83pp8d2bi5.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:183848 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Onnxo0ijmVrhS7uj4W6qbcUnMFLTgGoK0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 03/13/2015 07:54 AM, Eli Zaretskii wrote: > file handles (which are > actually pointers in disguise). Only to the extent that file descriptors are also pointers in disguise. > Handles to kernel objects are > system-global on Windows, They work like file descriptors. > so you can make a handle inheritable, and > then pass its value to the subprocess as a command-line argument; the > subprocess then should convert it to a Posix-style file descriptor by > calling a function. >=20 > But for this to work vis-=E0-vis gpg, the Windows port of gpg should > perform its part of this dance: it should know it accepts handles > (which could be 64-bit wide in 64-bit builds) Even on 64-bit builds of Windows, HANDLEs only have 32 significant bits: see https://msdn.microsoft.com/en-us/library/windows/desktop/aa384203%28v=3Dv= s.85%29.aspx https://msdn.microsoft.com/en-us/library/windows/desktop/aa384249%28v=3Dv= s.85%29.aspx (Note that we can't know in advance whether a HANDLE will be shared with a 32-bit application.) --Onnxo0ijmVrhS7uj4W6qbcUnMFLTgGoK0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJVAwIyAAoJEN4WImmbpWBlqykQAKkWjJR14sYLex9u1VXbCk+g m/vjROg+UVCPltV7uJMre5FNLwGx1jL5G2+po4i/0nPF/C7RFQAFUzwpJ9xCyRF1 ncTxeDNVRG79u6j18VP/0alfKmV8zym8gfZfcar+IECZ78RTT+i6HbVzGFdEPC8M OvEh2DwdE4dlFBoZ9J5eOX227e7Bh8c7O0QK6ufcly9t28cEfyC+Y9UI2QVJObzc 1LZdX0vQ/SXOQCRsZIIaKlAitLcS+3943XvpkCgrOH3TCgn7lWl8UOt6e0x+NDxc x5R1/PDOj4qpcWVXlHnSnl1eWt7iltx7U0vDbcFnxoQ8MHeRB+vEtWE6gyt4vIjC 5fhkSfSN7O5A532bERgjc/rHQ5aaozBEYq5Ia3dfOsGKc0KTei9dMMqes+WUz51p ulajQNKm+1vVC8xkAlNwQZcRuOyFMilGQbNvpGzR6CyELPQYj77lxkcOWOCsfjAf CFFG3MhJUYGzf4uXmwqwTQvJqIIeg9qjlqLKSO0CuIeAp8gC3dEKQmmKKywuEFDO ZwF6bWYfe3rJchhJ320AaE2Y1PpzaOFaaa0vVfvOJGudpnHHWsKCq0vf+cIYAdgA mD/Ze+uOmCW5Ft65zkS5ifTIDdi3M7GGIq2ydgyPSGBKxuBcAwM70mVafUN7kZ7w g1384iLz+2Y4hEz+mmQx =TaHs -----END PGP SIGNATURE----- --Onnxo0ijmVrhS7uj4W6qbcUnMFLTgGoK0--