Home
last modified time | relevance | path

Searched refs:MALLOC (Results 1 – 25 of 80) sorted by relevance

1234

/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/
H A Doptions.c292 MALLOC(A);
301 MALLOC(c);
313 MALLOC(d);
319 MALLOC(D);
326 MALLOC(e);
333 MALLOC(f);
339 MALLOC(P);
345 MALLOC(F);
371 MALLOC(i);
402 MALLOC(m);
[all …]
/illumos-gate/usr/src/uts/common/gssapi/
H A Dgss_import_name.c63 union_name = (gss_union_name_t) MALLOC(sizeof (gss_union_name_desc)); in gss_import_name()
82 (gss_buffer_t) MALLOC(sizeof (gss_buffer_desc)); in gss_import_name()
91 (void *) MALLOC(input_name_buffer->length); in gss_import_name()
105 union_name->name_type = (gss_OID) MALLOC(sizeof (gss_OID_desc)); in gss_import_name()
113 MALLOC(input_name_type->length); in gss_import_name()
H A Dgssd_clnt_stubs.c161 MALLOC(sizeof (GSS_OID) * desired_mechs->count);
167 (char *)MALLOC(desired_mechs->elements[i].length);
239 (void *) MALLOC((*actual_mechs)->elements[i].length);
767 (void *)MALLOC(output_token->length); in kgss_init_sec_context_wrapped()
787 (gss_OID) MALLOC(sizeof (gss_OID_desc)); in kgss_init_sec_context_wrapped()
791 (void *)MALLOC((*actual_mech_type)->length); in kgss_init_sec_context_wrapped()
1073 (gss_OID)MALLOC(sizeof (gss_OID_desc)); in kgss_accept_sec_context_wrapped()
1077 (void *)MALLOC((*mech_type)->length); in kgss_accept_sec_context_wrapped()
1447 (void *) MALLOC(output_token->length);
2086 (void *) MALLOC(status_string->length);
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dvmalloc67 #define MALLOC(n) if(user)return&heap[0];op=hp;hp+=(n+sizeof(HT)-1)/sizeof(HT);return(void*)op;
74 extern void* malloc(unsigned int n) { MALLOC(n); }
75 extern void* _malloc(unsigned int n) { MALLOC(n); }
76 extern void* __malloc(unsigned int n) { MALLOC(n); }
77 extern void* __libc_malloc(unsigned int n) { MALLOC(n); }
83 extern void* malloc(n) unsigned int n; { MALLOC(n); }
84 extern void* _malloc(n) unsigned int n; { MALLOC(n); }
85 extern void* __malloc(n) unsigned int n; { MALLOC(n); }
86 extern void* __libc_malloc(n) unsigned int n; { MALLOC(n); }
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dplatform.c463 propv = MALLOC(sz); in add_prop_val()
670 Lastcfg->begin = MALLOC(cfglen); in platform_restore_config()
737 Lastcfg = MALLOC(sizeof (struct cfgdata)); in platform_config_snapshot()
910 files[nfiles] = MALLOC(totlen); in platform_get_files()
940 eftgendir = MALLOC(MAXPATHLEN); in platform_get_files_stddirs()
941 eftmachdir = MALLOC(MAXPATHLEN); in platform_get_files_stddirs()
942 eftplatdir = MALLOC(MAXPATHLEN); in platform_get_files_stddirs()
1287 (*envp)[i] = MALLOC(elen); in generate_envp()
1928 retvals = MALLOC(sizeof (struct evalue)); in platform_payloadprop_values()
1938 retvals = MALLOC(sizeof (struct evalue)); in platform_payloadprop_values()
[all …]
H A Dipath.c178 ret = MALLOC(sizeof (*ret) * 2); in ipath_dummy()
202 ret = MALLOC(sizeof (*ret) * (i + 1)); in ipath_for_usednames()
249 ret = MALLOC(sizeof (*ret) * (count + 1)); in ipath()
313 cp = ret = MALLOC(len); in ipath2str()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dcopy_princ.c47 tempprinc = (krb5_principal)MALLOC(sizeof(krb5_principal_data)); in krb5_copy_principal()
55 tempprinc->data = MALLOC(nelems * sizeof(krb5_data)); in krb5_copy_principal()
72 MALLOC(len + 1)) == 0)) { in krb5_copy_principal()
94 tempprinc->realm.data = MALLOC(tempprinc->realm.length + 1); in krb5_copy_principal()
H A Dcopy_cksum.c43 if (!(tempto = (krb5_checksum *)MALLOC(sizeof(*tempto)))) in krb5_copy_checksum()
48 (krb5_octet *)MALLOC(tempto->length))) { in krb5_copy_checksum()
H A Dparse.c155 principal = (krb5_principal)MALLOC(sizeof(krb5_principal_data)); in k5_parse_name()
159 principal->data = (krb5_data *)MALLOC(sizeof(krb5_data) * components); in k5_parse_name()
256 tmpdata = MALLOC(realmsize + 1); in k5_parse_name()
269 MALLOC(krb5_princ_component(context, principal, i)->length + 1); in k5_parse_name()
H A Dcopy_key.c97 if (!(new_key = (krb5_keyblock *) MALLOC(sizeof(krb5_keyblock))))
100 if (!(new_key->contents = (krb5_octet *)MALLOC(from->length))) {
H A Dunparse.c56 char *newp = MALLOC(new_size); in krb5int_realloc()
243 *name = MALLOC(totalsize); in k5_unparse_name()
247 *name = MALLOC(totalsize); in k5_unparse_name()
H A Dser_ctx.c359 context = (krb5_context) MALLOC(sizeof(struct _krb5_context)); in krb5_context_internalize()
369 context->default_realm = (char *) MALLOC((size_t) ibuf+1); in krb5_context_internalize()
388 context->in_tkt_ktypes = (krb5_enctype *) MALLOC(sizeof(krb5_enctype) * in krb5_context_internalize()
408 context->tgs_ktypes = (krb5_enctype *) MALLOC(sizeof(krb5_enctype) * in krb5_context_internalize()
601 MALLOC(sizeof(struct _krb5_os_context))) && in krb5_oscontext_internalize()
H A Dser_adata.c160 (authdata = (krb5_authdata *) MALLOC(sizeof(krb5_authdata)))) { in krb5_authdata_internalize()
174 MALLOC((size_t) (ibuf)); in krb5_authdata_internalize()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/
H A Dderive.c76 key->dk_list = MALLOC(sizeof(krb5_dk_node)); in add_derived_key()
87 dknode->next = MALLOC(sizeof(krb5_dk_node)); in add_derived_key()
107 krb5_keyblock *key = MALLOC(sizeof(krb5_keyblock)); in krb5_create_derived_keyblock()
116 key->contents = (uchar_t *)MALLOC(key->length); in krb5_create_derived_keyblock()
281 if ((inblockdata = (unsigned char *) MALLOC(blocksize)) == NULL)
284 if ((outblockdata = (unsigned char *) MALLOC(blocksize)) == NULL) {
289 if ((rawkey = (unsigned char *) MALLOC(keybytes)) == NULL) {
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/arcfour/
H A Dk5_arcfour.c100 d1.data=MALLOC(d1.length);
115 d2.data=MALLOC(d2.length);
132 d3.data=MALLOC(d3.length);
144 salt.data=MALLOC(salt.length);
157 plaintext.data=MALLOC(plaintext.length);
301 d1.data=MALLOC(d1.length);
316 d2.data=MALLOC(d2.length);
333 d3.data=MALLOC(d3.length);
345 salt.data=MALLOC(salt.length);
358 plaintext.data=MALLOC(plaintext.length);
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dk5sealv3.c69 tbuf = MALLOC(rc); in rotate_left()
164 plain.data = MALLOC(plain.length); in gss_krb5int_make_seal_token_v3()
177 outbuf = MALLOC(bufsize); in gss_krb5int_make_seal_token_v3()
233 plain.data = MALLOC(message->length + 16); in gss_krb5int_make_seal_token_v3()
243 outbuf = MALLOC(bufsize); in gss_krb5int_make_seal_token_v3()
456 plain.data = MALLOC(plain.length); in gss_krb5int_unseal_token_v3()
476 message_buffer->value = MALLOC(message_buffer->length); in gss_krb5int_unseal_token_v3()
520 message_buffer->value = MALLOC(message_buffer->length); in gss_krb5int_unseal_token_v3()
550 plain.data = MALLOC(plain.length); in gss_krb5int_unseal_token_v3()
H A Dutil_crypt.c143 ivd.data = MALLOC(ivd.length);
190 ivd.data = MALLOC(ivd.length);
232 usage_key.contents = MALLOC(usage_key.length); in kg_arcfour_docrypt()
245 seq_enc_key.contents = MALLOC(seq_enc_key.length); in kg_arcfour_docrypt()
/illumos-gate/usr/src/cmd/gss/gssd/
H A Dgssd_clnt_stubs.c37 #define MALLOC(n) kmem_alloc((n), KM_SLEEP) macro
58 #define MALLOC(n) malloc(n) macro
142 MALLOC(desired_mechs->elements[i].length);
741 MALLOC(sizeof (gss_OID_desc));
745 MALLOC((*actual_mech_type)->length);
991 (gss_OID) MALLOC(sizeof (gss_OID_desc));
995 (void *) MALLOC((*mech_type)->length);
1733 (void *)MALLOC(status_string->length);
1794 MALLOC ((*mech_set)->elements[i].length);
1935 MALLOC((*mechanisms)->elements[i].length);
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dstable.c80 Stable = MALLOC(Stablesz * sizeof (*Stable)); in stable_init()
125 n = MALLOC(CHUNK_SIZE); in stable_newchunk()
129 Stablechunks = MALLOC(sizeof (struct chunklst)); in stable_newchunk()
H A Dalloc.h47 #define MALLOC(nbytes) alloc_malloc(nbytes, __FILE__, __LINE__) macro
54 #define MALLOC(nbytes) alloc_malloc(nbytes, "???", __LINE__) macro
/illumos-gate/usr/src/common/smbclnt/
H A Dsmbfs_ntacl.c68 #define MALLOC(size) kmem_alloc(size, KM_SLEEP) macro
71 #define MALLOC(size) malloc(size) macro
117 if ((sid = MALLOC(sidsz)) == NULL) in md_get_sid()
221 if ((ace = MALLOC(alloc_size)) == NULL) in md_get_ace()
350 if ((acl = MALLOC(aclsz)) == NULL) in md_get_acl()
446 if ((sd = MALLOC(sizeof (*sd))) == NULL) in md_get_ntsd()
1071 zacep0 = MALLOC(zacl_size); in smbfs_acl_sd2zfs()
1209 sid = MALLOC(size); in smbfs_str2sid()
1579 if ((sd = MALLOC(sizeof (*sd))) == NULL) { in smbfs_acl_zfs2sd()
1609 if ((acl = MALLOC(aclsz)) == NULL) { in smbfs_acl_zfs2sd()
[all …]
/illumos-gate/usr/src/cmd/logadm/
H A Dfn.c80 struct fn *fnp = MALLOC(sizeof (struct fn)); in fn_new()
92 fnp->fn_buf = MALLOC(buflen); in fn_new()
99 fnp->fn_buf = MALLOC(FN_MIN); in fn_new()
230 newbuf = MALLOC(buflen); in fn_putc()
348 struct fn_list *fnlp = MALLOC(sizeof (struct fn_list)); in fn_list_new()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dhmac.c153 if ((xorkey = (unsigned char *) MALLOC(blocksize)) == NULL) in krb5_hmac()
155 if ((ihash = (unsigned char *) MALLOC(hashsize)) == NULL) { in krb5_hmac()
159 if ((hashin = (krb5_data *)MALLOC(sizeof(krb5_data)*(icount+1))) == NULL) { in krb5_hmac()
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/
H A Drevnetgroup.c211 new = MALLOC(groupentrynode); in newentry()
215 new->groups = MALLOC(stringnode); in newentry()
239 prev->next = MALLOC(stringnode); in appendgroup()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/old/
H A Dold_decrypt.c67 if ((output.data = (char *) MALLOC(output.length)) == NULL) { in krb5_old_decrypt()
84 cn = MALLOC(blocksize); in krb5_old_decrypt()

1234