Lines Matching refs:timep
145 static struct tm * gmtsub(const time_t * timep, int_fast32_t offset,
147 static struct tm * localsub(const time_t * timep, int_fast32_t offset,
170 static struct tm * timesub(const time_t * timep, int_fast32_t offset,
1256 localsub(const time_t *const timep, const int_fast32_t offset, in localsub() argument
1263 const time_t t = *timep; in localsub()
1267 return gmtsub(timep, offset, tmp); in localsub()
1332 localtime(const time_t *const timep) in localtime() argument
1335 return localsub(timep, 0L, &tm); in localtime()
1343 localtime_r(const time_t *const timep, struct tm *tmp) in localtime_r() argument
1345 return localsub(timep, 0L, tmp); in localtime_r()
1353 gmtsub(const time_t *const timep, const int_fast32_t offset, in gmtsub() argument
1366 result = timesub(timep, offset, gmtptr, tmp); in gmtsub()
1379 gmtime(const time_t *const timep) in gmtime() argument
1381 return gmtsub(timep, 0L, &tm); in gmtime()
1389 gmtime_r(const time_t *const timep, struct tm *tmp) in gmtime_r() argument
1391 return gmtsub(timep, 0L, tmp); in gmtime_r()
1397 offtime(const time_t *const timep, const long offset) in offtime() argument
1399 return gmtsub(timep, offset, &tm); in offtime()
1417 timesub(const time_t *const timep, const int_fast32_t offset, in timesub() argument
1436 if (*timep >= lp->ls_trans) { in timesub()
1437 if (*timep == lp->ls_trans) { in timesub()
1455 tdays = *timep / SECSPERDAY; in timesub()
1456 rem = *timep - tdays * SECSPERDAY; in timesub()
1545 ctime(const time_t *const timep) in ctime() argument
1553 return asctime(localtime(timep)); in ctime()
1557 ctime_r(const time_t *const timep, char *buf) in ctime_r() argument
1561 return asctime_r(localtime_r(timep, &mytm), buf); in ctime_r()
2000 leapcorr(time_t *timep) in leapcorr() argument
2010 if (*timep >= lp->ls_trans) in leapcorr()