Home
last modified time | relevance | path

Searched refs:dirnamelen (Results 1 – 3 of 3) sorted by relevance

/external/wpa_supplicant_8/src/common/
Dwpa_ctrl.c274 size_t dirnamelen; in wpa_ctrl_cleanup() local
282 dirnamelen = (size_t) os_snprintf(pathname, sizeof(pathname), "%s/", in wpa_ctrl_cleanup()
284 if (dirnamelen >= sizeof(pathname)) { in wpa_ctrl_cleanup()
288 namep = pathname + dirnamelen; in wpa_ctrl_cleanup()
289 maxcopy = PATH_MAX - dirnamelen; in wpa_ctrl_cleanup()
/external/kmod/libkmod/
Dlibkmod-module.c145 size_t dirnamelen; in kmod_module_parse_depline() local
158 dirnamelen = strlen(dirname); in kmod_module_parse_depline()
159 if (dirnamelen + 2 >= PATH_MAX) in kmod_module_parse_depline()
162 memcpy(buf, dirname, dirnamelen); in kmod_module_parse_depline()
163 buf[dirnamelen] = '/'; in kmod_module_parse_depline()
164 dirnamelen++; in kmod_module_parse_depline()
165 buf[dirnamelen] = '\0'; in kmod_module_parse_depline()
168 const char *str = path_join(line, dirnamelen, buf); in kmod_module_parse_depline()
182 path = path_join(p, dirnamelen, buf); in kmod_module_parse_depline()
/external/kmod/tools/
Ddepmod.c463 size_t dirnamelen; member
1018 if (strncmp(mod->path, cfg->dirname, cfg->dirnamelen) == 0 && in depmod_module_add()
1019 mod->path[cfg->dirnamelen] == '/') in depmod_module_add()
1020 mod->relpath = mod->path + cfg->dirnamelen + 1; in depmod_module_add()
1120 if (strncmp(newpath, cfg->dirname, cfg->dirnamelen) == 0) { in depmod_module_is_higher_priority()
1121 relnewpath = newpath + cfg->dirnamelen + 1; in depmod_module_is_higher_priority()
1122 relnewlen = newlen - (cfg->dirnamelen + 1); in depmod_module_is_higher_priority()
1124 if (strncmp(oldpath, cfg->dirname, cfg->dirnamelen) == 0) { in depmod_module_is_higher_priority()
1125 reloldpath = oldpath + cfg->dirnamelen + 1; in depmod_module_is_higher_priority()
1126 reloldlen = oldlen - (cfg->dirnamelen + 1); in depmod_module_is_higher_priority()
[all …]