Searched refs:malloc (Results 1226 - 1250 of 2509) sorted by relevance

<<41424344454647484950>>

/illumos-gate/usr/src/cmd/avs/rdc/
H A Dsndrsyncd.c169 rdc_info = malloc(size);
369 rdc_set = malloc(size);
380 sync_done = malloc(size);
1182 volumes = malloc(size);
1382 masters = malloc(size);
1392 shadows = malloc(size);
1402 bitmaps = malloc(size);
/illumos-gate/usr/src/cmd/syslogd/
H A Dsyslogd.c271 logerror("malloc failed: " x)
273 logerror("malloc failed - fatal"); \
912 if ((hinfo = malloc(sizeof (*hinfo))) == NULL ||
914 malloc(udp->addr.len)) == NULL) {
1883 filtered = (char *)malloc(filter_len);
2025 buf = (char *)malloc(len + 1);
2078 if ((w = malloc(sizeof (walldev_t))) != NULL) {
2234 if ((h = malloc(sizeof (host_list_t))) == NULL) {
2248 h->hl_hosts = (char **)malloc(sizeof (char *) * (h->hl_cnt));
2258 malloc(sizeo
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/
H A Dcc_file.c482 tmpprinc = (krb5_principal) malloc(sizeof(krb5_principal_data));
550 (*addrs)[i] = (krb5_address *) malloc(sizeof(krb5_address));
646 data->data = (char *) malloc(data->length+1);
692 addr->contents = (krb5_octet *) malloc(addr->length);
828 (*a)[i] = (krb5_authdata *) malloc(sizeof(krb5_authdata));
875 a->contents = (krb5_octet *) malloc(a->length);
1894 data = malloc(sizeof(krb5_fcc_data));
1925 setptr = malloc(sizeof(struct fcc_set));
1942 lid = (krb5_ccache) malloc(sizeof(struct _krb5_ccache));
1983 fcursor = (krb5_fcc_cursor *) malloc(sizeo
[all...]
/illumos-gate/usr/src/lib/libpicltree/
H A Dpicltree.c232 ent = malloc(sizeof (*ent));
375 evt = malloc(sizeof (*evt));
429 n = malloc(sizeof (*n));
443 n = malloc(sizeof (*n));
461 htbl->tbl = malloc(sizeof (hash_elem_t *) * HASH_TBL_SIZE);
1217 pobj = malloc(sizeof (picl_obj_t));
1232 pobj->prop_val = malloc(pinfo->piclinfo.size);
1602 pobj = malloc(sizeof (picl_obj_t));
1639 newrow = malloc(sizeof (picl_obj_t *) * nprops);
1808 pobj = malloc(sizeo
[all...]
/illumos-gate/usr/src/cmd/idmap/idmap/
H A Didmap.c360 positions = (struct pos_sds *) malloc(sizeof (struct pos_sds) +
791 out = (char *)malloc(len);
840 to = (char *)malloc(len);
858 to = (char *)malloc(len);
905 out = (char *)malloc(length + 1);
973 out = (char *)malloc(length + 1);
993 name_mapping_t *nm = (name_mapping_t *)malloc(sizeof (name_mapping_t));
1095 *out = (char *)malloc(maxlen);
1116 out = (print_handle_t *)malloc(sizeof (print_handle_t));
1177 out = malloc(le
[all...]
H A Dnamemaps.c470 buf = (char *)malloc(strlen(prefix) + strlen(dns) + 4 * num_lvl);
544 *name = (char *)malloc(at - fqwn + 1);
671 if ((filter = (char *)malloc(flen)) == NULL) {
803 attrs[0] = (ns_ldap_attr_t *)malloc(sizeof (ns_ldap_attr_t));
910 fullname = malloc(strlen(winname) +
/illumos-gate/usr/src/lib/libfru/libfru/
H A Dlibfru.cc214 cont_lock_t *lock = (cont_lock_t *)malloc(sizeof (cont_lock_t));
373 init_args = (char **)malloc(sizeof (char *) * num_args);
469 list->strs = (char **)malloc(sizeof (*(list->strs)) * raw_list.num);
1033 rc_list.strs = (char **)malloc(num_tags * sizeof (char *));
1665 *data = (void *)malloc(payloadLen);
1687 *found_path = (char *)malloc(
1831 *found_path = (char *)malloc(
2066 definition->enum_table = (fru_enum_t *)malloc(
2160 parents->strs = (char **)malloc(number * sizeof (char *));
/illumos-gate/usr/src/cmd/fs.d/udfs/fstyp/
H A Dud_lib.c30 #include <malloc.h>
215 malloc(h->udfs.lbsize)) == NULL) {
287 if ((buf = (uint8_t *)malloc(UD_VOL_REC_BSZ)) == NULL) {
361 if ((buf = (uint8_t *)malloc(MAXBSIZE)) == NULL) {
465 if ((addr = (uint8_t *)malloc(vds_len)) == NULL) {
658 malloc(lvd_len)) == NULL) {
722 if ((addr = malloc(mp_sz * m->udm_nspm)) ==
781 if ((addr = (uint8_t *)malloc(lvds_len)) == NULL) {
872 if ((addr = (uint8_t *)malloc(fsds_len)) == NULL) {
/illumos-gate/usr/src/cmd/sgs/mcs/common/
H A Dfile.c169 if ((cur_filenm = malloc(len)) == NULL) {
835 new_sym = malloc(no_of_symbols *
908 newshndx = malloc(entcnt * src_shdr.sh_entsize);
977 malloc((dst_shdr.sh_size +
1285 malloc(ROUNDUP(stbuf.st_size))) == NULL) {
1354 malloc(ROUNDUP(mem_header->ar_size))) == NULL) {
1425 * then use the malloc() and read().
1431 malloc(stbuf.st_size * sizeof (char))) == NULL) {
1621 if ((sinfo->mdata = malloc(sizeof (Elf_Data))) == NULL) {
1628 malloc(sinf
[all...]
/illumos-gate/usr/src/cmd/krb5/ldap_util/
H A Dkdb5_ldap_services.c145 host_list[j] = (char*) malloc(sizeof(char) *
1104 tmp_file = (char *)malloc(strlen(file_name) + 4 + 1);
1490 random_pwd = (char *)malloc(data.length + 1);
1675 passwd = (char *)malloc(MAX_SERVICE_PASSWD_LEN + 1);
1685 prompt1 = (char *)malloc(len + 20);
1693 prompt2 = (char *)malloc(len + 30);
1734 encrypted_passwd.value = (unsigned char *)malloc(strlen(service_object) +
1821 tmp_file = (char *) malloc(sizeof(char) * (strlen(file_name) + 4 + 1));
2129 tmp_file = (char *) malloc(sizeof(char) * (strlen(file_name) + 4 + 1));
/illumos-gate/usr/src/lib/passwdutil/
H A Dfiles_attr.c244 pwbuf->pwd = malloc(sizeof (struct passwd));
268 pwbuf->spwd = malloc(sizeof (struct spwd));
285 if ((pwbuf->pwd_scratch = malloc(PWD_SCRATCH_SIZE)) == NULL) {
297 if ((pwbuf->spwd_scratch = malloc(SPW_SCRATCH_SIZE)) == NULL) {
745 pword = malloc(len);
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dasn1.c330 buf = (CK_BYTE *)malloc(len);
477 buf = (CK_BYTE *)malloc(len);
623 buf = (CK_BYTE *)malloc(len);
796 buf = (CK_BYTE *)malloc(len);
948 buf = (CK_BYTE *)malloc(offset);
/illumos-gate/usr/src/lib/fm/libfmd_adm/common/
H A Dfmd_adm.c60 if ((ap = malloc(sizeof (fmd_adm_t))) == NULL)
319 if ((rms = rmp = malloc(sizeof (void *) * rml.rml_len)) == NULL) {
523 if ((fmris = malloc(sizeof (char *) * rrl.rrl_cnt)) == NULL) {
811 if ((uuids = malloc(sizeof (char *) * rcl.rcl_cnt)) == NULL) {
922 if ((serds = malloc(sizeof (char *) * rsl.rsl_cnt)) == NULL) {
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdladm.c117 if ((*handle = malloc(sizeof (struct dladm_handle))) == NULL) {
1012 list = malloc(sizeof (dladm_arg_list_t));
1091 rangep = malloc(sizeof (mac_propval_range_t) +
1227 rangep = malloc(sizeof (mac_propval_range_t) +
1233 sort32 = malloc(nelem * sizeof (uint32_t));
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetadm/
H A Dinetadm.c148 if ((sv_el = malloc(sizeof (scf_val_el_t))) == NULL)
211 if ((fmri = malloc(max_fmri_len + 1)) == NULL)
451 if ((inst_name = malloc(max_name_length + 1)) == NULL)
768 if ((mod = malloc(numprops * sizeof (inetd_prop_t))) == NULL)
911 if ((mod = malloc(numprops * sizeof (inetd_prop_t))) == NULL)
/illumos-gate/usr/src/cmd/rpcbind/
H A Drpcbind.c625 pml = malloc(sizeof (PMAPLIST));
662 pml = malloc(sizeof (PMAPLIST));
673 pml = malloc(sizeof (PMAPLIST));
738 rbl = malloc(sizeof (rpcblist));
1167 logmsg *msg = malloc(sizeof (*msg));
/illumos-gate/usr/src/cmd/sgs/ar/common/
H A Dfile.c351 if ((file->ar_longname = malloc(strlen(mem_header->ar_name) + 1))
358 if ((file->ar_rawname = malloc(strlen(mem_header->ar_rawname) + 1))
778 if ((buf = dst = malloc(tblsize)) == NULL) {
1519 sym_ptr = malloc((SYMCHUNK+1)
1632 tmpname = malloc(prefix_cnt + MSG_STR_MKTEMP_SIZE + 1);
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Dfake_shdr.c351 if ((elt = malloc(sizeof (*elt))) == NULL) {
887 if (((sec->shdr = malloc(sizeof (*sec->shdr))) == NULL) ||
888 ((sec->data = malloc(sizeof (*sec->data))) == NULL)) {
1013 if ((sec->data->d_buf = malloc(sec->size)) == NULL) {
1496 if ((*cache = _cache = malloc((*shnum) * sizeof (Cache))) == NULL) {
/illumos-gate/usr/src/cmd/chmod/
H A Dchmod.c191 if (((tattr = malloc(sizeof (attr_name_t))) == NULL) ||
645 new_acl_args = malloc(sizeof (acl_args_t));
653 if ((*sec_args = malloc(sizeof (sec_args_t))) == NULL) {
686 if ((aclp = (aclent_t *)malloc((sizeof (aclent_t)) * aclcnt))
1328 if ((*sec_args = malloc(sizeof (sec_args_t))) == NULL) {
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsmapid/
H A Dnfsmapid_server.c159 if ((pwd_buf = malloc(pwd_buflen)) == NULL ||
263 if ((pwd_buf = malloc(pwd_buflen)) == NULL || dom_str_len == 0 ||
409 if ((grp_buf = malloc(grp_buflen)) == NULL ||
515 if ((grp_buf = malloc(grp_buflen)) == NULL || dom_str_len == 0 ||
944 *results = malloc(sizeof (refd_door_res_t) + *size);
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dip_fil.c137 # include <sys/malloc.h>
581 ifa = (struct ifaddr *)malloc(sizeof(*ifa));
653 ifneta = (struct ifnet **)malloc(sizeof(ifp) * 2);
674 ifneta[nifs - 1] = (struct ifnet *)malloc(sizeof(*ifp));
691 ifp->if_name = (char *)malloc(s - name + 1);
697 perror("malloc");
/illumos-gate/usr/src/cmd/ldap/common/
H A Dldaptest.c66 result = (char **) malloc( sizeof(char *) );
117 if (( bv->bv_val = (char *)malloc( bv->bv_len )) == NULL ) {
118 perror( "malloc" );
181 bvals[i] = (struct berval *)malloc(
201 result = (LDAPMod **) malloc( sizeof(LDAPMod *) );
206 result[num] = (LDAPMod *) malloc( sizeof(LDAPMod) );
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/
H A Dlogger.c267 name_buf1 = malloc(strlen(le->lfu_fname) + 32);
272 name_buf2 = malloc(strlen(le->lfu_fname) + 32);
596 malloc(log_control.log_nentries * sizeof(struct log_entry));
902 log_control.log_whoami = (char *) malloc(strlen(whoami)+1);
906 log_control.log_hostname = (char *) malloc(MAXHOSTNAMELEN + 1);
/illumos-gate/usr/src/lib/libast/common/comp/
H A Domitted.c333 if (!(t = malloc(n + m + 1)))
425 if (!(v = (char**)malloc((p - (char**)argv + 2) * sizeof(char*))))
485 if (v = (char**)malloc(n * sizeof(char*)))
498 if (!(t = malloc(n + m + 1)))
687 if (!suffix(path) && !fstat(fd, &st) && (exe[fd] || (exe[fd] = (Exe_test_t*)malloc(sizeof(Exe_test_t)))))
/illumos-gate/usr/src/cmd/luxadm/
H A Dqlgcupdate.c417 if ((version_buffer = (struct ifp_fm_version *)malloc(
594 if ((sbus_info = (char *)malloc(file_size)) == NULL) {
791 if ((download_p = (ifp_download_t *)malloc(
799 if ((bin = (uchar_t *)malloc(fcode_size)) == NULL) {
1000 if ((bin = (uchar_t *)malloc(fcode_size)) == NULL) {

Completed in 171 milliseconds

<<41424344454647484950>>