emacs-devel
[Top][All Lists]
Advanced

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

Re: Compiling in mingw-ucrt runtime


From: Benjamin Riefenstahl
Subject: Re: Compiling in mingw-ucrt runtime
Date: Fri, 23 Feb 2024 16:03:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

> Arthur Miller writes:
>> Just checking if errno was set reduced almost everything; and I found
>> that comment in posix_close aboutt EINTR.
>
> Is this specific to UCRT?  In usual errno usage, errno is not garanteed
> to be 0, because runtime functions do not reset it in case of success.
> If there are no other errors, it often is set to ENOENT, from the time
> when some file was searched along some PATH variable.

On second look, the implementation of close_stream looks fishy to me in
the first place.  Parts of the logic are too convoluted for me to
understand, at least one part does not look right at all.  I do not
think that one should build anything on its setting, not setting or
re-setting errno.



reply via email to

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