Searched refs:to_path (Results 1 - 3 of 3) sorted by relevance

/systemd/src/basic/
H A Dpath-util.c114 int path_make_relative(const char *from_dir, const char *to_path, char **_r) { argument
119 assert(to_path);
127 if (!path_is_absolute(to_path))
136 to_path += strspn(to_path, "/");
139 if (!*to_path)
140 /* from_dir equals to_path. */
143 /* from_dir is a parent directory of to_path. */
144 r = strdup(to_path);
155 if (!*to_path)
[all...]
H A Dpath-util.h43 int path_make_relative(const char *from_dir, const char *to_path, char **_r);
/systemd/src/test/
H A Dtest-path-util.c209 #define test(from_dir, to_path, expected) { \
211 path_make_relative(from_dir, to_path, &z); \

Completed in 3680 milliseconds