Lines Matching refs:dir_name
804 static char dir_name[N_MODULE_DIR + N_SCRIPT_DIR][MAXPATHLEN];
811 if (dir_name[0][0] == '\0') {
819 if (snprintf(dir_name[0], MAXPATHLEN, MODULE_DIR_HW,
821 snprintf(dir_name[N_MODULE_DIR + 1], MAXPATHLEN,
834 if (snprintf(dir_name[1], MAXPATHLEN, MODULE_DIR_HW,
836 snprintf(dir_name[N_MODULE_DIR + 2], MAXPATHLEN,
845 if (strlcpy(dir_name[2], MODULE_DIR_GEN, MAXPATHLEN) >=
847 strlcpy(dir_name[N_MODULE_DIR + 3], SCRIPT_DIR_GEN,
849 strlcpy(dir_name[N_MODULE_DIR + 0], SCRIPT_DIR_ETC,
860 return (dir_name[dirnum]);
872 char *dir_name;
876 for (i = 0; (dir_name = rcm_script_dir(i)) != NULL; i++) {
877 if (snprintf(path, MAXPATHLEN, "%s%s", dir_name, script_name)
884 return (dir_name);
911 char *dir_name;
922 for (i = 0; (dir_name = rcm_module_dir(i)) != NULL; i++) {
923 if (snprintf(modpath, MAXPATHLEN, "%s%s", dir_name, modname)