[Issue 6450] struct tm definition too short in std.c.linux.linux

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 3 07:10:38 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=6450

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
The code in the initial bug report has been moved to druntime in
src/core/stdc/time.d and it seems to implement the tm struct according to the
one in glibc. After looking into the gtime_r function in glibc it looks like it
does initialize the tm struct values, but it uses some other internal
variables, so maybe it does fill 56 bytes of data, but not all are belonging to
the tm struct.

Closing as invalid. Reopen if I am missing something.

--


More information about the Digitalmars-d-bugs mailing list