/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | gettimeofday.c | 75 char *zonename = getenv("TZ"); local 77 if ((zonename == NULL) || (*zonename == '\0')) 80 if ((strncmp(zonename, "US/", 3) == 0) || 81 (strcmp(zonename, "PST8PDT") == 0) || 82 (strcmp(zonename, "MST7MDT") == 0) || 83 (strcmp(zonename, "CST6CDT") == 0) || 84 (strcmp(zonename, "EST5EDT") == 0) || 85 (strncmp(zonename, "America/", 8) == 0)) 88 if (strncmp(zonename, "Australi [all...] |
/illumos-gate/usr/src/cmd/zonename/ |
H A D | zonename.c | 48 char zonename[ZONENAME_MAX]; local 82 if (getzonenamebyid(zoneid, zonename, sizeof (zonename)) < 0) { 89 * The use of dlopen here is a bit ugly, but it allows zonename to 94 zonecfg_is_scratch(zonename) && 96 (void) zonecfg_reverse_scratch(fp, zonename, zonename, 97 sizeof (zonename), NULL, 0); 100 (void) puts(zonename);
|
/illumos-gate/usr/src/lib/libinstzones/common/ |
H A D | zones_states.c | 108 char zonename[ZONENAME_MAX]; local 236 zonecfg_get_root(), zonename, 237 sizeof (zonename)) == -1) { 246 a_zlem->_zlScratchName = _z_strdup(zonename);
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipfzone.c | 29 * Get the zonename if it's the last argument and set the zonename 47 * actually a zonename. 66 * Get a -z option from argv and set the zonename in ipfzo accordingly 96 * Set the zonename in ipfzo to the given string: this is the zone all further 100 setzonename(const char *zonename) argument 102 memcpy(ipzo.ipfz_zonename, zonename, sizeof (ipzo.ipfz_zonename)); 108 * Set the zonename in ipfo, and the gz flag. This indicates that we want all 112 setzonename_global(const char *zonename) argument 114 setzonename(zonename); [all...] |
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | scratchops.c | 39 * <zonename> <kernel-zonename> <alt-root> 45 * if (zonecfg_find_scratch(fp, zonename, altroot, NULL, 0) == 0) { 49 * zonecfg_add_scratch(fp, zonename, kernname, altroot); 53 * zonecfg_add_scratch(fp, zonename, kernname, "/"); 148 zonecfg_get_scratch(FILE *fp, char *zonename, size_t namelen, char *kernname, argument 165 if (zonename != NULL && 166 strlcpy(zonename, line, namelen) >= namelen) 183 zonecfg_find_scratch(FILE *fp, const char *zonename, const char *altroot, argument 192 if (strcmp(zone, zonename) 199 zonecfg_reverse_scratch(FILE *fp, const char *kernzone, char *zonename, size_t namelen, char *altroot, size_t altlen) argument 214 zonecfg_add_scratch(FILE *fp, const char *zonename, const char *kernzone, const char *altroot) argument [all...] |
/illumos-gate/usr/src/cmd/rcap/rcapadm/ |
H A D | rcapadm.c | 63 " [-z <zonename> -m <max-rss>] " 152 update_zone_mcap(char *zonename, char *maxrss) argument 161 if ((zone_id = getzoneidbyname(zonename)) == -1) { 163 zonename); 174 "cap for zone '%s'\n"), zonename); 188 char *zonename; local 255 zonename = optarg; 310 return (update_zone_mcap(zonename, maxrss));
|
/illumos-gate/usr/src/cmd/allocate/ |
H A D | allocate.c | 68 use[0] = gettext("allocate [-s] [-w] [-U uname] [-z zonename] " 70 use[1] = gettext("deallocate [-s] [-w] [-z zonename] " 72 use[2] = gettext("deallocate [-s] [-w] [-z zonename] -I"); 73 use[3] = gettext("list_devices [-s] [-U uid] [-z zonename] " 75 use[4] = gettext("list_devices [-s] [-U uid] [-z zonename] " 260 char *uname = NULL, *device = NULL, *zonename = NULL; local 366 zonename = optarg; 429 zonename = optarg; 532 zonename = optarg; 596 * global zone is the default if no zonename specifie [all...] |
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | env.c | 50 static char zonename[ZONENAME_MAX]; variable 171 * Get the zonename once; it is used to set SMF_ZONENAME for methods. 173 (void) getzonenamebyid(getzoneid(), zonename, sizeof (zonename)); local 304 sz = sizeof ("SMF_ZONENAME=") + strlen(zonename); 307 (void) strlcat(*np, zonename, sz);
|
/illumos-gate/usr/src/cmd/tsol/tninfo/ |
H A D | tninfo.c | 321 print_mlp(const char *zonename) argument 325 if ((tsme.tsme_zoneid = getzoneidbyname(zonename)) == -1) { 327 zonename);
|
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | getpathbylabel.c | 236 char zonename[ZONENAME_MAX]; local 245 * First we need to get the zonename to look for 247 if (zone_getattr(zoneid, ZONE_ATTR_NAME, zonename, 253 (void) strlcat(zonematch, zonename, sizeof (zonematch)); 428 char zonename[ZONENAME_MAX]; local 442 * /zone/<zonename> 446 zonename, ZONENAME_MAX) == -1) { 450 "/zone/%s%s", zonename, path);
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | zone.c | 204 getzoneidbyname(const char *zonename) argument 206 return (zone_lookup(zonename));
|
/illumos-gate/usr/src/cmd/wall/ |
H A D | wall.c | 104 char *zonename = NULL; local 130 zonename = optarg; 131 if (getzoneidbyname(zonename) == -1) { 133 "is invalid", zonename); 237 (*zoneidlist = getzoneidbyname(zonename)) == -1) 295 char zonename[ZONENAME_MAX], root[MAXPATHLEN]; local 300 (void) getzonenamebyid(zid, zonename, ZONENAME_MAX); 301 (void) zone_get_rootpath(zonename, root, sizeof (root)); 368 char zonename[ZONENAME_MAX]; local 369 (void) getzonenamebyid(zid, zonename, ZONENAME_MA [all...] |
/illumos-gate/usr/src/lib/brand/solaris10/s10_support/ |
H A D | s10_support.c | 243 have_valid_ku(char *zonename) argument 259 if (zone_get_zonepath(zonename, zonepath, sizeof (zonepath)) != Z_OK) 335 set_zone_emul_bitmap(char *zonename) argument 351 if (zone_get_rootpath(zonename, zoneroot, sizeof (zoneroot)) != Z_OK) 477 if ((zoneid = getzoneidbyname(zonename)) < 0) 484 s10_boot(char *zonename) argument 486 if (!have_valid_ku(zonename)) 490 set_zone_emul_bitmap(zonename);
|
/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | auditrd.h | 50 char *zonename; /* 'z' zonename */ variable
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | util.c | 258 char zonename[ZONENAME_MAX]; local 277 (void) getzonenamebyid(zoneid, zonename, ZONENAME_MAX); 280 linkname, zonename);
|
/illumos-gate/usr/src/cmd/ipdadm/ |
H A D | ipdadm.c | 73 (void) fprintf(fp, "Usage: %s [-z zonename] subcommand " 87 char zonename[ZONENAME_MAX]; local 90 if (getzonenamebyid(z, zonename, sizeof (zonename)) < 0) 93 (void) printf("%s", zonename); 445 (void) fprintf(stderr, "%s: failed to get zonename: %s\n",
|
/illumos-gate/usr/src/cmd/tsol/tnctl/ |
H A D | tnctl.c | 572 char zonename[ZONENAME_MAX]; local 585 (void) strlcpy(zonename, str, sizeof (zonename)); 590 (void) memcpy(zonename, str, cp - str); 591 zonename[cp - str] = '\0'; 595 if ((zoneid = getzoneidbyname(zonename)) == -1) { 597 zonename); 601 sbuf = malloc(strlen(zonename) + sizeof (":ADMIN_LOW:0:") + 608 (void) sprintf(sbuf, "%s:ADMIN_LOW:0:%s", zonename, str);
|
/illumos-gate/usr/src/cmd/logadm/ |
H A D | kw.c | 85 static char zonename[ZONENAME_MAX]; local 159 if ((getzonenamebyid(zoneid, zonename, sizeof (zonename))) == -1) 162 Keywords = lut_add(Keywords, "zonename", STRDUP(zonename));
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | misc_link.c | 661 char *zonename; local 666 if (di_prop_lookup_strings(DDI_DEV_T_ANY, node, "zonename", 667 &zonename) == -1) { 671 (void) snprintf(path, sizeof (path), "zcons/%s/%s", zonename,
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | cpucaps.c | 219 { "zonename", KSTAT_DATA_STRING }, 1129 char *zonename = cap->cap_zone->zone_name; local 1143 kstat_named_setstr(&capsp->cap_zonename, zonename);
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | auto_subr.c | 77 * The maps are made unique by appending the zonename. 78 * The home directory is made unique by prepending /zone/<zonename> 82 * For each auto_home_<zonename> a default template map is created 123 char zonename[ZONENAME_MAX]; local 126 if (getzonenamebyid(zids[i], zonename, ZONENAME_MAX) != -1) { 133 "%s_%s", map, zonename); 139 "/zone/%s%s", zonename, mntpnt);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | task.c | 1053 char *zonename = zone->zone_name; local 1063 ksp->ks_data_size += strlen(zonename) + 1; 1064 kstat_named_init(&ktk->ktk_zonename, "zonename", KSTAT_DATA_STRING); 1065 kstat_named_setstr(&ktk->ktk_zonename, zonename);
|
/illumos-gate/usr/src/cmd/ptools/pfiles/ |
H A D | pfiles.c | 574 char zonename[ZONENAME_MAX]; local 582 if (getzonenamebyid(uzid, zonename, sizeof (zonename)) 584 (void) printf(" zone: %s[%d]", zonename,
|
/illumos-gate/usr/src/cmd/fm/modules/common/ext-event-transport/ |
H A D | fmevt_inbound.c | 91 static char zonename[ZONENAME_MAX]; variable 279 err += nvlist_add_string(ctxt, FM_FMRI_SW_CTXT_ZONE, zonename); 576 if (getzonenamebyid(zoneid, zonename, sizeof (zonename)) == -1)
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_profile.c | 242 * is the virtual console device /dev/zcons/[zonename]/zconsole 243 * mapped to /[zonename]/root/dev/zconsole. 542 char zonename[ZONENAME_MAX]; local 570 DDI_PROP_NOTPROM | DDI_PROP_DONTPASS, (caddr_t)zonename, &znlen); 583 sdcmn_err10(("vnode %p zone prop: %s\n", (void *)vn, zonename)); 584 return (strcmp(zonename, curproc->p_zone->zone_name) == 0);
|