Home
last modified time | relevance | path

Searched refs:timebuf (Results 1 - 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dnettest.c111 static char *timestamp(char *timebuf, int buflen) in timestamp() argument
116 if (strftime(timebuf, buflen, "%T", localtime(&now)) == 0) { in timestamp()
117 memset(timebuf, 0, buflen); in timestamp()
118 strncpy(timebuf, "00:00:00", buflen-1); in timestamp()
121 return timebuf; in timestamp()
126 char timebuf[64]; in log_msg() local
133 timestamp(timebuf, sizeof(timebuf)), in log_msg()
144 char timebuf[64]; in log_error() local
151 timestamp(timebuf, sizeo in log_error()
162 char timebuf[64]; log_err_errno() local
[all...]
/kernel/liteos_a/shell/full/src/cmds/
H A Ddate_shellcmd.c172 CHAR timebuf[SHOW_MAX_LEN] = {0}; in OsFormatPrintTime() local
189 if (strftime(timebuf, SHOW_MAX_LEN - 1, formatStr + 1, tm)) { in OsFormatPrintTime()
190 PRINTK("%s\n", timebuf); in OsFormatPrintTime()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dnettest.c147 static char *timestamp(char *timebuf, int buflen) in timestamp() argument
152 if (strftime(timebuf, buflen, "%T", localtime(&now)) == 0) { in timestamp()
153 memset(timebuf, 0, buflen); in timestamp()
154 strncpy(timebuf, "00:00:00", buflen-1); in timestamp()
157 return timebuf; in timestamp()
162 char timebuf[64]; in log_msg() local
169 timestamp(timebuf, sizeof(timebuf)), in log_msg()
180 char timebuf[64]; in log_error() local
187 timestamp(timebuf, sizeo in log_error()
198 char timebuf[64]; log_err_errno() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c697 struct tms timebuf; in TEST_SIGNAL() local
698 clock_t clock = times(&timebuf); in TEST_SIGNAL()
707 EXPECT_LE(clock, syscall(__NR_times, &timebuf)); in TEST_SIGNAL()
/kernel/linux/linux-6.6/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c712 struct tms timebuf; in TEST_SIGNAL() local
713 clock_t clock = times(&timebuf); in TEST_SIGNAL()
722 EXPECT_LE(clock, syscall(__NR_times, &timebuf)); in TEST_SIGNAL()

Completed in 14 milliseconds