Home
last modified time | relevance | path

Searched refs:parse_nsec (Results 1 – 7 of 7) sorted by relevance

/systemd-251/src/test/
Dtest-time-util.c129 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/
Dfuzz-time-util.c23 (void) parse_nsec(str, &usec); in LLVMFuzzerTestOneInput()
/systemd-251/src/basic/
Dtime-util.h150 int parse_nsec(const char *t, nsec_t *nsec);
Dtime-util.c1183 int parse_nsec(const char *t, nsec_t *nsec) { in parse_nsec() function
/systemd-251/src/network/
Dnetworkd-can.c200 r = parse_nsec(rvalue, &val); in config_parse_can_time_quanta()
/systemd-251/src/shared/
Dconf-parser.c771 DEFINE_PARSER(nsec, nsec_t, parse_nsec);
Dbus-unit-util.c129 DEFINE_BUS_APPEND_PARSE_PTR("t", uint64_t, nsec_t, parse_nsec);