Searched refs:malloc (Results 626 - 650 of 2509) sorted by relevance

<<21222324252627282930>>

/illumos-gate/usr/src/cmd/rpcsvc/
H A Drusers.c110 entry = malloc(sizeof (struct entry) * total_entries);
319 entry[curentry].machine = malloc(MACHINELEN + 1);
330 entry[curentry].machine = malloc(MACHINELEN + 1);
339 iconvert->utmp_array_val = malloc(cnt * sizeof (rusers_utmp));
442 entry[curentry].machine = malloc(MACHINELEN + 1);
454 entry[curentry].machine = malloc(MACHINELEN + 1);
462 entry[curentry].users.utmp_array_val = malloc(cnt *
/illumos-gate/usr/src/cmd/addbadsec/
H A Dix_altsctr.c39 #include <malloc.h>
126 ap->ap_tblp = (struct alts_parttbl *)malloc(ap->ap_tbl_secsiz);
129 "Unable to malloc alternate partition table.\n");
137 if ((ap->ap_memmapp = (uchar_t *)malloc(part->p_size)) == NULL) {
139 "Unable to malloc incore alternate partition map.\n");
146 if ((ap->ap_mapp = (uchar_t *)malloc(ap->ap_map_secsiz)) == NULL) {
148 "Unable to malloc alternate partition map.\n");
326 (struct alts_ent *)malloc(ap->ap_ent_secsiz)) == NULL) {
330 "Unable to malloc alternate sector entry table.\n");
397 ap->ap_gbadp = (struct alts_ent *)malloc(cn
[all...]
/illumos-gate/usr/src/cmd/grep_xpg4/
H A Dgrep.c508 if ((inbuf = malloc(bufsiz)) == NULL) {
562 if ((pp = malloc(sizeof (PATTERN))) == NULL) {
578 if ((wordbuf = malloc(wordlen)) == NULL) {
630 if ((cp = malloc(nplen)) == NULL) {
654 malloc(sizeof (wchar_t) * n)) == NULL) {
824 outline = malloc(sizeof (wchar_t) * outbuflen);
834 if ((prntbuf = malloc(prntbuflen + 1)) == NULL) {
/illumos-gate/usr/src/lib/krb5/kdb/
H A Dkdb_log.c343 dbprincstr = malloc((upd->kdb_princ_name.utf8str_t_len
372 entry = (krb5_db_entry *)malloc(sizeof (krb5_db_entry));
448 malloc(sizeof (kdb_incr_result_t));
455 malloc(sizeof (kdb_incr_update_t));
611 if (!(log_ctx = malloc(sizeof (kdb_log_context))))
786 (kdb_incr_update_t *)malloc(
861 if (!(log_ctx = malloc(sizeof (kdb_log_context))))
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_sec.c556 if ((p = malloc(strlen(fspath)+3)) == NULL) {
637 if ((p = malloc(strlen(fspath)+3)) == NULL) {
870 secdata = malloc(sizeof (sec_data_t));
915 dkdata = malloc(sizeof (dh_k4_clntdata_t));
931 dkdata->syncaddr.buf = malloc(syncaddr->len);
949 gdata = malloc(sizeof (gss_clntdata_t));
967 malloc(secp->sc_gss_mech_type->length))) {
/illumos-gate/usr/src/cmd/ptools/pmadvise/
H A Dpmadvise.c495 saddr_t *psaddr = malloc(sizeof (saddr_t));
562 mapnode_t *newmap = malloc(sizeof (mapnode_t));
571 newmap->pmp = malloc(sizeof (prmap_t));
611 newaddr = malloc(sizeof (saddr_t));
631 newaddr = malloc(sizeof (saddr_t));
756 clptr = malloc(sizeof (saddr_t));
768 clptr = malloc(sizeof (saddr_t));
/illumos-gate/usr/src/boot/lib/libstand/
H A Dufs.c157 buf = malloc(fs->fs_bsize);
267 malloc(fs->fs_bsize);
347 fp->f_buf = malloc(fs->fs_bsize);
399 fp->f_buf = malloc(fs->fs_bsize);
506 fp = malloc(sizeof(struct file));
511 fs = malloc(SBLOCKSIZE);
642 buf = malloc(fs->fs_bsize);
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dmultiboot.c145 header_search = malloc(MULTIBOOT_SEARCH);
307 tmp = malloc(len);
334 tmp = malloc(len);
352 tmp = malloc(len);
385 cmdline = malloc(len);
503 cmdline = malloc(len);
585 if((cmdline = malloc(len)) == NULL) {
/illumos-gate/usr/src/cmd/gss/gssd/
H A Dgssd_proc.c160 malloc(sizeof (struct gssd_ctx_slot) * max_contexts);
380 external_name.value = (void *)malloc(external_name.length);
390 name_type->elements = (void *)malloc(name_type->length);
425 malloc(sizeof (gss_OID_desc) * desired_mechs->count);
436 (void *)malloc(desired_mechs->elements[i].
474 (void *)malloc(sizeof (gss_cred_id_t));
491 malloc(sizeof (GSS_OID) * actual_mechs->count);
506 (char *)malloc(actual_mechs->elements[i].
661 (void *)malloc(desired_mech_type->length);
710 malloc(sizeo
[all...]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dtemplate.c314 attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) +
609 new_attr = (CK_ATTRIBUTE *)malloc(len);
655 attr_32 = malloc(sizeof (CK_ATTRIBUTE_32));
719 tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE));
732 a2 = (CK_ATTRIBUTE *)malloc(len);
755 a2 = (CK_ATTRIBUTE *)malloc(len);
1031 token_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) +
1033 priv_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) +
1035 mod_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) +
1037 label_attr = (CK_ATTRIBUTE *)malloc(sizeo
[all...]
/illumos-gate/usr/src/lib/libsasl/plugin/
H A Dplugin_common.c251 *output = utils->malloc(sizeof(buffer_info_t));
293 *rwbuf = utils->malloc(newlen);
340 *out = utils->malloc(len + 1);
473 *password = (sasl_secret_t *) utils->malloc(sizeof(sasl_secret_t) +
631 prompts = utils->malloc(alloc_size);
788 *user = utils->malloc(r - input);
799 *user = utils->malloc(r - input + 1);
903 list = utils->malloc(sizeof (prompt_list));
970 buf = malloc(buf_size);
972 buf = utils->malloc(buf_siz
[all...]
/illumos-gate/usr/src/lib/libcpc/common/
H A Dlibcpc.c99 if ((cpc = malloc(sizeof (cpc_t))) == NULL) {
118 if ((cpc->cpc_evlist = malloc(cpc->cpc_npic * sizeof (char *))) ==
194 if ((set = malloc(sizeof (*set))) == NULL) {
291 if ((req = malloc(sizeof (*req))) == NULL) {
332 if ((req->cr_attr = malloc(nattrs * sizeof (kcpc_attr_t)))
369 if ((buf = malloc(sizeof (*buf))) == NULL)
373 if ((buf->cb_data = malloc(buf->cb_size)) == NULL) {
768 if ((list = malloc(size)) == NULL)
794 if ((attrs = malloc(rp->cr_nattrs *
822 if ((list = malloc(ncounter
[all...]
/illumos-gate/usr/src/cmd/datadm/
H A Ddatadm.c341 *strptr = (char *)malloc(len + 1);
376 *strptr = (char *)malloc(len + 1);
403 version->dv_name = (char *)malloc(i + 1);
630 sp_entry = (datadm_sp_entry_t *)malloc(sizeof (*sp_entry));
734 ia_entry = (datadm_ia_entry_t *)malloc(sizeof (*ia_entry));
753 hca_entry = (datadm_hca_entry_t *)malloc(sizeof (*hca_entry));
809 cmnt_entry = (datadm_cmnt_entry_t *)malloc(sizeof (*cmnt_entry));
947 hca_entry->he_name = (char *)malloc(dlen + 1);
1141 perror("datadm: malloc");
1146 cmnt_entry->cmnt_line = (char *)malloc(cmnt_le
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dstates.c113 params = malloc(maxparam * sizeof (*params));
918 dllt = malloc(client_id_len);
931 dll = malloc(client_id_len);
969 den = malloc(sizeof (*den) + client_id_len);
988 cp = malloc(client_id_len);
1025 dsmp->dsm_cid = malloc(client_id_len);
1037 dsmp->dsm_cid = malloc(client_id_len);
1076 dsmp->dsm_cid = client_id = malloc(dsmp->dsm_cidlen);
1108 dsmp->dsm_cid = malloc(global_duidlen);
1114 dsmp->dsm_cid = malloc(
[all...]
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dgettext_real.c417 pathname = malloc(MAXPATHLEN);
431 pnlstmp = malloc(sizeof (Nlstmp));
468 pnlstmp = malloc(sizeof (Nlstmp));
500 ppaths = malloc(ppaths_len + 1);
528 nnp->domain = malloc(domain_len + 1);
535 nnp->locale = malloc(locale_len + 1);
542 nnp->nlspath = malloc(nlspath_len + 1);
709 if ((bind = malloc(sizeof (Dbinding))) == NULL) {
800 p = malloc(domain_len + 1);
929 p = malloc(sizeo
[all...]
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_crypto_openssl.c388 ctx = (pkinit_plg_crypto_context)malloc(sizeof(*ctx));
430 ctx = (pkinit_identity_crypto_context)malloc(sizeof(*ctx));
477 ctx = (pkinit_req_crypto_context)malloc(sizeof(*ctx));
1037 alg_buf = (unsigned char *)malloc(alg_len);
1046 digest_buf = (unsigned char *)malloc(digest_len);
1052 y = digestInfo_buf = (unsigned char *)malloc(digestInfo_len);
1131 (unsigned char *) malloc((size_t)*signed_data_len)) == NULL)
1483 *authz_data = (unsigned char *)malloc(authz->length);
1616 if (!*out_len || (p = *out = (unsigned char *)malloc(*out_len)) == NULL) {
2095 if ((buf = (unsigned char *) malloc(dh_key_le
[all...]
/illumos-gate/usr/src/lib/libshare/common/
H A Dscfutil.c272 name = malloc(scf_max_name_len);
273 valuestr = malloc(vallen);
348 valuestr = malloc(vallen);
500 name = malloc(scf_max_name_len);
501 valuestr = malloc(vallen);
815 name = malloc(scf_max_name_len);
816 valuestr = malloc(vallen);
885 buff = malloc(scf_max_name_len);
1068 valuestr = malloc(vallen);
1575 propstr = (char *)malloc(strsiz
[all...]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.c844 *prepared_buf = malloc(*prepared_len);
888 *hashed_pin = malloc(hashed_pin_size + 1);
1197 *buf = malloc(BUFSIZ);
1327 decrypted_buf = malloc(decrypted_len);
1350 buf = malloc(encrypted_len);
1517 crypt_salt = malloc(KS_KEY_SALT_SIZE);
1527 hmac_salt = malloc(KS_HMAC_SALT_SIZE);
1608 hashed_pin_salt = malloc(hashed_pin_salt_length + 1);
1687 obj = malloc(sizeof (priobjs_t));
1814 crypt_salt = malloc(KS_KEY_SALT_SIZ
[all...]
/illumos-gate/usr/src/lib/libdladm/common/
H A Dpropfuncs.c146 if ((nlip = malloc(sizeof (prop_db_info_t))) == NULL) {
178 if ((*lvpp = malloc(sizeof (prop_val_t))) == NULL) {
276 propval = malloc(sizeof (char *) * valcnt);
344 lvp = malloc(sizeof (*lvp));
367 lip = malloc(sizeof (*lip));
607 if ((vdp = malloc(sizeof (val_desc_t))) == NULL)
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/fruaccess/
H A Dpiclsmc.c300 store = (uint8_t *)malloc(sizeof (uint8_t) * alloc_size);
310 store = (uint8_t *)malloc(sizeof (uint8_t) * alloc_size);
365 buffer = (uint8_t *)malloc(sizeof (uint8_t) * MANR_MAX_LENGTH);
428 offset = (fruid_offset_t *)malloc(sizeof (fruid_offset_t));
582 datap = (uint8_t *)malloc(sizeof (uint8_t) * (size + 5));
658 datap = (uint8_t *)malloc(sizeof (uint8_t) * (size + 4));
/illumos-gate/usr/src/cmd/egrep/
H A Degrep.y742 if((name = (int *)malloc(MAXLIN*sizeof(int))) == (int *)0)
744 if((left = (int *)malloc(MAXLIN*sizeof(int))) == (int *)0)
746 if((right = (int *)malloc(MAXLIN*sizeof(int))) == (int *)0)
748 if((parent = (int *)malloc(MAXLIN*sizeof(int))) == (int *)0)
750 if((foll = (int *)malloc(MAXLIN*sizeof(int))) == (int *)0)
752 if((tmpstat = (int *)malloc(MAXLIN*sizeof(int))) == (int *)0)
754 if((initstat = (int *)malloc(MAXLIN*sizeof(int))) == (int *)0)
756 if((chars = (char *)malloc(MAXLIN)) == (char *)0)
758 if((lower = (wchar_t *)malloc(MAXLIN*sizeof(wchar_t))) == (wchar_t *)0)
760 if((upper = (wchar_t *)malloc(MAXLI
[all...]
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dsmfi.c62 buf = malloc(len);
200 buf = malloc(len);
264 buf = malloc(len);
502 buf = malloc(len);
604 buf = malloc(len);
709 buf = malloc(len);
/illumos-gate/usr/src/cmd/sqlite/
H A Dshell.c95 ** the text in memory obtained from malloc() and returns a pointer
96 ** to the text. NULL is returned at end of file, or if malloc()
113 zLine = malloc( nLine );
440 z = p->zDestTable = malloc( n+1 );
1051 zSql = malloc( nSql+1 );
1094 ** resulting string is obtained from malloc(). The calling
1127 char *z = malloc( strlen(home_dir)+1 );
1154 zBuf = malloc(strlen(home_dir) + 15);
1348 if( zHome && (zHistory = malloc(strlen(zHome)+20))!=0 ){
/illumos-gate/usr/src/cmd/sysdef/
H A Dsysdef.c508 nlptr->n_name = malloc(strlen(nam) + 1); /* pointer to next string */
548 if ((modpath = malloc(modpathlen + 1)) == NULL) {
549 fprintf(stderr, "sysdef: malloc failed\n");
567 if (((inodes = (ino_t *)malloc(n_dirs * sizeof (ino_t))) == NULL) ||
568 ((dirs = (char **)malloc(n_dirs * sizeof (char *))) == NULL)) {
569 fprintf(stderr, "sysdef: malloc failed\n");
573 if ((tmpf = malloc(strlen(MODULES_TMPFILE) + 1)) == NULL) {
574 fprintf(stderr, "sysdef: malloc failed\n");
617 if ((ls_cmd = malloc(ls_cmd_len + curr_len + 1)) == NULL) {
618 fprintf(stderr, "sysdef: malloc faile
[all...]
/illumos-gate/usr/src/tools/ctf/dwarf/common/
H A Ddwarf_alloc.c278 its use. If not, it malloc's a chunk. The
292 is out of free structs, and cannot malloc
314 /* Size of chunk malloc'ed when no free structs left. */
317 /* Pointer to block malloc'ed. */
371 /* New memory has to malloc'ed since there are no free structs. */
390 mem_block = malloc(mem_block_size);
398 malloc'ed for this struct type. Also initialize the fields
553 won't use it to record the malloc. */
573 ret_mem = malloc(size);
604 that the space was allocated by a direct call to malloc,
[all...]

Completed in 223 milliseconds

<<21222324252627282930>>