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

12

/freebsd-11-stable/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-11-stable/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-11-stable/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-11-stable/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-11-stable/contrib/nvi/vi/
H A Dv_match.c167 MALLOC(sp, *mp, CHAR_T *, len * sizeof(CHAR_T));
/freebsd-11-stable/contrib/byacc/
H A Dmstring.c126 if ((n->base = n->ptr = MALLOC(HEAD)) != 0)
H A Dlr0.c232 p = (core *)MALLOC(sizeof(core) + i * sizeof(Value_t));
/freebsd-11-stable/sys/sys/
H A Dmalloc.h153 #define MALLOC(space, cast, size, type, flags) \ macro
/freebsd-11-stable/sys/fs/nfsclient/
H A Dnfs_clnode.c112 MALLOC(nfhp, struct nfsfh *, sizeof (struct nfsfh) + fhsize,
164 MALLOC(np->n_fhp, struct nfsfh *, sizeof (struct nfsfh) + fhsize,
H A Dnfs_clsubs.c279 MALLOC(dp, struct nfsdmap *, sizeof (struct nfsdmap),
294 MALLOC(dp2, struct nfsdmap *, sizeof (struct nfsdmap),
H A Dnfs_clcomsubs.c420 MALLOC(dp, struct nfsdmap *, sizeof (struct nfsdmap),
435 MALLOC(dp2, struct nfsdmap *, sizeof (struct nfsdmap),
H A Dnfs_clstate.c230 * Might need one or both of these, so MALLOC them now, to
231 * avoid a tsleep() in MALLOC later.
233 MALLOC(nowp, struct nfsclowner *, sizeof (struct nfsclowner),
236 MALLOC(nop, struct nfsclopen *, sizeof (struct nfsclopen) +
794 MALLOC(newclp, struct nfsclclient *,
1008 * Might need these, so MALLOC them now, to
1009 * avoid a tsleep() in MALLOC later.
1011 MALLOC(nlp, struct nfscllockowner *,
1013 MALLOC(otherlop, struct nfscllock *,
1015 MALLOC(nlo
[all...]
H A Dnfs_clport.c182 MALLOC(newd, struct nfsv4node *,
253 MALLOC(np->n_v4, struct nfsv4node *, sizeof (struct nfsv4node)
321 MALLOC(nfhp, struct nfsfh *, sizeof (struct nfsfh) + fhsize,
/freebsd-11-stable/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.c407 MALLOC(sp, host, char *, hostmax + 1);
951 MALLOC(sp, data, char *, dlen + len / 4 * 3 + 2);
H A Dmem.h177 #define MALLOC(sp, p, cast, size) { \ macro
/freebsd-11-stable/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-11-stable/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-11-stable/contrib/expat/lib/
H A Dxmlparse.c621 #define MALLOC(parser, s) (parser->m_mem.malloc_fcn((s))) macro
907 = (ATTRIBUTE *)MALLOC(parser, parser->m_attsSize * sizeof(ATTRIBUTE));
913 parser->m_attInfo = (XML_AttrInfo *)MALLOC(
922 = (XML_Char *)MALLOC(parser, INIT_DATA_BUF_SIZE * sizeof(XML_Char));
1995 newBuf = (char *)MALLOC(parser, bufferSize);
2197 return MALLOC(parser, size);
2704 tag = (TAG *)MALLOC(parser, sizeof(TAG));
2707 tag->buf = (char *)MALLOC(parser, INIT_TAG_BUF_SIZE);
3396 uri = (XML_Char *)MALLOC(parser, (n + EXPAND_SPARE) * sizeof(XML_Char));
3500 b = (BINDING *)MALLOC(parse
[all...]
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_compat.h485 # define KMALLOC(a, b) MALLOC((a), b, sizeof(*(a)), _M_IPF, M_NOWAIT)
488 # define KMALLOCS(a, b, c) MALLOC((a), b, (c), _M_IPF, M_NOWAIT)

Completed in 169 milliseconds

12