Lines Matching defs:pkg
127 check_exact_pkg(const char *pkg)
129 return audit_package(pv, pkg, limit_vul_types,
168 check_one_installed_pkg(const char *pkg, void *cookie)
172 *ret |= check_exact_pkg(pkg);
199 "pkg-vulnerabilities not found, run %s -d",
201 errx(EXIT_FAILURE, "pkg-vulnerabilities not readable");
206 warnx("pkg-vulnerabilities is from the future");
208 warnx("pkg-vulnerabilities is out of date (%ld days old)",
211 warnx("pkg-vulnerabilities is %ld day%s old",
348 errx(EXIT_FAILURE, "pkg-vulnerabilities is too large");
359 "Truncated pkg-vulnerabilities received");
362 "IO error while fetching pkg-vulnerabilities: %s",
374 err(EXIT_FAILURE, "Cannot create pkg-vulnerability file %s",
378 err(EXIT_FAILURE, "Cannot write pkg-vulnerability file");
380 err(EXIT_FAILURE, "Cannot close pkg-vulnerability file after write");
388 check_pkg_history_pattern(const char *pkg, const char *pattern)
420 if (strncmp(pkg, pattern, end_base - pattern) != 0)
422 if (pkg[end_base - pattern] != '\0')
429 check_pkg_history1(const char *pkg, const char *pattern)
440 return check_pkg_history_pattern(pkg, pattern);
471 if (check_pkg_history1(pkg, expanded_pkg)) {
483 check_pkg_history(const char *pkg)
488 if (!quick_pkg_match(pv->vulnerability[i], pkg))
492 if (check_pkg_history1(pkg, pv->vulnerability[i]) == 0)