Searched refs:malloc (Results 401 - 425 of 2509) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/cmd/listen/
H A Dnstoa.c106 if ((addr = (struct netbuf *)malloc(sizeof(struct netbuf))) == NULL)
333 if ((str = malloc(SBUFSIZE)) == NULL)
468 if ((dest = (char *)malloc(len)) == NULL) {
469 fprintf(stderr, "xfer: malloc failed\n");
563 if ((cmd = cmdp = (char *)malloc(SBUFSIZE)) == NULL) {
564 fprintf(stderr, "xcmd: malloc failed\n");
568 if ((ocmd = (char *)malloc(SBUFSIZE)) == NULL) {
569 fprintf(stderr, "xcmd: malloc failed\n");
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/os/
H A Dinit_os_ctx.c59 *pname = malloc(size + 1 +
213 name = malloc(strlen(env) + 1);
246 files = malloc(2 * sizeof(char *));
284 files[i] = (char*) malloc(ent_len + 1);
286 /* if malloc fails, free the ones that worked */
319 newfiles = malloc(count * sizeof(*newfiles));
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsftmp.c132 if(!(ff = (File_t*)malloc(sizeof(File_t)+strlen(file))) )
174 if(n == 0 || !(dirs = (char**)malloc((n+1)*sizeof(char*))) )
176 if(!(p = (char*)malloc(strlen(path)+1)) )
219 { if(!(Tmppath = (char**)malloc(2*sizeof(char*))) )
223 if(!(Tmppath[0] = (char*)malloc(strlen(file)+1)) )
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_auth.c210 unicode_password = malloc(unicode_len);
271 buf = (unsigned char *)malloc((data_len + 1) * sizeof (char));
276 data = (smb_wchar_t *)malloc((data_len + 1) * sizeof (smb_wchar_t));
318 hmac_data = malloc(NTLM_CHAL_SZ + clen);
419 ntlmv2_resp = (unsigned char *)malloc(SMBAUTH_HASH_SZ + clnt_blob_len);
/illumos-gate/usr/src/cmd/allocate/
H A Dmkdevalloc.c275 nm = (char *)malloc(SIZE_OF_TMP + 1 + strlen(dep->d_name) + 1);
294 nm = (char *)malloc(sz + 1);
333 nm = (char *)malloc(SIZE_OF_RMT + 1 + strlen(dep->d_name) + 1);
341 nm = (char *)malloc(SIZE_OF_TMP + strlen(dep->d_name) + 1);
482 nm = (char *)malloc(SIZE_OF_TMP + 1 + strlen(dep->d_name) + 1);
501 nm = (char *)malloc(sz + 1);
534 nm = (char *)malloc(SIZE_OF_SOUND + 1 +
542 nm = (char *)malloc(SIZE_OF_SOUND + 1 +
690 nm = (char *)malloc(SIZE_OF_TMP + 1 + strlen(dep->d_name) + 1);
709 nm = (char *)malloc(s
[all...]
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dcertgetsetop.c55 dst->Data = malloc(src->Length);
88 dstext->value.tagAndValue = malloc(sizeof (KMF_X509EXT_TAGandVALUE));
523 pqinfo = malloc(sizeof (KMF_X509EXT_POLICYQUALIFIERINFO));
553 if ((pqinfo->value.Data = malloc(size)) == NULL) {
575 if ((pqinfo->value.Data = malloc(size)) == NULL) {
682 pinfo = malloc(sizeof (KMF_X509EXT_POLICYINFO));
811 access_info = malloc(sizeof (KMF_X509EXT_ACCESSDESC));
852 malloc(size)) == NULL) {
966 if ((url = malloc(size)) == NULL) {
1099 if ((dp = malloc(sizeo
[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))))
203 if (!(t = (struct file_data *) malloc(sizeof(struct file_data))))
208 t->name = malloc(strlen(name)+1);
218 t->h = (struct authlist **) malloc(t->hsize*sizeof(struct authlist *));
278 rep->client = malloc (len);
296 rep->server = malloc (len);
355 if (!(rep = (krb5_donot_replay *) malloc(sizeof(krb5_donot_replay)))) {
450 buf = malloc(len);
686 tmp = (krb5_rcache) malloc(sizeof(*tmp));
/illumos-gate/usr/src/cmd/keyserv/
H A Dchkey_common.c127 if ((*ret_bindDN = (char *)malloc(strlen(bindDN)+1)) == NULL) {
189 if ((*ret_bindPass = (char *)malloc(strlen(bindPassword)+1))
487 mechfilter = (char *)malloc(strlen(mechname) + 3);
505 alist[q] = (char **)malloc(sizeof (char *) * (count + 1));
534 alist[q] = (char **)malloc(sizeof (char *) * 2);
785 filter = (char *)malloc(strlen(id) + 13);
807 filter = (char *)malloc(strlen(id) + 6);
845 pkeyatval = (char *)malloc(strlen(mechname) + strlen(public) + 3);
854 ckeyatval = (char *)malloc(strlen(mechname) + strlen(crypt) + 3);
H A Dchkey.c178 (char *)malloc(HEXKEYBYTES + KEYCHECKSUMSIZE + 1))) {
213 if (!(plist = (char **)malloc(sizeof (char *) * mcount))) {
217 if (!(slist = (char **)malloc(sizeof (char *) * mcount))) {
221 if (!(clist = (char **)malloc(sizeof (char *) * mcount))) {
241 if (!(public = (char *)malloc(hexkeylen))) {
264 if (!(public = (char *)malloc(HEXKEYBYTES + 1))) {
305 if (!(public = malloc(hexkeylen))) {
310 if (!(secret = malloc(hexkeylen))) {
337 if (!(public = malloc(HEXKEYBYTES + 1))) {
341 if (!(secret = malloc(HEXKEYBYTE
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_dummy/mech/
H A Ddmech.c286 ctx = (dummy_gss_ctx_id_t)malloc(sizeof (dummy_gss_ctx_id_rec));
430 ctx = (dummy_gss_ctx_id_t)malloc(sizeof (dummy_gss_ctx_id_rec));
709 output.value = (void *)malloc(output.length);
811 * malloc(sizeof (gss_buffer_desc));
818 malloc(name->buffer->length);
860 malloc(sizeof (dummy_name_desc));
861 name->buffer = (gss_buffer_t)malloc(sizeof (gss_buffer_desc));
863 name->buffer->value = (void *)malloc(input_name_buffer->length);
1005 ctx = (dummy_gss_ctx_id_t)malloc(sizeof (dummy_gss_ctx_id_rec));
1111 malloc(sizeo
[all...]
/illumos-gate/usr/src/lib/krb5/kdb/
H A Dkdb_convert.c147 u->utf8str_t_val = malloc(d.length);
182 = malloc(princ->length * sizeof (kdbe_data_t));
230 d->data = malloc(d->length + 1);
318 malloc(MAXENTRY_SIZE)) == NULL) {
325 if ((attr_types = (kdbe_attr_type_t *)malloc(
458 ULOG_ENTRY(upd, final).av_keydata.av_keydata_val = malloc(ent->n_key_data * sizeof (kdbe_key_t));
470 ULOG_ENTRY_KEYVAL(upd, final, j).k_enctype.k_enctype_val = malloc(ent->key_data[j].key_data_ver * sizeof(int32_t));
476 ULOG_ENTRY_KEYVAL(upd, final, j).k_contents.k_contents_val = malloc(ent->key_data[j].key_data_ver * sizeof(utf8str_t));
485 ULOG_ENTRY_KEYVAL(upd, final, j).k_contents.k_contents_val[cnt].utf8str_t_val = malloc(ent->key_data[j].key_data_length[cnt] * sizeof (char));
537 ULOG_ENTRY(upd, final).av_tldata.av_tldata_val = malloc(en
[all...]
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dpart.c261 buf = malloc(table->sectorsize);
264 tbl = malloc(table->sectorsize * MAXTBLSZ);
337 entry = malloc(sizeof(*entry));
402 buf = malloc(table->sectorsize);
423 entry = malloc(sizeof(*entry));
476 buf = malloc(table->sectorsize);
506 entry = malloc(sizeof(*entry));
555 buf = malloc(table->sectorsize);
588 entry = malloc(sizeof(*entry));
645 buf = malloc(tabl
[all...]
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dscn.c353 m = (scn_list_t *)malloc(sizeof (scn_list_t));
584 p = (scn_portal_t *)malloc(sizeof (scn_portal_t));
803 raw = (scn_raw_t *)malloc(sizeof (scn_raw_t));
815 isnslog(LOG_DEBUG, "make_raw_entity", "malloc failed.");
851 raw = (scn_raw_t *)malloc(sizeof (scn_raw_t));
853 iscsi = (uchar_t *)malloc(ilen);
871 isnslog(LOG_DEBUG, "make_raw_iscsi", "malloc failed.");
899 raw = (scn_raw_t *)malloc(sizeof (scn_raw_t));
900 ip = (in6_addr_t *)malloc(sizeof (in6_addr_t));
923 isnslog(LOG_DEBUG, "make_raw_portal", "malloc faile
[all...]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftASN1.c134 dst->big_value = malloc(dst->big_value_len);
320 * If it is, the octet string is copied into a pre-malloc'd
509 * If it is, the octet string is copied into a pre-malloc'd
683 * If it is, the octet string is copied into a pre-malloc'd
875 * If it is, the octet string is copied into a pre-malloc'd
1023 if ((key_octs.bv_val = malloc(size + 1)) == NULL) {
1053 if ((tmp.big_value = malloc(tmplen)) == NULL) {
1076 if ((tmp.big_value = malloc(tmplen)) == NULL) {
1099 if ((tmp.big_value = malloc(tmplen)) == NULL) {
1122 if ((tmp.big_value = malloc(tmple
[all...]
/illumos-gate/usr/src/lib/libv12n/sparc/
H A Dlibv12n.c159 if ((buf = malloc(md_size)) == NULL)
168 mdp = md_init_intern((uint64_t *)((void *)buf), malloc, v12n_md_free);
213 nodes = malloc(nnodes * sizeof (mde_cookie_t));
282 nodes = malloc(nnodes * sizeof (mde_cookie_t));
420 vdev_nodes = malloc(list_size);
495 plat_nodes = malloc(list_size);
/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp.c78 *dip = malloc(sizeof (ndmp_devinfo_t) * *size);
169 *sinfo = malloc((sizeof (ndmp_session_info_t)) * *size);
247 malloc(sizeof (ndmp_dt_pval_t) * sp->nsi_data.nd_env_len);
265 malloc(sizeof (ndmp_dt_name_t) *
288 malloc(sizeof (ndmp_dt_name_v3_t) *
437 buf = malloc(NDMP_DOOR_SIZE);
/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)
296 if ((binkeybuf = malloc((unsigned)binkeybytes)) == 0) {
365 if ((buf = malloc((unsigned)len)) == 0)
459 if ((text = malloc(tlen)) == NULL) {
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyp_match.c48 #include <malloc.h>
108 ((n->key = malloc(keylen)) == 0) ||
109 ((n->val = malloc(vallen)) == 0)) {
209 if ((*val = malloc((size_t)savesize)) == 0) {
392 if ((*val = malloc((size_t)savesize)) == 0) {
548 if (!retval && ((*val = malloc((size_t)
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_resolve.c84 k = (struct knetconfig *)malloc(sizeof (*k));
92 k->knc_protofmly = malloc(KNC_STRSIZE);
101 k->knc_proto = malloc(KNC_STRSIZE);
140 nametemp = malloc(MAXNETNAMELEN + 1);
366 nb = (struct netbuf *)malloc(sizeof (struct netbuf));
371 nb->buf = (char *)malloc(tbind->addr.maxlen);
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/
H A Dkdb_xdr.c124 if ((content->data = malloc(content->length)) == NULL) {
332 if ((entry->e_data = (krb5_octet *)malloc(entry->e_length))) {
371 malloc(sizeof(krb5_tl_data))) == NULL) {
387 malloc((*tl_data)->tl_data_length)) == NULL) {
398 malloc(sizeof(krb5_key_data) * entry->n_key_data)) == NULL)) {
435 malloc(key_data->key_data_length[j])) == NULL) {
/illumos-gate/usr/src/lib/libast/amd64/include/ast/
H A Dvmalloc.h25 /* Public header file for the virtual malloc package.
134 extern Vmalloc_t* Vmregion; /* malloc region */
186 extern Void_t* malloc _ARG_(( size_t ));
234 #undef malloc macro
243 #define malloc(s) (_VMFL_(Vmregion), _ast_malloc((size_t)(s)) ) macro
255 #define malloc(s) ( _VMFL_(Vmregion), (malloc)((size_t)(s)) )
268 #define malloc(s) ( _VMFL_(Vmregion), _VMNM_(mallo,/,*,*,/,c)\
/illumos-gate/usr/src/lib/libast/common/include/
H A Dvmalloc.h25 /* Public header file for the virtual malloc package.
134 extern Vmalloc_t* Vmregion; /* malloc region */
186 extern Void_t* malloc _ARG_(( size_t ));
234 #undef malloc macro
243 #define malloc(s) (_VMFL_(Vmregion), _ast_malloc((size_t)(s)) ) macro
255 #define malloc(s) ( _VMFL_(Vmregion), (malloc)((size_t)(s)) )
268 #define malloc(s) ( _VMFL_(Vmregion), _VMNM_(mallo,/,*,*,/,c)\
/illumos-gate/usr/src/lib/libast/i386/include/ast/
H A Dvmalloc.h25 /* Public header file for the virtual malloc package.
134 extern Vmalloc_t* Vmregion; /* malloc region */
186 extern Void_t* malloc _ARG_(( size_t ));
234 #undef malloc macro
243 #define malloc(s) (_VMFL_(Vmregion), _ast_malloc((size_t)(s)) ) macro
255 #define malloc(s) ( _VMFL_(Vmregion), (malloc)((size_t)(s)) )
268 #define malloc(s) ( _VMFL_(Vmregion), _VMNM_(mallo,/,*,*,/,c)\
/illumos-gate/usr/src/lib/libast/sparc/include/ast/
H A Dvmalloc.h25 /* Public header file for the virtual malloc package.
134 extern Vmalloc_t* Vmregion; /* malloc region */
186 extern Void_t* malloc _ARG_(( size_t ));
234 #undef malloc macro
243 #define malloc(s) (_VMFL_(Vmregion), _ast_malloc((size_t)(s)) ) macro
255 #define malloc(s) ( _VMFL_(Vmregion), (malloc)((size_t)(s)) )
268 #define malloc(s) ( _VMFL_(Vmregion), _VMNM_(mallo,/,*,*,/,c)\
/illumos-gate/usr/src/lib/libast/sparcv9/include/ast/
H A Dvmalloc.h25 /* Public header file for the virtual malloc package.
134 extern Vmalloc_t* Vmregion; /* malloc region */
186 extern Void_t* malloc _ARG_(( size_t ));
234 #undef malloc macro
243 #define malloc(s) (_VMFL_(Vmregion), _ast_malloc((size_t)(s)) ) macro
255 #define malloc(s) ( _VMFL_(Vmregion), (malloc)((size_t)(s)) )
268 #define malloc(s) ( _VMFL_(Vmregion), _VMNM_(mallo,/,*,*,/,c)\

Completed in 139 milliseconds

<<11121314151617181920>>