Lines Matching defs:ze
93 struct zoneent *ze;
96 if ((ze = getzoneent_private(cookie)) == NULL)
98 name = strdup(ze->zone_name);
99 free(ze);
107 struct zoneent *ze;
112 if ((ze = malloc(sizeof (struct zoneent))) == NULL)
117 free(ze);
137 (void) strlcpy(ze->zone_name, p, ZONENAME_MAX);
146 ze->zone_state = ZONE_STATE_CONFIGURED;
148 ze->zone_state = ZONE_STATE_INCOMPLETE;
150 ze->zone_state = ZONE_STATE_INSTALLED;
160 (void) strlcpy(ze->zone_path, p, MAXPATHLEN);
163 if (uuid_parse(p, ze->zone_uuid) == -1)
164 uuid_clear(ze->zone_uuid);
169 return (ze);
252 * If ze->zone_state is < 0, it means leave the
256 * A zero-length ze->zone_path means leave the existing value
260 * A zero-length ze->zone_newname means leave the existing name
269 putzoneent(struct zoneent *ze, zoneent_op_t operation)
281 assert(ze != NULL);
288 (strcmp(ze->zone_name, GLOBAL_ZONENAME) == 0)) {
293 (ze->zone_state < 0 || strlen(ze->zone_path) == 0))
296 if (operation != PZE_MODIFY && strlen(ze->zone_newname) != 0)
336 zone_name = ze->zone_name;
341 zone_state = zone_state_str(ze->zone_state);
342 zone_path = ze->zone_path;
404 if (ze->zone_state >= 0) {
405 zone_state = zone_state_str(ze->zone_state);
412 if (ze->zone_state < ZONE_STATE_INSTALLED)
417 if (ze->zone_newname[0] != '\0')
418 zone_name = ze->zone_newname;
420 if (ze->zone_path[0] != '\0')
421 zone_path = ze->zone_path;
438 if (uuid_is_null(ze->zone_uuid))
439 uuid_generate(ze->zone_uuid);
440 uuid_unparse(ze->zone_uuid, uuidstr);