Searched refs:bmake_malloc (Results 1 - 20 of 20) sorted by relevance

/netbsd-current/usr.bin/make/
H A Dmake_malloc.h30 void *bmake_malloc(size_t) MAKE_ATTR_USE;
36 #define bmake_malloc(n) emalloc(n) macro
H A Dmake_malloc.c47 bmake_malloc(size_t len) function
64 p = bmake_malloc(size);
72 char *p = bmake_malloc(len + 1);
H A Dstr.c86 char *result = bmake_malloc(len1 + len2 + 1);
99 char *result = bmake_malloc(len1 + len2 + len3 + 1);
138 words_buf = bmake_malloc(str_len + 1);
141 words = bmake_malloc((words_cap + 1) * sizeof(words[0]));
290 words.words = bmake_malloc((swords.len + 1) * sizeof(words.words[0]));
H A Dhash.c139 HashEntry **buckets = bmake_malloc(sizeof *buckets * n);
227 HashEntry **newBuckets = bmake_malloc(sizeof *newBuckets * newSize);
272 he = bmake_malloc(sizeof *he + (size_t)(keyEnd - key));
H A Dbuf.c147 buf->data = bmake_malloc(cap);
H A Dlst.c42 ListNode *ln = bmake_malloc(sizeof *ln);
248 v->items = bmake_malloc(v->cap * v->itemSize);
H A Darch.c434 ar = bmake_malloc(sizeof *ar);
504 struct ar_hdr *cached_hdr = bmake_malloc(
564 ar->fnametab = bmake_malloc(size);
H A Dstr.h255 buf->data = bmake_malloc(buf->cap);
H A Dfor.c94 ForLoop *f = bmake_malloc(sizeof *f);
H A Dtarg.c185 gn = bmake_malloc(sizeof *gn);
H A Ddir.c276 CachedDir *dir = bmake_malloc(sizeof *dir);
428 cst = bmake_malloc(sizeof *cst);
744 char *s = bmake_malloc(s_len + 1);
H A Dcond.c1060 cond_states = bmake_malloc(
1220 guard = bmake_malloc(sizeof(*guard));
1233 guard = bmake_malloc(sizeof(*guard));
H A Djob.c745 char *esc = bmake_malloc(strlen(cmd) * 2 + 1);
2197 job_table = bmake_malloc((size_t)opts.maxJobs * sizeof *job_table);
2231 fds = bmake_malloc(sizeof *fds * nfds);
2232 jobByFdIndex = bmake_malloc(sizeof *jobByFdIndex * nfds);
2479 shell = bmake_malloc(sizeof *shell);
H A Dvar.c402 Var *var = bmake_malloc(sizeof *var);
890 newenv = bmake_malloc(2 * sizeof(char *));
1563 char *errbuf = bmake_malloc(errlen);
1718 words.words = bmake_malloc(sizeof(words.words[0]));
1874 buf = bmake_malloc(9);
2751 pattern = bmake_malloc((size_t)(endpat - (mod + 1)) + 1);
3139 char *res = bmake_malloc(n);
3154 char *res = bmake_malloc(n);
3164 char *res = bmake_malloc(n);
H A Dmake.h828 SearchPath *path = bmake_malloc(sizeof *path);
H A Dsuff.c445 Suffix *suff = bmake_malloc(sizeof *suff);
966 Candidate *cand = bmake_malloc(sizeof *cand);
H A Dmain.c166 exploded = bmake_malloc((size_t)(p - flags) * 3 + 1);
216 fname = bmake_malloc(len + 20);
H A Dmeta.c1128 buf = bmake_malloc(bufsz);
H A Dparse.c313 List *list = bmake_malloc(sizeof *list);
/netbsd-current/usr.bin/make/unit-tests/
H A Ddirective-include.mk80 # 2022-01-07, including an empty regular file called bmake_malloc(0), which
82 # Buf_InitSize, which assumes that bmake_malloc never returns NULL, just like

Completed in 406 milliseconds