• Home
  • Raw
  • Download

Lines Matching refs:tm

73 #define  TM      tm
251 static int check_tm(struct TM *tm) in check_tm() argument
254 assert(tm->tm_sec >= 0); in check_tm()
255 assert(tm->tm_sec <= 61); in check_tm()
257 assert(tm->tm_min >= 0); in check_tm()
258 assert(tm->tm_min <= 59); in check_tm()
260 assert(tm->tm_hour >= 0); in check_tm()
261 assert(tm->tm_hour <= 23); in check_tm()
263 assert(tm->tm_mday >= 1); in check_tm()
264 assert(tm->tm_mday <= days_in_month[IS_LEAP(tm->tm_year)][tm->tm_mon]); in check_tm()
266 assert(tm->tm_mon >= 0); in check_tm()
267 assert(tm->tm_mon <= 11); in check_tm()
269 assert(tm->tm_wday >= 0); in check_tm()
270 assert(tm->tm_wday <= 6); in check_tm()
272 assert(tm->tm_yday >= 0); in check_tm()
273 assert(tm->tm_yday <= length_of_year[IS_LEAP(tm->tm_year)]); in check_tm()
276 assert(tm->tm_gmtoff >= -24 * 60 * 60); in check_tm()
277 assert(tm->tm_gmtoff <= 24 * 60 * 60); in check_tm()
367 static void copy_tm_to_TM(const struct tm *src, struct TM *dest) { in copy_tm_to_TM()
399 static void copy_TM_to_tm(const struct TM *src, struct tm *dest) { in copy_TM_to_tm()
432 struct tm * fake_localtime_r(const time_t *clock, struct tm *result) { in fake_localtime_r()
433 const struct tm *static_result = localtime(clock); in fake_localtime_r()
450 struct tm * fake_gmtime_r(const time_t *clock, struct tm *result) { in fake_gmtime_r()
451 const struct tm *static_result = gmtime(clock); in fake_gmtime_r()
492 struct tm safe_date; in mktime64()
536 struct tm safe_date; in gmtime64_r()
651 struct tm safe_date; in localtime64_r()