Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/common/module.c
Show First 20 Lines • Show All 977 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Extract directories from the ';' separated list, remove duplicates. | * Extract directories from the ';' separated list, remove duplicates. | ||||
*/ | */ | ||||
static void | static void | ||||
moduledir_rebuild(void) | moduledir_rebuild(void) | ||||
{ | { | ||||
struct moduledir *mdp, *mtmp; | struct moduledir *mdp, *mtmp; | ||||
const char *path, *cp, *ep; | const char *path, *cp, *ep; | ||||
int cplen; | size_t cplen; | ||||
path = getenv("module_path"); | path = getenv("module_path"); | ||||
if (path == NULL) | if (path == NULL) | ||||
path = default_searchpath; | path = default_searchpath; | ||||
/* | /* | ||||
* Rebuild list of module directories if it changed | * Rebuild list of module directories if it changed | ||||
*/ | */ | ||||
STAILQ_FOREACH(mdp, &moduledir_list, d_link) | STAILQ_FOREACH(mdp, &moduledir_list, d_link) | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |