Home
last modified time | relevance | path

Searched refs:zonename (Results 1 – 25 of 93) sorted by relevance

1234

/titanic_44/usr/src/lib/libbc/libc/sys/common/
H A Dgettimeofday.c75 char *zonename = getenv("TZ"); in get_tzp_info() local
77 if ((zonename == NULL) || (*zonename == '\0')) in get_tzp_info()
80 if ((strncmp(zonename, "US/", 3) == 0) || in get_tzp_info()
81 (strcmp(zonename, "PST8PDT") == 0) || in get_tzp_info()
82 (strcmp(zonename, "MST7MDT") == 0) || in get_tzp_info()
83 (strcmp(zonename, "CST6CDT") == 0) || in get_tzp_info()
84 (strcmp(zonename, "EST5EDT") == 0) || in get_tzp_info()
85 (strncmp(zonename, "America/", 8) == 0)) in get_tzp_info()
88 if (strncmp(zonename, "Australia/", 10) == 0) in get_tzp_info()
91 if (strcmp(zonename, "WET") == 0) in get_tzp_info()
[all …]
/titanic_44/usr/src/cmd/tsol/demo/
H A Dclonebylabel.sh51 echo "set zonepath=/zone/$zonename" >> $config
53 /usr/sbin/zonecfg -z $zonename -f $config
63 echo Cloning $zonename from $image ...
64 found=`zoneadm -z $zonename list -p 2>/dev/null`
68 echo "$zonename is being configured."
71 /usr/sbin/zfs clone $image zone/$zonename
72 /usr/sbin/zoneadm -z $zonename attach -F
80 zonename=`/bin/grep $label: $ZONECFG | cut -d ":" -f1`
81 if [ $zonename ]; then
82 state=`zoneadm -z $zonename list -p 2>/dev/null | cut -d ":" -f3`
[all …]
H A Druninzone.ksh32 zonename=$1
37 zoneadm -z ${zonename} boot
40 zlogin ${zonename} /usr/demo/tsol/waitforzone.ksh ${user} ${program} ${DISPLAY}
/titanic_44/usr/src/cmd/tsol/misc/
H A Dtxzonemgr.sh138 if [ $zonename != global ] ; then
139 zconsole=$(pgrep -f "zlogin -C $zonename")
147 hexlabel=$(grep "^$zonename:" $TNZONECFG|cut -d : -f2);
150 if [ $zonename = global ] ; then
156 template=${zonename}_unlab
161 net=$(zonecfg -z $zonename info net)
191 if [ $z = $zonename ] ; then
204 macstate=$(zonecfg -z $zonename info|grep win_mac_write)
213 bootmode=$(zonecfg -z $zonename info autoboot)
222 if [[ ! -n $zonename ]] ; then
[all …]
/titanic_44/usr/src/lib/libbrand/common/
H A Dlibbrand.c322 const char *zonename, const char *zonepath, const char *username, in i_substitute_tokens() argument
360 if (zonename == NULL) in i_substitute_tokens()
362 dst += strlcpy(dbuf + dst, zonename, dbuf_size - dst); in i_substitute_tokens()
387 brand_get_value(struct brand_handle *bhp, const char *zonename, in brand_get_value() argument
438 zonename, zonepath, username, curr_zone) != 0) in brand_get_value()
452 brand_get_attach(brand_handle_t bh, const char *zonename, in brand_get_attach() argument
456 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL, in brand_get_attach()
461 brand_get_boot(brand_handle_t bh, const char *zonename, in brand_get_boot() argument
465 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL, in brand_get_boot()
482 brand_get_clone(brand_handle_t bh, const char *zonename, in brand_get_clone() argument
[all …]
/titanic_44/usr/src/cmd/zonename/
H A Dzonename.c48 char zonename[ZONENAME_MAX]; in main() local
82 if (getzonenamebyid(zoneid, zonename, sizeof (zonename)) < 0) { in main()
94 zonecfg_is_scratch(zonename) && in main()
96 (void) zonecfg_reverse_scratch(fp, zonename, zonename, in main()
97 sizeof (zonename), NULL, 0); in main()
100 (void) puts(zonename); in main()
/titanic_44/usr/src/cmd/allocate/
H A Dallocate3.c303 _list_device(int optflag, uid_t uid, devalloc_t *da, char *zonename) in _list_device() argument
386 if (_check_label(da, zonename, uid, in _list_device()
409 if (_check_label(da, zonename, uid, in _list_device()
438 if (_check_label(da, zonename, uid, in _list_device()
459 if (_check_label(da, zonename, uid, in _list_device()
488 list_devices(int optflag, uid_t uid, char *device, char *zonename) in list_devices() argument
562 zonename); in list_devices()
574 error = _list_device(optflag, uid, da, zonename); in list_devices()
582 (void) _list_device(optflag, uid, da, zonename); in list_devices()
891 exec_clean(int optflag, char *devname, char *path, uid_t uid, char *zonename, in exec_clean() argument
[all …]
H A Dallocate.c260 char *uname = NULL, *device = NULL, *zonename = NULL; in main() local
366 zonename = optarg; in main()
429 zonename = optarg; in main()
532 zonename = optarg; in main()
598 if (zonename == NULL) { in main()
599 zonename = zname; in main()
601 if (zone_get_id(zonename, &zoneid) != 0) { in main()
603 gettext("Invalid zone name -- %s -- \n"), zonename); in main()
609 error = allocate(optflg, uid, device, zonename); in main()
611 error = deallocate(optflg, uid, device, zonename); in main()
[all …]
H A Dallocate.h93 extern int allocate(int optflg, uid_t uid, char *device, char *zonename);
94 extern int deallocate(int optflg, uid_t uid, char *device, char *zonename);
95 extern int list_devices(int optflg, uid_t uid, char *device, char *zonename);
/titanic_44/usr/src/lib/libzonecfg/common/
H A Dscratchops.c148 zonecfg_get_scratch(FILE *fp, char *zonename, size_t namelen, char *kernname, in zonecfg_get_scratch() argument
165 if (zonename != NULL && in zonecfg_get_scratch()
166 strlcpy(zonename, line, namelen) >= namelen) in zonecfg_get_scratch()
183 zonecfg_find_scratch(FILE *fp, const char *zonename, const char *altroot, in zonecfg_find_scratch() argument
192 if (strcmp(zone, zonename) == 0 && strcmp(altroot, aroot) == 0) in zonecfg_find_scratch()
199 zonecfg_reverse_scratch(FILE *fp, const char *kernzone, char *zonename, in zonecfg_reverse_scratch() argument
205 while (zonecfg_get_scratch(fp, zonename, namelen, kzone, in zonecfg_reverse_scratch()
214 zonecfg_add_scratch(FILE *fp, const char *zonename, const char *kernzone, in zonecfg_add_scratch() argument
219 if (fprintf(fp, "%s %s %s\n", zonename, kernzone, altroot) == EOF) in zonecfg_add_scratch()
H A Dlibzonecfg.c208 int (*zn_callback)(const char *zonename, zoneid_t zid,
271 config_file_path(const char *zonename, char *answer) in config_file_path() argument
274 ZONE_CONFIG_ROOT, zonename) < MAXPATHLEN); in config_file_path()
278 snap_file_path(const char *zonename, char *answer) in snap_file_path() argument
281 zonecfg_root, ZONE_SNAPSHOT_ROOT, zonename) < MAXPATHLEN); in snap_file_path()
345 zonecfg_destroy(const char *zonename, boolean_t force) in zonecfg_destroy() argument
352 if (!config_file_path(zonename, path)) in zonecfg_destroy()
355 state_err = zone_get_state((char *)zonename, &state); in zonecfg_destroy()
388 (void) strlcpy(ze.zone_name, zonename, sizeof (ze.zone_name)); in zonecfg_destroy()
405 zonecfg_destroy_snapshot(const char *zonename) in zonecfg_destroy_snapshot() argument
[all …]
/titanic_44/usr/src/cmd/wall/
H A Dwall.c104 char *zonename = NULL; in main() local
130 zonename = optarg; in main()
131 if (getzoneidbyname(zonename) == -1) { in main()
133 "is invalid", zonename); in main()
237 (*zoneidlist = getzoneidbyname(zonename)) == -1) in main()
295 char zonename[ZONENAME_MAX], root[MAXPATHLEN]; in sendmes_tozone() local
300 (void) getzonenamebyid(zid, zonename, ZONENAME_MAX); in sendmes_tozone()
301 (void) zone_get_rootpath(zonename, root, sizeof (root)); in sendmes_tozone()
368 char zonename[ZONENAME_MAX]; in sendmes() local
369 (void) getzonenamebyid(zid, zonename, ZONENAME_MAX); in sendmes()
[all …]
/titanic_44/usr/src/cmd/zlogin/
H A Dzlogin.c1532 noninteractive_login(char *zonename, const char *user_cmd, zoneid_t zoneid, in noninteractive_login() argument
1635 zonename, strerror(errno)); in noninteractive_login()
1735 char *zonename = NULL; in main() local
1852 zonename = argv[optind]; in main()
1860 zonename = argv[optind]; in main()
1873 if (strcmp(zonename, GLOBAL_ZONENAME) == 0) { in main()
1879 if (zone_get_state(zonename, &st) != Z_OK) { in main()
1880 zerror(gettext("zone '%s' unknown"), zonename); in main()
1921 ZONE_MANAGE_AUTH, KV_OBJECT, zonename); in main()
1926 username, zonename); in main()
[all …]
/titanic_44/usr/src/cmd/rcap/rcapadm/
H A Drcapadm.c152 update_zone_mcap(char *zonename, char *maxrss) in update_zone_mcap() argument
161 if ((zone_id = getzoneidbyname(zonename)) == -1) { in update_zone_mcap()
163 zonename); in update_zone_mcap()
174 "cap for zone '%s'\n"), zonename); in update_zone_mcap()
188 char *zonename; in main() local
255 zonename = optarg; in main()
310 return (update_zone_mcap(zonename, maxrss)); in main()
/titanic_44/usr/src/cmd/ipf/tools/
H A Dipfzone.c100 setzonename(const char *zonename) in setzonename() argument
102 memcpy(ipzo.ipfz_zonename, zonename, sizeof (ipzo.ipfz_zonename)); in setzonename()
112 setzonename_global(const char *zonename) in setzonename_global() argument
114 setzonename(zonename); in setzonename_global()
/titanic_44/usr/src/lib/brand/solaris10/s10_support/
H A Ds10_support.c243 have_valid_ku(char *zonename) in have_valid_ku() argument
259 if (zone_get_zonepath(zonename, zonepath, sizeof (zonepath)) != Z_OK) in have_valid_ku()
335 set_zone_emul_bitmap(char *zonename) in set_zone_emul_bitmap() argument
351 if (zone_get_rootpath(zonename, zoneroot, sizeof (zoneroot)) != Z_OK) in set_zone_emul_bitmap()
477 if ((zoneid = getzoneidbyname(zonename)) < 0) in set_zone_emul_bitmap()
484 s10_boot(char *zonename) in s10_boot() argument
486 if (!have_valid_ku(zonename)) in s10_boot()
490 set_zone_emul_bitmap(zonename); in s10_boot()
/titanic_44/usr/src/cmd/zonestat/zonestat/
H A Dzonestat.c1336 char zonename[ZS_ZONENAME_MAX]; in zonestat_print_summary() local
1387 (void) snprintf(zonename, sizeof (zonename), "[%s]", in zonestat_print_summary()
1389 zonestat_print_summary_zone(namewidth, report_fmt, zonename, in zonestat_print_summary()
1402 (void) snprintf(zonename, sizeof (zonename), "[%s]", in zonestat_print_summary()
1404 zonestat_print_summary_zone(namewidth, report_fmt, zonename, in zonestat_print_summary()
1413 (void) strlcpy(zonename, zs_property_string(prop), in zonestat_print_summary()
1414 sizeof (zonename)); in zonestat_print_summary()
1429 zonestat_print_summary_zone(namewidth, report_fmt, zonename, in zonestat_print_summary()
1444 char zonename[ZS_ZONENAME_MAX]; in zonestat_print_res() local
1496 (void) snprintf(zonename, sizeof (zonename), "[%s]", in zonestat_print_res()
[all …]
/titanic_44/usr/src/cmd/logadm/
H A Dtester596 $zonename = `/bin/zonename`; chomp $zonename;
598 $zonename = "global";
632 zonename $zonename
668 $zonename = `/bin/zonename`; chomp $zonename;
670 $zonename = "global";
703 zonename $zonename
/titanic_44/usr/src/cmd/tsol/tnctl/
H A Dtnctl.c572 char zonename[ZONENAME_MAX]; in process_mlp() local
585 (void) strlcpy(zonename, str, sizeof (zonename)); in process_mlp()
590 (void) memcpy(zonename, str, cp - str); in process_mlp()
591 zonename[cp - str] = '\0'; in process_mlp()
595 if ((zoneid = getzoneidbyname(zonename)) == -1) { in process_mlp()
597 zonename); in process_mlp()
601 sbuf = malloc(strlen(zonename) + sizeof (":ADMIN_LOW:0:") + in process_mlp()
608 (void) sprintf(sbuf, "%s:ADMIN_LOW:0:%s", zonename, str); in process_mlp()
/titanic_44/usr/src/cmd/dtrace/test/tst/common/safety/
H A Dtst.zonename.d37 @a[zonename] = count();
42 @a[zonename] = count();
/titanic_44/usr/src/cmd/svc/startd/
H A Denv.c50 static char zonename[ZONENAME_MAX]; variable
173 (void) getzonenamebyid(getzoneid(), zonename, sizeof (zonename)); in init_env()
304 sz = sizeof ("SMF_ZONENAME=") + strlen(zonename); in set_smf_env()
307 (void) strlcat(*np, zonename, sz); in set_smf_env()
/titanic_44/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dnet-ipmgmt46 if [ `/sbin/zonename` != global ]; then
47 if [ `/sbin/zonename -t` = shared ]; then
/titanic_44/usr/src/lib/libtsol/common/
H A Dgetpathbylabel.c236 char zonename[ZONENAME_MAX]; in getnfspathbyautofs() local
247 if (zone_getattr(zoneid, ZONE_ATTR_NAME, zonename, in getnfspathbyautofs()
253 (void) strlcat(zonematch, zonename, sizeof (zonematch)); in getnfspathbyautofs()
428 char zonename[ZONENAME_MAX]; in getglobalpath() local
446 zonename, ZONENAME_MAX) == -1) { in getglobalpath()
450 "/zone/%s%s", zonename, path); in getglobalpath()
/titanic_44/usr/src/lib/libc/port/gen/
H A Dlocaltime.c271 const char *zonename; /* Timezone */ member
531 find_zone(const char *zonename) in find_zone() argument
536 hashid = get_hashid(zonename); in find_zone()
540 res = strcmp(cur->zonename, zonename); in find_zone()
560 hashid = get_hashid(new->zonename); in reg_zone()
564 res = strcmp(cur->zonename, new->zonename); in reg_zone()
884 const char *zonename; in ltzset_u() local
893 if ((zonename = getsystemTZ()) == NULL || *zonename == '\0') in ltzset_u()
894 zonename = _posix_gmt0; in ltzset_u()
896 if (namecache != NULL && strcmp(namecache, zonename) == 0) { in ltzset_u()
[all …]
/titanic_44/usr/src/cmd/tsol/zones/
H A Dzoneunshare.sh42 -z) zonename=$2; shift 2;;
47 zoneattr=`/usr/sbin/zoneadm -z $zonename list -p 2> /dev/null`

1234