/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | auto_subr.c | 109 zids = malloc(nzents * sizeof (zoneid_t)); 222 dir = (struct autodir *)malloc(sizeof (*dir)); 741 * try to allocate memory using malloc, if malloc fails, then flush the 752 if ((p = malloc(nbytes)) == NULL) { 768 p = malloc(nbytes); 951 buf = malloc(bufsize);
|
H A D | autod_parse.c | 285 if ((me = (struct mapent *)malloc(sizeof (*me))) == NULL) 371 if ((fsw = (char *)malloc(len)) == NULL) 377 if ((fswq = (char *)malloc(len)) == NULL) 1040 if ((me = (struct mapent *)malloc(sizeof (*me))) 1049 malloc(sizeof (struct mapfs))) == NULL) 1189 if (((*map_mntopts) = ((char *)malloc(len))) == NULL) { 1428 mfs = (struct mapfs *)malloc(sizeof (*mfs)); 1533 mfs = (struct mapfs *)malloc(sizeof (struct mapfs)); 1616 if ((*newnode = (hiernode *)malloc(sizeof (hiernode))) == NULL) { 1805 ms = (struct mapent *)malloc(sizeo [all...] |
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | a.out.c | 225 if ((file = malloc(len)) == NULL) 347 if ((rs = malloc(sizeof (struct rtc_symb))) == NULL) 349 if ((rs->rtc_sp = malloc(sizeof (struct nlist))) == NULL) 355 if ((rs->rtc_sp->n_un.n_name = malloc(strlen(name) + 1)) == NULL) 746 if ((maps = malloc((num + 1) * sizeof (prmap_t))) == NULL)
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | init_ctx.c | 160 slotlist = (CK_SLOT_ID_PTR)malloc(slotcount * sizeof(CK_SLOT_ID)); 162 KRB5_LOG0(KRB5_ERR, "malloc failed for slotcount."); 597 if ((new_ktypes = (krb5_enctype *)malloc(sizeof(krb5_enctype) * i))) 623 (krb5_enctype *)malloc(sizeof(krb5_enctype) * 666 (krb5_enctype *)malloc(sizeof(krb5_enctype) * (count + 1))) == 735 if ((new_ktypes = (krb5_enctype *)malloc(sizeof(krb5_enctype) * i)))
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_authsvc.c | 321 ctx = malloc(sizeof (*ctx)); 327 ctx->ctx_irawbuf = malloc(ctx->ctx_irawlen); 329 ctx->ctx_orawbuf = malloc(ctx->ctx_orawlen); 334 ctx->ctx_ibodybuf = malloc(ctx->ctx_ibodylen); 336 ctx->ctx_obodybuf = malloc(ctx->ctx_obodylen);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsd/ |
H A D | nfsd.c | 310 dss_pathnames = (char **)malloc(sz); 313 "dss paths malloc failed\n", 535 protobp0 = protobp = (struct protob *)malloc(sizeof (struct protob)); 541 protobp->next = (struct protob *)malloc(sizeof (struct protob)); 782 tmppath = (char *)malloc(MAXPATHLEN); 784 syslog(LOG_ERR, "tmppath malloc failed. Exiting"); 871 tmp_pathnames = (char **)malloc(sz); 873 fprintf(stderr, "tmp_pathnames malloc "
|
/illumos-gate/usr/src/lib/libdhcputil/common/ |
H A D | dhcp_inittab.c | 617 result = malloc(hlen + length); 1064 result = malloc(n_entries + 1); 1086 if ((result = malloc(4 * length + 1)) == NULL) { 1160 if ((result = malloc(n_entries)) == NULL) { 1179 if ((result = malloc(n_entries)) == NULL) { 1198 if ((result = malloc(n_entries)) == NULL) { 1208 if ((result = malloc(n_entries)) == NULL) { 1237 result = malloc(n_entries * (sizeof ("0xNN") + 1)); 1263 result = malloc(n_entries * (ie->ds_type == DSYM_IP ? 1304 result = malloc(n_entrie [all...] |
/illumos-gate/usr/src/cmd/sgs/yacc/common/ |
H A D | y2.c | 190 tokname = (wchar_t *)malloc(sizeof (wchar_t) * toksize); 191 tokset = (TOKSYMB *)malloc(sizeof (TOKSYMB) * ntoksz); 192 toklev = (int *)malloc(sizeof (int) * ntoksz); 193 nontrst = (NTSYMB *)malloc(sizeof (NTSYMB) * nnontersz); 194 mem0 = (int *)malloc(sizeof (int) * new_memsize); 195 prdptr = (int **)malloc(sizeof (int *) * (nprodsz+2)); 196 levprd = (int *)malloc(sizeof (int) * (nprodsz+2)); 241 cp = (char *)malloc(strlen(optarg)+ 596 (void) fprintf(ftable, "#include <malloc.h>\n"); 871 malloc(sizeo [all...] |
/illumos-gate/usr/src/lib/libsqlite/tool/ |
H A D | lemon.c | 34 extern void *malloc(); 339 freelist = (struct action *)malloc( sizeof(struct action)*amt ); 437 acttab *p = malloc( sizeof(*p) ); 454 fprintf(stderr,"malloc failed\n"); 496 fprintf(stderr,"malloc failed\n"); 1046 freelist = (struct config *)malloc( sizeof(struct config)*amt ); 2027 rp = (struct rule *)malloc( sizeof(struct rule) + 2309 filebuf = (char *)malloc( filesize+1 ); 2434 plink_freelist = (struct plink *)malloc( sizeof(struct plink)*amt ); 2493 ** name comes from malloc() an [all...] |
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | setkey.c | 188 kp = (struct keylenlist *)malloc(sizeof (*kp)); 190 debug(KEYSERV_INFO, ("appendkeylist : malloc failed")); 226 ap = (struct algtypelist *)malloc(sizeof (*ap)); 228 debug(KEYSERV_INFO, ("appendalgtype : malloc failed")); 274 debug(KEYSERV_DEBUG, ("getkeybuf3 malloc %d", k)); 275 buf = (keybuf3 *) malloc(sizeof (*buf)); 277 debug(KEYSERV_DEBUG, ("getkeybuf3 malloc failed")); 278 syslog(LOG_ERR, "file %s line %d: malloc failed", 287 buf->keybuf3_val = (char *)malloc(k); 289 debug(KEYSERV_DEBUG, ("getkeybuf3 malloc faile [all...] |
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | ldap_misc.c | 62 result = malloc(1 + limit); 527 subtarr = (char **) malloc(sizeof(char *) * (subtreecount + 1 /*realm dn*/ + 1 /*containerref*/ + 1)); 558 newsubtree = (char **) malloc(sizeof(char *) * (ncount + 1)); 725 /* intptr = malloc(sublen); */ 726 intptr = malloc(sizeof(krb5_int32)); 733 longptr = malloc(sublen); 752 DN = malloc (sublen + 1); 781 DNarr[i] = malloc (sublen + 1); 1471 (*mods)[i]->mod_values = malloc (sizeof(char *) * (j+1)); 1515 (*mods)[i]->mod_bvalues = malloc (sizeo [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipseckey.c | 874 retval = malloc(alloclen); 877 Bail("malloc(parsekey)"); 939 sens = malloc(len); 941 Bail("malloc parsed label"); 1718 assoc = malloc(sizeof (*assoc)); 1720 Bail("malloc(assoc)"); 1755 sadb_pair = malloc(sizeof (*sadb_pair)); 1757 Bail("malloc(assoc)"); 1965 src = malloc(alloclen); 1967 Bail("malloc(sr [all...] |
/illumos-gate/usr/src/cmd/krb5/kadmin/dbutil/ |
H A D | dump.c | 421 if ((file_ok = (char *)malloc(strlen(file_name) + strlen(ok) + 1)) 1729 if ((pwchg = (krb5_tl_data *) malloc(sizeof(krb5_tl_data)))) { 1732 (krb5_octet *) malloc(sizeof(krb5_timestamp)))) { 1826 if ((name = (char *) malloc((size_t) (name_len + 1))) && 1827 (mod_name = (char *) malloc((size_t) (mod_name_len + 1))) && 1830 (krb5_octet *) malloc((size_t) (key_len + 1)))) && 1833 (krb5_octet *) malloc((size_t) (alt_key_len + 1)))) && 1836 (krb5_octet *) malloc((size_t) (salt_len + 1)))) && 1839 (krb5_octet *) malloc((size_t) (alt_salt_len + 1)))) 1872 shortcopy1 = (krb5_octet *) malloc(shortle [all...] |
/illumos-gate/usr/src/cmd/krb5/ldap_util/ |
H A D | kdb5_ldap_realm.c | 343 rparams = (krb5_ldap_realm_params *)malloc( 427 rparams->kdcservers = (char **)malloc( 442 rparams->adminservers = (char **)malloc( 457 rparams->passwdservers = (char **)malloc( 676 ldap_context->lrparams->mkey.contents = (krb5_octet *) malloc 1144 rparams->kdcservers = (char **)malloc( 1229 rparams->kdcservers = (char **)malloc(sizeof(char *) * (list_entries+1)); 1267 rparams->adminservers = (char **)malloc( 1353 rparams->adminservers = (char **)malloc(sizeof(char *) * (list_entries+1)); 1391 rparams->passwdservers = (char **)malloc( [all...] |
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | sess_mgr.c | 348 new_session = (SESSION *)malloc(sizeof (SESSION)); 1033 context = (CK_BYTE *)malloc(ctx->context_len); 1041 mech_param = (CK_BYTE *)malloc( 1076 context = (CK_BYTE *)malloc(ctx->context_len); 1084 mech_param = (CK_BYTE *)malloc( 1118 context = (CK_BYTE *)malloc(ctx->context_len); 1126 mech_param = (CK_BYTE *)malloc(
|
/illumos-gate/usr/src/cmd/ptools/plgrp/ |
H A D | plgrp.c | 335 children = malloc(nchildren * sizeof (lgrp_id_t)); 562 lgrps_strong = malloc(nelements * sizeof (lgrp_id_t)); 563 lgrps_weak = malloc(nelements * sizeof (lgrp_id_t)); 564 lgrps_none = malloc(nelements * sizeof (lgrp_id_t)); 1003 init_affs = malloc(NLGRPS * sizeof (lgrp_affinity_t)); 1004 cur_affs = malloc(NLGRPS * sizeof (lgrp_affinity_t)); 1005 lgrps_changed = malloc(NLGRPS * sizeof (lgrp_id_t));
|
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | nldaputils.c | 174 *realfilter = (char *)malloc(len); 391 q->filter = malloc(flen); 396 q->udata = malloc(ulen); 478 q->filter = malloc(len); 486 q->udata = malloc(len); 551 q->filter = malloc(len); 561 q->udata = malloc(len);
|
/illumos-gate/usr/src/cmd/lms/heci/ |
H A D | PTHICommand.cpp | 61 *readBuffer = (UINT8 *)malloc(sizeof(UINT8) * inBuffSize); 438 policyName.Buffer = (CHAR *)malloc(policyName.Length * sizeof(CHAR)); 772 remoteAccessStatus.MpsHostname.Buffer = (CHAR *)malloc(remoteAccessStatus.MpsHostname.Length * sizeof(CHAR)); 966 command = (unsigned char *)malloc(command_size); 1012 command = (unsigned char *)malloc(command_size); 1136 hashEntry.Name.Buffer = (CHAR *)malloc(hashEntry.Name.Length * sizeof(CHAR)); 1202 dnsSuffix.Buffer = (CHAR *)malloc(dnsSuffix.Length * sizeof(CHAR));
|
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventd/ |
H A D | syseventd.c | 293 root_dir = malloc(strlen(dir) + 1); 429 eventbuf[i] = malloc(LOGEVENT_BUFSIZE); 844 newq = (struct event_dispatchq *)malloc( 851 d_pkg = (struct event_dispatch_pkg *)malloc( 1037 malloc(sizeof (struct ev_completion)); 1110 dispatchq = (struct event_dispatchq *)malloc( 1264 mod = malloc(sizeof (*mod));
|
/illumos-gate/usr/src/cmd/trapstat/sun4/ |
H A D | trapstat.c | 231 if ((g_selected = malloc(sizeof (int8_t) * g_max_cpus)) == NULL) 236 g_pset_cpus = malloc(sizeof (processorid_t) * g_max_cpus); 245 if ((g_pgsize = malloc(sizeof (size_t) * g_pgsizes)) == NULL) 251 if ((g_pgnames = malloc(sizeof (char *) * g_pgsizes)) == NULL) 258 if ((g_pgnames[i] = malloc(TSTAT_PAGESIZE_STRLEN)) == NULL) 271 if ((g_data[0] = malloc(g_datasize * g_max_cpus)) == NULL) 274 if ((g_data[1] = malloc(g_datasize * g_max_cpus)) == NULL)
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | ext2fs.c | 347 fp = malloc(sizeof(struct file)); 354 fs = (struct ext2fs *)malloc(sizeof(*fs)); 397 fp->f_bg = malloc(len); 505 buf = malloc(fs->fs_bsize); 570 buf = malloc(fs->fs_bsize); 667 malloc(fs->fs_bsize); 720 fp->f_buf = malloc(fs->fs_bsize);
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | module.c | 636 md = malloc(sizeof(struct file_metadata) - sizeof(md->md_data) + size); 691 result = malloc(pathlen + namelen + extlen + 2); 869 mp = malloc(sizeof(struct kernel_module)); 917 * Allocate a new file; must be used instead of malloc() 925 if ((fp = malloc(sizeof(struct preloaded_file))) != NULL) { 955 cp = malloc(strlen(mdp->d_path) + strlen(fname) + 2); 989 mdp->d_hints = malloc(size); 1042 mdp = malloc(sizeof(*mdp) + cplen + 1);
|
/illumos-gate/usr/src/lib/print/libprint/common/ |
H A D | nss_ldap.c | 560 /* malloc memory for the DN and then construct it */ 572 if ((dn = malloc(size)) != NULL) 587 if ((dn = malloc(size)) != NULL) 657 if ((filter = malloc(size)) != NULL) 663 if ((baseDN = malloc(size)) != NULL) 800 if ((filter = malloc(size)) != NULL) 1205 (*attrs)[i] = (LDAPMod *) malloc(sizeof (LDAPMod)); 1211 malloc(2 * sizeof (char *)); 1345 (*attrs)[i] = (LDAPMod *) malloc(sizeof (LDAPMod)); 1353 malloc( [all...] |
/illumos-gate/usr/src/lib/fm/libfmd_msg/common/ |
H A D | fmd_msg.c | 288 if ((h = malloc(sizeof (fmd_msg_hdl_t))) == NULL) 324 if ((h->fmh_binding = malloc(len)) == NULL) 443 wchar_t *w = malloc(n * sizeof (wchar_t)); 462 b->fmb_data = malloc(sizeof (wchar_t) * FMD_MSGBUF_SZ); 487 if ((s = malloc(b->fmb_used * MB_CUR_MAX)) == NULL) { 510 wchar_t *data = malloc(sizeof (wchar_t) * size); 1093 expr = malloc(elen + MB_CUR_MAX + 1); 1212 expr = malloc(elen + MB_CUR_MAX + 1); 1345 if ((buf = malloc(len + 1)) == NULL) {
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | localaddr.c | 393 nw = malloc (sizeof (struct linux_ipv6_addr_list)); 558 P.buf = malloc (P.buf_size); 730 P.buf = malloc (P.buf_size); 871 buf = malloc (current_buf_size); 1152 data = malloc (length); 1155 a = malloc (sizeof (krb5_address)); 1517 paddr = (krb5_address **)malloc(sizeof(krb5_address *) * (count+1)); 1527 paddr[i] = (krb5_address *)malloc(sizeof(krb5_address)); 1536 paddr[i]->contents = (unsigned char *)malloc(paddr[i]->length);
|