← Back to team overview

kicad-developers team mailing list archive

Re: Is errno defined on MSW?

 

In any Posix-compliant implementation, errno has been thread-safe for decades without any need for special versions of fopen or other stdio library functions.

Of course, if we're talking about Microsloth, who can tell.


On 08/13/18 23:54, Mark Roszko wrote:
Yes, errno and fopen behave the same on windows.

You may want to consider looking into fopen_s which Windows and gcc using C11 or newer should have. It makes errno threadsafe among other safety improvements.

On Mon, Aug 13, 2018 at 5:13 PM Jeff Young <jeff@xxxxxxxxx <mailto:jeff@xxxxxxxxx>> wrote:

    While I can’t test it, Microsoft’s doc certainly suggests they
    support it equivalently enough for our purposes:

    https://msdn.microsoft.com/en-us/library/5814770t.aspx

    Cheers,
    Jeff.




    > On 13 Aug 2018, at 21:30, Jeff Young <jeff@xxxxxxxxx
    <mailto:jeff@xxxxxxxxx>> wrote:
    >
    > I’m putting in some more/better error messages to try and catch
    a file-save issue some folks are having [1].
    >
    > Is errno defined on MSW?
    >
    > Thanks,
    > Jeff.
    >
    > [1] https://bugs.launchpad.net/kicad/+bug/1786512
    > _______________________________________________
    > Mailing list: https://launchpad.net/~kicad-developers
    <https://launchpad.net/%7Ekicad-developers>
    > Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
    <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
    > Unsubscribe : https://launchpad.net/~kicad-developers
    <https://launchpad.net/%7Ekicad-developers>
    > More help   : https://help.launchpad.net/ListHelp


    _______________________________________________
    Mailing list: https://launchpad.net/~kicad-developers
    <https://launchpad.net/%7Ekicad-developers>
    Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
    <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
    Unsubscribe : https://launchpad.net/~kicad-developers
    <https://launchpad.net/%7Ekicad-developers>
    More help   : https://help.launchpad.net/ListHelp



--
Mark


_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


References