Searched refs:accept_dot_dot (Results 1 – 3 of 3) sorted by relevance
/systemd-251/src/basic/ |
D | path-util.h | 60 char *path_startswith_full(const char *path, const char *prefix, bool accept_dot_dot) _pure_; 151 int path_find_first_component(const char **p, bool accept_dot_dot, const char **ret); 152 int path_find_last_component(const char *path, bool accept_dot_dot, const char **next, const char *… 158 bool path_is_valid_full(const char *p, bool accept_dot_dot) _pure_;
|
D | path-util.c | 375 char *path_startswith_full(const char *path, const char *prefix, bool accept_dot_dot) { in path_startswith_full() argument 396 r = path_find_first_component(&path, accept_dot_dot, &p); in path_startswith_full() 400 k = path_find_first_component(&prefix, accept_dot_dot, &q); in path_startswith_full() 809 int path_find_first_component(const char **p, bool accept_dot_dot, const char **ret) { in path_find_first_component() argument 869 if (!accept_dot_dot && len == 2 && first[0] == '.' && first[1] == '.') in path_find_first_component() 894 int path_find_last_component(const char *path, bool accept_dot_dot, const char **next, const char *… in path_find_last_component() argument 968 if (!accept_dot_dot && len == 2 && strneq(last_begin, "..", 2)) in path_find_last_component() 1125 bool path_is_valid_full(const char *p, bool accept_dot_dot) { in path_is_valid_full() argument 1132 r = path_find_first_component(&e, accept_dot_dot, NULL); in path_is_valid_full()
|
/systemd-251/src/test/ |
D | test-path-util.c | 600 bool accept_dot_dot, in test_path_find_first_component_one() argument 604 … log_debug("/* %s(\"%s\", accept_dot_dot=%s) */", __func__, strnull(path), yes_no(accept_dot_dot)); in test_path_find_first_component_one() 610 r = path_find_first_component(&p, accept_dot_dot, &e); in test_path_find_first_component_one() 682 bool accept_dot_dot, in test_path_find_last_component_one() argument 686 … log_debug("/* %s(\"%s\", accept_dot_dot=%s) */", __func__, strnull(path), yes_no(accept_dot_dot)); in test_path_find_last_component_one() 692 r = path_find_last_component(path, accept_dot_dot, &next, &e); in test_path_find_last_component_one()
|