> Just out of curiosity (I may have missed the point): since this is not
> heavily system dependent, and more user related, and for the sake of
> APE, did you consider the standard C and the POSIX interfaces?

First, the posix interfaces share inadequacies with plan 9.
They only work for local timezones and GMT.  So, I see this
as a place where we can get our APIs right, and not just
copying poorly considered interface rot from Unix.

Second, ape can't call this code anyways -- ape lives in its
own world, with its own libc.  Adopting posix interfaces
here doesn't help ape.

Still, here's probably code that could be dropped into ape,
and adapted to support more of the posix APIs. I'd consider
committing patches if they came across my inbox.[1]

>> The manpage is attached below for review:
> 
> FWIW, a typo in the sample code, the closing bracket in the assignation
> before comparison is missing.
> 
>>                if((zl = tmgetzone("local") == nil)
>                                             ^
> 
> (in all the chunks).

Thanks, fixed.

> Thank you for the work!

[1] A note on my approach here: I see ape as a tool for porting programs,
    so following standards in a vaccuum isn't useful -- I'd prefer to make
    ape changes lazily -- eg, as a result of porting netsurf.


------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T5b9f56a5fac852c2-Md53726c9edf0db2e2404ce8a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to