LWN: Comments on "A draft glibc year-2038 design document" https://lwn.net/Articles/715242/ This is a special feed containing comments posted to the individual LWN article titled "A draft glibc year-2038 design document". en-us Fri, 05 Sep 2025 14:34:02 +0000 Fri, 05 Sep 2025 14:34:02 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net A draft glibc year-2038 design document https://lwn.net/Articles/720169/ https://lwn.net/Articles/720169/ toyotabedzrock <div class="FormattedComment"> Accounting​ software used by the government often need for make predictions for 10+ years out. So you might have less than half the time to fix it if it isn't already messing with social security calculations. <br> </div> Mon, 17 Apr 2017 07:53:09 +0000 A draft glibc year-2038 design document https://lwn.net/Articles/715598/ https://lwn.net/Articles/715598/ jag <div class="FormattedComment"> Per <a href="https://www.spinics.net/lists/y2038/msg01959.html">https://www.spinics.net/lists/y2038/msg01959.html</a> "microseconds" was replaced with "nanoseconds" in revision 118.<br> <p> You can find the most recent version here: <a href="https://sourceware.org/glibc/wiki/Y2038ProofnessDesign">https://sourceware.org/glibc/wiki/Y2038ProofnessDesign</a><br> <p> As for the tv_nsec in timeval, the text above the code snippet mentions that tv_usec is mandated by POSIX, so to me it seems like a copy&amp;paste error for the code snippet which then was perpetuated from there into the text below it. I've let the author know.<br> <p> I don't get the impression that the author misunderstands the subject matter, but rather that it's a case of editing fatigue / blindness. It's precisely why you ask others to read your drafts.<br> </div> Sat, 25 Feb 2017 14:25:38 +0000 A draft glibc year-2038 design document https://lwn.net/Articles/715536/ https://lwn.net/Articles/715536/ peda <div class="FormattedComment"> I'm not going to bother with that since the chance of anyone actually doing as described in the document is nil. It's just mildly amusing that those who supposedly knows this best (or some of them anyway) also make mistakes with timeval/timespec.<br> </div> Fri, 24 Feb 2017 18:44:26 +0000 A draft glibc year-2038 design document https://lwn.net/Articles/715532/ https://lwn.net/Articles/715532/ corbet If you feel you have found something incorrect in the document, the best thing to do would be to respond in the original thread. The problem has a much higher chance of being fixed that way. Fri, 24 Feb 2017 17:23:56 +0000 A draft glibc year-2038 design document https://lwn.net/Articles/715529/ https://lwn.net/Articles/715529/ peda <p>Heh, the draft thinks that the tv_nsec field in struct timespec is <b>micro</b>seconds and proposes that the Y2038-compatible struct timeval should also have a tv_<b>n</b>sec field (instead of the mandated tv_usec field). Someone didn't proofread (or is seriously confused).</p> <p>But then again, having both struct timeval and struct timespec was inevitably going to lead to crap. I just thought folks doing time in glibc was on top of that and knew that shit like the above happens just about every time you are not super careful with those two structs...</p> Fri, 24 Feb 2017 17:12:16 +0000 A draft glibc year-2038 design document https://lwn.net/Articles/715490/ https://lwn.net/Articles/715490/ abelloni <div class="FormattedComment"> Yeah but it will not hit any platform smart enough to know that it is not 1972 anymore. Maybe I'm too optimistic but I would hope that this includes all current platforms.<br> </div> Fri, 24 Feb 2017 10:25:45 +0000 A draft glibc year-2038 design document https://lwn.net/Articles/715319/ https://lwn.net/Articles/715319/ ghane <div class="FormattedComment"> On a different note, NTP will break in 2036, so we *may* have precise kernel timestamps in the years following, with no way to synchronise between systems.<br> <p> The Apocalypse is closer than you think :-)<br> <p> </div> Thu, 23 Feb 2017 05:49:03 +0000 A draft glibc year-2038 design document https://lwn.net/Articles/715293/ https://lwn.net/Articles/715293/ jhoblitt <div class="FormattedComment"> My head blew up reading the design doc -- which looks like a great example of how to plan a refactoring of a complex code base. Seriously, these folks are unsung heros...<br> </div> Wed, 22 Feb 2017 19:50:33 +0000 Time in perspective https://lwn.net/Articles/715271/ https://lwn.net/Articles/715271/ pr1268 <p><pre> me@mylappy:~$ echo &quot;$(date +%s -d &quot;01 Jan 2000 00:00:01 -0000&quot;)/2^31&quot; | bc -l .44083446310833096504 me@mylappy:~$ echo &quot;$(date +%s)/2^31&quot; | bc -l .69280358171090483665 </pre></p> <p>We're almost as close to the Y2038 apocalypse as the Y2K &quot;problem&quot; was to us now. Gee... where does the time go? :-\</p> <p>P.S. Kudos to the glibc team for staying focused on this.</p> Wed, 22 Feb 2017 17:31:11 +0000