<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/win32/timegm.c, branch long_paths</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=long_paths</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=long_paths'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2022-10-25T15:20:15+00:00</updated>
<entry>
<title>win32: fix warning in timegm(3)</title>
<updated>2022-10-25T15:20:15+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2022-10-25T15:20:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0b5bd6e1436c38a74c5294535d5f4d7a7cf79d54'/>
<id>urn:sha1:0b5bd6e1436c38a74c5294535d5f4d7a7cf79d54</id>
<content type='text'>
Building on Windows using w64devkit resulted in a new warning in
timegm(3).  The compiler didn't like a reference to the unnamed
temporary in:

   if (!is_leap) is_leap = &amp;(int){0};

is_leap is always non-NULL in the limited version of the code used
here so the offending line can simply be removed.
</content>
</entry>
<entry>
<title>win32: limited version of timegm(3)</title>
<updated>2021-09-18T08:33:21+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-09-18T08:33:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=48ddce5e9a063d89689ffe4be1680767186e13ee'/>
<id>urn:sha1:48ddce5e9a063d89689ffe4be1680767186e13ee</id>
<content type='text'>
timegm(3) from musl checks that the calculated time_t value can
be broken out into a struct tm without overflow.  The limiting
factor is that tm_year is an int.

Our only use of timegm(3) is followed by a call to localtime(3).
The Microsoft version of this only works for time_t values between
0 and INT_MAX (32-bit) or 0 and 32535215999 (64-bit).

Enforce these limits in timegm(3), thus avoiding the use of musl's
__secs_to_tm() and saving 624 bytes.
</content>
</entry>
<entry>
<title>win32: changes to allow timezones in dates</title>
<updated>2021-09-17T10:41:25+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-09-17T08:18:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9e16eecc70020e9a603d637f6a8fdfc7c95c30e1'/>
<id>urn:sha1:9e16eecc70020e9a603d637f6a8fdfc7c95c30e1</id>
<content type='text'>
Create mingw_strptime() to return timezone offset as a separate
argument (since Microsoft's struct tm doesn't have the required
member).

Import timegm() from musl.

Update parse_datestr() to use mingw_strptime().

Enable FEATURE_TIMEZONE in the default configuration.

GitHub issue #230.
</content>
</entry>
</feed>
