Searched refs:dirnamelen (Results 1 – 3 of 3) sorted by relevance
/external/wpa_supplicant_8/src/common/ |
D | wpa_ctrl.c | 275 size_t dirnamelen; in wpa_ctrl_cleanup() local 283 dirnamelen = (size_t) os_snprintf(pathname, sizeof(pathname), "%s/", in wpa_ctrl_cleanup() 285 if (dirnamelen >= sizeof(pathname)) { in wpa_ctrl_cleanup() 289 namep = pathname + dirnamelen; in wpa_ctrl_cleanup() 290 maxcopy = PATH_MAX - dirnamelen; in wpa_ctrl_cleanup()
|
/external/kmod/tools/ |
D | depmod.c | 449 size_t dirnamelen; member 946 if (strncmp(mod->path, cfg->dirname, cfg->dirnamelen) == 0 && in depmod_module_add() 947 mod->path[cfg->dirnamelen] == '/') in depmod_module_add() 948 mod->relpath = mod->path + cfg->dirnamelen + 1; in depmod_module_add() 1013 assert(strncmp(newpath, cfg->dirname, cfg->dirnamelen) == 0); in depmod_module_is_higher_priority() 1014 assert(strncmp(oldpath, cfg->dirname, cfg->dirnamelen) == 0); in depmod_module_is_higher_priority() 1016 newpath += cfg->dirnamelen + 1; in depmod_module_is_higher_priority() 1017 newlen -= cfg->dirnamelen + 1; in depmod_module_is_higher_priority() 1018 oldpath += cfg->dirnamelen + 1; in depmod_module_is_higher_priority() 1019 oldlen -= cfg->dirnamelen + 1; in depmod_module_is_higher_priority() [all …]
|
/external/kmod/libkmod/ |
D | libkmod-module.c | 145 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()
|