Lines Matching refs:script_dirent
845 #define for_each_script(lang_path, lang_dir, script_dirent, script_next)\ argument
846 while (!readdir_r(lang_dir, &script_dirent, &script_next) && \
848 if (script_dirent.d_type != DT_DIR && \
849 (script_dirent.d_type != DT_UNKNOWN || \
850 !is_directory(lang_path, &script_dirent)))
974 static char *get_script_root(struct dirent *script_dirent, const char *suffix) in get_script_root() argument
978 script_root = strdup(script_dirent->d_name); in get_script_root()
996 struct dirent *script_next, *lang_next, script_dirent, lang_dirent; in list_available_scripts() local
1018 for_each_script(lang_path, lang_dir, script_dirent, script_next) { in list_available_scripts()
1019 script_root = get_script_root(&script_dirent, REPORT_SUFFIX); in list_available_scripts()
1023 lang_path, script_dirent.d_name); in list_available_scripts()
1112 struct dirent *script_next, *lang_next, script_dirent, lang_dirent; in find_scripts() local
1147 for_each_script(lang_path, lang_dir, script_dirent, script_next) { in find_scripts()
1149 if (strstr(script_dirent.d_name, "top.")) in find_scripts()
1152 script_dirent.d_name); in find_scripts()
1153 temp = strchr(script_dirent.d_name, '.'); in find_scripts()
1155 (temp - script_dirent.d_name) + 1, in find_scripts()
1156 "%s", script_dirent.d_name); in find_scripts()
1174 struct dirent *script_next, *lang_next, script_dirent, lang_dirent; in get_script_path() local
1194 for_each_script(lang_path, lang_dir, script_dirent, script_next) { in get_script_path()
1195 __script_root = get_script_root(&script_dirent, suffix); in get_script_path()
1201 lang_path, script_dirent.d_name); in get_script_path()