/illumos-gate/usr/src/man/man3malloc/ |
H A D | Makefile | 22 malloc.3malloc \ 46 calloc.3malloc := LINKSRC = malloc.3malloc 47 free.3malloc := LINKSRC = malloc.3malloc 48 mallinfo.3malloc := LINKSRC = malloc.3malloc 49 mallopt.3malloc := LINKSRC = malloc.3malloc 50 memalign.3malloc := LINKSRC = malloc.3malloc 51 realloc.3malloc := LINKSRC = malloc.3malloc 52 valloc.3malloc := LINKSRC = malloc.3malloc 54 mallocctl.3malloc := LINKSRC = mtmalloc.3malloc 56 umem_free.3malloc := LINKSRC = umem_alloc.3malloc [all …]
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | system-library.man3malloc.inc | 18 link path=usr/share/man/man3malloc/calloc.3malloc target=malloc.3malloc 19 link path=usr/share/man/man3malloc/free.3malloc target=malloc.3malloc 20 link path=usr/share/man/man3malloc/mallinfo.3malloc target=malloc.3malloc 21 file path=usr/share/man/man3malloc/malloc.3malloc 22 link path=usr/share/man/man3malloc/mallocctl.3malloc target=mtmalloc.3malloc 23 link path=usr/share/man/man3malloc/mallopt.3malloc target=malloc.3malloc 25 link path=usr/share/man/man3malloc/memalign.3malloc target=malloc.3malloc 27 link path=usr/share/man/man3malloc/realloc.3malloc target=malloc.3malloc 37 link path=usr/share/man/man3malloc/umem_free.3malloc target=umem_alloc.3malloc 41 link path=usr/share/man/man3malloc/umem_zalloc.3malloc target=umem_alloc.3malloc [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | key.c | 325 id_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in key_object_set_default_attributes() 326 sdate_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in key_object_set_default_attributes() 327 edate_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in key_object_set_default_attributes() 330 local_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in key_object_set_default_attributes() 543 class_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in priv_key_set_default_attributes() 550 sign_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in priv_key_set_default_attributes() 772 attr = (CK_ATTRIBUTE *)malloc( in priv_key_validate_attribute() 832 sign_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in secret_key_set_default_attributes() 836 wrap_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in secret_key_set_default_attributes() 1063 attr = (CK_ATTRIBUTE *)malloc( in secret_key_validate_attribute() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | vmalloc | 14 hdr alloca,malloc,stat,stdlib,unistd 15 mem mallinfo.arena,mstats.bytes_total malloc.h 47 tst map_malloc note{ map malloc to _ast_malloc }end noexecute{ 74 extern void* malloc(unsigned int n) { MALLOC(n); } 83 extern void* malloc(n) unsigned int n; { MALLOC(n); } 126 void* malloc(unsigned int size) 128 void* malloc(size) unsigned int size; 155 tst malloc_hook note{ gnu malloc hooks work }end execute{ 156 #include <malloc.h> 200 p = malloc(16); [all …]
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | dgrpent.c | 227 if (recbuf = malloc(DGRP_BUFSIZ)) { in getnextrec() 353 if (rtnval = malloc(strlen(path)+1)) in _dgrptabpath() 361 if (rtnval = malloc(strlen(DGRP_PATH)+1)) in _dgrptabpath() 442 if (!(ent = malloc(sizeof (struct dgrptabent)))) { in _getdgrptabent() 460 if (ent->dataspace = malloc(strlen(record)+1)) { in _getdgrptabent() 483 if (!(ent->name = malloc(strlen(p)+1))) { in _getdgrptabent() 499 if (!(q = malloc(sizeof (struct member)))) { in _getdgrptabent() 505 if (!(q->name = malloc(strlen(p)+1))) { in _getdgrptabent() 518 if (!(r = malloc(sizeof (struct member)))) { in _getdgrptabent() 528 if (!(r->name = malloc(strlen(p)+1))) { in _getdgrptabent()
|
H A D | listdev.c | 163 if (list = malloc(n*sizeof (char *))) { in listdev() 166 if (*pp = malloc(strlen(DTAB_ALIAS)+1)) in listdev() 171 if (*pp = malloc(strlen(DTAB_BDEVICE)+1)) in listdev() 177 if (*pp = malloc(strlen(DTAB_CDEVICE)+1)) in listdev() 183 if (*pp = malloc(strlen(DTAB_PATHNAME)+1)) in listdev() 190 if (*pp = malloc(strlen(attrval->attr)+1)) in listdev()
|
H A D | devtab.c | 331 if (rtn = malloc(sizeof (struct attrval))) { in getattrval() 334 if (rtn->attr = malloc(strlen(p)+1)) { in getattrval() 419 if (recbuf = malloc(DTAB_BUFSIZ)) { in getnextrec() 548 if (rtnval = malloc(strlen(path)+1)) in _devtabpath() 556 if (rtnval = malloc(strlen(DTAB_PATH)+1)) in _devtabpath() 693 if (!(ent = malloc(sizeof (struct devtabent)))) { in _getdevtabent() 707 if (ent->attrstr = malloc(strlen(record)+1)) { in _getdevtabent() 729 if (ent->alias = malloc(strlen(p)+1)) { in _getdevtabent() 744 if (ent->cdevice = malloc(strlen(p)+1)) { in _getdevtabent() 759 if (ent->bdevice = malloc(strlen(p)+1)) { in _getdevtabent() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | ldap_service_rights.c | 319 subtree = (char **) malloc(sizeof(char *) * (subtreecount + 1)); 349 seccontacls[0] = (char *)malloc(strlen(security_container[i][0]) + 411 realmdn = (char *)malloc(strlen("cn=") + strlen(realmname) + 516 subtreeacls[0] = (char *) malloc(strlen(kdcrights_subtree[i][0]) + 546 subtreeacls[0] = (char *) malloc(strlen(adminrights_subtree[i][0]) 576 subtreeacls[0] = (char *)malloc(strlen(pwdrights_subtree[i][0]) 667 subtree = (char **) malloc(sizeof(char *) * subtreecount + 1); 695 realmdn = (char *) malloc(strlen("cn=") + strlen(realmname) + 762 realmacls[0]=(char *)malloc(strlen(pwdrights_realmcontainer[i][0]) 801 subtreeacls[0] = (char *) malloc(strlen(kdcrights_subtree[i][0]) [all …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | sm_buf_size8.c | 33 p = malloc(sizeof(*p) + 100); in test() 36 q = malloc(sizeof(*q) + 100); in test() 39 a = malloc(sizeof(*a) + 100); in test() 42 b = malloc(sizeof(*b) + 100); in test()
|
/illumos-gate/usr/src/lib/krb5/dyn/ |
H A D | dyn_create.c | 31 obj = (DynObjectP) malloc(sizeof(DynObjectRecP)); 36 obj->array = (DynPtr) malloc(1); 38 obj->array = (DynPtr) malloc(0); 53 obj1 = (DynObjectP) malloc(sizeof(DynObjectRecP)); 64 obj1->array = (char *) malloc(obj1->el_size * obj1->size);
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelUtil.c | 60 elem = malloc(sizeof (kmh_elem_t)); in kmech_hash_insert() 341 if ((ptr = malloc(big->big_value_len)) == NULL) in get_rsa_public_key() 346 if ((ptr = malloc(big->big_value_len)) == NULL) in get_rsa_public_key() 350 if ((ptr = malloc(sizeof (CK_ULONG))) == NULL) in get_rsa_public_key() 416 if ((ptr = malloc(big->big_value_len)) == NULL) in get_dsa_private_key() 421 if ((ptr = malloc(big->big_value_len)) == NULL) in get_dsa_private_key() 426 if ((ptr = malloc(big->big_value_len)) == NULL) in get_dsa_private_key() 431 if ((ptr = malloc(big->big_value_len)) == NULL) in get_dsa_private_key() 554 tmp.pValue = malloc(tmp.ulValueLen); in get_ec_private_key() 626 tmp.pValue = malloc(tmp.ulValueLen); in get_ec_public_key() [all …]
|
/illumos-gate/usr/src/cmd/krb5/kadmin/ktutil/ |
H A D | ktutil_funcs.c | 147 lp = (krb5_kt_list) malloc(sizeof(*lp)); 152 lp->next = (krb5_kt_list) malloc(sizeof(*lp)); 164 password.data = (char *) malloc(pwsize); 267 entry = (krb5_keytab_entry *)malloc(sizeof (krb5_keytab_entry)); 278 lp = (krb5_kt_list)malloc(sizeof (*lp)); 284 lp->next = (krb5_kt_list)malloc(sizeof (*lp)); 423 entry->key.contents = (krb5_octet *)malloc(sizeof (key)); 430 lp = (krb5_kt_list)malloc(sizeof (*lp)); 436 lp->next = (krb5_kt_list)malloc(sizeof (*lp)); 499 pruned = (krb5_kt_list) malloc(sizeof (*pruned)); [all …]
|
/illumos-gate/usr/src/cmd/listen/ |
H A D | nlsaddr.c | 116 extern char *malloc(), *t_alloc(); 118 extern char *malloc(); 132 if (!(p = malloc(size))) 138 if (!(p = malloc(size))) 144 if (!(p = malloc(size)))
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | SLPUtils.c | 447 if (!(buf = malloc(strlen(pcInbuf) * 3 + 1))) { in SLPEscape() 566 if (!(pe = malloc(sizeof (*pe)))) { in SLPSetProperty() 627 pe = malloc(sizeof (*pe)); in setDefaults() 632 pe = malloc(sizeof (*pe)); in setDefaults() 637 pe = malloc(sizeof (*pe)); in setDefaults() 642 pe = malloc(sizeof (*pe)); in setDefaults() 647 pe = malloc(sizeof (*pe)); in setDefaults() 652 pe = malloc(sizeof (*pe)); in setDefaults() 656 pe = malloc(sizeof (*pe)); in setDefaults() 661 pe = malloc(sizeof (*pe)); in setDefaults() [all …]
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
H A D | combine_keys.c | 118 if ((r1 = (unsigned char *) malloc(keybytes)) == NULL) in krb5int_c_combine_keys() 121 if ((r2 = (unsigned char *) malloc(keybytes)) == NULL) { in krb5int_c_combine_keys() 126 if ((rnd = (unsigned char *) malloc(keybytes)) == NULL) { in krb5int_c_combine_keys() 132 if ((combined = (unsigned char *) malloc(keybytes * 2)) == NULL) { in krb5int_c_combine_keys() 139 if ((output = (unsigned char *) malloc(keylength)) == NULL) { in krb5int_c_combine_keys() 248 outkey->contents = (krb5_octet *) malloc(keylength); in krb5int_c_combine_keys() 317 if ((inblockdata = (unsigned char *) malloc(blocksize)) == NULL) in dr() 320 if ((outblockdata = (unsigned char *) malloc(blocksize)) == NULL) { in dr()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | utf8_conv.c | 145 *ucs2s = (krb5_ucs2 *)malloc((chars + 1) * sizeof(krb5_ucs2)); in krb5int_utf8s_to_ucs2s() 174 *ucs2s = (krb5_ucs2 *)malloc((chars + 1) * sizeof(krb5_ucs2)); in krb5int_utf8cs_to_ucs2s() 203 *ucs2les = (unsigned char *)malloc((chars + 1) * sizeof(krb5_ucs2)); in krb5int_utf8s_to_ucs2les() 233 *ucs2les = (unsigned char *)malloc((chars + 1) * sizeof(krb5_ucs2)); in krb5int_utf8cs_to_ucs2les() 341 *utf8s = (char *)malloc((size_t)len + 1); in krb5int_ucs2s_to_utf8s() 371 *utf8s = (char *)malloc((size_t)len + 1); in krb5int_ucs2les_to_utf8s() 406 *utf8s = (char *)malloc((size_t)len + 1); in krb5int_ucs2cs_to_utf8s() 442 *utf8s = (char *)malloc((size_t)len + 1); in krb5int_ucs2lecs_to_utf8s()
|
/illumos-gate/usr/src/tools/smatch/src/cwchash/ |
H A D | tester.c | 64 k = (struct key *)malloc(sizeof(struct key)); in main() 74 v = (struct value *)malloc(sizeof(struct value)); in main() 84 k = (struct key *)malloc(sizeof(struct key)); in main() 175 k = (struct key *)malloc(sizeof(struct key)); in main() 181 v = (struct value *)malloc(sizeof(struct value)); in main() 196 k = (struct key *)malloc(sizeof(struct key)); in main()
|
/illumos-gate/usr/src/lib/libfru/libfruraw/ |
H A D | fruraw.c | 87 node = (raw_list_t *)malloc(sizeof (raw_list_t)); in make_raw() 214 segs = malloc(sizeof (*segs) * (num_segment)); in add_segs_for_section() 266 sects = malloc(sizeof (*sects) * (num_section)); in frt_get_seg_list() 308 segs = malloc(sizeof (*segs) * (num_seg)); in find_seg_in_sect() 354 sect = malloc(sizeof (*sect) * (num_sect)); in find_segment() 473 tmp_list = malloc(sizeof (segment_list_t)); in frt_for_each_segment() 517 sects = malloc(sizeof (*sects) * (num_sect)); in frt_get_segment_name() 536 segs = malloc(sizeof (*segs) * (num_segment)); in frt_get_segment_name() 552 *name = malloc(SEG_NAME_LEN + 1); in frt_get_segment_name() 661 packets = malloc(sizeof (*packets) * (rc_num)); in frt_for_each_packet() [all …]
|
/illumos-gate/usr/src/lib/krb5/ss/ |
H A D | utils.c | 69 string = malloc(size); 88 symbol = malloc((strlen(name)+6) * sizeof(char)); 103 result = malloc((size_a + size_b + size_c + 2)*sizeof(char)); 117 result = malloc(len+2); 132 new = malloc(len);
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | asn1buf.c | 68 *buf = (asn1buf*)malloc(sizeof(asn1buf)); in asn1buf_create() 214 *s = (asn1_octet*)malloc(len*sizeof(asn1_octet)); in asn1buf_remove_octetstring() 233 *s = (char*)malloc(len*sizeof(char)); in asn1buf_remove_charstring() 264 (*code)->data = (char*)malloc((((*code)->length)+1)*sizeof(char)); in asn12krb5_buf() 285 *s = malloc(sizeof("<NULL>")); in asn1buf_unparse() 289 *s = malloc(sizeof("<EMPTY>")); in asn1buf_unparse() 314 *s = malloc(sizeof("<NULL>")); in asn1buf_hex_unparse() 318 *s = malloc(sizeof("<EMPTY>")); in asn1buf_hex_unparse() 325 *s = malloc(3*length); in asn1buf_hex_unparse() 377 buf->base = malloc((asn1buf_size(buf)+inc) * sizeof(asn1_octet)); in asn1buf_expand()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | bld_pr_ext.c | 58 princ_data = (krb5_data *) malloc(sizeof(krb5_data) * count); in krb5_build_principal_ext() 61 princ_ret = (krb5_principal) malloc(sizeof(krb5_principal_data)); in krb5_build_principal_ext() 68 tmpdata = malloc(rlen+1); in krb5_build_principal_ext() 85 princ_data[i].data = malloc(size+1); in krb5_build_principal_ext()
|
/illumos-gate/usr/src/lib/libmtmalloc/tests/ |
H A D | dirtymem.c | 52 foo = (struct a_struct *)malloc(sizeof (struct_o_death)); in main() 63 leak = malloc(sizeof (struct_o_death)); in main() 67 foo = malloc(sizeof (struct_o_death)); in main()
|
/illumos-gate/usr/src/lib/libgss/ |
H A D | g_acquire_cred_with_pw.c | 52 actual_mechs = (gss_OID_set) malloc(sizeof (gss_OID_set_desc)); 57 malloc(sizeof (gss_OID_desc) * count); 67 malloc(mechs_array[i].length); 154 creds = (gss_union_cred_t)malloc(sizeof (gss_union_cred_desc)); 286 union_cred = malloc(sizeof (gss_union_cred_desc)); 344 malloc(sizeof (gss_OID_desc) * (union_cred->count+1)); 347 malloc(sizeof (gss_cred_id_t) * (union_cred->count+1)); 371 malloc(mech->mech_type.length)) == NULL) 391 new_union_cred = malloc(sizeof (gss_union_cred_desc));
|
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/ |
H A D | pkinit_lib.c | 322 (*in) = malloc(sizeof(krb5_pa_pk_as_req)); in init_krb5_pa_pk_as_req() 334 (*in) = malloc(sizeof(krb5_pa_pk_as_req_draft9)); in init_krb5_pa_pk_as_req_draft9() 348 (*in) = malloc(sizeof(krb5_reply_key_pack)); in init_krb5_reply_key_pack() 359 (*in) = malloc(sizeof(krb5_reply_key_pack_draft9)); in init_krb5_reply_key_pack_draft9() 368 (*in) = malloc(sizeof(krb5_auth_pack)); in init_krb5_auth_pack() 380 (*in) = malloc(sizeof(krb5_auth_pack_draft9)); in init_krb5_auth_pack_draft9() 388 (*in) = malloc(sizeof(krb5_pa_pk_as_rep)); in init_krb5_pa_pk_as_rep() 401 (*in) = malloc(sizeof(krb5_pa_pk_as_rep_draft9)); in init_krb5_pa_pk_as_rep_draft9() 412 (*in) = malloc(sizeof(krb5_typed_data)); in init_krb5_typed_data() 422 (*in) = malloc(sizeof(krb5_subject_pk_info)); in init_krb5_subject_pk_info() [all …]
|
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/ |
H A D | util.h | 40 #define MALLOC(object_type) ((object_type *) malloc(sizeof(object_type))) 45 (dst = malloc((unsigned)strlen(src)+1), (void) strcpy(dst,src)) 48 (dst = (char *) malloc((unsigned)(num) + 1),\
|