Lines Matching refs:src_path
76 FileSpec::ResolveUsername (const char *src_path, char *dst_path, size_t dst_len) in ResolveUsername() argument
78 if (src_path == NULL || src_path[0] == '\0') in ResolveUsername()
88 if (src_path[0] != '~') in ResolveUsername()
90 size_t len = strlen (src_path); in ResolveUsername()
93 ::bcopy (src_path, dst_path, dst_len - 1); in ResolveUsername()
97 ::bcopy (src_path, dst_path, len + 1); in ResolveUsername()
102 const char *first_slash = ::strchr (src_path, '/'); in ResolveUsername()
108 user_name = src_path + 1; in ResolveUsername()
113 size_t user_name_len = first_slash - src_path - 1; in ResolveUsername()
114 ::memcpy (user_home, src_path + 1, user_name_len); in ResolveUsername()
145 return ::snprintf (dst_path, dst_len, "%s", src_path); in ResolveUsername()
185 FileSpec::Resolve (const char *src_path, char *dst_path, size_t dst_len) in Resolve() argument
187 if (src_path == NULL || src_path[0] == '\0') in Resolve()
193 if (src_path[0] == '~') in Resolve()
195 size_t return_count = ResolveUsername(src_path, unglobbed_path, sizeof(unglobbed_path)); in Resolve()
200 ::snprintf (unglobbed_path, sizeof(unglobbed_path), "%s", src_path); in Resolve()
205 ::snprintf(unglobbed_path, sizeof(unglobbed_path), "%s", src_path); in Resolve()