Lines Matching refs:tmpBuf
387 char *ret = NULL, tmpBuf[PATH_MAX];
397 snprintf(tmpBuf, PATH_MAX, "%s%s/", dirpath, direntry->d_name);
401 if ((stat(tmpBuf, &stat_buf) == 0) && S_ISDIR(stat_buf.st_mode)) {
402 if ((ret = FindModuleInSubdir(tmpBuf, module)))
407 snprintf(tmpBuf, PATH_MAX, "lib%s.so", module);
408 if (strcmp(direntry->d_name, tmpBuf) == 0) {
409 if (asprintf(&ret, "%s%s", dirpath, tmpBuf) == -1)
414 snprintf(tmpBuf, PATH_MAX, "%s_drv.so", module);
415 if (strcmp(direntry->d_name, tmpBuf) == 0) {
416 if (asprintf(&ret, "%s%s", dirpath, tmpBuf) == -1)
421 snprintf(tmpBuf, PATH_MAX, "%s.so", module);
422 if (strcmp(direntry->d_name, tmpBuf) == 0) {
423 if (asprintf(&ret, "%s%s", dirpath, tmpBuf) == -1)