From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: MPS: Win64 testers? Date: Sat, 27 Jul 2024 18:27:43 +0000 Message-ID: References: <86le1q54bw.fsf@gnu.org> <86zfq31cvc.fsf@gnu.org> <86ttgb1186.fsf@gnu.org> <86le1m24tx.fsf@gnu.org> <86jzh622p4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31555"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 27 20:34:09 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sXmF7-00085S-Il for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Jul 2024 20:34:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXmE7-0000Kx-6i; Sat, 27 Jul 2024 14:33:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXm95-0007wB-IA for emacs-devel@gnu.org; Sat, 27 Jul 2024 14:27:55 -0400 Original-Received: from mail-4316.protonmail.ch ([185.70.43.16]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXm92-00080u-MT; Sat, 27 Jul 2024 14:27:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1722104869; x=1722364069; bh=TPoPAlstSXSSjsAW4eXcp9aSqI4zZJn8HkzVCriJf94=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=FeV74YWS4sXtJhQB6Tt7v5McxjEvB6Y7ssPzzLgIXRpXQ+/XQzsjQvY+2LFNEN3ZK Lop99rpCGzNscZ7/uv3aBjN8LvJ9Hj4Yf/PELE3VHBIRfg4TY4fOAfXuutrVpurju5 rP6YVveymgFb2tnK6koZJd6jopG34eNR6TjDFrRvC0Ovb2fOR1zHsTU4+/RL1uca/m eA3Luyb89dQY4caxxJwcPiBveaWv4jcXFH5IMWMg33/4bH+PEDAT2AGBAXbsFH5IL3 Qg5kFo9jVzvPT9nOFasH4lWlf6344g0nRG+Dpnnf373zj23QGs0PEAkExWq91j1P7N VTka2z/bW0N2w== In-Reply-To: <86jzh622p4.fsf@gnu.org> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 9193fcd98177512c519da935b9111bd4bca9cf6e Received-SPF: pass client-ip=185.70.43.16; envelope-from=pipcet@protonmail.com; helo=mail-4316.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 27 Jul 2024 14:33:03 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322138 Archived-At: On Saturday, July 27th, 2024 at 16:56, Eli Zaretskii wrote: > then stepping through this code I see that fd is first assigned zero, > then 1, then 2. As expected, because any decent emulation of Posix > file descriptors must keep this semantics: file descriptors are reused > starting from the lowest available slot. >=20 > Do you see something different in your build? _open_osfhandle returns 0 for the first FD, but _fdopen returns 0x7b281160,= while stdin is 0x7b281100. I believe that _fdopen (0, "r") returns stdin if it has previously been clo= sed is an implementation detail of Windows that Emacs relies on, and that w= ine fails to properly emulate. IMHO, this is a wine bug, but Emacs also sho= uldn't rely on it unless it's documented as part of the API; I don't know w= hether it is. Pip