Home
last modified time | relevance | path

Searched refs:stkp (Results 1 – 19 of 19) sorted by relevance

/titanic_51/usr/src/lib/libshell/common/sh/
H A Dmacro.c153 Stk_t *stkp = shp->stk; in sh_mactrim() local
156 stkseek(stkp,0); in sh_mactrim()
171 stkseek(stkp,0); in sh_mactrim()
174 str = stkfreeze(stkp,1); in sh_mactrim()
199 Stk_t *stkp = shp->stk; in sh_macexpand() local
225 stkseek(stkp,0); in sh_macexpand()
229 stkseek(stkp,ARGVAL); in sh_macexpand()
230 *stkptr(stkp,ARGVAL-1) = 0; in sh_macexpand()
238 argp->argchn.cp = stkfreeze(stkp,1); in sh_macexpand()
267 Stk_t *stkp = shp->stk; in sh_machere() local
[all …]
H A Dlex.c142 register Stk_t *stkp = shp->stk; in refvar() local
152 int n,offset = stktell(stkp); in refvar()
159 sfwrite(stkp,fcfirst()+type,off-offset); in refvar()
160 n = stktell(stkp)-lp->lexd.kiaoff; in refvar()
161 begin = stkptr(stkp,lp->lexd.kiaoff); in refvar()
169 savptr = stkfreeze(stkp,0); in refvar()
171 stkset(stkp,savptr,offset); in refvar()
186 Stk_t *stkp = shp->stk; in lex_advance() local
211 lp->arg = (struct argnod*)stkseek(stkp,ARGVAL); in lex_advance()
218 sfwrite(stkp,buff,size); in lex_advance()
[all …]
H A Dxec.c110 Stk_t *stkp = shp->stk; in p_time() local
115 sfwrite(stkp, first, format-first); in p_time()
146 stkseek(stkp,offset); in p_time()
153 l_time(stkp, tm[n], p); in p_time()
155 sfprintf(stkp,"%.*f",p, d); in p_time()
159 sfwrite(stkp,first, format-first); in p_time()
160 sfputc(stkp,'\n'); in p_time()
161 n = stktell(stkp)-offset; in p_time()
162 sfwrite(out,stkptr(stkp,offset),n); in p_time()
163 stkseek(stkp,offset); in p_time()
[all …]
H A Dparse.c646 Stk_t *stkp = lexp->sh->stk; in arithfor() local
656 argp = (struct argnod*)stkseek(stkp,ARGVAL); in arithfor()
664 offset = stktell(stkp)-1; in arithfor()
668 while(offset>ARGVAL && ((c= *stkptr(stkp,offset-1)),isspace(c))) in arithfor()
673 stkseek(stkp,offset); in arithfor()
676 sfputc(stkp,'1'); in arithfor()
677 argp = (struct argnod*)stkfreeze(stkp,1); in arithfor()
883 Stk_t *stkp = lexp->sh->stk; in assign() local
922 ap = (struct argnod*)stkseek(stkp,ARGVAL); in assign()
924 sfprintf(stkp,"[%d]=",index++); in assign()
[all …]
H A Dtrestore.c181 Stk_t *stkp=shp->stk; in r_arg() local
184 ap = (struct argnod*)stkseek(stkp,(unsigned)l+ARGVAL); in r_arg()
206 ap = (struct argnod*)stkfreeze(stkp,0); in r_arg()
212 ap = (struct argnod*)stkfreeze(stkp,0); in r_arg()
333 static char *r_string(Stk_t *stkp) in r_string() argument
340 ptr = stkalloc(stkp,(unsigned)l); in r_string()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dmacro.c163 Stk_t *stkp = shp->stk; in sh_mactrim() local
166 stkseek(stkp,0); in sh_mactrim()
181 stkseek(stkp,0); in sh_mactrim()
184 str = stkfreeze(stkp,1); in sh_mactrim()
209 Stk_t *stkp = shp->stk; in sh_macexpand() local
236 stkseek(stkp,0); in sh_macexpand()
240 stkseek(stkp,ARGVAL); in sh_macexpand()
241 *stkptr(stkp,ARGVAL-1) = 0; in sh_macexpand()
249 argp->argchn.cp = stkfreeze(stkp,1); in sh_macexpand()
278 Stk_t *stkp in sh_machere() local
451 Stk_t *stkp = mp->shp->stk; copyto() local
1102 Stk_t *stkp = mp->shp->stk; varsub() local
2034 Stk_t *stkp = mp->shp->stk; comsubst() local
2270 Stk_t *stkp=mp->shp->stk; mac_copy() local
2467 Stk_t *stkp = mp->shp->stk; endfield() local
[all...]
H A Dlex.c147 register Stk_t *stkp = shp->stk; in refvar() local
157 int n,offset = stktell(stkp); in refvar()
164 sfwrite(stkp,fcfirst()+type,off-offset); in refvar()
165 n = stktell(stkp)-lp->lexd.kiaoff; in refvar()
166 begin = stkptr(stkp,lp->lexd.kiaoff); in refvar()
174 savptr = stkfreeze(stkp,0); in refvar()
176 stkset(stkp,savptr,offset); in refvar()
191 Stk_t *stkp = shp->stk; in lex_advance() local
220 lp->arg = (struct argnod*)stkseek(stkp,ARGVAL); in lex_advance()
227 sfwrite(stkp,buf in lex_advance()
329 Stk_t *stkp = shp->stk; sh_lex() local
1711 Stk_t *stkp = lp->sh->stk; nested_here() local
2160 stack_shift(Stk_t * stkp,register char * sp,char * dp) stack_shift() argument
2192 Stk_t *stkp=shp->stk; sh_endword() local
[all...]
H A Dparse.c671 Stk_t *stkp = lexp->sh->stk; in arithfor() local
681 argp = (struct argnod*)stkseek(stkp,ARGVAL); in arithfor()
689 offset = stktell(stkp)-1; in arithfor()
693 while(offset>ARGVAL && ((c= *stkptr(stkp,offset-1)),isspace(c))) in arithfor()
698 stkseek(stkp,offset); in arithfor()
701 sfputc(stkp,'1'); in arithfor()
702 argp = (struct argnod*)stkfreeze(stkp,1); in arithfor()
948 Stk_t *stkp = lexp->sh->stk; in assign() local
993 ar = (struct argnod*)stkseek(stkp,ARGVAL); in assign()
995 sfprintf(stkp,"[ in assign()
1400 Stk_t *stkp = lexp->sh->stk; simple() local
1671 Stk_t *stkp = lexp->sh->stk; inout() local
2024 Stk_t *stkp = lexp->sh->stk; kiaentity() local
[all...]
H A Dtrestore.c181 Stk_t *stkp=shp->stk; in r_arg() local
184 ap = (struct argnod*)stkseek(stkp,(unsigned)l+ARGVAL); in r_arg()
207 ap = (struct argnod*)stkfreeze(stkp,0); in r_arg()
214 ap = (struct argnod*)stkfreeze(stkp,0); in r_arg()
337 static char *r_string(Stk_t *stkp) in r_string() argument
344 ptr = stkalloc(stkp,(unsigned)l); in r_string()
H A Dxec.c215 Stk_t *stkp = shp->stk; in p_time() local
220 sfwrite(stkp, first, format-first); in p_time()
251 stkseek(stkp,offset); in p_time()
258 l_time(stkp, tm[n], p); in p_time()
260 sfprintf(stkp,"%.*f",p, d); in p_time()
264 sfwrite(stkp,first, format-first); in p_time()
265 sfputc(stkp,'\n'); in p_time()
266 n = stktell(stkp)-offset; in p_time()
267 sfwrite(out,stkptr(stkp,offset),n); in p_time()
268 stkseek(stkp,offse in p_time()
503 Stk_t *stkp=shp->stk; sh_debug() local
976 Stk_t *stkp = shp->stk; sh_exec() local
[all...]
H A Dnvdisc.c1491 Stk_t *stkp = shp->stk; in sh_fsearch() local
1492 int offset = stktell(stkp); in sh_fsearch()
1493 sfputr(stkp,nv_name(shp->namespace),'.'); in sh_fsearch()
1494 sfputr(stkp,fname,0); in sh_fsearch()
1495 fname = stkptr(stkp,offset); in sh_fsearch()
/titanic_51/usr/src/lib/libproc/common/
H A DPlwpregs.c389 Plwp_stack(struct ps_prochandle *P, lwpid_t lwpid, stack_t *stkp) in Plwp_stack() argument
412 if (Pread(P, stkp, sizeof (*stkp), addr) != sizeof (*stkp)) in Plwp_stack()
421 stack_32_to_n(&stk32, stkp); in Plwp_stack()
429 Plwp_main_stack(struct ps_prochandle *P, lwpid_t lwpid, stack_t *stkp) in Plwp_main_stack() argument
457 if (Pread(P, stkp, sizeof (*stkp), addr) != sizeof (*stkp)) in Plwp_main_stack()
460 if (stkp in Plwp_main_stack()
503 Plwp_alt_stack(struct ps_prochandle * P,lwpid_t lwpid,stack_t * stkp) Plwp_alt_stack() argument
[all...]
H A DPcontrol.c3740 Lstack(struct ps_lwphandle *L, stack_t *stkp) in Lstack() argument
3746 if (Pread(P, stkp, sizeof (*stkp), addr) != sizeof (*stkp)) in Lstack()
3755 stack_32_to_n(&stk32, stkp); in Lstack()
3763 Lmain_stack(struct ps_lwphandle *L, stack_t *stkp) in Lmain_stack() argument
3767 if (Lstack(L, stkp) != 0) in Lmain_stack()
3775 if (!(stkp->ss_flags & SS_ONSTACK)) in Lmain_stack()
3781 if (Pread(P, stkp, sizeof (*stkp), in Lmain_stack()
3801 Lalt_stack(struct ps_lwphandle * L,stack_t * stkp) Lalt_stack() argument
[all...]
/titanic_51/usr/src/lib/libshell/common/bltins/
H A Dgetopts.c39 Stk_t *stkp = shp->stk; in infof() local
42 int savtop = stktell(stkp); in infof()
43 char *savptr = stkfreeze(stkp,0); in infof()
44 sfputc(stkp,'$'); in infof()
45 sfputc(stkp,'('); in infof()
46 sfputr(stkp,s,')'); in infof()
47 sfputr(sp,sh_mactry(shp,stkfreeze(stkp,1)),-1); in infof()
48 stkset(stkp,savptr,savtop); in infof()
H A Dtypeset.c382 Stk_t *stkp = tdata.sh->stk; in b_typeset() local
383 int offset = stktell(stkp); in b_typeset()
384 sfputr(stkp,NV_CLASS,-1); in b_typeset()
386 sfputc(stkp,'.'); in b_typeset()
387 sfputr(stkp,tdata.prefix,0); in b_typeset()
388 tdata.tp = nv_open(stkptr(stkp,offset),tdata.sh->var_tree,NV_VARNAME|NV_NOARRAY|NV_NOASSIGN); in b_typeset()
389 stkseek(stkp,offset); in b_typeset()
785 Stk_t *stkp; in b_builtin() local
791 stkp = tdata.sh->stk; in b_builtin()
851 flag = stktell(stkp); in b_builtin()
[all …]
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dgetopts.c39 Stk_t *stkp = shp->stk; in infof() local
46 int savtop = stktell(stkp); in infof()
47 char *savptr = stkfreeze(stkp,0); in infof()
48 sfputc(stkp,'$'); in infof()
49 sfputc(stkp,'('); in infof()
50 sfputr(stkp,s,')'); in infof()
51 sfputr(sp,sh_mactry(shp,stkfreeze(stkp,1)),-1); in infof()
52 stkset(stkp,savptr,savtop); in infof()
H A Dtypeset.c415 Stk_t *stkp = tdata.sh->stk; in b_typeset() local
416 int off=0,offset = stktell(stkp); in b_typeset()
419 sfputr(stkp,NV_CLASS,-1); in b_typeset()
423 off = stktell(stkp)+1; in b_typeset()
424 sfputr(stkp,nv_name(tdata.sh->namespace),'.'); in b_typeset()
429 sfputc(stkp,'.'); in b_typeset()
430 sfputr(stkp,tdata.prefix,0); in b_typeset()
431 tdata.tp = nv_open(stkptr(stkp,offset),tdata.sh->var_tree,NV_VARNAME|NV_NOARRAY|NV_NOASSIGN); in b_typeset()
435 *stkptr(stkp,off)=0; in b_typeset()
436 tdata.tp = nv_open(stkptr(stkp,offse in b_typeset()
974 Stk_t *stkp; b_builtin() local
[all...]
/titanic_51/usr/src/uts/common/os/
H A Dddifm.c219 caddr_t stkp; in i_ddi_drv_ereport_post() local
245 stkp = buf; in i_ddi_drv_ereport_post()
248 (void) snprintf(stkp, DDI_FM_SYM_SZ, in i_ddi_drv_ereport_post()
250 stkpp[i] = stkp; in i_ddi_drv_ereport_post()
251 stkp += DDI_FM_SYM_SZ; in i_ddi_drv_ereport_post()
H A Dfm.c1265 char *stkp = buf; in fm_payload_stack_add() local
1267 for (i = 0; i < depth && i != FM_STK_DEPTH; i++, stkp += FM_SYM_SZ) { in fm_payload_stack_add()
1269 (void) snprintf(stkp, FM_SYM_SZ, "%s+%lx", sym, off); in fm_payload_stack_add()
1271 (void) snprintf(stkp, FM_SYM_SZ, "%lx", (long)stack[i]); in fm_payload_stack_add()
1272 stkpp[i] = stkp; in fm_payload_stack_add()