[Ur] about the -static compiler flag
Benjamin Barenblat
benjamin at barenblat.name
Fri Nov 23 08:11:49 EST 2018
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.
More information about the Ur
mailing list