From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Compiling in mingw-ucrt runtime Date: Sun, 25 Feb 2024 17:14:51 +0200 Message-ID: <86r0h0wp78.fsf@gnu.org> References: <5638518.yaVYbkx8dN@nimes> <86ttlwwrbd.fsf@gnu.org> <6153309.usfYGdeWWP@nimes> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6493"; mail-complaints-to="usenet@ciao.gmane.io" Cc: arthur.miller@live.com, emacs-devel@gnu.org To: Bruno Haible Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 25 16:15:54 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 1reGEL-0001T4-KB for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Feb 2024 16:15:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reGDU-0007JH-1I; Sun, 25 Feb 2024 10:15:00 -0500 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 1reGDS-0007Ir-52 for emacs-devel@gnu.org; Sun, 25 Feb 2024 10:14:58 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1reGDP-0006CO-9i; Sun, 25 Feb 2024 10:14:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/XWAjfloV4dSlacc0Ca1rNPAdxYu/lJ7Wr+nGIThsIU=; b=nCfvNpy9E8fz vKeX+wgs2lUxovkJb+w+nyDdOxtS6171Y26oZbK+IrEylYtYb3SsQczioMd4pTmqC5vKudcykaTua Rp8Hqs/Pd3xHLhrrK89MYOhpOWjr6JFWU1uYbH0eJwGTdHQJwdumwI7dZ4plg+ksoB5QYqHuv73Ex f6HrkXw5vwqZO4PQXyho5j7wS2vXCHj3Q/hbEE9XD/b51gMCJKJj5u3+xdXGHlgdHSsDNhvIRRbvG 2UMWHAj8wi9lz5qLkkmwsfuxzexUClUHtz9/2jy6vsxIV7VOLacHyLLWDSLIswXev+BqrLzruQQXO quI+tSpJKjjWW/oXPDlbXw==; In-Reply-To: <6153309.usfYGdeWWP@nimes> (message from Bruno Haible on Sun, 25 Feb 2024 16:05:54 +0100) 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:316524 Archived-At: > From: Bruno Haible > Cc: arthur.miller@live.com, emacs-devel@gnu.org > Date: Sun, 25 Feb 2024 16:05:54 +0100 > > > Strange that they claim that, because their sources tell a different > > story, both for MSVCRT and for UCRT. Or maybe your interpretation of > > what they say there is inaccurate? > > Re MSVCRT: My reading of Vc7/crt/src/fclose.c is that it never sets errno. fclose.c doesn't, indeed, but it calls _close (in close.c), which does. > Re UCRT: My reading of ucrt-10.0.10240.0/stdio/fclose.cpp > and 10.0.14393.0/ucrt/stdio/fclose.cpp > is that errno gets set to EINVAL if the stream argument is invalid, > and remains unchanged otherwise. I do see errno being set in close.cpp, which fclose.cpp calls to do the actual job.