]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Someday I might forgive the standards bodies for omitting timegm().
authorkientzle <kientzle@FreeBSD.org>
Tue, 19 Feb 2008 06:02:01 +0000 (06:02 +0000)
committerkientzle <kientzle@FreeBSD.org>
Tue, 19 Feb 2008 06:02:01 +0000 (06:02 +0000)
commitc47c10e46298b11b7a357a833a385f004c7d8524
treec14ec2fcf3c52567e63390350555da5856fda71a
parent5b631adaa6d1d6d0a681e5520c8bb66d2eafb7f6
Someday I might forgive the standards bodies for omitting timegm().
Maybe.  In the meantime, my workarounds for trying to coax UTC without
timegm() are getting uglier and uglier.  Apparently, some systems
don't support setenv()/unsetenv(), so you can't set the TZ env var and
hope thereby to coax mktime() into generating UTC.  Without that, I
don't see a really good alternative to just giving up and converting to
localtime with mktime().  (I suppose I should research the Perl library
approach for computing an inverse function to gmtime(); that might
actually be simpler than this growing list of hacks.)
lib/libarchive/archive_read_support_format_iso9660.c