Lines Matching refs:masterp
27 /* void pcf_edit_master_field(masterp, field, new_value)
28 /* PCF_MASTER_ENT *masterp;
38 /* void pcf_edit_master_param(masterp, mode, param_name, param_value)
39 /* PCF_MASTER_ENT *masterp;
44 /* const char *pcf_parse_master_entry(masterp, buf)
45 /* PCF_MASTER_ENT *masterp;
48 /* void pcf_print_master_entry(fp, mode, masterp)
51 /* PCF_MASTER_ENT *masterp;
53 /* void pcf_free_master_entry(masterp)
54 /* PCF_MASTER_ENT *masterp;
355 void pcf_free_master_entry(PCF_MASTER_ENT *masterp)
358 myfree(masterp->name_space);
359 argv_free(masterp->argv);
360 if (masterp->valid_names)
361 htable_free(masterp->valid_names, myfree);
362 if (masterp->ro_params)
363 dict_close(masterp->ro_params);
364 if (masterp->all_params)
365 dict_close(masterp->all_params);
366 myfree((void *) masterp);
371 const char *pcf_parse_master_entry(PCF_MASTER_ENT *masterp, const char *buf)
395 masterp->name_space =
398 concatenate("ro", PCF_NAMESP_SEP_STR, masterp->name_space, (char *) 0);
399 masterp->argv = argv;
400 masterp->valid_names = 0;
401 masterp->ro_params = dict_ht_open(ro_name_space, O_CREAT | O_RDWR, 0);
403 dict_put(masterp->ro_params, VAR_PROCNAME, process_name);
404 dict_put(masterp->ro_params, VAR_SERVNAME,
408 masterp->all_params = 0;
471 void pcf_print_master_entry(VSTREAM *fp, int mode, PCF_MASTER_ENT *masterp)
473 char **argv = masterp->argv->argv;
554 aval, masterp);
608 PCF_MASTER_ENT *masterp;
631 for (masterp = pcf_master_table; masterp->argv != 0; masterp++) {
635 masterp->argv->argv[0],
636 masterp->argv->argv[1])) {
638 pcf_print_master_entry(fp, mode, masterp);
642 pcf_print_master_entry(fp, mode, masterp);
662 PCF_MASTER_ENT *masterp,
665 char **argv = masterp->argv->argv;
732 aval, masterp);
787 PCF_MASTER_ENT *masterp;
817 for (masterp = pcf_master_table; masterp->argv != 0; masterp++) {
821 masterp->argv->argv[0],
822 masterp->argv->argv[1])) {
827 pcf_print_master_field(fp, mode, masterp, field);
829 pcf_print_master_field(fp, mode, masterp, field);
835 pcf_print_master_field(fp, mode, masterp, field);
854 void pcf_edit_master_field(PCF_MASTER_ENT *masterp, int field,
862 argv_truncate(masterp->argv, PCF_MASTER_FLD_CMD);
863 argv_splitq_append(masterp->argv, new_value, PCF_MASTER_BLANKS, CHARS_BRACE);
864 pcf_normalize_daemon_args(masterp->argv);
871 argv_replace_one(masterp->argv, field, new_value);
877 pcf_check_master_entry(masterp->argv, new_value);
883 PCF_MASTER_ENT *masterp,
892 masterp->name_space, PCF_NAMESP_SEP_CH,
897 param_value, masterp);
900 masterp->name_space, PCF_NAMESP_SEP_CH,
920 PCF_MASTER_ENT *masterp)
924 DICT *dict = masterp->all_params;
952 pcf_print_master_param(fp, mode, masterp, param_name, param_value);
965 PCF_MASTER_ENT *masterp;
991 for (masterp = pcf_master_table; masterp->argv != 0; masterp++) {
992 if ((dict = masterp->all_params) != 0) {
996 masterp->argv->argv[0],
997 masterp->argv->argv[1])) {
999 pcf_show_master_any_param(fp, mode, masterp);
1003 pcf_print_master_param(fp, mode, masterp,
1011 pcf_show_master_any_param(fp, mode, masterp);
1031 void pcf_edit_master_param(PCF_MASTER_ENT *masterp, int mode,
1036 ARGV *argv = masterp->argv;
1076 if (masterp->all_params)
1077 dict_put(masterp->all_params, param_name, param_value);
1086 if (masterp->all_params)
1087 dict_del(masterp->all_params, param_name);
1113 if (masterp->all_params)
1114 dict_put(masterp->all_params, param_name, param_value);