Home
last modified time | relevance | path

Searched refs:verify_timezone (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/test/
Dtest-time-util.c243 TEST(verify_timezone) { in TEST() argument
244 assert_se(verify_timezone("Europe/Berlin", LOG_DEBUG) == 0); in TEST()
245 assert_se(verify_timezone("Australia/Sydney", LOG_DEBUG) == 0); in TEST()
246 assert_se(verify_timezone("Europe/Do not exist", LOG_DEBUG) == -EINVAL); in TEST()
247 assert_se(verify_timezone("Europe/DoNotExist", LOG_DEBUG) == -ENOENT); in TEST()
248 assert_se(verify_timezone("/DoNotExist", LOG_DEBUG) == -EINVAL); in TEST()
249 assert_se(verify_timezone("DoNotExist/", LOG_DEBUG) == -EINVAL); in TEST()
266 r = verify_timezone(*zone, LOG_ERR); in TEST()
/systemd-251/src/basic/
Dtime-util.h153 int verify_timezone(const char *name, int log_level);
155 return verify_timezone(name, log_level) >= 0; in timezone_is_valid()
Dtime-util.c1396 int verify_timezone(const char *name, int log_level) { in verify_timezone() function
/systemd-251/src/network/
Dnetworkd-network.c981 r = verify_timezone(rvalue, LOG_WARNING); in config_parse_timezone()