Lines Matching defs:ext
273 static int is_supported_compression(const char *ext)
278 if (!strcmp(ext, compressions[i].fmt))
397 * @ext - if (@alloc_ext && @comp) is true, it contains strdup-ed string
406 const char *ext = strrchr(path, '.');
435 if ((ext == NULL) || is_simple_name) {
443 m->comp = is_supported_compression(ext + 1);
445 ext -= 3;
448 if (ext > name)
449 m->kmod = !strncmp(ext, ".ko", 3);
453 if (asprintf(&m->name, "[%.*s]", (int) (ext - name), name) == -1)