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

12

/netbsd-6-1-5-RELEASE/external/bsd/byacc/dist/
H A Dsymtab.c40 bp = (bucket *)MALLOC(sizeof(bucket));
46 bp->name = MALLOC(strlen(name) + 1);
89 symbol_table = (bucket **)MALLOC(TABLE_SIZE * sizeof(bucket *));
H A Dreader.c90 line = MALLOC(linesize);
131 p = MALLOC(s - line + 1);
692 buf = MALLOC(linesize);
740 p = MALLOC(sizeof(*p));
897 s = MALLOC(n);
1068 : MALLOC((unsigned)tagmax * sizeof(char *)));
1072 s = MALLOC(cinc);
1253 cache = MALLOC(cache_size);
1323 pitem = (bucket **)MALLOC((unsigned)maxitems * sizeof(bucket *));
1334 plhs = (bucket **)MALLOC((unsigne
[all...]
H A Dlr0.c234 p = (core *)MALLOC(sizeof(core) + i * sizeof(short));
545 nullable = MALLOC(nsyms);
H A Dmain.c371 dest = MALLOC(len + strlen(suffix) + 1); \
402 file_prefix = MALLOC(len + 1);
H A Dverbose.c30 null_rules = (short *)MALLOC((unsigned)nrules * sizeof(short));
H A Dmkpar.c187 rules_used = (Value_t *) MALLOC((unsigned)nrules * sizeof(Value_t));
/netbsd-6-1-5-RELEASE/sys/arch/atari/stand/tostools/libtos/
H A Daout.c41 #define MALLOC(x) malloc(x) macro
50 #define MALLOC(x) alloc(x) macro
123 if ((od->kstart = (u_char *)MALLOC(od->ksize)) == NULL)
H A Delf.c40 #define MALLOC(x) malloc(x) macro
49 #define MALLOC(x) alloc(x) macro
91 if ((phdrs = (Elf32_Phdr *)MALLOC(i)) == NULL)
142 if ((od->kstart = (u_char *)MALLOC(od->ksize)) == NULL)
/netbsd-6-1-5-RELEASE/dist/nvi/common/
H A Dutil.c131 MALLOC(sp, copy, char *, (len + 1));
150 MALLOC(sp, copy, CHAR_T *, (len + 1) * sizeof(CHAR_T));
H A Dcut.c313 MALLOC(sp, tp->lb, CHAR_T *, tp->lb_len * sizeof(CHAR_T));
H A Dscreen.c98 MALLOC(sp, sp->newl, size_t *, len);
H A Dmem.h175 #define MALLOC(sp, p, cast, size) { \ macro
/netbsd-6-1-5-RELEASE/dist/nvi/perl_api/
H A Dperlsfio.c82 MALLOC(scrp, disc, Sfdisc_t*, sizeof(Sfdisc_t));
/netbsd-6-1-5-RELEASE/external/bsd/top/dist/
H A Dhash.m4c89 dnl # The m4 code uses MALLOC, FREE, and STRDUP for dynamic allocation.
92 define(`MALLOC', `malloc($1)')
162 qi = (llistitem *)MALLOC(sizeof(llistitem) + size);
236 result = (hash_table *)MALLOC(sizeof(hash_table));
243 result->buckets = b = (bucket_t *)MALLOC(bytes);
/netbsd-6-1-5-RELEASE/dist/nvi/ex/
H A Dex_source.c70 MALLOC(sp, bp, char *, (size_t)sb.st_size + 1);
/netbsd-6-1-5-RELEASE/lib/libc/gdtoa/
H A Dg__fmt.c59 if ((decimalpoint_cache = MALLOC(strlen(s0) + 1)) != NULL) {
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,
218 #ifdef MALLOC
219 extern Char *MALLOC ANSI((size_t));
221 #define MALLOC malloc macro
H A Dgethex.c62 if ((decimalpoint_cache = MALLOC(strlen(s0) + 1)) != NULL) {
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/include/
H A Dparse.h68 #define MALLOC(_X_) (char *)kmem_alloc(_X_) macro
72 #define MALLOC(_X_) (char *)kmem_alloc(_X_, KM_SLEEP) macro
76 #define MALLOC(_X_) malloc(_X_) macro
/netbsd-6-1-5-RELEASE/gnu/dist/gmake/
H A Dhash.c24 #define MALLOC(t, n) ((t *) xmalloc (sizeof (t) * (n))) macro
26 #define CLONE(o, t, n) ((t *) memcpy (MALLOC (t, (n)), (o), sizeof (t) * (n)))
338 vector_0 = MALLOC (void *, ht->ht_fill + 1);
/netbsd-6-1-5-RELEASE/gnu/dist/grep/src/
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);
1513 MALLOC(d->states[i].elems.elems, position, s->nelem);
1559 MALLOC(visite
[all...]
/netbsd-6-1-5-RELEASE/gnu/dist/gettext/gettext-tools/libgrep/
H A Ddfa.c139 #define MALLOC(p, t, n) ((p) = (t *) xmalloc((n) * sizeof (t))) macro
457 MALLOC(work_mbc->chars, wchar_t, chars_al);
531 MALLOC(work_mbc->ch_classes, wctype_t, ++ch_classes_al);
541 MALLOC(elem, char, len + 1);
548 MALLOC(work_mbc->equivs, char*, ++equivs_al);
559 MALLOC(work_mbc->coll_elems, char*, ++coll_elems_al);
605 MALLOC(work_mbc->range_sts, wchar_t, ++range_sts_al);
606 MALLOC(work_mbc->range_ends, wchar_t, ++range_ends_al);
1492 MALLOC(d->states[i].elems.elems, position, s->nelem);
1538 MALLOC(visite
[all...]
/netbsd-6-1-5-RELEASE/sys/dev/stbi/
H A Dstb_image.c447 #define MALLOC(size) malloc((size), M_TEMP, M_WAITOK) macro
451 #define MALLOC(size) malloc((size)) macro
987 good = (unsigned char *) MALLOC(req_comp * x * y);
1027 float *output = (float *) MALLOC(x * y * comp * sizeof(float));
1045 stbi_uc *output = (stbi_uc *) MALLOC(x * y * comp);
1722 z->img_comp[i].raw_data = MALLOC(z->img_comp[i].w2 * z->img_comp[i].h2+15);
1985 z->img_comp[k].linebuf = (uint8 *) MALLOC(z->s.img_x + 3);
2003 output = (uint8 *) MALLOC(n * z->s.img_x * z->s.img_y + 1);
2076 jpeg *j = (jpeg *) MALLOC(sizeof(*j));
2514 char *p = (char *) MALLOC(initial_siz
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/libparse/
H A Dparse.c806 parse->parse_pdata = MALLOC(parse->parse_plen);
823 parse->parse_data = (char*)MALLOC((unsigned)(parse->parse_dsize * 2 + 2));
/netbsd-6-1-5-RELEASE/usr.sbin/syslogd/
H A Dsyslogd.h209 #define MALLOC(ptr, size) do { \ macro
214 DPRINTF(D_MEM2, "MALLOC(%s@%p, %zu)\n", #ptr, ptr, size); \

Completed in 211 milliseconds

12