Home
last modified time | relevance | path

Searched refs:malloc (Results 101 – 125 of 2594) sorted by relevance

12345678910>>...104

/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dheap.c100 ptr = malloc(MALLOC_SIZE(size));
126 ptr = malloc(MALLOC_SIZE(size));
370 ptr = malloc(MALLOC_SIZE(size));
381 ptr = malloc(MALLOC_SIZE(size));
424 ptr = malloc(MALLOC_SIZE(size));
438 ptr = malloc(MALLOC_SIZE(size));
498 hi = (SM_HEAP_ITEM_T *) malloc(sizeof(SM_HEAP_ITEM_T));
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dmemcluster.c150 freelists = malloc(max_size * sizeof (memcluster_element *)); in meminit()
151 stats = malloc((max_size+1) * sizeof (struct stats)); in meminit()
160 activelists = malloc((max_size + 1) * sizeof (memcluster_element *)); in meminit()
211 e = malloc(new_size); in __memget_record()
232 return (malloc(size)); in __memget_record()
249 new = malloc(NUM_BASIC_BLOCKS * mem_target); in __memget_record()
277 new = malloc(total_size); in __memget_record()
/illumos-gate/usr/src/lib/libnsl/key/
H A Dxcrypt.c93 buf = malloc((unsigned)len);
127 buf = malloc((unsigned)len);
265 if ((hexkeybuf = malloc(bufsize)) == 0) in xencrypt_g()
296 if ((binkeybuf = malloc((unsigned)binkeybytes)) == 0) { in xencrypt_g()
365 if ((buf = malloc((unsigned)len)) == 0) in xdecrypt_g()
459 if ((text = malloc(tlen)) == NULL) { in passwd2des_g()
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_resolve.c84 k = (struct knetconfig *)malloc(sizeof (*k)); in get_knconf()
92 k->knc_protofmly = malloc(KNC_STRSIZE); in get_knconf()
101 k->knc_proto = malloc(KNC_STRSIZE); in get_knconf()
140 nametemp = malloc(MAXNETNAMELEN + 1); in get_nfs4ref_info()
366 nb = (struct netbuf *)malloc(sizeof (struct netbuf)); in get_server_addr()
371 nb->buf = (char *)malloc(tbind->addr.maxlen); in get_server_addr()
/illumos-gate/usr/src/cmd/sed/
H A Dcompile.c136 else if ((appends = malloc(sizeof (struct s_appends) * appendnum)) == in compile()
139 if ((match = malloc((maxnsub + 1) * sizeof (regmatch_t))) == NULL) in compile()
177 if ((*link = cmd = malloc(sizeof (struct s_command))) == NULL) in compile_stream()
188 if ((cmd->a1 = malloc(sizeof (struct s_addr))) == NULL) in compile_stream()
196 if ((cmd->a2 = malloc(sizeof (struct s_addr))) in compile_stream()
446 if ((rep = malloc(sizeof (regex_t))) == NULL) in compile_re()
477 if ((text = malloc(asize)) == NULL) in compile_subst()
640 if ((*py = y = malloc(sizeof (*y))) == NULL) in compile_tr()
726 if ((text = malloc(asize)) == NULL) in compile_text()
828 if ((p = malloc(len)) == NULL) in duptoeol()
[all …]
/illumos-gate/usr/src/cmd/logins/
H A Dlogins.c290 new = malloc(sizeof (struct grpmember)); in addmember()
394 displayhead = malloc(sizeof (struct display)); in initdisp()
446 new = malloc(sizeof (struct display)); in adddisp()
609 psecgrp = malloc( in applygroup()
672 ppasswd = malloc(sizeof (struct pwdinfo)); in applypasswd()
1120 lpw->next = malloc(sizeof (struct localpw)); in fill_localpw()
1131 next = malloc(sizeof (struct localpw)); in build_localpw()
1471 plogin = malloc(sizeof (struct reqlogin)); in main()
1478 plogin = malloc(sizeof (struct reqlogin)); in main()
1512 pgrp = malloc(sizeof (struct reqgrp)); in main()
[all …]
/illumos-gate/usr/src/cmd/lp/filter/postscript/common/
H A Dtempnam.c36 char *tnm, *malloc();
41 if ((tnm = malloc(len)) != NULL) {
/illumos-gate/usr/src/lib/libgss/
H A Dg_imp_sec_context.c94 ctx = (gss_union_ctx_id_t)malloc(sizeof (gss_union_ctx_id_desc));
98 ctx->mech_type = (gss_OID) malloc(sizeof (gss_OID_desc));
119 ctx->mech_type->elements = malloc(length);
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmakenew.c61 if ((win = (WINDOW *) malloc(sizeof (WINDOW))) == NULL) in _makenew()
63 if ((win->_y = (chtype **) malloc(nlines * sizeof (chtype *))) == NULL) in _makenew()
71 if ((win->_firstch = (short *) malloc(2 * nlines * sizeof (short))) in _makenew()
H A Ddupwin.c67 if ((new = (WINDOW *) malloc(sizeof (WINDOW))) == NULL) in dupwin()
74 if ((new->_firstch = (short *)malloc((unsigned)2 * line_size)) == NULL) in dupwin()
79 if ((new->_y = (chtype **) malloc(nlines * sizeof (chtype *))) == in dupwin()
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dscn.c353 m = (scn_list_t *)malloc(sizeof (scn_list_t)); in scn_add_portal()
803 raw = (scn_raw_t *)malloc(sizeof (scn_raw_t)); in make_raw_entity()
851 raw = (scn_raw_t *)malloc(sizeof (scn_raw_t)); in make_raw_iscsi()
853 iscsi = (uchar_t *)malloc(ilen); in make_raw_iscsi()
899 raw = (scn_raw_t *)malloc(sizeof (scn_raw_t)); in make_raw_portal()
965 raw = (scn_raw_t *)malloc(sizeof (scn_raw_t)); in make_raw_assoc_iscsi()
967 iscsi = (uchar_t *)malloc(ilen); in make_raw_assoc_iscsi()
1139 text = (scn_text_t *)malloc( in scn_gen_portal()
1326 s = (scn_t *)malloc(sizeof (scn_t)); in scn_disp1()
1879 name = (uchar_t *)malloc(nlen); in scn_list_load()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Drc_file.c74 if (!(ta = (struct authlist *) malloc(sizeof(struct authlist)))) in rc_store()
203 if (!(t = (struct file_data *) malloc(sizeof(struct file_data)))) in krb5_rc_file_resolve()
208 t->name = malloc(strlen(name)+1); in krb5_rc_file_resolve()
218 t->h = (struct authlist **) malloc(t->hsize*sizeof(struct authlist *)); in krb5_rc_file_resolve()
278 rep->client = malloc (len); in krb5_rc_io_fetch()
296 rep->server = malloc (len); in krb5_rc_io_fetch()
355 if (!(rep = (krb5_donot_replay *) malloc(sizeof(krb5_donot_replay)))) { in krb5_rc_file_recover_locked()
450 buf = malloc(len); in krb5_rc_io_store()
686 tmp = (krb5_rcache) malloc(sizeof(*tmp)); in krb5_rc_file_expunge_locked()
/illumos-gate/usr/src/head/
H A Dmalloc.h68 void *malloc(size_t);
76 using std::malloc;
/illumos-gate/usr/src/lib/gss_mechs/mech_dummy/mech/
H A Ddmech.c287 ctx = (dummy_gss_ctx_id_t)malloc(sizeof (dummy_gss_ctx_id_rec));
710 output.value = (void *)malloc(output.length);
819 malloc(name->buffer->length);
861 malloc(sizeof (dummy_name_desc));
862 name->buffer = (gss_buffer_t)malloc(sizeof (gss_buffer_desc));
1112 malloc(sizeof (dummy_name_desc));
1113 name1->buffer = (gss_buffer_t)malloc(sizeof (gss_buffer_desc));
1124 malloc(sizeof (dummy_name_desc));
1125 name2->buffer = (gss_buffer_t)malloc(sizeof (gss_buffer_desc));
1207 token = (dummy_token_t)malloc(strlen(name)+1); in make_dummy_token()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dcert.c384 id_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in cert_x509_set_default_attributes()
385 issuer_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in cert_x509_set_default_attributes()
386 serial_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in cert_x509_set_default_attributes()
/illumos-gate/usr/src/boot/efi/libefi/
H A Ddevicename.c113 idev = malloc(sizeof (struct disk_devdesc)); in efi_parsedev()
123 idev = malloc(sizeof (struct zfs_devdesc)); in efi_parsedev()
133 idev = malloc(sizeof (struct devdesc)); in efi_parsedev()
/illumos-gate/usr/src/cmd/svc/startd/
H A Dexpand.c62 dst = malloc(dst_len + 1); in quote_for_shell()
90 buf = malloc(buflen + 1); in val_to_str()
389 sname = malloc(sname_len + 1); in expand_token()
422 iname = malloc(iname_len + 1); in expand_token()
450 fmri = malloc(fmri_len + 1); in expand_token()
520 buf = malloc(len + 1); in expand_token()
568 expanded = malloc(exp_sz); in expand_method_tokens()
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_crypto_openssl.c1177 alg_buf = (unsigned char *)malloc(alg_len); in cms_signeddata_create()
1186 digest_buf = (unsigned char *)malloc(digest_len); in cms_signeddata_create()
2431 malloc((size_t) *client_key_len)) == NULL) { in client_process_dh()
3371 p = *out = (unsigned char *)malloc(tot_len);
3424 p = *out = (unsigned char *)malloc(tot_len); in wrap_signeddata()
3466 p = *out = (unsigned char *)malloc(tot_len); in wrap_signeddata()
3508 *outdata = malloc(tlen); in prepare_enc_data()
3667 rdat.data = malloc(tip->ulMaxPinLen + 2); in pkinit_login()
3995 cert = malloc((size_t) attrs[0].ulValueLen + 1); in check_load_certs()
4892 cp = (unsigned char *)malloc((size_t) len);
[all …]
/illumos-gate/usr/src/cmd/acpi/iasl/
H A Daslparser.y181 #undef malloc
182 #define malloc AslLocalAllocate macro
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dinit_keyblock.c41 kb = malloc (sizeof(krb5_keyblock)); in krb5_init_keyblock()
51 kb->contents = malloc (length); in krb5_init_keyblock()
H A Dmk_cred.c92 credenc.ticket_info = (krb5_cred_info **) malloc(size); in krb5_mk_ncred_basic()
102 credenc.ticket_info[i] = malloc(sizeof(krb5_cred_info)); in krb5_mk_ncred_basic()
180 if ((pcred = (krb5_cred *)malloc(sizeof(krb5_cred))) == NULL) in krb5_mk_ncred()
185 = (krb5_ticket **)malloc(sizeof(krb5_ticket *) * (ncred + 1))) == NULL) { in krb5_mk_ncred()
301 if ((ppcreds = (krb5_creds **)malloc(sizeof(*ppcreds) * 2)) == NULL) { in krb5_mk_1cred()
/illumos-gate/usr/src/cmd/rpcgen/
H A Drpc_scan.c333 *val = malloc(size + 1); in findstrconst()
355 *val = malloc(size + 1); in findchrconst()
379 *val = malloc(size + 1); in findconst()
435 tokp->str = malloc(len + 1); in findkind()
477 p = file = malloc(strlen(line) + 1); in docppline()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_get.c37 list->list = malloc(list->max * sizeof(char *)); in init_list()
83 newstr = malloc(strlen(str)+1); in add_to_list()
215 *ret_string = malloc(strlen(value)+1); in profile_get_string()
429 *ret_name = malloc(strlen(name)+1); in profile_iterator()
438 *ret_value = malloc(strlen(value)+1); in profile_iterator()
/illumos-gate/usr/src/ucbcmd/expr/
H A Dexpr.y199 rv = malloc(16); in arith()
261 (void) strcpy(rv = malloc(8), ltoa(++i)); in index()
275 rv = malloc(8); in length()
285 (void) strcpy(rv=malloc(8), ltoa((long)ematch(s, p))); in match()
287 rv = malloc((unsigned) strlen(Mstring[0]) + 1); in match()
/illumos-gate/usr/src/tools/ctf/common/
H A Dmemory.c49 if ((mem = malloc(size)) == NULL) in xmalloc()
82 if ((newstr = malloc(len + 1)) == NULL) in xstrndup()

12345678910>>...104