[libvirt] [PATCH v2] virsh: time_t is not a long on FreeBSD

Paolo Bonzini pbonzini at redhat.com
Thu May 26 11:34:22 UTC 2011


On 05/25/2011 05:53 PM, Eric Blake wrote:
>> >  -            localtime_r(&creation,&time_info);
>> >  +            creation_time_t = creation_longlong;
>> >  +            if (creation_time_t != creation_longlong) {
>> >  +                vshError(ctl, "%s", _("time_t overflow"));
>
> We shouldn't hit this error until 2038, and by then, hopefully more
> 32-bit platforms (if any are still running) will have switched to 64-bit
> time_t.:)

If FreeBSD will still have time_t==int, it will die a painful death in 
2038 independent of 32- vs. 64-bit. :)

Paolo




More information about the libvir-list mailing list