Home
last modified time | relevance | path

Searched refs:bmake_malloc (Results 1 – 18 of 18) sorted by relevance

/freebsd-12.1/contrib/bmake/
H A Dmake_malloc.h30 void *bmake_malloc(size_t);
36 #define bmake_malloc(x) emalloc(x) macro
H A Dmake_malloc.c60 bmake_malloc(size_t len) in bmake_malloc() function
101 p = bmake_malloc(len + 1); in bmake_strndup()
H A Dstr.c105 result = bmake_malloc((unsigned int)(len1 + len2 + 2)); in str_concat()
156 *buffer = bmake_malloc(curlen = len); in brk_string()
162 argv = bmake_malloc((argmax + 1) * sizeof(char *)); in brk_string()
H A Dhash.c151 t->bucketPtr = hp = bmake_malloc(sizeof(*hp) * i); in Hash_InitTable()
293 e = bmake_malloc(sizeof(*e) + keylen); in Hash_CreateEntry()
454 t->bucketPtr = hp = bmake_malloc(sizeof(*hp) * i); in RebuildTable()
H A Darch.c415 buf = sacrifice = bmake_malloc(sz); in Arch_ParseArchive()
450 nameBuf = bmake_malloc(sz); in Arch_ParseArchive()
481 nameBuf = bmake_malloc(sz); in Arch_ParseArchive()
661 ar = bmake_malloc(sizeof(Arch)); in ArchStatMember()
738 Hash_SetValue(he, bmake_malloc(sizeof(struct ar_hdr))); in ArchStatMember()
812 ar->fnametab = bmake_malloc(size); in ArchSVR4Entry()
1247 libName = bmake_malloc(sz); in Arch_FindLib()
H A Dsuff.c559 emptySuff = suffNull = bmake_malloc(sizeof(Suff)); in Suff_ClearSuffixes()
983 s = bmake_malloc(sizeof(Suff)); in Suff_AddSuffix()
1206 s2 = bmake_malloc(sizeof(Src)); in SuffAddSrc()
1224 s2 = bmake_malloc(sizeof(Src)); in SuffAddSrc()
1490 ret = bmake_malloc(sizeof(Src)); in SuffFindCmds()
2113 targ = bmake_malloc(sizeof(Src)); in SuffFindNormalDeps()
2130 targ->pref = bmake_malloc(prefLen + 1); in SuffFindNormalDeps()
2159 targ = bmake_malloc(sizeof(Src)); in SuffFindNormalDeps()
H A Dfor.c109 new_ptr = bmake_malloc(len + 1); in make_str()
179 new_for = bmake_malloc(sizeof *new_for); in For_Eval()
H A Dbuf.c213 bp->buffer = bmake_malloc(size); in Buf_Init()
H A Ddir.c314 entry->clientPtr = bmake_malloc(sizeof(*cst)); in cached_stats()
358 dotLast = bmake_malloc(sizeof(Path)); in Dir_Init()
717 file = bmake_malloc(otherLen + cp - start + 1); in DirExpandCurly()
1652 p = bmake_malloc(sizeof(Path)); in Dir_AddDir()
H A Dvar.c437 v = bmake_malloc(sizeof(Var)); in VarFind()
522 v = bmake_malloc(sizeof(Var)); in VarAdd()
830 newenv = bmake_malloc(2 * sizeof(char *)); in Var_UnExport()
1660 errbuf = bmake_malloc(errlen); in VarREError()
1885 av = bmake_malloc((ac + 1) * sizeof(char *)); in VarSelectWords()
2002 av = bmake_malloc((ac + 1) * sizeof(char *)); in VarModify()
2933 newStr = bmake_malloc(newStrSize); in ApplyModifiers()
3249 pattern = bmake_malloc(cp - tstr); in ApplyModifiers()
3476 pattern.matches = bmake_malloc(pattern.nsub * in ApplyModifiers()
3968 v = bmake_malloc(sizeof(Var)); in Var_Parse()
H A Djob.c793 escCmd = bmake_malloc((strlen(cmd) * 2) + 1); in JobPrintCommand()
2224 shellErrFlag = bmake_malloc(n); in Shell_Init()
2279 job_table = bmake_malloc(maxJobs * sizeof *job_table); in Job_Init()
2317 fds = bmake_malloc(sizeof (*fds) * (2 + maxJobs)); in Job_Init()
2318 jobfds = bmake_malloc(sizeof (*jobfds) * (2 + maxJobs)); in Job_Init()
2581 commandShell = bmake_malloc(sizeof(Shell)); in Job_ParseShell()
H A Dmain.c237 st = nf = bmake_malloc(len * 3 + 1); in explode()
342 fname = bmake_malloc(len + 20); in parse_debug_options()
734 buf = bmake_malloc(len = strlen(line) + strlen(argv0) + 2); in Main_ParseArgLine()
1549 char *name, *path = bmake_malloc(len); in ReadMakefile()
1750 res = bmake_malloc(1); in Cmd_Exec()
H A Dparse.c401 lf = bmake_malloc(sizeof(*lf)); in loadedfile_create()
542 char *b = bmake_malloc(lf->len + 1); in loadfile()
557 lf->buf = bmake_malloc(lf->len); in loadfile()
2398 dirname = bmake_malloc(len + 1); in ParseSetParseFile()
2484 curFile = bmake_malloc(sizeof *curFile); in Parse_SetInput()
H A Dtarg.c236 gn = bmake_malloc(sizeof(GNode)); in Targ_NewGN()
H A Dcond.c1273 cond_state = bmake_malloc(max_if_depth * sizeof(*cond_state)); in Cond_Eval()
H A Dmeta.c1097 buf = bmake_malloc(bufsz); in meta_oodate()
H A DChangeLog155 - use bmake_malloc() where NULL is not tollerated
1429 o bmake_malloc et al moved to their own .c
1470 o make now uses bmake_malloc etc so that it can build natively
/freebsd-12.1/contrib/bmake/lst.lib/
H A DlstInt.h85 #define PAlloc(var,ptype) var = (ptype) bmake_malloc(sizeof *(var))