/ast/src/lib/libast/astsa/ |
H A D | strdup.c | 36 return (s && (t = newof(0, char, n = strlen(s) + 1, 0))) ? (char*)memcpy(t, s, n) : (char*)0;
|
H A D | ast.c | 55 if (!(buf = newof(0, char, siz, 0))) 67 if (!(buf = newof(buf, char, siz, 0)))
|
H A D | vmalloc.c | 38 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 D | memdup.c | 41 return((t = (void*)newof(0, char, n, 0)) ? memcpy(t, s, n) : 0);
|
H A D | fmtbuf.c | 54 if (!(big = newof(big, char, bigsiz, 0)))
|
/ast/src/lib/libcs/ |
H A D | csalloc.c | 35 if (state = newof(0, Cs_t, 1, 0))
|
/ast/src/lib/libast/dir/ |
H A D | opendir.c | 63 newof(0, DIR, 1, DIRBLKSIZ) 65 newof(0, DIR, 1, 0)
|
/ast/src/lib/libast/misc/ |
H A D | optctx.c | 64 else if (!(o = newof(0, Opt_t, 1, 0)))
|
H A D | stack.c | 43 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 D | setenviron.c | 87 if (!(p = newof(p, char*, n, 0))) 110 if (!(p = newof(p, char*, n, 0)))
|
H A D | getcwd.c | 59 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 D | vecargs.c | 56 if (!(argv = newof(0, char*, num + *argcp + 1, 0)))
|
H A D | vecfile.c | 50 if (!fstat(fd, &st) && S_ISREG(st.st_mode) && (n = st.st_size) > 0 && (buf = newof(0, char, n + 1, 0)))
|
H A D | vecload.c | 78 if (p = newof(0, char*, n + 3, 0))
|
/ast/src/lib/libcmd/ |
H A D | fts_fix.c | 48 if ((oe = _ast_fts_read(fts)) && ast.version < 20100102L && (ne || (ne = newof(0, FTSENT, 1, 0))))
|
/ast/src/cmd/dsslib/ip_t/ |
H A D | ivopen.c | 30 if (!disc || !meth || !(iv = newof(0, Iv_t, 1, 3 * size)))
|
/ast/src/lib/libast/comp/ |
H A D | atexit.c | 68 if (!(p = newof(0, struct list, 1, 0))) return(-1);
|
H A D | execvpe.c | 61 if (newargv = newof(0, char*, ov + 1 - (char**)argv, 0))
|
/ast/src/lib/libast/hash/ |
H A D | hashalloc.c | 69 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 D | regcache.c | 99 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 D | ppcontext.c | 44 if (!(op = pp.context)) op = pp.context = newof(0, struct ppcontext, 1, 0);
|
/ast/src/lib/libpz/ |
H A D | pzlib.c | 55 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 D | sum-lmd.c | 128 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 D | mam.c | 68 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 D | pathexists.c | 78 if (!(t = newof(0, Tree_t, 1, strlen(s)))) 104 if (!(p = newof(0, Tree_t, 1, strlen(s))))
|