Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 2487) sorted by relevance

12345678910>>...100

/illumos-gate/usr/src/man/man3malloc/
H A DMakefile22 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 Dsystem-library.man3malloc.inc18 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 Dkey.c325 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/cmd/print/printmgr/com/sun/admin/pm/server/
H A DNS.c344 addr = (ns_bsd_addr_t *)malloc(sizeof (*addr)); in _updateoldyp()
471 cred = (ns_cred_t *)malloc(sizeof (*cred)); in _updateldap()
492 printer->nsdata = malloc(sizeof (NS_LDAPDATA)); in _updateldap()
552 item = (char *)malloc(strlen("bsdaddr") + in _updateldap()
557 item = (char *)malloc(strlen("bsdaddr") + in _updateldap()
578 item = (char *)malloc(strlen("description") + in _updateldap()
612 item = (char *)malloc(strlen("use") + in _updateldap()
648 item = (char *)malloc(strlen("description") + in _updateldap()
667 printer->nsdata = malloc(sizeof (NS_LDAPDATA)); in _updateldap()
722 item = (char *)malloc(strlen("use") + in _updateldap()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dvmalloc14 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 Ddgrpent.c228 if (recbuf = malloc(DGRP_BUFSIZ)) { in getnextrec()
354 if (rtnval = malloc(strlen(path)+1)) in _dgrptabpath()
362 if (rtnval = malloc(strlen(DGRP_PATH)+1)) in _dgrptabpath()
443 if (!(ent = malloc(sizeof (struct dgrptabent)))) { in _getdgrptabent()
461 if (ent->dataspace = malloc(strlen(record)+1)) { in _getdgrptabent()
484 if (!(ent->name = malloc(strlen(p)+1))) { in _getdgrptabent()
500 if (!(q = malloc(sizeof (struct member)))) { in _getdgrptabent()
506 if (!(q->name = malloc(strlen(p)+1))) { in _getdgrptabent()
519 if (!(r = malloc(sizeof (struct member)))) { in _getdgrptabent()
529 if (!(r->name = malloc(strlen(p)+1))) { in _getdgrptabent()
H A Dlistdev.c164 if (list = malloc(n*sizeof (char *))) { in listdev()
167 if (*pp = malloc(strlen(DTAB_ALIAS)+1)) in listdev()
172 if (*pp = malloc(strlen(DTAB_BDEVICE)+1)) in listdev()
178 if (*pp = malloc(strlen(DTAB_CDEVICE)+1)) in listdev()
184 if (*pp = malloc(strlen(DTAB_PATHNAME)+1)) in listdev()
191 if (*pp = malloc(strlen(attrval->attr)+1)) in listdev()
H A Ddevtab.c333 if (rtn = malloc(sizeof (struct attrval))) { in getattrval()
336 if (rtn->attr = malloc(strlen(p)+1)) { in getattrval()
421 if (recbuf = malloc(DTAB_BUFSIZ)) { in getnextrec()
550 if (rtnval = malloc(strlen(path)+1)) in _devtabpath()
558 if (rtnval = malloc(strlen(DTAB_PATH)+1)) in _devtabpath()
695 if (!(ent = malloc(sizeof (struct devtabent)))) { in _getdevtabent()
709 if (ent->attrstr = malloc(strlen(record)+1)) { in _getdevtabent()
731 if (ent->alias = malloc(strlen(p)+1)) { in _getdevtabent()
746 if (ent->cdevice = malloc(strlen(p)+1)) { in _getdevtabent()
761 if (ent->bdevice = malloc(strlen(p)+1)) { in _getdevtabent()
[all …]
/illumos-gate/usr/src/tools/stabs/
H A Dstabs.c224 tdp = malloc(sizeof (*tdp)); in parseline()
288 new = malloc(len); in name()
362 tdp = malloc(sizeof (*tdp)); in tagdecl()
376 *rtdp = malloc(sizeof (**rtdp)); in tagdecl()
431 ntdp = malloc(sizeof (*ntdp)); in tdefdecl()
447 *rtdp = malloc(sizeof (**rtdp)); in tdefdecl()
455 *rtdp = malloc(sizeof (**rtdp)); in tdefdecl()
465 *rtdp = malloc(sizeof (**rtdp)); in tdefdecl()
475 *rtdp = malloc(sizeof (**rtdp)); in tdefdecl()
544 tdp = malloc(sizeof (*tdp)); in intrinsic()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_service_rights.c321 subtree = (char **) malloc(sizeof(char *) * (subtreecount + 1));
351 seccontacls[0] = (char *)malloc(strlen(security_container[i][0]) +
413 realmdn = (char *)malloc(strlen("cn=") + strlen(realmname) +
518 subtreeacls[0] = (char *) malloc(strlen(kdcrights_subtree[i][0]) +
548 subtreeacls[0] = (char *) malloc(strlen(adminrights_subtree[i][0])
578 subtreeacls[0] = (char *)malloc(strlen(pwdrights_subtree[i][0])
669 subtree = (char **) malloc(sizeof(char *) * subtreecount + 1);
697 realmdn = (char *) malloc(strlen("cn=") + strlen(realmname) +
764 realmacls[0]=(char *)malloc(strlen(pwdrights_realmcontainer[i][0])
803 subtreeacls[0] = (char *) malloc(strlen(kdcrights_subtree[i][0])
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dsm_buf_size8.c33 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 Ddyn_create.c33 obj = (DynObjectP) malloc(sizeof(DynObjectRecP));
38 obj->array = (DynPtr) malloc(1);
40 obj->array = (DynPtr) malloc(0);
55 obj1 = (DynObjectP) malloc(sizeof(DynObjectRecP));
66 obj1->array = (char *) malloc(obj1->el_size * obj1->size);
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelUtil.c60 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/listen/
H A Dnlsaddr.c118 extern char *malloc(), *t_alloc();
120 extern char *malloc();
134 if (!(p = malloc(size)))
140 if (!(p = malloc(size)))
146 if (!(p = malloc(size)))
/illumos-gate/usr/src/cmd/krb5/kadmin/ktutil/
H A Dktutil_funcs.c150 lp = (krb5_kt_list) malloc(sizeof(*lp));
155 lp->next = (krb5_kt_list) malloc(sizeof(*lp));
167 password.data = (char *) malloc(pwsize);
270 entry = (krb5_keytab_entry *)malloc(sizeof (krb5_keytab_entry));
281 lp = (krb5_kt_list)malloc(sizeof (*lp));
287 lp->next = (krb5_kt_list)malloc(sizeof (*lp));
426 entry->key.contents = (krb5_octet *)malloc(sizeof (key));
433 lp = (krb5_kt_list)malloc(sizeof (*lp));
439 lp->next = (krb5_kt_list)malloc(sizeof (*lp));
502 pruned = (krb5_kt_list) malloc(sizeof (*pruned));
[all …]
/illumos-gate/usr/src/lib/libslp/clib/
H A DSLPUtils.c447 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 Dcombine_keys.c118 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 Dutf8_conv.c145 *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 Dtester.c64 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 Dfruraw.c87 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 Dutils.c71 string = malloc(size);
90 symbol = malloc((strlen(name)+6) * sizeof(char));
105 result = malloc((size_a + size_b + size_c + 2)*sizeof(char));
119 result = malloc(len+2);
134 new = malloc(len);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1buf.c68 *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/libmtmalloc/tests/
H A Ddirtymem.c54 foo = (struct a_struct *)malloc(sizeof (struct_o_death)); in main()
65 leak = malloc(sizeof (struct_o_death)); in main()
69 foo = malloc(sizeof (struct_o_death)); in main()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dbld_pr_ext.c58 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/cmd/ypcmd/revnetgroup/
H A Dutil.h40 #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),\

12345678910>>...100