Home
last modified time | relevance | path

Searched refs:newof (Results 1 – 25 of 237) sorted by relevance

12345678910

/titanic_51/usr/src/lib/libast/common/misc/
H A Dstack.c43 if (!(stack = newof(0, struct stacktable, 1, 0))) return(0); in stackalloc()
44 if (!(b = newof(0, struct stackblock, 1, 0))) in stackalloc()
49 if (!(b->stack = newof(0, void*, size, 0))) in stackalloc()
122 if (!(b->next = newof(0, struct stackblock, 1, 0))) in stackpush()
125 if (!(b->stack = newof(0, void*, stack->size, 0))) in stackpush()
H A Dgetcwd.c88 if (!(p = newof(0, struct dirlist, 1, 0)) || chdir(dots))
154 else if (!(buf = newof(0, char, namlen, len))) ERROR(ENOMEM);
178 if (!(buf = newof(0, char, len, extra))) ERROR(ENOMEM);
216 if (extra >= 0 && !(buf = newof(buf, char, len, extra))) ERROR(ENOMEM);
261 if (extra < 0 || !(buf = newof(buf, char, len += PATH_MAX, extra))) ERROR(ERANGE);
H A Dsetenviron.c87 if (!(p = newof(p, char*, n, 0))) in setenviron()
110 if (!(p = newof(p, char*, n, 0))) in setenviron()
/titanic_51/usr/src/contrib/ast/src/lib/libast/misc/
H A Dstack.c43 if (!(stack = newof(0, struct stacktable, 1, 0))) return(0); in stackalloc()
44 if (!(b = newof(0, struct stackblock, 1, 0))) in stackalloc()
49 if (!(b->stack = newof(0, void*, size, 0))) in stackalloc()
122 if (!(b->next = newof(0, struct stackblock, 1, 0))) in stackpush()
125 if (!(b->stack = newof(0, void*, stack->size, 0))) in stackpush()
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);
H A Dsetenviron.c87 if (!(p = newof(p, char*, n, 0))) in setenviron()
110 if (!(p = newof(p, char*, n, 0))) in setenviron()
/titanic_51/usr/src/lib/libsum/common/
H A Dsum-lmd.c128 if (lmd = newof(0, Md4_t, 1, 0)) in md4_open()
168 if (lmd = newof(0, Md5_t, 1, 0)) in md5_open()
209 if (lmd = newof(0, Sha1_t, 1, 0)) in sha1_open()
249 if (lmd = newof(0, Sha256_t, 1, 0)) in sha256_open()
283 if (lmd = newof(0, Sha384_t, 1, 0)) in sha384_open()
317 if (lmd = newof(0, Sha512_t, 1, 0)) in sha512_open()
/titanic_51/usr/src/contrib/ast/src/lib/libsum/
H A Dsum-lmd.c128 if (lmd = newof(0, Md4_t, 1, 0)) in md4_open()
168 if (lmd = newof(0, Md5_t, 1, 0)) in md5_open()
209 if (lmd = newof(0, Sha1_t, 1, 0)) in sha1_open()
249 if (lmd = newof(0, Sha256_t, 1, 0)) in sha256_open()
283 if (lmd = newof(0, Sha384_t, 1, 0)) in sha384_open()
317 if (lmd = newof(0, Sha512_t, 1, 0)) in sha512_open()
/titanic_51/usr/src/contrib/ast/src/lib/libast/regex/
H A Dregcache.c99 if (matchstate.cache = newof(matchstate.cache, Cache_t*, reflags, 0)) in regcache()
113 if (!(matchstate.cache = newof(0, Cache_t*, CACHE, 0))) in regcache()
158 if (!(cp = matchstate.cache[unused]) && !(cp = matchstate.cache[unused] = newof(0, Cache_t, 1, 0))) in regcache()
172 if (!(cp->pattern = newof(cp->pattern, char, cp->size, 0))) in regcache()
/titanic_51/usr/src/lib/libast/common/regex/
H A Dregcache.c99 if (matchstate.cache = newof(matchstate.cache, Cache_t*, reflags, 0)) in regcache()
113 if (!(matchstate.cache = newof(0, Cache_t*, CACHE, 0))) in regcache()
158 …if (!(cp = matchstate.cache[unused]) && !(cp = matchstate.cache[unused] = newof(0, Cache_t, 1, 0))) in regcache()
172 if (!(cp->pattern = newof(cp->pattern, char, cp->size, 0))) in regcache()
/titanic_51/usr/src/lib/libast/common/hash/
H A Dhashalloc.c69 else if (!(tab = newof(0, Hash_table_t, 1, 0))) in hashalloc()
86 else if (!(tab->root = newof(0, Hash_root_t, 1, 0))) in hashalloc()
88 if (!(tab->root->local = newof(0, Hash_local_t, 1, 0))) in hashalloc()
176 else if (!(tab->table = newof(0, Hash_bucket_t*, tab->size, 0))) goto out; in hashalloc()
/titanic_51/usr/src/contrib/ast/src/lib/libast/hash/
H A Dhashalloc.c69 else if (!(tab = newof(0, Hash_table_t, 1, 0))) in hashalloc()
86 else if (!(tab->root = newof(0, Hash_root_t, 1, 0))) in hashalloc()
88 if (!(tab->root->local = newof(0, Hash_local_t, 1, 0))) in hashalloc()
176 else if (!(tab->table = newof(0, Hash_bucket_t*, tab->size, 0))) goto out; in hashalloc()
/titanic_51/usr/src/contrib/ast/src/lib/libast/astsa/
H A Dast.c55 if (!(buf = newof(0, char, siz, 0))) in sfgetr()
67 if (!(buf = newof(buf, char, siz, 0))) in sfgetr()
H A Dvmalloc.c38 if (vp = newof(0, Vmalloc_t, 1, 0)) in _vm_open()
79 if (!(vp->current->next = newof(0, Vmchunk_t, 1, n))) in _vm_resize()
/titanic_51/usr/src/lib/libast/common/dir/
H A Dopendir.c61 newof(0, DIR, 1, DIRBLKSIZ)
63 newof(0, DIR, 1, 0)
/titanic_51/usr/src/contrib/ast/src/lib/libast/dir/
H A Dopendir.c63 newof(0, DIR, 1, DIRBLKSIZ)
65 newof(0, DIR, 1, 0)
/titanic_51/usr/src/contrib/ast/src/lib/libast/port/
H A Dlcgen.c130 #define newof(p,t,n,x) ((t*)malloc(sizeof(t)*(n)+(x))) macro
421 if (!(cp = newof(0, Charset_t, 1, s - b + 1)))
437 if (!(tp = newof(0, Territory_t, 1, s - b + 1)))
459 if (!(ll = newof(0, Language_list_t, 1, 0)))
491 if (!(lp = newof(0, Language_t, 1, s - b + 1)))
527 if (!(ap = newof(0, Attribute_t, 1, 0)))
534 if (!(al = newof(0, Attribute_list_t, 1, 0)))
560 if (!(mp = newof(0, Map_t, 1, s - b + 1)))
/titanic_51/usr/src/lib/libast/common/port/
H A Dlcgen.c130 #define newof(p,t,n,x) ((t*)malloc(sizeof(t)*(n)+(x))) macro
421 if (!(cp = newof(0, Charset_t, 1, s - b + 1)))
437 if (!(tp = newof(0, Territory_t, 1, s - b + 1)))
459 if (!(ll = newof(0, Language_list_t, 1, 0)))
491 if (!(lp = newof(0, Language_t, 1, s - b + 1)))
527 if (!(ap = newof(0, Attribute_t, 1, 0)))
534 if (!(al = newof(0, Attribute_list_t, 1, 0)))
560 if (!(mp = newof(0, Map_t, 1, s - b + 1)))
/titanic_51/usr/src/lib/libshell/common/sh/
H A Denv.c140 else if(vp = newof((Evar_t*)0,Evar_t,2,0)) in env_add()
195 if(!(ep = newof((Env_t*)0,Env_t,1,0))) in env_open()
211 ep->freelist = vp = newof((Evar_t*)0,Evar_t,n,0); in env_open()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Denv.c140 else if(vp = newof((Evar_t*)0,Evar_t,2,0)) in env_add()
195 if(!(ep = newof((Env_t*)0,Env_t,1,0))) in env_open()
211 ep->freelist = vp = newof((Evar_t*)0,Evar_t,n,0); in env_open()
/titanic_51/usr/src/lib/libshell/common/bltins/
H A Dmkservice.c265 file_list = newof(NULL,short,n,0); in service_init()
266 poll_list = newof(NULL,Sfio_t*,n,0); in service_init()
267 service_list = newof(NULL,Service_t*,n,0); in service_init()
435 if (!(sp = newof(0, Service_t, 1, 0))) in b_mkservice()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dmkservice.c265 file_list = newof(NULL,short,n,0); in service_init()
266 poll_list = newof(NULL,Sfio_t*,n,0); in service_init()
267 service_list = newof(NULL,Service_t*,n,0); in service_init()
435 if (!(sp = newof(0, Service_t, 1, 0))) in b_mkservice()
/titanic_51/usr/src/contrib/ast/src/lib/libcmd/
H A Djoin.c191 if (jp = newof(0, Join_t, 1, 0)) in init()
200 if (!(jp->file[0].fields = newof(0, Field_t, NFIELD + 1, 0)) || in init()
201 !(jp->file[1].fields = newof(0, Field_t, NFIELD + 1, 0))) in init()
224 outptr = jp->outlist = newof(0, int, NFIELD + 1, 0); in getolist()
249 jp->outlist = newof(jp->outlist, int, 2 * nfield + 1, 0); in getolist()
280 jp->outlist = newof(jp->outlist, int, 2 * nfield + 1, 0); in getolist()
331 fp->fields = newof(fp->fields, Field_t, n + 1, 0); in getrec()
705 if (!(jp->same = newof(jp->same, char, jp->samesize, 0))) in join()
/titanic_51/usr/src/lib/libcmd/common/
H A Djoin.c191 if (jp = newof(0, Join_t, 1, 0)) in init()
200 if (!(jp->file[0].fields = newof(0, Field_t, NFIELD + 1, 0)) || in init()
201 !(jp->file[1].fields = newof(0, Field_t, NFIELD + 1, 0))) in init()
224 outptr = jp->outlist = newof(0, int, NFIELD + 1, 0); in getolist()
249 jp->outlist = newof(jp->outlist, int, 2 * nfield + 1, 0); in getolist()
280 jp->outlist = newof(jp->outlist, int, 2 * nfield + 1, 0); in getolist()
331 fp->fields = newof(fp->fields, Field_t, n + 1, 0); in getrec()
715 if (!(jp->same = newof(jp->same, char, jp->samesize, 0))) in join()
/titanic_51/usr/src/contrib/ast/src/lib/libast/path/
H A Dpathexists.c78 if (!(t = newof(0, Tree_t, 1, strlen(s)))) in pathexists()
104 if (!(p = newof(0, Tree_t, 1, strlen(s)))) in pathexists()

12345678910