Searched refs:malloc (Results 601 - 625 of 2509) sorted by relevance

<<21222324252627282930>>

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_file.c178 d = malloc(len);
210 prf = malloc(sizeof(struct _prf_file_t));
234 expanded_filename = malloc(len);
417 new_file = malloc(strlen(outfile) + 5);
420 old_file = malloc(strlen(outfile) + 5);
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_targets.c194 if (!(query = malloc(strlen(scopes) -
313 if (!(st = malloc(sizeof (*st)))) {
317 if (!(dn = malloc(sizeof (*dn)))) {
394 if (!(st = malloc(sizeof (*st)))) {
420 if (!(te = malloc(sizeof (*te)))) {
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dconfig_parsing.c78 pentlist = malloc(sizeof (uentrylist_t));
374 if ((pmech = malloc(sizeof (umechlist_t))) != NULL) {
472 if ((puent2 = malloc(sizeof (uentry_t))) == NULL) {
558 buf1 = malloc(SLOT_DESCRIPTION_SIZE);
567 buf2 = malloc(TOKEN_LABEL_SIZE);
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dauth_des.c139 auth = malloc(sizeof (AUTH));
144 ad = malloc(sizeof (struct ad_private));
160 ad->ad_fullname = malloc(ad->ad_fullnamelen + 1);
162 ad->ad_servername = malloc(ad->ad_servernamelen + 1);
169 ad->ad_timehost = malloc(strlen(timehost) + 1);
/illumos-gate/usr/src/lib/libpkg/common/
H A Dncgrpw.c54 #define ERR_MALLOC "%s: malloc(%d) failed for %s.\n"
87 if ((itemp = (Item *) malloc(sizeof (*itemp))) ==
92 } else if ((itemp->key = (char *)malloc(len)) == NULL) {
96 } else if ((itemp->data = malloc(struct_size)) == NULL) {
452 memp = malloc(sizeof (char **)* (nent+1));
602 if ((buf = (char *)malloc(bufsz)) == NULL) {
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dgetpwaent.c38 #include <malloc.h>
507 ls = (struct list *) malloc(sizeof(struct list));
508 buf = malloc((unsigned) strlen(name) + 1);
533 sv = (struct passwd_adjunct *) malloc(sizeof(struct passwd_adjunct));
535 sv->pwa_passwd = malloc((unsigned) strlen(pwadj->pwa_passwd) + 1);
/illumos-gate/usr/src/lib/libgss/
H A Dg_glue.c409 if ((name_buf->value = (void*)malloc(name_buf->length)) ==
557 union_name = (gss_union_name_t) malloc (sizeof(gss_union_name_desc));
577 (gss_buffer_t) malloc(sizeof(gss_buffer_desc));
688 aBuf = (gss_buffer_t)malloc(sizeof (gss_buffer_desc));
697 if (!(aBuf->value = (void*)malloc(len))) {
/illumos-gate/usr/src/cmd/ypcmd/mknetid/
H A Dmknetid.c57 extern char *malloc();
418 s = (struct string_list *)malloc(sizeof (struct string_list));
419 s->str = malloc((unsigned)strlen(name) + 1);
442 g = (struct group_list *)malloc(sizeof (struct group_list));
443 g->user = malloc((unsigned)strlen(user) + 1);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dstartup.c81 buf = (char *)malloc(maxbufsize);
286 malloc(sizeof (struct interface));
294 (char *)malloc((size_t)strlen(lifr.lifr_name) + 1);
302 (char *)malloc((size_t)strlen(lifr.lifr_name) + 1);
473 malloc(max_poll_ifs * sizeof (struct pollfd));
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drup.c93 entry = malloc(sizeof (struct entry) * total_entries);
446 if (ep->machine = (char *)malloc(MACHINELENMAX + 1))
486 np = (struct netbuf *) malloc(sizeof (struct netbuf) + ap->len);
503 nnp = (struct netconfig *)malloc(sizeof (struct netconfig));
517 nnp->nc_lookups = (char **)malloc(onp->nc_nlookups *
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dclscook.c101 if ((s = malloc(cnt * sizeof (Elf_Scn))) == 0) {
205 if ((s = malloc(sizeof (Snode))) == 0) {
238 elf->ed_ehdr = malloc(sizeof (Ehdr));
327 if ((elf->ed_phdr = malloc(msz)) == 0) {
415 if ((elf->ed_shdr = malloc(msz)) == 0) {
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Dgenkey.c29 #include <malloc.h>
221 rkey = malloc(sizeof (KMF_RAW_SYM_KEY));
232 hexstr = malloc(hexstrlen);
326 rkey = malloc(sizeof (KMF_RAW_SYM_KEY));
338 hexstr = malloc(hexstrlen);
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dsetup.c383 main_vdbuf = malloc(avp->avd_main_vdse.ext_len);
384 res_vdbuf = malloc(avp->avd_res_vdse.ext_len);
469 lvintp = (struct log_vol_int_desc *)malloc(lvintlen);
524 malloc(secsize*part_bmp_sectors);
568 fileset = (struct file_set_desc *)malloc(filesetlen);
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dpdu.c85 tmp_pdu_hdr = (isns_pdu_t *)malloc(ISNSP_HEADER_SIZE);
132 tmp_pdu_data = malloc(payload_len);
174 (*pdu) = (isns_pdu_t *)malloc(*pdu_size);
296 *rsp = (isns_pdu_t *)malloc(RSP_PDU_FRAG_SZ);
411 attr_tlv = (isns_tlv_t *)malloc(attr_tlv_len);
/illumos-gate/usr/src/lib/libnsl/nsl/
H A D_utility.c272 * signals are deferred, calls to malloc() are safe.
274 if ((tlbs->tl_next = malloc(sizeof (struct _ti_lookbufs))) ==
283 if ((tlbs->tl_lookcbuf = malloc(cbuf_size)) == NULL) {
289 ((tlbs->tl_lookdbuf = malloc(dbuf_size)) == NULL)) {
519 if ((rcvbuf = malloc(size1)) == NULL)
521 if ((lookdbuf = malloc(size1)) == NULL) {
556 if ((ctlbuf = malloc(size2)) == NULL) {
564 if ((lookcbuf = malloc(size2)) == NULL) {
724 if ((tiptr = malloc(sizeof (*tiptr))) == NULL)
737 if ((tiptr = malloc(sizeo
[all...]
/illumos-gate/usr/src/lib/libipmp/common/
H A Dipmp_query.c493 grlistp = malloc(IPMP_GROUPLIST_SIZE(ngroup));
526 targinfop = malloc(sizeof (ipmp_targinfo_t));
562 iflistp = malloc(IPMP_IFLIST_SIZE(nif));
594 ifinfop = malloc(sizeof (ipmp_ifinfo_t));
648 grinfop = malloc(sizeof (ipmp_groupinfo_t));
696 adlistp = malloc(IPMP_ADDRLIST_SIZE(naddr));
736 adinfop = malloc(sizeof (ipmp_addrinfo_t));
803 snap = malloc(sizeof (ipmp_snap_t));
867 grlp = malloc(sizeof (ipmp_groupinfolist_t));
895 iflp = malloc(sizeo
[all...]
/illumos-gate/usr/src/cmd/sed/
H A Dcompile.c136 else if ((appends = malloc(sizeof (struct s_appends) * appendnum)) ==
138 err(1, "malloc");
139 if ((match = malloc((maxnsub + 1) * sizeof (regmatch_t))) == NULL)
140 err(1, "malloc");
177 if ((*link = cmd = malloc(sizeof (struct s_command))) == NULL)
178 err(1, "malloc");
188 if ((cmd->a1 = malloc(sizeof (struct s_addr))) == NULL)
189 err(1, "malloc");
196 if ((cmd->a2 = malloc(sizeof (struct s_addr)))
198 err(1, "malloc");
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c284 p = person1 = malloc(sizeof (*p));
286 p->link = malloc(sizeof (*p));
336 p = person1 = malloc(sizeof (*p));
338 p->link = malloc(sizeof (*p));
380 new = malloc(sizeof (*new));
420 new = malloc(sizeof (*new));
491 s = malloc(strlen(p->pwd->pw_dir) +
510 s = malloc(strlen(p->pwd->pw_dir) +
542 pto = malloc(sizeof (*pto));
1302 mbxpath = malloc(strle
[all...]
/illumos-gate/usr/src/cmd/logins/
H A Dlogins.c293 new = malloc(sizeof (struct grpmember));
397 displayhead = malloc(sizeof (struct display));
449 new = malloc(sizeof (struct display));
612 psecgrp = malloc(
675 ppasswd = malloc(sizeof (struct pwdinfo));
1123 lpw->next = malloc(sizeof (struct localpw));
1134 next = malloc(sizeof (struct localpw));
1474 plogin = malloc(sizeof (struct reqlogin));
1481 plogin = malloc(sizeof (struct reqlogin));
1515 pgrp = malloc(sizeo
[all...]
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetnetgrent.c47 #include <malloc.h>
220 * malloc()ed region.
252 /* === ? Change ngt_init() and ngt_destroy() to malloc/free struct netgrtab */
281 malloc(namelen + 1 + (char *)&dummy->name[0] - (char *)dummy);
349 if ((ngt = (struct netgrtab *)malloc(sizeof (*ngt))) == 0) {
520 if ((gl = (struct grouplist *)malloc(sizeof (*gl))) == 0) {
556 get_be = (struct nis_getnetgr_be *)malloc(sizeof (*get_be));
749 if ((key = malloc(strlen(*pname) + strlen(domain) + 2)) == 0) {
884 (be = (struct nis_netgr_be *)malloc(sizeof (*be))) == 0) {
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsvcctl_scm.c283 if ((state_name = malloc(max_state_size)) == NULL)
322 if ((desc_buf = malloc(mgr_ctx->mc_scf_max_value_len + 1)) == NULL)
341 if ((newbuf = malloc(newsize)) == NULL) {
368 if ((fmri_buf = malloc(mgr_ctx->mc_scf_max_fmri_len + 1)) == NULL)
393 if ((newbuf = malloc(newsize)) == NULL) {
421 if ((newbuf = malloc(newsize)) == NULL)
444 node = malloc(sizeof (*node));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dan_to_ln.c86 if ((mname = (char *) malloc(mlen+1))) {
228 regexp = (char *) malloc((size_t) regexlen+1);
397 if (((in = (char *) malloc(MAX_FORMAT_BUFFER)) != NULL) &&
398 ((out = (char *) malloc(MAX_FORMAT_BUFFER)) != NULL)) {
439 if (((rule = (char *) malloc(rule_size+1)) != NULL) &&
440 ((repl = (char *) malloc(repl_size+1)) != NULL)) {
531 selstring = (char *) malloc(MAX_FORMAT_BUFFER);
/illumos-gate/usr/src/lib/libnsl/netselect/
H A Dnetselect.c45 #include <malloc.h>
135 if ((retp = malloc(sizeof (NCONF_HANDLE))) == NULL) {
292 if ((listpp = malloc((count + 1) *
415 if ((retp = malloc(sizeof (NCONF_HANDLE))) == NULL) {
488 if ((rnetpp = malloc((count + 1) *
675 if ((listpp = malloc((num + 1) * sizeof (char *))) == NULL)
825 "nc_sperror: malloc failed when trying to create buffer\n");
924 nconf->nc_lookups = malloc((netconfigp->nc_nlookups + 1)
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/snowbird/common/
H A Dsnowbird.c246 prop_value = malloc(pinfo.size);
689 valbuf = (char *) malloc(sizeof (char) * (propinfo.size));
720 valbuf = (char *) malloc(sizeof (char) * (propinfo.size));
789 prop_name = (char *) malloc(sizeof (char) * PICL_PROPNAMELEN_MAX);
840 prop_name = (char *) malloc(sizeof (char) * PICL_PROPNAMELEN_MAX);
862 valbuf = (char *) malloc(sizeof (char) * (propinfo.size));
1098 valbuf = (char *) malloc(sizeof (char) * (propinfo.size));
/illumos-gate/usr/src/cmd/format/
H A Dix_altsctr.c39 #include <malloc.h>
121 ap->ap_tblp = (struct alts_parttbl *)malloc(ap->ap_tbl_secsiz);
124 "Unable to malloc alternate partition table.\n");
132 if ((ap->ap_memmapp = (uchar_t *)malloc(part->p_size)) == NULL) {
134 "Unable to malloc incore alternate partition map.\n");
141 if ((ap->ap_mapp = (uchar_t *)malloc(ap->ap_map_secsiz)) == NULL) {
143 "Unable to malloc alternate partition map.\n");
324 (struct alts_ent *)malloc(ap->ap_ent_secsiz)) == NULL) {
326 "Unable to malloc alternate sector entry table.\n");
403 ap->ap_gbadp = malloc(cn
[all...]

Completed in 175 milliseconds

<<21222324252627282930>>