On Friday, November 23, 2018, at  8:00 AM EST, Adam Chlipala wrote:
> I'm always interested in PRs that substitute behavior-equivalent code
> that relies less on functions from outside appropriate standards like
> POSIX (assuming said PRs don't bring in tons of hard-to-maintain code). 
> Is timelocal such a case?

The glibc man page for timelocal says, “The timelocal() function is
equivalent to the POSIX standard function mktime(3). There is no reason
to ever use it.” mktime is actualy a standard C function, which is
probably even better than POSIX. So yes, timelocal is a GNU extension
with an analogue in standard C. A global s/timelocal/mktime/ in the
source code would probably have the desired effect.

_______________________________________________
Ur mailing list
[email protected]
http://www.impredicative.com/cgi-bin/mailman/listinfo/ur

Reply via email to