Searched refs:newof (Results 1 - 25 of 288) sorted by relevance

1234567891011>>

/ast/src/lib/libast/astsa/
H A Dstrdup.c36 return (s && (t = newof(0, char, n = strlen(s) + 1, 0))) ? (char*)memcpy(t, s, n) : (char*)0;
H A Dast.c55 if (!(buf = newof(0, char, siz, 0)))
67 if (!(buf = newof(buf, char, siz, 0)))
H A Dvmalloc.c38 if (vp = newof(0, Vmalloc_t, 1, 0))
79 if (!(vp->current->next = newof(0, Vmchunk_t, 1, n)))
/ast/src/lib/libast/string/
H A Dmemdup.c41 return((t = (void*)newof(0, char, n, 0)) ? memcpy(t, s, n) : 0);
H A Dfmtbuf.c54 if (!(big = newof(big, char, bigsiz, 0)))
/ast/src/lib/libcs/
H A Dcsalloc.c35 if (state = newof(0, Cs_t, 1, 0))
/ast/src/lib/libast/dir/
H A Dopendir.c63 newof(0, DIR, 1, DIRBLKSIZ)
65 newof(0, DIR, 1, 0)
/ast/src/lib/libast/misc/
H A Doptctx.c64 else if (!(o = newof(0, Opt_t, 1, 0)))
H A Dstack.c43 if (!(stack = newof(0, struct stacktable, 1, 0))) return(0);
44 if (!(b = newof(0, struct stackblock, 1, 0)))
49 if (!(b->stack = newof(0, void*, size, 0)))
122 if (!(b->next = newof(0, struct stackblock, 1, 0)))
125 if (!(b->stack = newof(0, void*, stack->size, 0)))
H A Dsetenviron.c87 if (!(p = newof(p, char*, n, 0)))
110 if (!(p = newof(p, char*, n, 0)))
H A Dgetcwd.c59 if (!(buf = newof(buf, char, n, 0)))
63 if ((r = strlen(buf) + len + 1) != n && !(buf = newof(buf, char, r, 0)))
130 if (!(p = newof(0, struct dirlist, 1, 0)) || chdir(dots))
196 else if (!(buf = newof(0, char, namlen, len))) ERROR(ENOMEM);
220 if (!(buf = newof(0, char, len, extra))) ERROR(ENOMEM);
258 if (extra >= 0 && !(buf = newof(buf, char, len, extra))) ERROR(ENOMEM);
303 if (extra < 0 || !(buf = newof(buf, char, len += PATH_MAX, extra))) ERROR(ERANGE);
/ast/src/lib/libast/vec/
H A Dvecargs.c56 if (!(argv = newof(0, char*, num + *argcp + 1, 0)))
H A Dvecfile.c50 if (!fstat(fd, &st) && S_ISREG(st.st_mode) && (n = st.st_size) > 0 && (buf = newof(0, char, n + 1, 0)))
H A Dvecload.c78 if (p = newof(0, char*, n + 3, 0))
/ast/src/lib/libcmd/
H A Dfts_fix.c48 if ((oe = _ast_fts_read(fts)) && ast.version < 20100102L && (ne || (ne = newof(0, FTSENT, 1, 0))))
/ast/src/cmd/dsslib/ip_t/
H A Divopen.c30 if (!disc || !meth || !(iv = newof(0, Iv_t, 1, 3 * size)))
/ast/src/lib/libast/comp/
H A Datexit.c68 if (!(p = newof(0, struct list, 1, 0))) return(-1);
H A Dexecvpe.c61 if (newargv = newof(0, char*, ov + 1 - (char**)argv, 0))
/ast/src/lib/libast/hash/
H A Dhashalloc.c69 else if (!(tab = newof(0, Hash_table_t, 1, 0)))
86 else if (!(tab->root = newof(0, Hash_root_t, 1, 0)))
88 if (!(tab->root->local = newof(0, Hash_local_t, 1, 0)))
176 else if (!(tab->table = newof(0, Hash_bucket_t*, tab->size, 0))) goto out;
/ast/src/lib/libast/regex/
H A Dregcache.c99 if (matchstate.cache = newof(matchstate.cache, Cache_t*, reflags, 0))
113 if (!(matchstate.cache = newof(0, Cache_t*, CACHE, 0)))
158 if (!(cp = matchstate.cache[unused]) && !(cp = matchstate.cache[unused] = newof(0, Cache_t, 1, 0)))
172 if (!(cp->pattern = newof(cp->pattern, char, cp->size, 0)))
/ast/src/lib/libpp/
H A Dppcontext.c44 if (!(op = pp.context)) op = pp.context = newof(0, struct ppcontext, 1, 0);
/ast/src/lib/libpz/
H A Dpzlib.c55 if (!(dll = newof(0, Pzdll_t, 1, strlen(name) + 1)))
91 if (!(pzs = newof(0, Pzdllpz_t, 1, 0)))
/ast/src/lib/libsum/
H A Dsum-lmd.c128 if (lmd = newof(0, Md4_t, 1, 0))
168 if (lmd = newof(0, Md5_t, 1, 0))
209 if (lmd = newof(0, Sha1_t, 1, 0))
249 if (lmd = newof(0, Sha256_t, 1, 0))
283 if (lmd = newof(0, Sha384_t, 1, 0))
317 if (lmd = newof(0, Sha512_t, 1, 0))
/ast/src/lib/libmam/
H A Dmam.c68 if (!(pp = newof(0, struct proc, 1, 0)) ||
69 !(pp->bp = pp->fp = newof(0, struct frame, 1, 0)) ||
92 if (!(mp = newof(0, struct mam, 1, 0))) return(0);
247 if (!(pp->fp->next = newof(0, struct frame, 1, 0)))
268 if (!(a = newof(0, struct block, 1, 0)))
376 if (!(r = getrule(pp, name)) && (r = newof(0, struct rule, 1, 0)))
394 if (!(v = newof(0, struct var, 1, 0))) return(0);
421 if (!(q->next = newof(0, struct list, 1, 0))) return;
428 else if (!(*p = newof(0, struct list, 1, 0))) return;
/ast/src/lib/libast/path/
H A Dpathexists.c78 if (!(t = newof(0, Tree_t, 1, strlen(s))))
104 if (!(p = newof(0, Tree_t, 1, strlen(s))))

Completed in 80 milliseconds

1234567891011>>