[Asterisk-Dev] Re: ast_localtime() weird interface.
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Wed Oct 12 12:42:50 MST 2005
On Wednesday 12 October 2005 13:16, Dinesh Nair wrote:
> On 10/13/05 00:44 Tilghman Lesher said the following:
> > On Wednesday 12 October 2005 09:42, Luigi Rizzo wrote:
> >>The point is, if we use different types (such as time_t and struct
> >>timeval's tv_sec), then we cannot complain because they _really_
> >> are different on a given platform.
> >
> > On my given platform, they're the same size. Why is it that a
> > broken platform should trump a sane platform? Why not fix the
> > brokenness and let it be sane once again, everywhere?
>
> i believe luigi was coming from the angle that we cant really predict
> how different operating systems' have different sizes for the same
> struct/member. it'd be better to have asterisk be platform
> independent in this regard and try to support this than otherwise.
That may be true, but until FreeBSD made this 64-bit conversion,
every system has managed this fine. Given that Rizzo is a FreeBSD
developer, he is in a unique position to make sure that FreeBSD does
the right thing and fixes this issue that appears to be unique to
FreeBSD.
We can't be held hostage to dumb design decisions on alternative
platforms.
--
Tilghman
More information about the asterisk-dev
mailing list