Searched refs:malloc (Results 1201 - 1225 of 2509) sorted by relevance

<<41424344454647484950>>

/illumos-gate/usr/src/lib/libfru/libfrupicltree/
H A Dfrupicltree.c128 tmp_buf = malloc((sizeof (*tmp_buf) * buf_size));
175 char *tmp = malloc(buf_size);
724 buffer = malloc(buf_size);
773 rc_tags = malloc((sizeof (*rc_tags) * total_tags));
886 buffer = malloc(buf_len);
1053 if ((propval = malloc(propinfo.piclinfo.size)) == NULL)
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drpcb_clnt.c211 ad_cache = malloc(sizeof (struct address_cache));
219 ad_cache->ac_taddr = malloc(sizeof (struct netbuf));
226 ad_cache->ac_taddr->buf = malloc(taddr->len);
353 addr_to_delete.buf = malloc(addr->len);
1004 if (((address = malloc(sizeof (struct netbuf))) == NULL) ||
1005 ((address->buf = malloc(remote.len)) == NULL)) {
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c292 value = malloc(value_len);
370 templ->pValue = malloc(templ->ulValueLen);
547 newlist = malloc(sizeof (OBJLIST));
556 tail->next = malloc(sizeof (OBJLIST));
825 Modulus.Data = malloc(Modulus.Length);
830 Exponent.Data = malloc(Exponent.Length);
906 Prime.Data = malloc(Prime.Length);
912 Subprime.Data = malloc(Subprime.Length);
919 Base.Data = malloc(Base.Length);
927 Value.Data = malloc(Valu
[all...]
/illumos-gate/usr/src/cmd/vi/misc/
H A Dctags.c417 if ((np = malloc(sizeof (NODE))) == NULL) {
422 head = np = (NODE *) malloc(sizeof (NODE));
1227 dp = (char *)malloc(len+1);
1448 if ((mav = malloc(mav_sz)) == (char **)NULL) {
1449 perror("Can't malloc argument space");
1490 if ((mav[mac] = malloc((size_t)CPFLAG)) ==
1492 perror("Can't malloc argument space");
1500 if ((mav[mac] = malloc(sz + 1)) == (char *)NULL) {
1501 perror("Can't malloc argument space");
/illumos-gate/usr/src/cmd/ps/
H A Ducbps.c202 tmp = malloc(len);
276 if ((p = malloc(TSZ+1)) == NULL) {
344 psent = malloc(entsize * sizeof (struct psent));
378 if (twidth > PRARGSZ && (psargs = malloc(twidth)) == NULL) {
504 if ((psent[nent].psinfo = malloc(sizeof (psinfo_t)))
513 if ((psent[nent].psargs = malloc(strlen(psargs)+1))
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dttymux_rcm.c129 char *b = malloc(sz + 1);
225 rsrc_t *rsrc = malloc(sizeof (rsrc_t));
238 _msg(0, ("TTYMUX: malloc failure for resource %s.\n",
355 link = malloc(sizeof (link_t));
1009 if ((*reason = (char *)malloc(len)) != NULL) {
1033 if ((*reason = (char *)malloc(len)) != NULL) {
1366 ru = malloc(sz);
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_rpc_adm.c66 if ((rmi = malloc(sizeof (struct fmd_rpc_modinfo))) == NULL) {
156 rms->rms_buf.rms_buf_val = malloc(sizeof (fmd_modstat_t));
200 } else if ((rms->rms_buf.rms_buf_val = malloc(size)) != NULL) {
602 p = malloc(rvp->rsl_len);
974 rvp->rxl_buf.rxl_buf_val = malloc(sizeof (int32_t) *
1002 rms->rms_buf.rms_buf_val = malloc(sizeof (fmd_xprt_stat_t));
/illumos-gate/usr/src/cmd/sgs/lex/common/
H A Dnceucform99 malloc(yytextsz *
104 malloc(yytextsz *
111 malloc(yytextsz *
/illumos-gate/usr/src/cmd/awk_xpg4/
H A Dawk1.c1246 if ((cp = malloc(n)) == NULL)
1308 if ((w = (wchar_t *)malloc(n * sizeof (wchar_t))) == NULL)
1326 if ((mb = (char *)malloc(n)) == NULL) {
1497 if ((rcp = malloc(sizeof (struct regcache))) == NULL)
1583 if ((mbsub = malloc(nsub * sizeof (regmatch_t))) == NULL)
1650 *dstp = dst = (wchar_t *)malloc(len * sizeof (wchar_t));
/illumos-gate/usr/src/cmd/captoinfo/
H A Dcaptoinfo.c1498 boolval[0] = (char *)malloc(i * sizeof (char));
1499 boolval[1] = (char *)malloc(i * sizeof (char));
1505 numval[0] = (short *)malloc(i * sizeof (short));
1506 numval[1] = (short *)malloc(i * sizeof (short));
1512 strval[0] = (char **)malloc(i * sizeof (char *));
1513 strval[1] = (char **)malloc(i * sizeof (char *));
/illumos-gate/usr/src/cmd/infocmp/
H A Dinfocmp.c150 (void) fprintf(stderr, "%s: malloc is out of space!\n", progname);
180 ibool = (struct boolstruct *) malloc((unsigned) numbools *
182 num = (struct numstruct *) malloc((unsigned) numnums *
184 str = (struct strstruct *) malloc((unsigned) numstrs *
189 used = (char *) malloc((unsigned) (argc - firstoptind) *
536 savettytype = malloc(length);
538 (void) fprintf(stderr, "%s: malloc is out "
912 terminfo = (char *) malloc(termsize * sizeof (char));
/illumos-gate/usr/src/tools/codereview/
H A Dlwlp.c316 boldstring = malloc((size_t)(boldlength + 1));
334 graystring = malloc((size_t)(graylength + 1));
340 headerstring = malloc((size_t)(i + 1));
347 itlcstring = malloc((size_t)(itlclength + 1));
408 bitcstring = malloc((size_t)(bitclength + 1));
433 page_map = malloc((size_t)(MAXPAGES * sizeof (long *)));
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dlogger.c267 name_buf1 = malloc(strlen(le->lfu_fname) + 32);
272 name_buf2 = malloc(strlen(le->lfu_fname) + 32);
597 malloc(log_control.log_nentries * sizeof(struct log_entry));
900 log_control.log_whoami = (char *) malloc(strlen(whoami)+1);
904 log_control.log_hostname = (char *) malloc(MAXHOSTNAMELEN + 1);
1315 log_control.log_entries = malloc(2 * sizeof(struct log_entry));
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_logon.c190 pgrps = malloc(sizeof (smb_posix_grps_t));
199 pgrps = malloc(sizeof (smb_posix_grps_t));
208 gids = (gid_t *)malloc(ngroups_max * sizeof (gid_t));
228 pgrps = (smb_posix_grps_t *)malloc(SMB_POSIX_GRPS_SIZE(num));
584 token->tkn_ssnkey.val = malloc(SMBAUTH_SESSION_KEY_SZ);
886 if ((tkn_grps.i_ids = malloc(sizeof (smb_id_t))) == NULL)
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dgeneralop.c318 p = (KMF_PLUGIN *)malloc(sizeof (KMF_PLUGIN));
373 handle->plugins = (KMF_PLUGIN_LIST *)malloc(
384 n->next = (KMF_PLUGIN_LIST *)malloc(sizeof (KMF_PLUGIN_LIST));
443 handle = (KMF_HANDLE *)malloc(sizeof (KMF_HANDLE));
503 handle->mapstate = malloc(sizeof (KMF_MAPPER_STATE));
689 if ((buf = (unsigned char *) malloc(s.st_size)) == NULL) {
822 if ((bp = (char *)malloc(string_length))) {
1043 buf = malloc(len);
1626 oid->Data = malloc(oid->Length);
1710 derdata->Data = malloc(le
[all...]
/illumos-gate/usr/src/lib/librestart/common/
H A Dlibrestart.c43 #include <malloc.h>
474 if (e == NULL && (le = malloc(sizeof (mc_error_t))) == NULL)
542 char *chan_name = malloc(MAX_CHNAME_LEN);
670 h->reh_delegate_subscriber_id = malloc(MAX_SUBID_LEN);
671 h->reh_master_subscriber_id = malloc(MAX_SUBID_LEN);
2032 * ENOMEM - malloc() failed
2049 mcp->pwbuf = malloc(mcp->pwbufsz);
2125 ci->pwbuf = malloc(ci->pwbufsz);
2185 buffer = malloc(buflen);
2240 buf = malloc(bufs
[all...]
/illumos-gate/usr/src/lib/libbsm/common/
H A Ddevalloc.c99 if ((fbuf = (char *)malloc(fsize)) == NULL) {
217 if ((*fbuf = malloc(fsize)) == NULL) {
366 if ((sep = (strentry_t *)malloc(sizeof (strentry_t))) == NULL)
462 if ((sep = (strentry_t *)malloc(sizeof (strentry_t))) == NULL)
507 if ((sep = (strentry_t *)malloc(sizeof (strentry_t))) == NULL)
1068 if ((tokp = (char *)malloc(strlen(devinfo->devopts) +1)) != NULL) {
1115 if ((tokp = (char *)malloc(strlen(devinfo->devopts) + 1))
1383 if ((nbuf = (char *)malloc(nsize + 1)) == NULL)
1805 if ((nentry = (deventry_t *)malloc(sizeof (deventry_t))) ==
1843 if (kval = (char *)malloc(nle
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/frudata/
H A Dfru_data.c285 cont_tbl = malloc(sizeof (container_tbl_t));
292 cont_tbl->hash_obj = malloc(sizeof (hash_obj_t[TABLE_SIZE]));
326 cont_node = malloc(sizeof (container_node_t));
332 hash_obj = malloc(sizeof (hash_obj_t));
360 sec_node = malloc(sizeof (section_node_t));
366 hash_obj = malloc(sizeof (hash_obj_t));
397 seg_node = malloc(sizeof (segment_node_t));
403 hash_obj = malloc(sizeof (hash_obj_t));
436 pkt_node = malloc(sizeof (packet_node_t));
442 hash_obj = malloc(sizeo
[all...]
/illumos-gate/usr/src/cmd/fm/fmadm/common/
H A Dfaulty.c299 hostp = malloc(sizeof (host_id_list_t));
491 nlp = malloc(sizeof (*nlp));
511 status_rec_p = (status_record_t *)malloc(sizeof (status_record_t));
542 np = malloc(sizeof (sr_list_t));
655 np = malloc(sizeof (resource_list_t));
851 uurec_p = (uurec_t *)malloc(sizeof (uurec_t));
876 malloc(sizeof (ari_list_t));
901 padding = malloc(lsz + 1);
1082 padding = malloc(l + 1);
1696 tp = (uurec_select_t *)malloc(sizeo
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslog_trans.c31 #include <malloc.h>
134 if ((pnewnb = (struct netbuf *)malloc(sizeof (*pnewnb))) == NULL)
136 if ((pnewnb->buf = malloc(pnb->len)) == NULL) {
369 if ((transrec = malloc(sizeof (*transrec))) == NULL) {
400 (struct transentry *)malloc(sizeof (struct transentry));
402 (struct transentry *)malloc(sizeof (struct transentry));
404 (struct transentry *)malloc(sizeof (struct transentry));
406 (struct transentry *)malloc(sizeof (struct transentry));
1058 newte->pathname = (char *)malloc(strlen(path1) + strlen(path2) + 3);
1059 /* check for NULL malloc */
[all...]
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/
H A Dcfga_sata.c279 linkpath = malloc(PATH_MAX);
280 buf = malloc(PATH_MAX);
281 real_path = malloc(PATH_MAX);
286 dep = (struct dirent *)malloc(deplen);
1288 dep = (struct dirent *)malloc(deplen);
1467 (cfga_list_data_t *)malloc(sizeof (**ap_id_list))) == NULL) {
2047 if ((*descrp = malloc(*sizep)) == NULL) {
2048 (void) printf("do_control_ioctl: malloc failed\n");
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dio.c389 filemap = (struct fdsave*)malloc(filemapsize*sizeof(struct fdsave));
395 shp->fdstatus = (unsigned char*)malloc((unsigned)n);
397 shp->fdptrs = (int**)malloc(n*sizeof(int*));
399 shp->sftable = (Sfio_t**)malloc(n*sizeof(Sfio_t*));
408 shp->outbuff = (char*)malloc(IOBSIZE+4);
409 shp->errbuff = (char*)malloc(IOBSIZE/4);
494 if(!(bp = (char *)malloc(IOBSIZE+1)))
2117 if(!(disp = (struct subfile*)malloc(sizeof(struct subfile)+IOBSIZE+1)))
/illumos-gate/usr/src/cmd/zlogin/
H A Dzlogin.c1077 if ((new_argv = malloc(sizeof (char *) * n)) == NULL)
1127 if ((new_argv = malloc(sizeof (char *) * n)) == NULL)
1133 if ((new_argv = malloc(sizeof (char *) * n)) == NULL)
1150 if ((new_argv = malloc(sizeof (char *) * n)) == NULL)
1172 if ((str = malloc(sz)) == NULL)
1201 if ((new_env = malloc(sizeof (char *) * size)) == NULL)
1283 if ((new_env = malloc(sizeof (char *) * size)) == NULL)
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rshd.c1125 homedir = (char *)malloc(homedir_len);
1126 shell = (char *)malloc(shell_len);
1127 username = (char *)malloc(username_len);
1129 perror("malloc");
1139 tz = malloc(tz_len);
1162 buffer = (char *)malloc(length);
1195 buf = (char *)malloc(length);
1379 perror("malloc");
1531 char *chksumbuf = (char *)malloc(chksumsize);
/illumos-gate/usr/src/cmd/fm/fmdump/common/
H A Dfmdump.c255 struct timeval *tvp = malloc(sizeof (struct timeval));
431 if ((value_regex = malloc(sizeof (regex_t))) == NULL)
445 if ((argt = malloc(sizeof (fmd_log_filter_nvarg_t))) == NULL)
493 newp = malloc(sizeof (struct loglink));
495 str = malloc(len);
1064 if ((logpath = malloc(PATH_MAX)) == NULL)
1303 if ((dest = malloc(PATH_MAX)) == NULL)

Completed in 2239 milliseconds

<<41424344454647484950>>