Searched refs:MALLOC (Results 1 - 25 of 42) sorted by relevance

12

/freebsd-10.1-release/contrib/gdtoa/
H A Dg__fmt.c59 if ((decimalpoint_cache = (char*)MALLOC(strlen(s0) + 1))) {
H A Dgdtoaimp.h120 * #define MALLOC your_malloc, where your_malloc(n) acts like malloc(n)
122 * appropriate. If MALLOC is undefined, malloc will be invoked
125 * recycle memory acquired from MALLOC, #define FREE to be the
133 * suffices to get rid of MALLOC calls except for unusual cases,
212 #ifdef MALLOC
213 extern Char *MALLOC ANSI((size_t));
215 #define MALLOC malloc macro
H A Dgethex.c60 if ((decimalpoint_cache = (char*)MALLOC(strlen(s0) + 1))) {
H A Dmisc.c66 rv = (Bigint *)MALLOC(sizeof(Bigint) + (x-1)*sizeof(ULong));
75 rv = (Bigint*)MALLOC(len*sizeof(double));
/freebsd-10.1-release/contrib/nvi/ex/
H A Dex_source.c68 MALLOC(sp, bp, char *, (size_t)sb.st_size + 1);
H A Dex_subst.c235 MALLOC(sp, sp->repl, CHAR_T *, len * sizeof(CHAR_T));
957 MALLOC(sp, *ptrnp, CHAR_T *, (plen + 1) * sizeof(CHAR_T));
1292 MALLOC(sp, oe, char *, s);
/freebsd-10.1-release/contrib/ntp/include/
H A Dparse.h66 #define MALLOC(_X_) (char *)kmem_alloc(_X_) macro
70 #define MALLOC(_X_) (char *)kmem_alloc(_X_, KM_SLEEP) macro
74 #define MALLOC(_X_) malloc(_X_) macro
/freebsd-10.1-release/sys/sys/
H A Dmalloc.h155 #define MALLOC(space, cast, size, type, flags) \ macro
/freebsd-10.1-release/gnu/usr.bin/grep/
H A Ddfa.c165 #define MALLOC(p, t, n) ((p) = (t *) xmalloc((n) * sizeof (t))) macro
484 MALLOC(work_mbc->chars, wchar_t, chars_al);
557 MALLOC(work_mbc->ch_classes, wchar_t, ++ch_classes_al);
567 MALLOC(elem, char, len + 1);
574 MALLOC(work_mbc->equivs, char*, ++equivs_al);
585 MALLOC(work_mbc->coll_elems, char*, ++coll_elems_al);
631 MALLOC(work_mbc->range_sts, wchar_t, ++range_sts_al);
632 MALLOC(work_mbc->range_ends, wchar_t, ++range_ends_al);
1511 MALLOC(d->states[i].elems.elems, position, s->nelem);
1557 MALLOC(visite
[all...]
/freebsd-10.1-release/sys/fs/nfsclient/
H A Dnfs_clnode.c112 MALLOC(nfhp, struct nfsfh *, sizeof (struct nfsfh) + fhsize,
161 MALLOC(np->n_fhp, struct nfsfh *, sizeof (struct nfsfh) + fhsize,
H A Dnfs_clsubs.c299 MALLOC(dp, struct nfsdmap *, sizeof (struct nfsdmap),
314 MALLOC(dp2, struct nfsdmap *, sizeof (struct nfsdmap),
H A Dnfs_clcomsubs.c417 MALLOC(dp, struct nfsdmap *, sizeof (struct nfsdmap),
432 MALLOC(dp2, struct nfsdmap *, sizeof (struct nfsdmap),
H A Dnfs_clport.c169 MALLOC(newd, struct nfsv4node *,
238 MALLOC(np->n_v4, struct nfsv4node *, sizeof (struct nfsv4node)
305 MALLOC(nfhp, struct nfsfh *, sizeof (struct nfsfh) + fhsize,
H A Dnfs_clstate.c229 * Might need one or both of these, so MALLOC them now, to
230 * avoid a tsleep() in MALLOC later.
232 MALLOC(nowp, struct nfsclowner *, sizeof (struct nfsclowner),
235 MALLOC(nop, struct nfsclopen *, sizeof (struct nfsclopen) +
747 MALLOC(newclp, struct nfsclclient *,
951 * Might need these, so MALLOC them now, to
952 * avoid a tsleep() in MALLOC later.
954 MALLOC(nlp, struct nfscllockowner *,
956 MALLOC(otherlop, struct nfscllock *,
958 MALLOC(nlo
[all...]
/freebsd-10.1-release/contrib/byacc/
H A Dmstring.c126 if ((n->base = n->ptr = MALLOC(HEAD)) != 0)
H A Dlr0.c230 p = (core *)MALLOC(sizeof(core) + i * sizeof(Value_t));
/freebsd-10.1-release/contrib/nvi/vi/
H A Dv_match.c167 MALLOC(sp, *mp, CHAR_T *, len * sizeof(CHAR_T));
/freebsd-10.1-release/contrib/nvi/common/
H A Dcut.c310 MALLOC(sp, tp->lb, CHAR_T *, tp->lb_len);
H A Dscreen.c97 MALLOC(sp, sp->newl, size_t *, len);
H A Drecover.c410 MALLOC(sp, host, char *, hostmax + 1);
954 MALLOC(sp, data, char *, dlen + len / 4 * 3 + 2);
H A Dmem.h177 #define MALLOC(sp, p, cast, size) { \ macro
/freebsd-10.1-release/contrib/gdb/gdb/
H A Dwince-stub.c31 #define MALLOC(n) (void *) LocalAlloc (LMEM_MOVEABLE | LMEM_ZEROINIT, (UINT)(n)) macro
76 outs[outn] = (LPWSTR) MALLOC (len);
/freebsd-10.1-release/contrib/ntp/libparse/
H A Dparse.c800 parse->parse_pdata = MALLOC(parse->parse_plen);
817 parse->parse_data = (char*)MALLOC((unsigned)(parse->parse_dsize * 2 + 2));
/freebsd-10.1-release/contrib/expat/lib/
H A Dxmlparse.c562 #define MALLOC(s) (parser->m_mem.malloc_fcn((s))) macro
761 atts = (ATTRIBUTE *)MALLOC(attsSize * sizeof(ATTRIBUTE));
767 attInfo = (XML_AttrInfo*)MALLOC(attsSize * sizeof(XML_AttrInfo));
774 dataBuf = (XML_Char *)MALLOC(INIT_DATA_BUF_SIZE * sizeof(XML_Char));
1589 ? (char *)MALLOC(len * 2)
1742 newBuf = (char *)MALLOC(bufferSize);
1917 return MALLOC(size);
2412 tag = (TAG *)MALLOC(sizeof(TAG));
2415 tag->buf = (char *)MALLOC(INIT_TAG_BUF_SIZE);
3041 uri = (XML_Char *)MALLOC((
[all...]
/freebsd-10.1-release/sys/kern/
H A Dkern_gzio.c391 MALLOC(ptr, void *, items * size, M_TEMP, M_NOWAIT | M_ZERO);

Completed in 292 milliseconds

12