From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Too many warnings building Emacs with GCC 6 on MSYS2-MinGW64 Date: Thu, 01 Sep 2016 19:29:53 +0300 Message-ID: <837favfuri.fsf@gnu.org> References: <50083875-fbf6-d6b2-ffac-08c17c2bc696@alice.it> <83r395ko7o.fsf@gnu.org> <83h9a1kks6.fsf@gnu.org> <8337lklqrl.fsf@gnu.org> <11ac6b41-3a59-ec19-c414-151c08a91ba3@alice.it> <83oa48fiqn.fsf@gnu.org> <0749368a-c043-ef4b-8722-d5071f17a1e3@alice.it> <83h99zg0w0.fsf@gnu.org> <83a8frfvxe.fsf@gnu.org> <3d9a7a28-d82c-2ad6-f4b0-adfebe6b6544@lanl.gov> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1472747447 6513 195.159.176.226 (1 Sep 2016 16:30:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Sep 2016 16:30:47 +0000 (UTC) Cc: emacs-devel@gnu.org, kbrown@cornell.edu, angelo.graziosi@alice.it To: Davis Herring Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 01 18:30:41 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfUsw-0000v5-IK for ged-emacs-devel@m.gmane.org; Thu, 01 Sep 2016 18:30:38 +0200 Original-Received: from localhost ([::1]:37997 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfUsu-0003Rj-9I for ged-emacs-devel@m.gmane.org; Thu, 01 Sep 2016 12:30:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfUsL-0003Q1-Hx for emacs-devel@gnu.org; Thu, 01 Sep 2016 12:30:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfUsI-0004fH-8a for emacs-devel@gnu.org; Thu, 01 Sep 2016 12:30:01 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfUsI-0004f5-5a; Thu, 01 Sep 2016 12:29:58 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1249 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bfUsF-0005fc-JG; Thu, 01 Sep 2016 12:29:56 -0400 In-reply-to: <3d9a7a28-d82c-2ad6-f4b0-adfebe6b6544@lanl.gov> (message from Davis Herring on Thu, 1 Sep 2016 10:17:36 -0600) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:207080 Archived-At: > Cc: Angelo Graziosi , kbrown@cornell.edu, > emacs-devel@gnu.org > From: Davis Herring > Date: Thu, 1 Sep 2016 10:17:36 -0600 > > > On Unix, execve indeed returns an int, because it's a process ID. On > > Windows, the return value can be a process handle, which is a 64-bit > > data type on 64-bit Windows. That is why the return value must be > > intptr_t, not an int. > > No, it's an error code. (You said as much for POSIX in your following > message, but it's an error code on all systems.) If it succeeds, the > process image has been replaced and it doesn't return at all. On Windows, the error code is returned from a function that can also return a process handle. Look in the MS CRT sources, and you will see it.