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

12345

/illumos-gate/usr/src/lib/libast/common/string/
H A Dmemdup.c41 return((t = (void*)newof(0, char, n, 0)) ? memcpy(t, s, n) : 0);
H A Dstrdup.c43 return (s && (t = newof(0, char, n = strlen(s) + 1, 0))) ? (char*)memcpy(t, s, n) : (char*)0;
H A Dfmtbuf.c54 if (!(big = newof(big, char, bigsiz, 0)))
H A Dfmtfs.c84 if (!dict || !(ip = newof(0, Id_t, 1, strlen(s))))
H A Dfmtgid.c93 if (dict && (ip = newof(0, Id_t, 1, strlen(name))))
H A Dfmtuid.c93 if (dict && (ip = newof(0, Id_t, 1, strlen(name))))
H A Dstruid.c102 if (dict && (ip = newof(0, Id_t, 1, strlen(name))))
/illumos-gate/usr/src/lib/libcmd/common/
H A Dfts_fix.c47 if ((oe = _ast_fts_read(fts)) && ast.version < 20100102L && (ne || (ne = newof(0, FTSENT, 1, 0))))
/illumos-gate/usr/src/lib/libast/common/dir/
H A Dopendir.c61 newof(0, DIR, 1, DIRBLKSIZ)
63 newof(0, DIR, 1, 0)
/illumos-gate/usr/src/lib/libast/common/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)))
/illumos-gate/usr/src/lib/libast/common/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))
/illumos-gate/usr/src/lib/libast/common/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))
/illumos-gate/usr/src/lib/libpp/common/
H A Dppcontext.c44 if (!(op = pp.context)) op = pp.context = newof(0, struct ppcontext, 1, 0);
/illumos-gate/usr/src/lib/libast/common/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;
H A Dhashsize.c56 else new_s = newof(0, Hash_bucket_t*, size, 0);
/illumos-gate/usr/src/lib/libast/common/preroot/
H A Dsetpreroot.c49 if (av = newof(0, char*, argc, 0))
/illumos-gate/usr/src/lib/libast/common/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)))
/illumos-gate/usr/src/lib/libsum/common/
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))
/illumos-gate/usr/src/lib/libast/common/path/
H A Dpathexists.c78 if (!(t = newof(0, Tree_t, 1, strlen(s))))
104 if (!(p = newof(0, Tree_t, 1, strlen(s))))
/illumos-gate/usr/src/lib/libast/common/port/
H A Dastcopy.c86 if (!(buf = newof(0, char, bufsiz, 0))) return(-1);

Completed in 106 milliseconds

12345