Lines Matching defs:pkg
3479 * Add the pkg to the sw inventory on the handle.
7001 * Get the full tree of pkg/patch metadata in a set of nested AVL trees.
7002 * pkgs_avl is an AVL tree of pkgs. Each pkg element contains a
7003 * zpe_patches_avl member which holds an AVL tree of patches for that pkg.
7021 zone_pkg_entry_t *pkg;
7048 if ((pkg = (zone_pkg_entry_t *)
7054 if ((pkg->zpe_name = strdup(name)) == NULL) {
7055 free(pkg);
7060 if ((pkg->zpe_vers = strdup(version)) == NULL) {
7061 free(pkg->zpe_name);
7062 free(pkg);
7067 pkg->zpe_patches_avl = NULL;
7069 uu_avl_node_init(pkg, &pkg->zpe_entry, pkg_pool);
7070 if (uu_avl_find(pkgs_avl, pkg, NULL, &where) != NULL) {
7071 free(pkg->zpe_name);
7072 free(pkg->zpe_vers);
7073 free(pkg);
7075 uu_avl_insert(pkgs_avl, pkg, where);
7120 if (pkg->zpe_patches_avl == NULL) {
7121 pkg->zpe_patches_avl = uu_avl_create(pkg_pool,
7123 if (pkg->zpe_patches_avl == NULL) {
7133 if (uu_avl_find(pkg->zpe_patches_avl, patch, NULL,
7139 uu_avl_insert(pkg->zpe_patches_avl, patch,