Home
last modified time | relevance | path

Searched refs:startd_alloc (Results 1 – 12 of 12) sorted by relevance

/illumos-gate/usr/src/cmd/svc/startd/
H A Denv.c65 glob_envp = startd_alloc(sizeof (*glob_envp) * glob_env_n); in init_env()
67 glob_envp[0] = startd_alloc((unsigned)(strlen(DEF_PATH)+2)); in init_env()
91 glob_envp[i] = startd_alloc((unsigned)(length + 1)); in init_env()
102 newp = startd_alloc(sizeof (*glob_envp) * glob_env_n); in init_env()
223 *np = startd_alloc(sz); in set_smf_env()
230 *np = startd_alloc(sz); in set_smf_env()
238 *np = startd_alloc(sz); in set_smf_env()
245 *np = startd_alloc(sz); in set_smf_env()
251 *np = startd_alloc(sz); in set_smf_env()
259 *np = startd_alloc(sz); in set_smf_env()
[all …]
H A Ddeathrow.c139 line = (char *)startd_alloc(line_size); in deathrow_init()
223 d = startd_alloc(sizeof (deathrow_t)); in deathrow_add()
224 d->fmri = startd_alloc(strlen(fmri) + 1); in deathrow_add()
H A Ddict.c114 entry = startd_alloc(sizeof (dict_entry_t)); in dict_insert()
117 entry->de_name = startd_alloc(strlen(name) + 1); in dict_insert()
H A Dstartd.c503 buf = startd_alloc(max_scf_fmri_size); in read_startd_config()
511 st->st_log_file = startd_alloc(strlen(STARTD_DEFAULT_LOG) + 1); in read_startd_config()
635 vbuf = startd_alloc(max_scf_value_size); in read_startd_config()
748 st->st_subgraph = startd_alloc(max_scf_fmri_size); in read_startd_config()
786 startd_alloc(max_scf_fmri_size); in read_startd_config()
H A Dprotocol.c108 e->gpe_inst = startd_alloc(size); in graph_event_enqueue()
226 e->rpe_inst = startd_alloc(strlen(inst) + 1); in restarter_event_enqueue()
308 states = startd_alloc(sizeof (protocol_states_t)); in state_cb()
H A Dlibscf.c53 buf = startd_alloc(max_scf_fmri_size); in inst_fmri_to_svc_fmri()
54 sfmri = startd_alloc(max_scf_fmri_size); in inst_fmri_to_svc_fmri()
436 pgname = startd_alloc(max_scf_fmri_size); in libscf_get_stn_tset()
513 char *char_state = startd_alloc(max_scf_value_size); in libscf_read_state()
626 char *scheme = startd_alloc(max_scf_value_size); in depgroup_read_scheme()
653 char *grouping = startd_alloc(max_scf_value_size); in depgroup_read_grouping()
684 char *restart_on = startd_alloc(max_scf_value_size); in depgroup_read_restart()
959 char *inst_fmri = startd_alloc(max_scf_fmri_size); in libscf_instance_get_fmri()
2084 char *cname = startd_alloc(max_scf_value_size); in libscf_get_template_values()
2085 char *c_cname = startd_alloc(max_scf_value_size); in libscf_get_template_values()
[all …]
H A Dmisc.c81 cf = startd_alloc(max_scf_fmri_size); in fmri_canonify()
H A Dgraph.c405 v->gv_name = startd_alloc(strlen(name) + 1); in graph_add_vertex()
449 e = startd_alloc(sizeof (graph_edge_t)); in graph_add_edge()
450 re = startd_alloc(sizeof (graph_edge_t)); in graph_add_edge()
695 cs->path = startd_alloc((cs->depth + 1) * sizeof (int)); in child_pre()
750 *cpp = startd_alloc(1); in path_to_str()
765 new = startd_alloc(new_allocd); in path_to_str()
2172 inst_fmri = startd_alloc(max_scf_fmri_size); in add_service()
2363 fmri_copy = startd_alloc(fmri_copy_sz); in process_dependency_fmri()
2524 pg_name = startd_alloc(max_scf_name_size); in process_dependency_pg()
2564 fmri = startd_alloc(fmri_sz); in process_dependency_pg()
[all …]
H A Drestarter.c352 inst->ri_utmpx_prefix = startd_alloc(max_scf_value_size); in restarter_insert_inst()
355 inst->ri_i.i_fmri = startd_alloc(strlen(name) + 1); in restarter_insert_inst()
372 svc_name = startd_alloc(max_scf_name_size); in restarter_insert_inst()
373 inst_name = startd_alloc(max_scf_name_size); in restarter_insert_inst()
434 inst->ri_logstem = startd_alloc(PATH_MAX); in restarter_insert_inst()
495 ps = startd_alloc(sizeof (*ps)); in restarter_insert_inst()
894 states = startd_alloc(sizeof (protocol_states_t)); in restarter_instance_update_states()
2520 entry = startd_alloc(sizeof (timeout_entry_t)); in timeout_insert()
H A Dwait.c204 wi = startd_alloc(sizeof (wait_info_t)); in wait_register()
H A Dcontract.c325 ce = startd_alloc(sizeof (contract_entry_t)); in contract_hash_store()
H A Dstartd.h155 #define startd_alloc(sz) \ macro