Lines Matching defs:cfg

478  * with configuration 'cfg'.
481 destroy_proto_info(basic_cfg_t *cfg, proto_info_t *pi)
491 if (cfg->istlx) {
499 destroy_proto_list(basic_cfg_t *cfg)
504 if (cfg->proto_list == NULL)
507 while ((pi = uu_list_teardown(cfg->proto_list, &cookie)) != NULL)
508 destroy_proto_info(cfg, pi);
509 uu_list_destroy(cfg->proto_list);
510 cfg->proto_list = NULL;
514 destroy_basic_cfg(basic_cfg_t *cfg)
516 if (cfg == NULL)
519 free(cfg->bind_addr);
520 destroy_proto_list(cfg);
521 free(cfg->svc_name);
522 free(cfg);
581 basic_cfg_t *cfg;
600 if (((cfg = calloc(1, sizeof (basic_cfg_t))) == NULL) ||
602 ((cfg->proto_list = uu_list_create(proto_info_pool, NULL, 0)) ==
604 free(cfg);
610 ((cfg->svc_name =
617 (((cfg->iswait = prop[PT_ISWAIT_INDEX].ip_value.iv_boolean) !=
618 B_TRUE) && (cfg->iswait != B_FALSE)))
650 if ((cfg->svc_name != NULL) &&
651 ((rpc_pnum = get_rpc_prognum(cfg->svc_name)) == -1))
656 cfg->istlx = B_FALSE;
660 !(cfg->istlx = is_tlx_service(prop)))
664 if (!cfg->istlx && prop[PT_BIND_ADDR_INDEX].ip_error != IVE_UNSET &&
665 (cfg->bind_addr =
708 if (!cfg->istlx || !isrpc) {
757 if (!cfg->istlx) {
782 !cfg->iswait) {
786 } else if (cfg->istlx && (nconf != NULL) &&
806 if (cfg->istlx) {
827 if (set_bind_addr(ss, cfg->bind_addr) != 0) {
874 if (!isrpc && (cfg->svc_name != NULL)) {
895 if (getservbyname_r(cfg->svc_name, gsproto, &se, gsbuf,
900 } else if (cfg->istlx && (ti != NULL)) {
903 } else if (!cfg->istlx && (si != NULL)) {
921 (void) uu_list_insert_after(cfg->proto_list, NULL,
989 *cfgpp = cfg;
991 destroy_basic_cfg(cfg);