Lines Matching refs:script_dirent
2833 #define for_each_script(lang_path, lang_dir, script_dirent) \ argument
2834 while ((script_dirent = readdir(lang_dir)) != NULL) \
2835 if (script_dirent->d_type != DT_DIR && \
2836 (script_dirent->d_type != DT_UNKNOWN || \
2837 !is_directory(lang_path, script_dirent)))
2956 static char *get_script_root(struct dirent *script_dirent, const char *suffix) in get_script_root() argument
2960 script_root = strdup(script_dirent->d_name); in get_script_root()
2978 struct dirent *script_dirent, *lang_dirent; in list_available_scripts() local
3005 for_each_script(lang_path, lang_dir, script_dirent) { in list_available_scripts()
3006 script_root = get_script_root(script_dirent, REPORT_SUFFIX); in list_available_scripts()
3010 lang_path, script_dirent->d_name); in list_available_scripts()
3099 struct dirent *script_dirent, *lang_dirent; in find_scripts() local
3138 for_each_script(lang_path, lang_dir, script_dirent) { in find_scripts()
3140 if (strstr(script_dirent->d_name, "top.")) in find_scripts()
3146 script_dirent->d_name); in find_scripts()
3147 temp = strchr(script_dirent->d_name, '.'); in find_scripts()
3149 (temp - script_dirent->d_name) + 1, in find_scripts()
3150 "%s", script_dirent->d_name); in find_scripts()
3168 struct dirent *script_dirent, *lang_dirent; in get_script_path() local
3188 for_each_script(lang_path, lang_dir, script_dirent) { in get_script_path()
3189 __script_root = get_script_root(script_dirent, suffix); in get_script_path()
3194 lang_path, script_dirent->d_name); in get_script_path()