Searched refs:parse_nsec (Results 1 – 7 of 7) sorted by relevance
/systemd-251/src/test/ |
D | test-time-util.c | 129 TEST(parse_nsec) { in TEST() argument 132 assert_se(parse_nsec("5s", &u) >= 0); in TEST() 134 assert_se(parse_nsec("5s500ms", &u) >= 0); in TEST() 136 assert_se(parse_nsec(" 5s 500ms ", &u) >= 0); in TEST() 138 assert_se(parse_nsec(" 5.5s ", &u) >= 0); in TEST() 140 assert_se(parse_nsec(" 5.5s 0.5ms ", &u) >= 0); in TEST() 142 assert_se(parse_nsec(" .22s ", &u) >= 0); in TEST() 144 assert_se(parse_nsec(" .50y ", &u) >= 0); in TEST() 146 assert_se(parse_nsec("2.5", &u) >= 0); in TEST() 148 assert_se(parse_nsec(".7", &u) >= 0); in TEST() [all …]
|
/systemd-251/src/fuzz/ |
D | fuzz-time-util.c | 23 (void) parse_nsec(str, &usec); in LLVMFuzzerTestOneInput()
|
/systemd-251/src/basic/ |
D | time-util.h | 150 int parse_nsec(const char *t, nsec_t *nsec);
|
D | time-util.c | 1183 int parse_nsec(const char *t, nsec_t *nsec) { in parse_nsec() function
|
/systemd-251/src/network/ |
D | networkd-can.c | 200 r = parse_nsec(rvalue, &val); in config_parse_can_time_quanta()
|
/systemd-251/src/shared/ |
D | conf-parser.c | 771 DEFINE_PARSER(nsec, nsec_t, parse_nsec);
|
D | bus-unit-util.c | 129 DEFINE_BUS_APPEND_PARSE_PTR("t", uint64_t, nsec_t, parse_nsec);
|