Lines Matching refs:out_path

250 void fill_pathname(char *out_path, const char *in_path,  in fill_pathname()  argument
262 fill_pathname_noext(out_path, tmp_path, replace, size); in fill_pathname()
279 size_t fill_pathname_noext(char *out_path, const char *in_path, in fill_pathname_noext() argument
282 strlcpy(out_path, in_path, size); in fill_pathname_noext()
283 return strlcat(out_path, replace, size); in fill_pathname_noext()
835 void fill_pathname_resolve_relative(char *out_path, in fill_pathname_resolve_relative() argument
840 strlcpy(out_path, in_path, size); in fill_pathname_resolve_relative()
844 fill_pathname_basedir(out_path, in_refpath, size); in fill_pathname_resolve_relative()
845 strlcat(out_path, in_path, size); in fill_pathname_resolve_relative()
846 path_resolve_realpath(out_path, size, false); in fill_pathname_resolve_relative()
860 size_t fill_pathname_join(char *out_path, in fill_pathname_join() argument
863 if (out_path != dir) in fill_pathname_join()
864 strlcpy(out_path, dir, size); in fill_pathname_join()
866 if (*out_path) in fill_pathname_join()
867 fill_pathname_slash(out_path, size); in fill_pathname_join()
869 return strlcat(out_path, path, size); in fill_pathname_join()
872 size_t fill_pathname_join_special_ext(char *out_path, in fill_pathname_join_special_ext() argument
877 fill_pathname_join(out_path, dir, path, size); in fill_pathname_join_special_ext()
878 if (*out_path) in fill_pathname_join_special_ext()
879 fill_pathname_slash(out_path, size); in fill_pathname_join_special_ext()
881 strlcat(out_path, last, size); in fill_pathname_join_special_ext()
882 return strlcat(out_path, ext, size); in fill_pathname_join_special_ext()
885 size_t fill_pathname_join_concat_noext(char *out_path, in fill_pathname_join_concat_noext() argument
890 fill_pathname_noext(out_path, dir, path, size); in fill_pathname_join_concat_noext()
891 return strlcat(out_path, concat, size); in fill_pathname_join_concat_noext()
894 size_t fill_pathname_join_concat(char *out_path, in fill_pathname_join_concat() argument
899 fill_pathname_join(out_path, dir, path, size); in fill_pathname_join_concat()
900 return strlcat(out_path, concat, size); in fill_pathname_join_concat()
903 void fill_pathname_join_noext(char *out_path, in fill_pathname_join_noext() argument
906 fill_pathname_join(out_path, dir, path, size); in fill_pathname_join_noext()
907 path_remove_extension(out_path); in fill_pathname_join_noext()
921 size_t fill_pathname_join_delim(char *out_path, const char *dir, in fill_pathname_join_delim() argument
926 if (out_path == dir) in fill_pathname_join_delim()
929 copied = strlcpy(out_path, dir, size); in fill_pathname_join_delim()
931 out_path[copied] = delim; in fill_pathname_join_delim()
932 out_path[copied+1] = '\0'; in fill_pathname_join_delim()
935 copied = strlcat(out_path, path, size); in fill_pathname_join_delim()
939 size_t fill_pathname_join_delim_concat(char *out_path, const char *dir, in fill_pathname_join_delim_concat() argument
943 fill_pathname_join_delim(out_path, dir, path, delim, size); in fill_pathname_join_delim_concat()
944 return strlcat(out_path, concat, size); in fill_pathname_join_delim_concat()
982 void fill_pathname_expand_special(char *out_path, in fill_pathname_expand_special() argument
997 size_t src_size = strlcpy(out_path, home_dir, size); in fill_pathname_expand_special()
1000 out_path += src_size; in fill_pathname_expand_special()
1003 if (!PATH_CHAR_IS_SLASH(out_path[-1])) in fill_pathname_expand_special()
1005 src_size = strlcpy(out_path, PATH_DEFAULT_SLASH(), size); in fill_pathname_expand_special()
1008 out_path += src_size; in fill_pathname_expand_special()
1028 size_t src_size = strlcpy(out_path, application_dir, size); in fill_pathname_expand_special()
1031 out_path += src_size; in fill_pathname_expand_special()
1034 if (!PATH_CHAR_IS_SLASH(out_path[-1])) in fill_pathname_expand_special()
1036 src_size = strlcpy(out_path, PATH_DEFAULT_SLASH(), size); in fill_pathname_expand_special()
1039 out_path += src_size; in fill_pathname_expand_special()
1050 retro_assert(strlcpy(out_path, in_path, size) < size); in fill_pathname_expand_special()
1053 void fill_pathname_abbreviate_special(char *out_path, in fill_pathname_abbreviate_special() argument
1089 size_t src_size = strlcpy(out_path, notations[i], size); in fill_pathname_abbreviate_special()
1093 out_path += src_size; in fill_pathname_abbreviate_special()
1099 retro_assert(strlcpy(out_path, in fill_pathname_abbreviate_special()
1101 out_path++; in fill_pathname_abbreviate_special()
1111 retro_assert(strlcpy(out_path, in_path, size) < size); in fill_pathname_abbreviate_special()