/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | nhash.c | 41 #define malloc bkmem_alloc macro 79 if ((*cp = (Cache *) malloc(sizeof (**cp))) == NULL) { in init_cache() 84 (Bucket *) malloc(sizeof (*(*cp)->bp) * hsz)) == NULL) { in init_cache() 125 (Item **) malloc(sizeof (*bp->itempp) * cp->bsz); in add_cache() 134 (Item **) malloc(sizeof (*bp->itempp) * in add_cache()
|
/illumos-gate/usr/src/lib/krb5/ss/ |
H A D | invocation.c | 31 new_table = (ss_data *) malloc(sizeof(ss_data)); 34 table = (ss_data **) malloc(2 * size); 49 new_table->info_dirs = (char **)malloc(sizeof(char *)); 53 new_table->prompt = malloc((unsigned)strlen(subsystem_name)+3);
|
/illumos-gate/usr/src/cmd/cmd-crypto/cryptoadm/ |
H A D | adm_kef_ioctl.c | 70 pload_soft_conf = malloc(sizeof (crypto_load_soft_config_t) + in setup_soft_conf() 115 pload_soft_dis = malloc(sizeof (crypto_load_soft_disabled_t) + in setup_soft_dis() 168 pload_dev_dis = malloc(sizeof (crypto_load_dev_disabled_t) + in setup_dev_dis() 205 punload_soft = malloc(sizeof (crypto_unload_soft_module_t)); in setup_unload_soft() 237 psoft_info = malloc(sizeof (crypto_get_soft_info_t) + extra_mech_size); in setup_get_soft_info() 260 pdevlist = malloc(sizeof (crypto_get_dev_list_t) + in get_dev_list() 287 pdevlist = malloc(sizeof (crypto_get_dev_list_t) + in get_dev_list() 339 dev_info = malloc(sizeof (crypto_get_dev_info_t) + in get_dev_info() 556 psoftlist = malloc(sizeof (crypto_get_soft_list_t) + len); in get_soft_list() 582 psoftlist = malloc(sizeof (crypto_get_soft_list_t) + len); in get_soft_list()
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | devreserv.c | 142 if (lockname = malloc(strlen(p)+1)) in _rsvtabpath() 146 if (lockname = malloc(strlen(DVLK_PATH)+1)) in _rsvtabpath() 355 if (alloc = malloc(bufsiz)) { in readlocks() 925 if (rtnlist = malloc((ndevs+1)*sizeof (char **))) { in devreserv() 926 if (aliases = malloc((ndevs+1)*sizeof (char **))) { in devreserv() 948 if (*qq = malloc(strlen(*pp)+1)) { in devreserv() 1118 if (rtnlist = malloc(bufsiz)) { in reservdev() 1124 if (*q = malloc(sizeof (struct reservdev))) { in reservdev() 1125 if (r = malloc(strlen(p->lk_alias)+1)) { in reservdev()
|
H A D | fulldevnm.c | 137 if ((wa = malloc(len)) == NULL) in getfullname() 204 if ((new_path = malloc(strlen(cp))) == NULL) in getblkcomplete() 222 if ((new_path = malloc(strlen(cp))) == NULL) in getblkcomplete() 258 if ((new_path = malloc(strlen(cp)+2)) == NULL) in getrawcomplete() 277 if ((new_path = malloc(strlen(cp)+2)) == NULL) in getrawcomplete() 392 if ((new_path = malloc(strlen(cp))) == NULL) { in getfullblkname() 470 if ((new_path = malloc(strlen(cp)+2)) == NULL) { in getfullrawname()
|
H A D | getdev.c | 438 if (new = malloc(sizeof (struct deviceent))) { in addtodevicelist() 441 if (str = malloc(strlen(deventry)+1)) { in addtodevicelist() 514 if (rtnbuf = malloc(n*sizeof (struct srch))) { in buildsearchlist() 525 if (str = malloc(strlen(*pp)+1)) { in buildsearchlist() 629 if (list = malloc((devicelist.count+1)*sizeof (char *))) { in buildreturnlist() 688 if (aliases = malloc(n*sizeof (char *))) { in makealiaslist() 698 if (alias = malloc(strlen("")+1)) in makealiaslist() 803 if (alias = malloc(strlen(devtabent->alias)+1)) in getnextmatch() 821 if (alias = malloc(strlen(devtabent->alias)+1)) in getnextmatch()
|
/illumos-gate/usr/src/lib/libgss/ |
H A D | oid_ops.c | 110 p = (gss_OID) malloc(sizeof (gss_OID_desc)); 115 p->elements = malloc(p->length); 137 if ((*oid_set = (gss_OID_set) malloc(sizeof (gss_OID_set_desc)))) { 166 if (((*oid_set)->elements = (gss_OID) malloc(((*oid_set)->count+1) * 176 (void *) malloc(member_oid->length))) { 290 if ((bp = (char *)malloc(string_length))) { 405 if ((*oid = (gss_OID) malloc(sizeof (gss_OID_desc)))) { 406 if (((*oid)->elements = (void *) malloc(nbytes))) { 519 if ((out->elements = (void *) malloc(in->length)) == NULL) { in gss_copy_oid_set()
|
H A D | g_acquire_cred.c | 50 actual_mechs = (gss_OID_set) malloc(sizeof (gss_OID_set_desc)); 55 malloc(sizeof (gss_OID_desc) * count); 65 malloc(mechs_array[i].length); 193 creds = (gss_union_cred_t)malloc(sizeof (gss_union_cred_desc)); 365 union_cred = malloc(sizeof (gss_union_cred_desc)); 458 malloc(sizeof (gss_OID_desc) * (union_cred->count+1)); 461 malloc(sizeof (gss_cred_id_t) * (union_cred->count+1)); 485 malloc(mech->mech_type.length)) == NULL) 505 new_union_cred = malloc(sizeof (gss_union_cred_desc));
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | hesiod.c | 76 ctx = malloc(sizeof(struct hesiod_p)); in hesiod_init() 89 ctx->LHS = malloc(strlen(DEF_LHS) + 1); in hesiod_init() 90 ctx->RHS = malloc(strlen(DEF_RHS) + 1); in hesiod_init() 109 ctx->RHS = malloc(RHSlen); in hesiod_init() 195 if ((bindname = malloc((cp - name) + strlen(type) + strlen(RHS) + in hesiod_to_bind() 314 *cpp = malloc(strlen(data) + 1); in parse_config_file() 391 list = malloc((ancount + 1) * sizeof(char *)); in get_txt_records() 422 if (!(list[j] = malloc(rr.dlen))) in get_txt_records() 464 res = (struct __res_state *)malloc(sizeof *res); in __hesiod_res_get()
|
/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | bsd_misc.c | 57 job = (np_bsdjob_t *)malloc(sizeof (np_bsdjob_t)); in create_bsd_job() 81 job->np_request_id = malloc(4); in create_bsd_job() 149 jobdata = malloc(sizeof (np_data_t)); in create_bsd_job() 153 jobdata->np_path_file = malloc(strlen(job->np_filename) + 1); in create_bsd_job() 205 dfname = (char *)malloc(strlen(job->np_host) + 3 + 3 + 1); in create_dfname() 227 cfname = (char *)malloc(strlen(job->np_host) + 3 + 3 + 1); in create_cfname()
|
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | rdr_messages.c | 1566 buf = (char *)malloc(data_sz); in rdr_rcv() 1756 *buf = (char *)malloc(*buf_size); in pack_ses_req_request() 1836 *buf = (char *)malloc(*buf_size); in pack_ses_req_reply() 1926 *buf = (char *)malloc(*buf_size); in pack_change_state_request() 2130 *buf = (char *)malloc(*buf_size); in pack_change_state_reply() 2251 *buf = (char *)malloc(*buf_size); in pack_private_func_request() 2468 *buf = (char *)malloc(*buf_size); in pack_private_func_reply() 2581 *buf = (char *)malloc(*buf_size); in pack_test_request() 2758 *buf = (char *)malloc(*buf_size); in pack_test_reply() 2877 *buf = (char *)malloc(*buf_size); in pack_list_ext_request() [all …]
|
/illumos-gate/usr/src/stand/lib/sa/ |
H A D | malloc.c | 36 malloc(size_t size) in malloc() function 55 addr = malloc(number * size); in calloc() 68 addr = malloc(size); in realloc()
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_subr.c | 54 return (malloc(size)); in ctf_alloc() 60 return (malloc(size)); in mergeq_alloc() 66 return (malloc(size)); in workq_alloc()
|
/illumos-gate/usr/src/lib/librpcsvc/common/ |
H A D | rusers_simple.c | 63 uap->utmp_array_val = (rusers_utmp *)malloc(up.uia_cnt 72 rutp->ut_line = (char *)malloc(sizeof 74 rutp->ut_user = (char *)malloc(sizeof 76 rutp->ut_host = (char *)malloc(sizeof
|
/illumos-gate/usr/src/cmd/listen/ |
H A D | lssmb.c | 58 extern char *malloc(); 190 if((args = (char **)malloc((unsigned)m_size)) == 0){ 211 if((args[i] = malloc((unsigned)m_size)) == 0){ 291 if (outbuf = malloc(n * 2 + 1)) {
|
/illumos-gate/usr/src/cmd/sgs/yacc/common/ |
H A D | y1.c | 148 amem = (int *) malloc(sizeof (int) * new_actsize); in mktbls() 149 psmem = (ITEM *) malloc(sizeof (ITEM) * new_pstsize); in mktbls() 202 clset.lset = (int *)malloc(sizeof (int)*TBITSET); in mktbls() 203 tstates = (int *)malloc(sizeof (int)*(ntoksz + 1)); in mktbls() 205 temp1 = (int *)malloc(sizeof (int)*size); in mktbls() 208 pempty = (int *)malloc(sizeof (int)*(nnontersz + 1)); in mktbls() 211 tystate = (int *)malloc(sizeof (int)*nstatesz); in mktbls() 212 indgo = (int *)malloc(sizeof (int)*nstatesz); in mktbls() 213 mstates = (int *)malloc(sizeof (int)*nstatesz); in mktbls() 214 defact = (int *)malloc(sizeof (int)*nstatesz); in mktbls() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | copy_data.c | 46 if (!(tempdata = (krb5_data *)malloc(sizeof(*tempdata)))) in krb5_copy_data() 51 if (!(tempdata->data = malloc(tempdata->length))) { in krb5_copy_data() 72 if (!(outdata->data = malloc(outdata->length))) { in krb5int_copy_data_contents()
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | init_acs.c | 80 malloc(sizeof (chtype) * 0400)) == NULL) in init_acs() 83 malloc(sizeof (chtype) * 0400)) == NULL) in init_acs() 129 malloc(sizeof (_ochtype) * 0400)) == NULL) { in init_acs()
|
/illumos-gate/usr/src/cmd/krb5/slave/ |
H A D | utils.c | 21 malloc(sizeof (ss2sin(ss)->sin_addr)); in cvtkaddr() 34 malloc(IPV4_ADDR_LEN); in cvtkaddr() 44 malloc(sizeof (ss2sin6(ss)->sin6_addr)); in cvtkaddr()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | malloc.c | 32 #define malloc ______malloc macro 59 #undef malloc 60 #define malloc _ast_malloc macro 153 #undef malloc 167 #undef malloc 174 #define malloc _ast_malloc macro 543 return malloc(size); 712 if((ns = malloc(n+1)) ) 798 r = malloc(size); in vm_malloc_hook() 907 #undef malloc [all …]
|
/illumos-gate/usr/src/cmd/newgrp/ |
H A D | newgrp.c | 131 if ((dir = (char *)malloc(len)) == NULL) in main() 135 if ((name = (char *)malloc(len)) == NULL) in main() 154 if ((homedir = (char *)malloc(len)) == NULL) in main() 158 if ((logname = (char *)malloc(len)) == NULL) in main() 174 if ((shell = (char *)malloc(len)) == NULL) in main()
|
/illumos-gate/usr/src/lib/libkmf/ber_der/common/ |
H A D | decode.c | 283 if ((*buf = (char *)malloc((size_t)datalen + 1)) == NULL) in kmfber_get_stringa() 306 if ((oid->bv_val = (char *)malloc((size_t)len + 1)) == NULL) { in ber_get_oid() 324 if ((*bv = (struct berval *)malloc(sizeof (struct berval))) in ber_get_bigint() 335 if (((*bv)->bv_val = (char *)malloc((size_t)len + 1)) in ber_get_bigint() 372 if ((*bv = (struct berval *)malloc(sizeof (struct berval))) in kmfber_get_stringal() 381 if (((*bv)->bv_val = (char *)malloc((size_t)len + 1)) in kmfber_get_stringal() 407 if ((*buf = (char *)malloc((size_t)datalen - 1)) == NULL) in kmfber_get_bitstringa() 606 *sss = (char **)malloc(16 * sizeof (char *)); in kmfber_scanf() 636 *bv = (struct berval **)malloc( in kmfber_scanf() 778 if ((new = (struct berval *)malloc(sizeof (struct berval))) in kmfber_bvdup() [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | sched.c | 186 n = (el_notice_t *)malloc(sizeof (el_notice_t)); in el_init() 197 k = (el_key_t *)malloc(sizeof (el_key_t)); in el_init() 210 il = (el_key_t **)malloc((DU + 1) * sizeof (el_key_t *)); in el_init() 219 n = (el_notice_t *)malloc(sizeof (el_notice_t)); in el_init() 230 k = (el_key_t *)malloc(sizeof (el_key_t)); in el_init() 247 n = (el_notice_t *)malloc(sizeof (el_notice_t)); in el_init() 259 k = (el_key_t *)malloc(sizeof (el_key_t)); in el_init() 366 y = (el_key_t *)malloc(sizeof (el_key_t)); in el_add() 394 x = (el_notice_t *)malloc(sizeof (el_notice_t)); in el_add()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | oid_ops.c | 95 p = (gss_OID) malloc(sizeof(gss_OID_desc)); 101 p->elements = malloc(p->length); 119 if ((*oid_set = (gss_OID_set) malloc(sizeof(gss_OID_set_desc)))) { 146 if (((*oid_set)->elements = (gss_OID) malloc(((*oid_set)->count+1) * 157 (void *) malloc((size_t) member_oid->length))) { 275 if ((bp = (char *) malloc(string_length))) { 384 if ((*oid = (gss_OID) malloc(sizeof(gss_OID_desc)))) { 385 if (((*oid)->elements = (void *) malloc(nbytes))) { 584 if ((out->elements = (void *) malloc(in->length)) == NULL) { in gssint_copy_oid_set()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_init.c | 37 profile = malloc(sizeof(struct _profile_t)); in profile_init() 97 files = malloc ((size+1) * sizeof(*files)); in profile_copy() 125 filenames = (profile_filespec_t*) malloc((n_entries+1) * sizeof(char*)); in profile_init_path() 134 filenames[i] = (char*) malloc(ent_len + 1); in profile_init_path() 373 flist = (profile_filespec_t *) malloc(sizeof(profile_filespec_t) * (fcount + 1)); in profile_ser_internalize() 380 flist[i] = (char *) malloc((size_t) (tmp+1)); in profile_ser_internalize() 427 if (actual_section = (char **)malloc((max_i + 2) * sizeof(char *))) { 473 if (actual_section = (char **)malloc((max_i + 2) * sizeof(char *))) { 488 *options[i].value = malloc(strlen(value)+1);
|