Thread overview
[Issue 4354] Phobos should expose per-thread errno
Jul 07, 2017
RazvanN
Jul 07, 2017
RazvanN
Jul 07, 2017
Vladimir Panteleev
Dec 17, 2022
Iain Buclaw
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=4354

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|D1 & D2                     |D2

--
October 14, 2016
https://issues.dlang.org/show_bug.cgi?id=4354

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bootcamp
                 CC|                            |andrei@erdani.com

--
July 07, 2017
https://issues.dlang.org/show_bug.cgi?id=4354

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
This is actually a druntime bug since errno isn't defined in phobos, but in this example you could use it because std.stdio has a public import of core.stdc.

--
July 07, 2017
https://issues.dlang.org/show_bug.cgi?id=4354

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
Don't mind my previous comment, it is unfinished and it was before actually running the example.

--
July 07, 2017
https://issues.dlang.org/show_bug.cgi?id=4354

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |---

--- Comment #3 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
(In reply to RazvanN from comment #2)
> Don't mind my previous comment,

I guess this should remain open, then.

--
July 07, 2017
https://issues.dlang.org/show_bug.cgi?id=4354

--- Comment #4 from Andrei Alexandrescu <andrei@erdani.com> ---
This is a reproducible problem on Windows (at least with wine). We use a C small file in druntime (src/core/stdc/errno.c) to make sure we use the C macro. Far as I can tell the same technique is used across Windows and Posix, which indicates the problem is with dmc's stdlib.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=4354

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--