/titanic_50/usr/src/cmd/projects/ |
H A D | projects.c | 51 safe_malloc(size_t size) in safe_malloc() function 72 tmp = safe_malloc(PROJECT_BUFSZ); in find_projects() 76 projects = safe_malloc(sizeof (struct projlist)); in find_projects() 77 projname = safe_malloc(strlen(proj.pj_name) + 1); in find_projects() 78 projcomm = safe_malloc(strlen(proj.pj_comment) + 1); in find_projects() 87 buffer = safe_malloc(PROJECT_BUFSZ); in find_projects() 91 tail = safe_malloc(sizeof (struct projlist)); in find_projects() 93 safe_malloc(strlen(proj.pj_name) + 1); in find_projects() 95 safe_malloc(strlen(proj.pj_comment) + 1); in find_projects()
|
/titanic_50/usr/src/cmd/dis/ |
H A D | dis_util.c | 83 safe_malloc(size_t size) in safe_malloc() function 124 demangled_name = safe_malloc(size); in dis_demangle() 140 demangled_name = safe_malloc(size); in dis_demangle()
|
H A D | dis_list.c | 114 node = safe_malloc(sizeof (unresolved_name_t)); in dis_namelist_add() 163 resolved = safe_malloc(sizeof (resolved_name_t)); in walk_sections() 240 resolved = safe_malloc(sizeof (resolved_name_t)); in walk_functions()
|
H A D | dis_util.h | 41 void *safe_malloc(size_t);
|
H A D | dis_target.c | 282 p_symtab = safe_malloc(tgt->dt_symcount * sizeof (sym_entry_t)); in construct_symtab() 430 tgt = safe_malloc(sizeof (dis_tgt_t)); in dis_tgt_create() 489 dis_tgt_t *next = safe_malloc(sizeof (dis_tgt_t)); in dis_tgt_create() 512 current->dt_shnmap = safe_malloc(sizeof (dis_shnmap_t) * in dis_tgt_create() 849 new = safe_malloc(sizeof (dis_scn_t)); in dis_section_copy() 963 new = safe_malloc(sizeof (dis_func_t)); in dis_function_copy()
|
/titanic_50/usr/src/cmd/svc/svcs/ |
H A D | svcs.c | 185 safe_malloc(size_t sz) in safe_malloc() function 246 ht_buckets = safe_malloc(sizeof (*ht_buckets) * ht_buckets_num); in ht_init() 285 safe_malloc(sizeof (*new_ht_buckets) * new_ht_buckets_num); in ht_grow() 335 elem = safe_malloc(sizeof (*elem)); in ht_add() 446 buf = safe_malloc(buf_sz); in pg_get_single_val() 675 fmri_buf = safe_malloc(max_scf_fmri_length + 1); in check_for_restarter() 681 fmri_buf_canonified = safe_malloc(max_scf_fmri_length + 1); in check_for_restarter() 1013 char *newbuf = safe_malloc(newsize); in sprint_ctid() 1100 common_name_buf = safe_malloc(max_scf_value_length + 1); in sprint_desc() 1127 newbuf = safe_malloc(newsize); in sprint_desc() [all …]
|
H A D | explain.c | 269 g_fmri = safe_malloc(g_fmri_sz); in x_init() 272 g_value = safe_malloc(g_value_sz); in x_init() 324 dg = safe_malloc(sizeof (*dg)); in load_dependencies() 388 d = safe_malloc(sizeof (*d)); in load_dependencies() 389 d->fmri = safe_malloc(max_scf_fmri_length + 1); in load_dependencies() 424 svcp = safe_malloc(sizeof (*svcp)); in add_instance() 433 instp = safe_malloc(sizeof (*instp)); in add_instance() 550 svcname = safe_malloc(max_scf_name_length + 1); in load_services() 551 instname = safe_malloc(max_scf_name_length + 1); in load_services() 614 spp = safe_malloc(sizeof (*spp)); in add_svcptr() [all …]
|
H A D | svcs.h | 52 void *safe_malloc(size_t);
|
/titanic_50/usr/src/cmd/newtask/ |
H A D | utils.c | 98 safe_malloc(size_t size) in safe_malloc() function 177 ret_str = safe_malloc(tlen); in getdefault() 182 ret_str = safe_malloc(tlen); in getdefault()
|
H A D | newtask.c | 222 char *env_home = safe_malloc(len_home); in main() 223 char *env_logname = safe_malloc(len_logname); in main() 224 char *env_shell = safe_malloc(len_shell); in main() 225 char *env_mail = safe_malloc(len_mail); in main() 253 env_term = safe_malloc(len_term); in main() 271 env_tz = safe_malloc(len_tz); in main() 292 shell = safe_malloc(PATH_MAX); in main()
|
H A D | utils.h | 44 extern void *safe_malloc(size_t size);
|
/titanic_50/usr/src/cmd/svc/svcprop/ |
H A D | svcprop.c | 131 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() 649 buf = safe_malloc(max_scf_fmri_length + 1); in process_pg() 733 p = safe_malloc(sizeof (svcprop_prop_node_t)); in add_prop()
|
/titanic_50/usr/src/lib/efcode/engine/ |
H A D | init.c | 40 safe_malloc(size_t n, char *f, int l) in safe_malloc() function 69 if ((newp = safe_malloc(n, f, l)) == NULL) { in safe_realloc()
|
/titanic_50/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_main.c | 70 safe_malloc(size_t sz) in safe_malloc() function 228 cmd = safe_malloc(MAX_CMD_LINE_SZ); in main()
|
H A D | svccfg_libscf.c | 1132 fmri = safe_malloc(len + 1); in pg_get_prop() 1166 fmri = safe_malloc(len + 1); in prop_check_type() 1207 fmri = safe_malloc(len + 1); in prop_get_val() 1751 fmribuf = safe_malloc(bufsz); in private_refresh() 1888 cur_selection = safe_malloc(max_scf_fmri_len + 1); in find_current_prop_type() 2051 pg->sc_pgroup_name = safe_malloc(max_scf_name_len + 1); in find_current_prop_type() 2069 lfmri = safe_malloc(max_scf_fmri_len + 1); in find_current_prop_type() 2165 cur_selection = safe_malloc(max_scf_fmri_len + 1); in find_current_pg_type() 2180 pg_type = safe_malloc(max_scf_pg_type_len + 1); in find_current_pg_type() 8902 char *name_buf = safe_malloc(max_scf_name_len + 1); in lscf_bundle_apply() [all …]
|
H A D | svccfg_xml.c | 1296 myfmri = safe_malloc(max_scf_fmri_len + 1); in lxml_get_dependent() 1476 char *propname = safe_malloc(sz); in lxml_get_type() 1614 pgname = safe_malloc(sz); in lxml_get_notification_parameters() 1681 prop_name = safe_malloc(max_scf_name_len + 1); in lxml_get_loctext() 2095 name = safe_malloc(max_scf_name_len + 1); in lxml_get_tm_manpage() 2356 prop_value = safe_malloc(max_scf_value_len + 1); in lxml_get_tm_range() 2435 common_name_fmt = safe_malloc(max_scf_name_len + 1); in lxml_get_tm_value_element() 2436 description_fmt = safe_malloc(max_scf_name_len + 1); in lxml_get_tm_value_element() 2455 encoded_value = safe_malloc(max_scf_name_len + 1); in lxml_get_tm_value_element() 2729 pg_name = safe_malloc(max_scf_name_len + 1); in lxml_get_tm_prop_pattern() [all …]
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/inetconv/ |
H A D | inetconv.c | 241 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()
|
/titanic_50/usr/src/cmd/zfs/ |
H A D | zfs_util.h | 34 void * safe_malloc(size_t size);
|
H A D | zfs_iter.c | 101 zfs_node_t *node = safe_malloc(sizeof (zfs_node_t)); in zfs_callback() 163 col = safe_malloc(sizeof (zfs_sort_column_t)); in zfs_add_sort_column() 168 col->sc_user_prop = safe_malloc(strlen(name) + 1); in zfs_add_sort_column()
|
/titanic_50/usr/src/cmd/zpool/ |
H A D | zpool_iter.c | 79 zpool_node_t *node = safe_malloc(sizeof (zpool_node_t)); in add_pool() 112 zlp = safe_malloc(sizeof (zpool_list_t)); in pool_list_get()
|
H A D | zpool_util.c | 39 safe_malloc(size_t size) in safe_malloc() function
|
H A D | zpool_util.h | 38 void *safe_malloc(size_t);
|
/titanic_50/usr/src/cmd/busstat/ |
H A D | busstat.c | 96 static void *safe_malloc(size_t); 256 device = safe_malloc(sizeof (char) * i+1); in print_evt() 444 device = safe_malloc(sizeof (char) * i+1); in parse_dev_inst() 662 new_dev_node = safe_malloc(sizeof (dev_node_t)); in add_dev_node() 735 new_evt_node = safe_malloc(sizeof (evt_node_t)); in add_evt_node() 1528 safe_malloc(size_t size) in safe_malloc() function
|
/titanic_50/usr/src/cmd/zstreamdump/ |
H A D | zstreamdump.c | 72 safe_malloc(size_t size) in safe_malloc() function 201 char *buf = safe_malloc(SPA_MAXBLOCKSIZE); in main() 355 buf = safe_malloc(sz); in main()
|
/titanic_50/usr/src/lib/efcode/include/fcode/ |
H A D | private.h | 61 #define MALLOC(x) safe_malloc((x), __FILE__, __LINE__)
|