Home
last modified time | relevance | path

Searched refs:safe_malloc (Results 1 – 25 of 33) sorted by relevance

12

/illumos-gate/usr/src/cmd/projects/
H A Dprojects.c49 safe_malloc(size_t size) in safe_malloc() function
70 tmp = safe_malloc(PROJECT_BUFSZ); in find_projects()
74 projects = safe_malloc(sizeof (struct projlist)); in find_projects()
75 projname = safe_malloc(strlen(proj.pj_name) + 1); in find_projects()
76 projcomm = safe_malloc(strlen(proj.pj_comment) + 1); in find_projects()
85 buffer = safe_malloc(PROJECT_BUFSZ); in find_projects()
89 tail = safe_malloc(sizeof (struct projlist)); in find_projects()
91 safe_malloc(strlen(proj.pj_name) + 1); in find_projects()
93 safe_malloc(strlen(proj.pj_comment) + 1); in find_projects()
/illumos-gate/usr/src/cmd/svc/svcs/
H A Dsvcs.c190 safe_malloc(size_t sz) in safe_malloc() function
457 buf = safe_malloc(buf_sz); in pg_get_single_val()
1116 newbuf = safe_malloc(newsize); in sprint_desc()
1232 newbuf = safe_malloc(newsize); in sprint_state()
1272 newbuf = safe_malloc(newsize); in sprint_nstate()
1479 newbuf = safe_malloc(newsize); in sprint_fmri()
1557 newbuf = safe_malloc(newsize); in sprint_service()
1739 newbuf = safe_malloc(newsize); in sprint_zone()
2527 timebuf = safe_malloc(tbsz); in print_detailed()
2703 char *pgname = safe_malloc(sz); in get_notify_param_classes()
[all …]
H A Dexplain.c265 g_fmri = safe_malloc(g_fmri_sz); in x_init()
268 g_value = safe_malloc(g_value_sz); in x_init()
320 dg = safe_malloc(sizeof (*dg)); in load_dependencies()
384 d = safe_malloc(sizeof (*d)); in load_dependencies()
420 svcp = safe_malloc(sizeof (*svcp)); in add_instance()
620 spp = safe_malloc(sizeof (*spp)); in add_svcptr()
661 copy = safe_malloc(sizeof (*copy)); in add_causes()
1855 title = safe_malloc(g_value_sz); in print_manpage()
1856 section = safe_malloc(g_value_sz); in print_manpage()
1891 uri = safe_malloc(g_value_sz); in print_doclink()
[all …]
H A Dsvcs.h52 void *safe_malloc(size_t);
/illumos-gate/usr/src/cmd/svc/svcprop/
H A Dsvcprop.c131 safe_malloc(size_t sz) in safe_malloc() function
183 dst = safe_malloc(dst_len + 1); in quote_for_shell()
206 buf = safe_malloc(bufsz); in print_value()
240 buf = safe_malloc(buf_sz); in display_prop()
249 buf = safe_malloc(buf_sz); in display_prop()
537 buf = safe_malloc(max_scf_fmri_length + 1); in process_ent()
567 buf = safe_malloc(max_scf_fmri_length + 1); in process_ent()
624 buf = safe_malloc(max_scf_fmri_length + 1); in process_pg()
647 buf = safe_malloc(max_scf_fmri_length + 1); in process_pg()
731 p = safe_malloc(sizeof (svcprop_prop_node_t)); in add_prop()
/illumos-gate/usr/src/cmd/newtask/
H A Dutils.c96 safe_malloc(size_t size) in safe_malloc() function
175 ret_str = safe_malloc(tlen); in getdefault()
180 ret_str = safe_malloc(tlen); in getdefault()
H A Dnewtask.c223 char *env_home = safe_malloc(len_home); in main()
224 char *env_logname = safe_malloc(len_logname); in main()
225 char *env_shell = safe_malloc(len_shell); in main()
226 char *env_mail = safe_malloc(len_mail); in main()
254 env_term = safe_malloc(len_term); in main()
272 env_tz = safe_malloc(len_tz); in main()
293 shell = safe_malloc(PATH_MAX); in main()
H A Dutils.h42 extern void *safe_malloc(size_t size);
/illumos-gate/usr/src/cmd/dis/
H A Ddis_list.c112 node = safe_malloc(sizeof (unresolved_name_t)); in dis_namelist_add()
161 resolved = safe_malloc(sizeof (resolved_name_t)); in walk_sections()
238 resolved = safe_malloc(sizeof (resolved_name_t)); in walk_functions()
H A Ddis_target.c297 p_symtab = safe_malloc(tgt->dt_symcount * sizeof (sym_entry_t)); in construct_symtab()
445 tgt = safe_malloc(sizeof (dis_tgt_t)); in dis_tgt_create()
504 dis_tgt_t *next = safe_malloc(sizeof (dis_tgt_t)); in dis_tgt_create()
527 current->dt_shnmap = safe_malloc(sizeof (dis_shnmap_t) * in dis_tgt_create()
864 new = safe_malloc(sizeof (dis_scn_t)); in dis_section_copy()
978 new = safe_malloc(sizeof (dis_func_t)); in dis_function_copy()
H A Ddis_util.h39 void *safe_malloc(size_t);
H A Ddis_util.c84 safe_malloc(size_t size) in safe_malloc() function
H A Ddis_main.c719 node = safe_malloc(sizeof (lib_node_t)); in main()
721 node->path = safe_malloc(len); in main()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetconv/
H A Dinetconv.c241 safe_malloc(size_t size) in safe_malloc() function
278 buf = safe_malloc(len); in propertyname()
318 buf = safe_malloc(len); in servicename()
391 prop = safe_malloc(prop_size * sizeof (inetd_prop_t)); in valid_basic_properties()
518 iconf->groupname = safe_malloc(len); in valid_inetconfent()
580 iconf = safe_malloc(sizeof (struct inetconfent)); in line_to_inetconfent()
620 iconf->exec = safe_malloc(len); in line_to_inetconfent()
838 finfo = safe_malloc(sizeof (struct fileinfo)); in open_srcfile()
874 dstfile = safe_malloc(len); in open_dstfile()
925 *finfo = safe_malloc(sizeof (struct fileinfo)); in open_dstfile()
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_main.c77 safe_malloc(size_t sz) in safe_malloc() function
251 cmd = safe_malloc(MAX_CMD_LINE_SZ); in main()
H A Dsvccfg_libscf.c1150 fmri = safe_malloc(len + 1); in pg_get_prop()
1184 fmri = safe_malloc(len + 1); in prop_check_type()
1225 fmri = safe_malloc(len + 1); in prop_get_val()
1769 fmribuf = safe_malloc(bufsz); in private_refresh()
9000 str = safe_malloc(len + 1); in set_attr_from_prop_default()
11447 msg = safe_malloc(len); in lscf_validate_fmri()
14447 buf = safe_malloc(bufsz); in lscf_editprop()
15030 buf = safe_malloc(bufsz); in lscf_setenv()
15833 fmri = safe_malloc(sz); in lscf_delnotify()
15891 fmri = safe_malloc(sz); in lscf_listnotify()
[all …]
H A Dsvccfg_xml.c1302 myfmri = safe_malloc(max_scf_fmri_len + 1); in lxml_get_dependent()
1482 char *propname = safe_malloc(sz); in lxml_get_type()
1620 pgname = safe_malloc(sz); in lxml_get_notification_parameters()
1688 prop_name = safe_malloc(max_scf_name_len + 1); in lxml_get_loctext()
2102 name = safe_malloc(max_scf_name_len + 1); in lxml_get_tm_manpage()
2363 prop_value = safe_malloc(max_scf_value_len + 1); in lxml_get_tm_range()
2442 common_name_fmt = safe_malloc(max_scf_name_len + 1); in lxml_get_tm_value_element()
2443 description_fmt = safe_malloc(max_scf_name_len + 1); in lxml_get_tm_value_element()
2462 encoded_value = safe_malloc(max_scf_name_len + 1); in lxml_get_tm_value_element()
2736 pg_name = safe_malloc(max_scf_name_len + 1); in lxml_get_tm_prop_pattern()
[all …]
H A Dsvccfg_tmpl.c578 cpg = safe_malloc(sizeof (*cpg)); in composed_pg_create()
1172 r = safe_malloc(*count * sizeof (*r)); in get_ranges()
1221 ste = safe_malloc(sizeof (*ste)); in tv_errors_create()
1598 c = safe_malloc(size); in int64_to_str()
1612 c = safe_malloc(size); in uint64_to_str()
2024 info = safe_malloc(sizeof (*info)); in ptrn_info_create()
2522 pg_name = safe_malloc(name_size); in gen_pg_pattern_pg_name()
3060 s = safe_malloc(buf_size); in tmpl_errors_print()
/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_util.h34 extern void * safe_malloc(size_t size);
H A Dzfs_iter.c102 zfs_node_t *node = safe_malloc(sizeof (zfs_node_t)); in zfs_callback()
166 col = safe_malloc(sizeof (zfs_sort_column_t)); in zfs_add_sort_column()
171 col->sc_user_prop = safe_malloc(strlen(name) + 1); in zfs_add_sort_column()
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_iter.c81 zpool_node_t *node = safe_malloc(sizeof (zpool_node_t)); in add_pool()
114 zlp = safe_malloc(sizeof (zpool_list_t)); in pool_list_get()
H A Dzpool_util.c41 safe_malloc(size_t size) in safe_malloc() function
H A Dzpool_util.h38 extern void *safe_malloc(size_t);
/illumos-gate/usr/src/cmd/busstat/
H A Dbusstat.c98 static void *safe_malloc(size_t);
258 device = safe_malloc(sizeof (char) * i+1); in print_evt()
446 device = safe_malloc(sizeof (char) * i+1); in parse_dev_inst()
664 new_dev_node = safe_malloc(sizeof (dev_node_t)); in add_dev_node()
737 new_evt_node = safe_malloc(sizeof (evt_node_t)); in add_evt_node()
1530 safe_malloc(size_t size) in safe_malloc() function
/illumos-gate/usr/src/cmd/zstreamdump/
H A Dzstreamdump.c73 safe_malloc(size_t size) in safe_malloc() function
219 char *buf = safe_malloc(SPA_MAXBLOCKSIZE); in main()
380 buf = safe_malloc(sz); in main()

12