Lines Matching defs:ext
237 static int is_supported_compression(const char *ext)
242 if (!strcmp(ext, compressions[i].fmt))
354 * @ext - if (@alloc_ext && @comp) is true, it contains strdup-ed string
363 const char *ext = strrchr(path, '.');
392 if ((ext == NULL) || is_simple_name) {
400 m->comp = is_supported_compression(ext + 1);
402 ext -= 3;
405 if (ext > name)
406 m->kmod = !strncmp(ext, ".ko", 3);
410 if (asprintf(&m->name, "[%.*s]", (int) (ext - name), name) == -1)