Searched refs:stakalloc (Results 1 - 17 of 17) sorted by relevance

/ast/src/lib/libast/include/
H A Dstak.h50 #define stakalloc(n) stkalloc(stkstd,n) macro
/ast/src/lib/libcmd/
H A Dtee.c170 if (tp = (Tee_t*)stakalloc(sizeof(Tee_t) + argc * sizeof(int)))
H A Dpaste.c256 if (!(streams = (Sfio_t**)stakalloc(n*sizeof(Sfio_t*))))
H A Dchgrp.c360 if (!(m = (Map_t*)stakalloc(sizeof(Map_t))))
H A Dcut.c140 if (!(cut = (Cut_t*)stakalloc(sizeof(Cut_t) + strlen(cp) * sizeof(int))))
H A Dwclib.c63 if (!(wp = (Wc_t*)stakalloc(sizeof(Wc_t))))
H A Dtail.c612 if (!(fp = (Tail_t*)stakalloc(argc * sizeof(Tail_t))))
/ast/src/cmd/ksh93/bltins/
H A Dhist.c302 string = stakalloc(c+1);
H A Dtest.c623 groups = (gid_t*)stakalloc((maxgroups+1)*sizeof(gid_t));
/ast/src/cmd/builtin/
H A Dpr.c151 if(!(pp = (Pr_t*)stakalloc(DATESZ+sizeof(Pr_t))))
831 if(!(pp->fieldlist = (char**)stakalloc(n*(sizeof(char*)+pp->width))))
852 if(!(pp->margin = (char*)stakalloc(pp->offset)))
893 pp->streams = (Sfio_t**)stakalloc(pp->columns*sizeof(Sfio_t*));
/ast/src/lib/libast/misc/
H A Dglob.c741 top = ap = (globlist_t*)stakalloc((optlen ? 2 : 1) * strlen(pattern) + sizeof(globlist_t) + suflen + gp->gl_extra);
779 argv = (char**)stakalloc((gp->gl_pathc + extra) * sizeof(char*));
/ast/src/cmd/ksh93/sh/
H A Dparse.c92 #define getnode(type) ((Shnode_t*)stakalloc(sizeof(struct type)))
620 r = (struct regnod*)stakalloc(sizeof(struct regnod));
853 slp = (struct slnod*)stakalloc(sizeof(struct slnod)+sizeof(struct functnod));
873 struct dolnod *dp = (struct dolnod*)stakalloc(size);
890 ap = (struct argnod*)stakalloc(flag);
1855 dp = (struct dolnod*)stakalloc((unsigned)sizeof(struct dolnod) + ARG_SPARE*sizeof(char*) + argn*sizeof(char*));
H A Dxec.c799 np = (Namval_t*)stakalloc(sizeof(Dtlink_t)+sizeof(char*));
2077 exitval = job.exitval = (int*)stakalloc(job.waitall*sizeof(int));
2961 register struct comnod *t = (struct comnod*)stakalloc(sizeof(struct comnod));
2969 dp = (struct dolnod*)stakalloc((unsigned)sizeof(struct dolnod) + ARG_SPARE*sizeof(char*) + argn*sizeof(char*));
3382 memcpy(savstak=stakalloc(nsig),(char*)&shp->st.trapcom[0],nsig);
H A Dio.c1179 struct argnod *ap = (struct argnod*)stakalloc(ARGVAL+strlen(iop->ioname));
1187 struct argnod *ap = (struct argnod*)stakalloc(ARGVAL+strlen(iop->ioname));
H A Dname.c2121 q = stakalloc(strlen(nv_name(np))+(value?strlen(value):0)+2);
2247 er = (char**)stakalloc((namec+4)*sizeof(char*));
2252 *data.argnam = (char*)stakalloc(data.attsize);
/ast/src/cmd/ksh93/edit/
H A Dedit.c1679 cp = stakalloc(m=strlen(pattern)+6);
1717 mp = (Histmatch_t*)stakalloc(sizeof(Histmatch_t)+l);
1731 argv = av = (char**)stakalloc((ac+1)*sizeof(char*));
/ast/src/cmd/ie/
H A Dedit.c710 struct comnod *comptr = (struct comnod*)stakalloc(sizeof(struct comnod));

Completed in 83 milliseconds