emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Too many warnings building Emacs with GCC 6 on MSYS2-MinGW64


From: Ken Brown
Subject: Re: Too many warnings building Emacs with GCC 6 on MSYS2-MinGW64
Date: Thu, 1 Sep 2016 12:24:13 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 9/1/2016 12:17 PM, Davis Herring wrote:
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.

The return value is not an error code. If the function returns, it returns -1 and sets errno:

  http://pubs.opengroup.org/onlinepubs/9699919799/functions/exec.html
  https://msdn.microsoft.com/en-us/library/hyw61wtd.aspx

Ken




reply via email to

[Prev in Thread] Current Thread [Next in Thread]