Hash :
464ba348
Author :
Date :
2016-04-13T10:53:56
mktime: improve integer overflow checking * lib/mktime.c: Include stdbool.h, intprops.h, verify.h. (WRAPV): Remove; no longer needed. (verify): Remove. Replace all uses with call to verify.h 'verify'. (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove. Use intprops.h defns instead. (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok): Use bool for Boolean, for clarity. (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to detect integer overflow. * modules/mktime (Depends-on): Add intprops, stdbool, verify.
Description:
mktime() function: convert broken-down time to linear time.
Files:
lib/mktime-internal.h
lib/mktime.c
m4/mktime.m4
Depends-on:
multiarch
intprops [test $REPLACE_MKTIME = 1]
stdbool [test $REPLACE_MKTIME = 1]
time_r [test $REPLACE_MKTIME = 1]
verify [test $REPLACE_MKTIME = 1]
configure.ac:
gl_FUNC_MKTIME
if test $REPLACE_MKTIME = 1; then
AC_LIBOBJ([mktime])
gl_PREREQ_MKTIME
fi
gl_TIME_MODULE_INDICATOR([mktime])
Makefile.am:
Include:
<time.h>
License:
LGPLv2+
Maintainer:
Paul Eggert, Jim Meyering, glibc