Searched refs:timebuf (Results 1 – 2 of 2) sorted by relevance
| /Linux-v5.4/tools/testing/selftests/net/ |
| D | nettest.c | 104 static char *timestamp(char *timebuf, int buflen) in timestamp() argument 109 if (strftime(timebuf, buflen, "%T", localtime(&now)) == 0) { in timestamp() 110 memset(timebuf, 0, buflen); in timestamp() 111 strncpy(timebuf, "00:00:00", buflen-1); in timestamp() 114 return timebuf; in timestamp() 119 char timebuf[64]; in log_msg() local 126 timestamp(timebuf, sizeof(timebuf)), in log_msg() 137 char timebuf[64]; in log_error() local 144 timestamp(timebuf, sizeof(timebuf)), in log_error() 155 char timebuf[64]; in log_err_errno() local [all …]
|
| /Linux-v5.4/tools/testing/selftests/seccomp/ |
| D | seccomp_bpf.c | 601 struct tms timebuf; in TEST_SIGNAL() local 602 clock_t clock = times(&timebuf); in TEST_SIGNAL() 611 EXPECT_LE(clock, syscall(__NR_times, &timebuf)); in TEST_SIGNAL()
|