Home
last modified time | relevance | path

Searched refs:timebuf (Results 1 – 2 of 2) sorted by relevance

/linux/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, sizeof(timebuf)), in log_error()
198 char timebuf[64]; in log_err_errno() local
[all …]
/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c719 struct tms timebuf; in TEST_SIGNAL() local
720 clock_t clock = times(&timebuf); in TEST_SIGNAL()
729 EXPECT_LE(clock, syscall(__NR_times, &timebuf)); in TEST_SIGNAL()