Searched refs:verify_timezone (Results 1 – 4 of 4) sorted by relevance
/systemd-251/src/test/ |
D | test-time-util.c | 243 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/ |
D | time-util.h | 153 int verify_timezone(const char *name, int log_level); 155 return verify_timezone(name, log_level) >= 0; in timezone_is_valid()
|
D | time-util.c | 1396 int verify_timezone(const char *name, int log_level) { in verify_timezone() function
|
/systemd-251/src/network/ |
D | networkd-network.c | 981 r = verify_timezone(rvalue, LOG_WARNING); in config_parse_timezone()
|