Searched refs:malloc (Results 1276 - 1300 of 2509) sorted by relevance

<<51525354555657585960>>

/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starfire/
H A Dcvcd.c249 cvcd_pfd = (struct pollfd *)malloc(3*sizeof (struct pollfd));
251 cvcd_err(LOG_ERR, "malloc:", strerror(errno));
910 topt->opt.buf = (char *)malloc(sizeof (struct opthdr) + sizeof (int));
920 tropt->opt.buf = (char *)malloc(sizeof (struct opthdr) + sizeof (int));
/illumos-gate/usr/src/cmd/man/
H A Dmakewhatis.c112 if ((info = malloc(sizeof (struct page_info))) == NULL)
113 err(1, "malloc");
161 if ((sbuf = malloc(sizeof (struct sbuf))) == NULL)
162 err(1, "malloc");
163 if ((sbuf->content = (char *)malloc(LINE_ALLOC)) == NULL)
164 err(1, "malloc");
/illumos-gate/usr/src/cmd/dlstat/
H A Ddlstat.c905 link_curr = (link_chain_t *)malloc(sizeof (link_chain_t));
967 buf = malloc(sizeof (total_fields_buf_t));
998 buf = malloc(sizeof (ring_fields_buf_t));
1032 buf = malloc(sizeof (ring_fields_buf_t));
1066 buf = malloc(sizeof (rx_ring_fields_buf_t));
1100 buf = malloc(sizeof (tx_ring_fields_buf_t));
1137 buf = malloc(sizeof (lane_fields_buf_t));
1185 buf = malloc(sizeof (lane_fields_buf_t));
1230 buf = malloc(sizeof (rx_lane_fields_buf_t));
1296 buf = malloc(sizeo
[all...]
/illumos-gate/usr/src/cmd/filesync/
H A Dbase.c108 bp = malloc(sizeof (struct base));
231 new = (struct file *) malloc(sizeof (*new));
586 ip->f_acls = (aclent_t *) malloc(ip->f_numacls *
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautod_mount.c163 syslog(LOG_ERR, "malloc of options failed");
171 alp = (action_list *)malloc(
175 "malloc of alp failed");
231 alp = (action_list *)malloc(sizeof (action_list));
233 syslog(LOG_ERR, "malloc of alp failed");
623 new = malloc(len);
/illumos-gate/usr/src/cmd/awk/
H A Dtran.c184 ap = (Array *)malloc(sizeof (Array));
257 p = (Cell *)malloc(sizeof (Cell));
448 p = (uchar *)malloc(strlen((char *)s)+1);
/illumos-gate/usr/src/cmd/cmd-crypto/digest/
H A Ddigest.c466 pSlotList = malloc(slotcount * sizeof (CK_SLOT_ID));
469 cryptoerror(LOG_STDERR, gettext("malloc: %s\n"),
696 if ((resultbuf = malloc(resultlen)) == NULL) {
698 cryptoerror(LOG_STDERR, gettext("malloc: %s\n"),
706 if ((resultstr = malloc(resultstrlen)) == NULL) {
708 cryptoerror(LOG_STDERR, gettext("malloc: %s\n"),
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfslog_config.c168 if (p = (nfsl_config_t *)malloc(sizeof (*p)))
377 if ((config = (nfsl_config_t *)malloc(sizeof (*config))) == NULL) {
536 tmp_new = malloc(strlen(prependdir) + strlen(new) + 2);
/illumos-gate/usr/src/cmd/fs.d/ufs/quotacheck/
H A Dquotacheck.c131 if ((listbuf = (char **)malloc(sizeof (char *) * CHUNK)) == NULL) {
204 *listp = malloc(strlen(vfsbuf.vfs_special) + 1);
345 ap = (struct active *)malloc(sizeof (struct active));
437 fprintf(stderr, "malloc failed\n");
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipfs.c494 is = (ipstate_save_t *)malloc(sizeof(*is));
496 fprintf(stderr, "malloc failed\n");
610 in = (nat_save_t *)malloc(ipn.ipn_dsize);
741 ipnp = malloc(ng.ng_sz);
746 "malloc for %d bytes failed\n", ng.ng_sz);
/illumos-gate/usr/src/cmd/svc/lsvcrun/
H A Dlsvcrun.c512 svc_strbuf = malloc(CT_PARAM_MAX_SIZE);
589 newenv = malloc(sizeof (*newenv) * (i + 1));
627 newenv = malloc(sizeof (*newenv) * (i + 1));
/illumos-gate/usr/src/cmd/krb5/slave/
H A Dkprop.c583 if ((data_ok_fn = (char *) malloc(strlen(data_fn)+strlen(ok)+1))
585 com_err(progname, ENOMEM, gettext("while trying to malloc data_ok_fn"));
802 error.text.data = malloc((unsigned int) error.text.length);
822 if ((file_last_prop = (char *)malloc(strlen(file_name) +
/illumos-gate/usr/src/ucbcmd/ls/
H A Dls.c245 dp = (struct subdirs *)malloc(sizeof (struct subdirs));
443 if ((aclp = (aclent_t *)malloc(
604 char *cp = malloc(strlen(str) + 1);
/illumos-gate/usr/src/ucbcmd/sed/
H A Dsed0.c73 extern char *malloc();
506 if ((fname[nfiles] = malloc((unsigned)i)) == NULL) {
535 if ((fname[nfiles] = malloc((unsigned)i)) == NULL) {
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_cache.c271 if ((addr = malloc(sizeof (addr_entry_t))) != NULL) {
285 if ((entry = malloc(sizeof (struct name_entry))) == NULL) {
737 dup = (struct name_entry *)malloc(size);
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dserver_acl.c222 acle = (aent_t *) malloc(sizeof(aent_t));
251 acle->ae_name = (char *) malloc(strlen(acle_principal)+1);
327 || !(*rpp = (restriction_t *) malloc(sizeof(restriction_t)))) {
403 * malloc or timeofday errors
/illumos-gate/usr/src/lib/libinetutil/common/
H A Dofmt.c107 sp->s_fields = malloc(sizeof (char *) * maxfields);
140 sp->s_fields = malloc(sizeof (char *) * maxfields);
252 os->os_badfields = malloc(sp->s_nfields *
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_util.c566 domain = malloc(SYS_NMLN);
573 domain = malloc(ssize);
717 (version = malloc(sizeof (smbex_version_t))) == NULL) {
/illumos-gate/usr/src/cmd/format/
H A Dmenu_fdisk.c500 mbr = malloc(cur_blksz);
731 mbr = malloc(cur_blksz);
857 mbr = malloc(cur_blksz);
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm_hyper.c84 if ((newstr = malloc(len)) == NULL) {
118 if ((newpath = malloc(len)) == NULL) {
173 if ((*token = malloc(len)) == NULL) {
1141 if ((kernel = malloc(len + zfslen)) == NULL) {
/illumos-gate/usr/src/common/ficl/emu/
H A Dloader_emu.c147 * backslash: Return malloc'd copy of str with all standard "backslash
361 buf = (char *)malloc(PARSE_BUFSIZE);
445 *argv = (char **)malloc((sizeof (char *) * ac + 1));
484 if ((buf = malloc(bufsize)) == NULL)
533 line = malloc(strlen(name) + len + 1);
552 line = malloc(strlen(name) + len + 2);
696 ptr = malloc(sizeof (struct bootblk_command)); \
754 fsi = malloc(sizeof (ficlSystemInformation));
1037 cp = malloc(hlong);
1538 buf = malloc(strle
[all...]
/illumos-gate/usr/src/boot/lib/libstand/
H A Dcd9660.c286 buf = malloc(buf_size = ISO_DEFAULT_BLOCK_SIZE);
376 fp = malloc(sizeof(struct file));
443 fp->f_buf = malloc(ISO_DEFAULT_BLOCK_SIZE);
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsvcctl_svc.c218 if ((ctx = malloc(sizeof (svcctl_context_t))) == NULL)
222 if ((mgr_ctx = malloc(sizeof (svcctl_manager_context_t))) == NULL) {
285 if ((ctx = malloc(sizeof (svcctl_context_t))) == NULL) {
291 if ((svc_ctx = malloc(sizeof (svcctl_service_context_t))) == NULL) {
298 svc_ctx->sc_mgrid = malloc(sizeof (ndr_hdid_t));
299 svcname = malloc(max_name_sz);
/illumos-gate/usr/src/lib/libinetsvc/common/
H A Dinetsvc.c343 if ((ret->netbuf.buf = malloc(ret->netbuf.maxlen)) == NULL) {
432 if ((ret->dev_name = malloc(sz)) == NULL)
846 if ((p_inf->proto = malloc(strlen(proto) + 5)) == NULL) {
1136 if ((ret = malloc(sizeof (inetd_properties))) == NULL) {
1328 * The space for the digest string is obtained using malloc(3C) and should be
1351 if ((digest = malloc(len)) == NULL) {
1387 * The space for the hash string is obtained using malloc(3C) and should be
1748 if ((netids = malloc(2 * sizeof (char *))) == NULL)
/illumos-gate/usr/src/lib/libmtmalloc/common/
H A Dmtmalloc.c52 * The MT hot malloc implementation contained herein is designed to be
53 * plug-compatible with the libc version of malloc. It is not intended
104 * get to the aligned address from malloc'ed address is the minimum size
107 * from memaligned address, we can get to the malloc'ed address. Otherwise,
110 * malloc'ed address.
234 malloc(size_t bytes) function
258 return (malloc(bytes));
270 * p = malloc(64);
283 new = malloc(bytes);
348 ptr = malloc(siz
[all...]

Completed in 288 milliseconds

<<51525354555657585960>>