Lines Matching refs:timeptr
72 asctime_r(register const struct tm *timeptr, char *buf) in asctime_r() argument
86 if (timeptr == NULL) { in asctime_r()
90 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r()
92 else wn = wday_name[timeptr->tm_wday]; in asctime_r()
93 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= MONSPERYEAR) in asctime_r()
95 else mn = mon_name[timeptr->tm_mon]; in asctime_r()
102 (void) strftime(year, sizeof year, "%Y", timeptr); in asctime_r()
109 timeptr->tm_mday, timeptr->tm_hour, in asctime_r()
110 timeptr->tm_min, timeptr->tm_sec, in asctime_r()
129 asctime(register const struct tm *timeptr) in asctime() argument
131 return asctime_r(timeptr, buf_asctime); in asctime()