Searched refs:from_dir (Results 1 - 3 of 3) sorted by relevance
/systemd/src/basic/ |
H A D | path-util.c | 114 int path_make_relative(const char *from_dir, const char *to_path, char **_r) { argument 118 assert(from_dir); 124 if (!path_is_absolute(from_dir)) 135 from_dir += strspn(from_dir, "/"); 138 if (!*from_dir) { 140 /* from_dir equals to_path. */ 143 /* from_dir is a parent directory of to_path. */ 158 a = strcspn(from_dir, "/"); 164 if (memcmp(from_dir, to_pat [all...] |
H A D | path-util.h | 43 int path_make_relative(const char *from_dir, const char *to_path, char **_r);
|
/systemd/src/test/ |
H A D | test-path-util.c | 209 #define test(from_dir, to_path, expected) { \ 211 path_make_relative(from_dir, to_path, &z); \
|
Completed in 1952 milliseconds