/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | freelist.c | 91 fl = (FreeList *) malloc(sizeof(FreeList)); in _new_FreeList() 339 block = (FreeListBlock *) malloc(sizeof(FreeListBlock)); in _new_FreeListBlock() 352 block->nodes = (char *) malloc(fl->node_size * fl->blocking_factor); in _new_FreeListBlock()
|
H A D | strngmem.c | 72 sm = (StringMem *) malloc(sizeof(StringMem)); in _new_StringMem() 162 string = (char *) malloc(length+1); /* Leave room for the flag byte */ in _new_StringMemString()
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | getdgrp.c | 287 newnode = malloc(sizeof (struct dgrplist)); in addtodgrplist() 291 if (newstr = malloc(strlen(dgrp->name)+1)) { in addtodgrplist() 451 list = malloc((dgrplistcount+1)*sizeof (char *)); in buildreturnlist()
|
/illumos-gate/usr/src/lib/libmp/common/ |
H A D | util.c | 49 i = malloc(sizeof (short) * ((unsigned)nint + 2)); /* ??? 2 ??? */ in _mp_xalloc() 113 a = malloc(sizeof (MINT)); in mp_itom() 223 hex = malloc((size_t)((size * BASEBITS + 3)) / 4 + (size ? 1 : 2)); in mp_mtox()
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | kdb_xdr.c | 34 #define safe_realloc(p,n) ((p)?(realloc(p,n)):(malloc(n))) 48 if ((tmp = (krb5_octet *) malloc(new_tl_data->tl_data_length)) == NULL) 175 if ((nextloc = (krb5_octet *) malloc(unparse_mod_princ_size + 4))
|
/illumos-gate/usr/src/cmd/rpcsvc/ |
H A D | rusers.c | 107 entry = malloc(sizeof (struct entry) * total_entries); in main() 316 entry[curentry].machine = malloc(MACHINELEN + 1); in print_info() 327 entry[curentry].machine = malloc(MACHINELEN + 1); in print_info() 336 iconvert->utmp_array_val = malloc(cnt * sizeof (rusers_utmp)); in print_info() 439 entry[curentry].machine = malloc(MACHINELEN + 1); in print_info_3() 451 entry[curentry].machine = malloc(MACHINELEN + 1); in print_info_3() 459 entry[curentry].users.utmp_array_val = malloc(cnt * in print_info_3()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | an_to_ln.c | 86 if ((mname = (char *) malloc(mlen+1))) { in aname_full_to_mapping_name() 228 regexp = (char *) malloc((size_t) regexlen+1); in aname_do_match() 397 if (((in = (char *) malloc(MAX_FORMAT_BUFFER)) != NULL) && in aname_replacer() 398 ((out = (char *) malloc(MAX_FORMAT_BUFFER)) != NULL)) { in aname_replacer() 439 if (((rule = (char *) malloc(rule_size+1)) != NULL) && in aname_replacer() 440 ((repl = (char *) malloc(repl_size+1)) != NULL)) { in aname_replacer() 531 selstring = (char *) malloc(MAX_FORMAT_BUFFER); in rule_an_to_ln()
|
/illumos-gate/usr/src/lib/libipmp/common/ |
H A D | ipmp_query.c | 580 grlistp = malloc(IPMP_GROUPLIST_SIZE(ngroup)); in ipmp_grouplist_create() 613 targinfop = malloc(sizeof (ipmp_targinfo_t)); in ipmp_targinfo_create() 649 iflistp = malloc(IPMP_IFLIST_SIZE(nif)); in ipmp_iflist_create() 681 ifinfop = malloc(sizeof (ipmp_ifinfo_t)); in ipmp_ifinfo_create() 735 grinfop = malloc(sizeof (ipmp_groupinfo_t)); in ipmp_groupinfo_create() 783 adlistp = malloc(IPMP_ADDRLIST_SIZE(naddr)); in ipmp_addrlist_create() 823 adinfop = malloc(sizeof (ipmp_addrinfo_t)); in ipmp_addrinfo_create() 890 snap = malloc(sizeof (ipmp_snap_t)); in ipmp_snap_create() 954 grlp = malloc(sizeof (ipmp_groupinfolist_t)); in ipmp_snap_addgroupinfo() 982 iflp = malloc(sizeof (ipmp_ifinfolist_t)); in ipmp_snap_addifinfo() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | isaexec.c | 62 isalist = malloc(isalen); in isaexec() 91 if ((pathname = malloc(len)) == NULL) { in isaexec()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | make_random_key.c | 66 if ((bytes = (unsigned char *) malloc(keybytes)) == NULL) in krb5_c_make_random_key() 68 if ((random_key->contents = (krb5_octet *) malloc(keylength)) == NULL) { in krb5_c_make_random_key()
|
/illumos-gate/usr/src/cmd/awk/ |
H A D | lib.c | 100 if ((record = (char *)malloc(n)) == NULL || in recinit() 101 (fields = (char *)malloc(n+2)) == NULL || in recinit() 102 (fldtab = (Cell **)malloc((nfields+1) * sizeof (Cell *))) == NULL || in recinit() 103 (fldtab[0] = (Cell *)malloc(sizeof (Cell))) == NULL) in recinit() 118 fldtab[i] = (Cell *)malloc(sizeof (Cell)); in makefields() 268 if (rtbuf == NULL && (rtbuf = malloc(rtbufsize)) == NULL) in readrec() 401 if ((fields = (char *)malloc(n + 2)) == NULL) in fldbld() 580 if ((fields = (char *)malloc(n+1)) == NULL) in refldbld()
|
/illumos-gate/usr/src/lib/libnsl/yp/ |
H A D | yp_bind.c | 294 svcaddr = malloc(sizeof (struct netbuf)); in __yp_add_binding_netid() 299 svcaddr->buf = malloc(SOCKADDR_SIZE); in __yp_add_binding_netid() 306 binding = malloc(sizeof (struct ypbind_binding)); in __yp_add_binding_netid() 374 if ((pdomb = malloc(sizeof (struct dom_binding))) == NULL) { in load_dom_binding() 400 pdomb->dom_domain = malloc(strlen(domain) + (unsigned)1); in load_dom_binding() 473 if ((pdomb = malloc(sizeof (struct dom_binding))) == NULL) { in load_dom_binding_rsvdport() 506 pdomb->dom_domain = malloc(strlen(domain) + (unsigned)1); in load_dom_binding_rsvdport() 869 default_domain = malloc((strlen(temp) + 1)); in __default_domain()
|
H A D | yp_enum.c | 182 if ((*key = malloc((size_t)resp.keydat.dsize + 2)) != NULL) { 184 if ((*val = malloc( 354 if ((*outkey = malloc((size_t) 357 if ((*val = malloc((size_t)
|
/illumos-gate/usr/src/cmd/audio/audioplay/ |
H A D | audioplay.c | 441 adpcm_state = (struct audio_g72x_state *)malloc in main() 453 adpcm_state = (struct audio_g72x_state *)malloc in main() 532 buf = (unsigned char *) malloc(cnt); in main() 951 buf = malloc(strlen(path) + 1); in path_open() 1031 in_ch_data = malloc(sizeof (unsigned char *) * File_hdr.channels); in initmux() 1041 in_ch_data[c] = malloc(sizeof (unsigned char) * in_ch_size); in initmux() 1051 out_ch_data = malloc(sizeof (unsigned char *) * File_hdr.channels); in initmux() 1061 out_ch_data[c] = malloc(sizeof (unsigned char) * out_ch_size); in initmux()
|
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | btos.c | 63 if ((*string = malloc(val_len)) == NULL) in return_string() 90 if ((*string = malloc(ALLOC_CHUNK)) == NULL) in alloc_string() 352 if ((wstring = malloc(slen * sizeof (wchar_t))) == NULL) in sbsltos() 448 if ((wstring = malloc(slen * sizeof (wchar_t))) == NULL) in sbcleartos()
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/download/ |
H A D | download.c | 281 if ( (path = malloc(strlen(hostfontdir) + strlen(mapname) + in readmap() 290 if ( (stringspace = malloc(sbuf.st_size + 2)) == NULL ) in readmap() 485 if ( (path = malloc(strlen(hostfontdir)+strlen(map[n].file)+2)) == NULL ) in copyfonts() 564 ptr = (Map *)malloc(num * sizeof(Map)); in allocate()
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_gids.c | 144 guid = (char *)malloc(SIP_RANDOM_LEN + 1); in sip_guid() 168 r = (uint8_t *)malloc(guidlen); in sip_guid() 205 if ((branchid = (char *)malloc(SIP_BRANCHID_LEN + 1)) == NULL) in sip_branchid() 237 if ((branchid = malloc(len)) == NULL) in sip_branchid()
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | adb_policy.c | 239 if (!(*(entry) = (osa_policy_ent_t)malloc(sizeof(osa_policy_ent_rec)))) { in osa_adb_get_policy() 243 if (!(aligned_data = (char *) malloc(dbdata.size))) { in osa_adb_get_policy() 367 if (!(entry = (osa_policy_ent_t) malloc(sizeof(osa_policy_ent_rec)))) { in osa_adb_iter_policy() 372 if(!(aligned_data = (char *) malloc(dbdata.size))) { in osa_adb_iter_policy()
|
/illumos-gate/usr/src/test/bhyve-tests/tests/vmm/ |
H A D | datarw_constraints.c | 140 uint8_t *buf = malloc(bufsz); in test_vm_classes() 197 uint8_t *buf = malloc(bufsz); in test_vcpu_classes() 238 uint8_t *buf = malloc(bufsz); in test_bogus_class() 268 uint8_t *buf = malloc(bufsz); in test_vcpuid_combos()
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | setvbuf.c | 64 if ((buf = malloc(_SMBFSZ * sizeof (Uchar))) != NULL) { in setvbuf() 85 if ((buf = malloc(sizeof (Uchar) * in setvbuf()
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | mbtranslate.c | 79 if ((buf = malloc(bufsize * sizeof (char))) == NULL) in _strcode2byte() 120 if ((buf = (wchar_t *)malloc(bufsize * sizeof (wchar_t))) == in _strbyte2code()
|
/illumos-gate/usr/src/lib/krb5/ss/ |
H A D | mk_cmds.c | 27 extern pointer malloc (unsigned); 51 path = malloc(strlen(argv[1])+4); /* extra space to add ".ct" */
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | pdu.c | 85 tmp_pdu_hdr = (isns_pdu_t *)malloc(ISNSP_HEADER_SIZE); in isns_rcv_pdu() 132 tmp_pdu_data = malloc(payload_len); in isns_rcv_pdu() 174 (*pdu) = (isns_pdu_t *)malloc(*pdu_size); in isns_rcv_pdu() 296 *rsp = (isns_pdu_t *)malloc(RSP_PDU_FRAG_SZ); in pdu_reset() 411 attr_tlv = (isns_tlv_t *)malloc(attr_tlv_len); in pdu_add_tlv()
|
/illumos-gate/usr/src/cmd/ypcmd/mknetid/ |
H A D | mknetid.c | 58 extern char *malloc(); 419 s = (struct string_list *)malloc(sizeof (struct string_list)); 420 s->str = malloc((unsigned)strlen(name) + 1); 443 g = (struct group_list *)malloc(sizeof (struct group_list)); 444 g->user = malloc((unsigned)strlen(user) + 1);
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | clscook.c | 100 if ((s = malloc(cnt * sizeof (Elf_Scn))) == 0) { in _elf_prepscn() 199 if ((s = malloc(sizeof (Snode))) == 0) { in _elf_snode() 231 elf->ed_ehdr = malloc(sizeof (Ehdr)); in _elf_ehdr() 319 if ((elf->ed_phdr = malloc(msz)) == 0) { in _elf_phdr() 406 if ((elf->ed_shdr = malloc(msz)) == 0) { in _elf_shdr()
|