allocate
_libelf_ehdr(Elf *e, int ec, int allocate)
if (allocate)
unsigned long long allocate, maxino, maxfsblock, ndir, bound;
allocate = 0;
allocate += roundup(howmany(maxfsblock, NBBY), sizeof(int16_t));
allocate += (maxino + 1) * 3;
allocate += sblock.fs_ncg * sizeof(long);
allocate += (MAXIMUM(ndir, 128) + 10) * sizeof(struct inoinfo);
allocate += MAXIMUM(ndir, 128) * sizeof(struct inoinfo);
if (allocate > bound)
allocate / (1024ULL * 1024ULL),
bool allocate)
if (allocate) {
bool allocate)
if (!allocate) {
allocate)) {
if (allocate && link_dp_get_encoding_format(&link->cur_link_settings) ==
file_list_add(struct file_list *fl, char *fn, bool allocate)
fl->fns[fl->count] = allocate ? sort_strdup(fn) : fn;
file_list_populate(struct file_list *fl, int argc, char **argv, bool allocate)
file_list_add(fl, argv[i], allocate);
void file_list_add(struct file_list *fl, char *fn, bool allocate);
void file_list_populate(struct file_list *fl, int argc, char **argv, bool allocate);
#define NEW(t) ((t*)allocate(sizeof(t)))
#define NEW2(n,t) ((t*)allocate((n)*sizeof(t)))
extern void *allocate(size_t);
p = allocate(sizeof(core) + (n - 1) * sizeof(short));
p = allocate(sizeof(shifts) + (nshifts - 1) * sizeof(short));
p = allocate(sizeof(reductions) + (count - 1) * sizeof(short));