Home
last modified time | relevance | path

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

/titanic_44/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_44/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->ss_flags & SS_ONSTACK) in Plwp_main_stack()
472 stack_32_to_n(&stk32, stkp); in Plwp_main_stack()
483 if (Pread(P, stkp, sizeof (*stkp), in Plwp_main_stack()
484 (uintptr_t)&ctxp->uc_stack) != sizeof (*stkp)) in Plwp_main_stack()
495 stack_32_to_n(&stk32, stkp); in Plwp_main_stack()
[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()
3782 (uintptr_t)&ctxp->uc_stack) != sizeof (*stkp)) in Lmain_stack()
3793 stack_32_to_n(&stk32, stkp); in Lmain_stack()
3801 Lalt_stack(struct ps_lwphandle *L, stack_t *stkp) in Lalt_stack() argument
[all …]
/titanic_44/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_44/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()