/src/sbin/dump/ |
unctime.c | 57 str = strptime(str, "%a %b %e %H:%M:%S %Y", &then);
|
/src/lib/libc/time/ |
Makefile.inc | 5 SRCS+= asctime.c difftime.c localtime.c getdate.c strftime.c strptime.c 6 MAN+= ctime.3 getdate.3 offtime.3 strftime.3 strptime.3 \ 30 strptime.3 strptime_l.3 \
|
strptime.c | 1 /* $NetBSD: strptime.c,v 1.67 2024/06/07 13:53:23 riastradh Exp $ */ 34 __RCSID("$NetBSD: strptime.c,v 1.67 2024/06/07 13:53:23 riastradh Exp $"); 49 __weak_alias(strptime,_strptime) 151 strptime(const char *buf, const char *fmt, struct tm *tm) function in typeref:typename:char * 248 bp = (const u_char *)strptime((const char *)bp,
|
getdate.c | 102 rp = strptime(str, line, rtmp); 136 * requires strptime(3) support for %Z. 252 * This is more work since strptime(3) doesn't "do the right thing".
|
/src/usr.bin/chpass/ |
util.c | 90 t = strptime(p, "%B %d %Y", &tm);
|
/src/usr.bin/mail/ |
format.c | 568 * NOTE: Rather than depend on strptime(3) modifying only 571 * required with the NetBSD strptime(3) implementation. 575 if ((tail = strptime(date, " %a,", &tmp_tm)) == NULL) 581 if ((tail = strptime(tail, " %d %b", &tmp_tm)) == NULL) 588 /* XXX - Portable? This depends on strptime not scanning off 591 if ((p = strptime(tail, " %y", &tmp_tm)) != NULL && is_WSP(*p)) 593 else if ((tail = strptime(tail, " %Y", &tmp_tm)) == NULL) 599 if ((tail = strptime(tail, " %H:%M", &tmp_tm)) == NULL) 606 if ((p = strptime(tail, ":%S", &tmp_tm)) != NULL) { 642 * strptime(3) doesn't know about timezone fields, s [all...] |
/src/lib/libc/compat/include/ |
time.h | 50 char *strptime(const char * __restrict, const char * __restrict,
|
/src/tests/lib/libc/time/ |
t_strptime.c | 54 ret = strptime(buf, fmt, &tm); 57 "strptime(\"%s\", \"%s\", tm): incorrect return code: " 62 "strptime(\"%s\", \"%s\", tm): incorrect %s: " \ 83 ATF_CHECK_MSG(strptime(buf, fmt, &tm) == NULL, "strptime(\"%s\", " 170 if ((rv = strptime(name, fmt, &tm)) == NULL) 188 "strptime(\"%s\", \"%s\", &tm): " 210 atf_tc_set_md_var(tc, "descr", "Checks strptime(3): various checks"); 236 "Checks strptime(3) day name conversions [aA]"); 289 "Checks strptime(3) hour conversions [IH]") [all...] |
/src/bin/date/ |
date.c | 366 t = strptime(p, fmt, lt); 380 t = strptime(p, "%m%d%H%M", lt); 387 t = strptime(t, yrdigs == 2 ? "%y" : "%Y", lt);
|
/src/usr.bin/cvslatest/ |
cvslatest.c | 143 if ((p = strptime(dt, fmt, &tm)) == NULL || *p) {
|
/src/usr.bin/ftp/ |
util.c | 747 (strptime(timestr, "%Y%m%d%H%M%S", &timebuf) == NULL)) { 810 if ((t = strptime(httpdate, "%a, %d %b %Y %H:%M:%S GMT", parsed)) || 812 (t = strptime(httpdate, "%a, %d-%b-%y %H:%M:%S GMT", parsed)) || 814 (t = strptime(httpdate, "%a, %b %d %H:%M:%S %Y", parsed))) {
|
/src/include/ |
time.h | 130 char *strptime(const char * __restrict, const char * __restrict,
|
/src/libexec/httpd/ |
bozohttpd.c | 977 if ((remainder = strptime(val, "%a, %d %b %Y %T GMT", &tm)) == NULL && 978 (remainder = strptime(val, "%a, %d-%b-%y %T GMT", &tm)) == NULL && 979 (remainder = strptime(val, "%a %b %d %T %Y", &tm)) == NULL)
|
/src/sbin/routed/ |
parms.c | 458 ptr = strptime(buf, "%y/%m/%d@%H:%M\n", &tm);
|
/src/share/examples/refuse/ian/libfetch/ |
http.c | 486 r = strptime(p, "%a, %d %b %Y %H:%M:%S GMT", &tm);
|
/src/lib/libc/include/ |
namespace.h | 688 #define strptime _strptime macro
|
/src/usr.sbin/user/ |
user.c | 1043 if (strptime(s, "%c", &tm) != NULL) { 1046 } else if (strptime(s, "%B %d %Y", &tm) != NULL) {
|
/src/usr.sbin/syslogd/ |
syslogd.c | 1860 (void)strptime(tsbuf, "%FT%T%z", &parsed); 1875 strptime((char *)from_buf, "%b %d %T", &parsed);
|
/src/sys/external/bsd/compiler_rt/dist/lib/msan/tests/ |
msan_test.cc | 2252 TEST(MemorySanitizer, strptime) { 2254 char *p = strptime("11/1/2013-05:39", "%m/%d/%Y-%H:%M", &time);
|