/illumos-gate/usr/src/cmd/tzreload/ |
H A D | tzreload.c | 50 static void doit(const char *zname, const char *zroot, int get); 51 static void counter_get(const char *zname, int fd); 54 static void send_cron_msg(const char *zname, const char *zroot); 190 doit(const char *zname, const char *zroot, int get) in doit() argument 209 counter_get(zname, fd); in doit() 213 send_cron_msg(zname, zroot); in doit() 223 counter_get(const char *zname, int fd) in counter_get() argument 239 if (zname == NULL) in counter_get() 242 (void) printf("%-20s %u\n", zname, counter); in counter_get() 287 char zname[ZONENAME_MAX]; in walk_zones() local [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | tx.c | 62 char *zname = NULL; in get_labeled_zonename() local 84 zname = Malloc(ZONENAME_MAX + 1); in get_labeled_zonename() 85 if ((zonename_size = getzonenamebyid(zid, zname, ZONENAME_MAX + 1)) in get_labeled_zonename() 92 Free(zname); in get_labeled_zonename() 96 if (strcmp(zname, GLOBAL_ZONENAME) == 0) { in get_labeled_zonename() 97 Free(zname); in get_labeled_zonename() 98 zname = NULL; in get_labeled_zonename() 101 return (zname); in get_labeled_zonename()
|
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_findzonecut.c | 151 char *zname, size_t zsize, struct in_addr *addrs, int naddrs) in res_findzonecut() argument 164 result = res_findzonecut2(statp, dname, class, opts, zname, zsize, in res_findzonecut() 176 char *zname, size_t zsize, union res_sockaddr_union *addrs, in res_findzonecut2() argument 193 if ((n = get_soa(statp, dname, class, opts, zname, zsize, in res_findzonecut2() 200 if ((n = get_ns(statp, zname, class, opts, &nsrrs)) < 0 || in res_findzonecut2() 266 char *zname, size_t zsize, char *mname, size_t msize, in get_soa() argument 365 strcpy(zname, t); in get_soa() 374 zname, class, opts, nsrrsp) < 0) { in get_soa() 405 get_ns(res_state statp, const char *zname, ns_class class, int opts, in get_ns() argument 417 n = do_query(statp, zname, class, ns_t_ns, resp, &msg); in get_ns() [all …]
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pzone.c | 241 char zname[ZONENAME_MAX], zpath[PATH_MAX], tmp[PATH_MAX]; in Pzoneroot() local 249 if ((Pzonename(P, zname, sizeof (zname)) == NULL) || in Pzoneroot() 250 (strcmp(zname, GLOBAL_ZONENAME) == 0)) { in Pzoneroot() 260 if (i_zone_get_zonepath(zname, zpath, sizeof (zpath)) != Z_OK) { in Pzoneroot() 267 zname, GLOBAL_ZONENAME); in Pzoneroot() 280 zname, zpath, GLOBAL_ZONENAME); in Pzoneroot() 291 dprintf("Pzoneroot found zone root '%s:%s'\n", zname, zpath); in Pzoneroot()
|
/illumos-gate/usr/src/cmd/psrset/ |
H A D | psrset.c | 77 static const char *zname; variable 137 bind_err(psetid_t pset, const char *zname, id_t pid, id_t lwpid, int err) in bind_err() argument 154 if (zname != NULL) in bind_err() 155 warn(gettext("cannot %s zone %s"), msg, zname); in bind_err() 717 zname = optarg; in main() 894 zid = getzoneidbyname(zname); in main() 897 zname); in main() 901 bind_err(pset, zname, -1, -1, errno); in main() 905 zname, pset); in main()
|
/illumos-gate/usr/src/cmd/rcap/rcapd/ |
H A D | rcapd_collection_zone.c | 68 lcol = lcollection_insert_update(&colid, max_rss, zent->zname, in update_zone() 71 update_notification_cb("zone", zent->zname, changes, max_rss, in update_zone()
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zoneadm.c | 97 char zname[ZONENAME_MAX]; member 429 if (zent->zname[0] == '\0') in zone_print() 448 (void) printf("%s\n", zent->zname); in zone_print() 455 (void) printf(":%s:%s:", zent->zname, zent->zstate_str); in zone_print() 470 (void) printf(" %-16s %-10s %-30s %-8s %-6s\n", zent->zname, in zone_print() 483 (void) strlcpy(zent->zname, zone_name, sizeof (zent->zname)); in lookup_zone_info() 506 zperror2(zent->zname, in lookup_zone_info() 514 if ((err = zone_get_zonepath(zent->zname, root, in lookup_zone_info() 517 zperror2(zent->zname, in lookup_zone_info() 524 if ((err = zone_get_state(zent->zname, &zent->zstate_num)) != Z_OK) { in lookup_zone_info() [all …]
|
/illumos-gate/usr/src/cmd/rcap/common/ |
H A D | utils.c | 320 (void) strlcpy(zentp->zname, name, sizeof (zentp->zname)); in get_running_zones()
|
H A D | utils.h | 66 char zname[ZONENAME_MAX]; member
|
/illumos-gate/usr/src/cmd/allocate/ |
H A D | allocate.c | 259 char *zname; in main() local 331 zname = GLOBAL_ZONENAME; in main() 597 zonename = zname; in main()
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | lex.c | 860 char fname[BUFSIZ], zname[BUFSIZ], *ename; in newfileinfo() local 890 snprintf(zname, sizeof (zname), in newfileinfo() 892 ename = zname; in newfileinfo()
|
/illumos-gate/usr/src/cmd/halt/ |
H A D | halt.c | 479 char zname[ZONENAME_MAX]; in halt_zones() local 516 if (getzonenamebyid(zones[i], zname, sizeof (zname)) < 0) { in halt_zones() 536 cmdname, zname, strerror(errno)); in halt_zones() 541 "-z", zname, "halt", NULL); in halt_zones() 545 cmdname, zname, strerror(errno)); in halt_zones()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_ctldir.c | 509 zfsctl_snapshot_zname(vnode_t *vp, const char *name, int len, char *zname) in zfsctl_snapshot_zname() argument 515 dmu_objset_name(os, zname); in zfsctl_snapshot_zname() 516 if (strlen(zname) + 1 + strlen(name) >= len) in zfsctl_snapshot_zname() 518 (void) strcat(zname, "@"); in zfsctl_snapshot_zname() 519 (void) strcat(zname, name); in zfsctl_snapshot_zname()
|
/illumos-gate/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_db.c | 1280 char zname[ZONENAME_MAX]; in generate_link_line() local 1290 if (getzonenamebyid(linkp->ll_zoneid, zname, in generate_link_line() 1291 sizeof (zname)) != -1) { in generate_link_line() 1292 ptr += write_str(ptr, BUFLEN(lim, ptr), "zone", zname); in generate_link_line()
|
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | libzonecfg.c | 1308 char zname[ZONENAME_MAX], path[MAXPATHLEN]; in zonecfg_save() local 1322 if ((err = zonecfg_get_name(handle, zname, sizeof (zname))) != Z_OK) in zonecfg_save() 1325 if (!config_file_path(zname, path)) in zonecfg_save() 1335 (void) zonecfg_authorize_users(handle, zname); in zonecfg_save() 1384 char zname[ZONENAME_MAX]; in zonecfg_detach_save() local 1397 if ((err = zonecfg_get_name(handle, zname, sizeof (zname))) in zonecfg_detach_save() 1401 if ((err = zone_get_zonepath(zname, path, sizeof (path))) in zonecfg_detach_save() 1459 char zname[ZONENAME_MAX]; in zonecfg_rm_detached() local 1467 if (zonecfg_get_name(handle, zname, sizeof (zname)) != Z_OK) in zonecfg_rm_detached() 1470 if (zone_get_zonepath(zname, path, sizeof (path)) != Z_OK) in zonecfg_rm_detached()
|
/illumos-gate/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 258 get_console_master(const char *zname) in get_console_master() argument 275 "%s/%s.console_sock", ZONES_TMPDIR, zname); in get_console_master()
|
/illumos-gate/usr/src/cmd/zfs/ |
H A D | zfs_main.c | 5958 char *zname = nvpair_name(nvp); in print_holds() local 5976 (void) printf("%s\t%s\t%s\n", zname, in print_holds() 5980 zname, tagwidth, tagname, tsbuf); in print_holds() 5996 const char *zname = zfs_get_name(zhp); in holds_callback() local 5997 size_t znamelen = strlen(zname); in holds_callback() 6001 char *delim = strchr(zname, '@'); in holds_callback() 6023 return (nvlist_add_nvlist(top_nvl, zname, nvl)); in holds_callback()
|