Lines Matching refs:stakptr

304 		sh_addbuiltin(stakptr(offset),np->nvalue.bfp,NiL);
374 memcpy((void*)save, (void*)stakptr(PATH_OFFSET+pcomp.len),sizeof(save));
377 memcpy((void*)stakptr(PATH_OFFSET+pcomp.len),(void*)save,sizeof(save));
465 if(*stakptr(staktell()-1)!='/')
554 if((fd = sh_open(path_relative(shp,stakptr(PATH_OFFSET)),O_RDONLY,0)) >= 0)
624 pname = path_fullname(shp,stakptr(PATH_OFFSET));
687 if(canexecute(shp,stakptr(PATH_OFFSET),0)<0)
689 *stakptr(PATH_OFFSET) = 0;
725 *stakptr(PATH_OFFSET) = 0;
741 *stakptr(PATH_OFFSET) = 0;
784 if(*stakptr(PATH_OFFSET)=='/' && nv_search(stakptr(PATH_OFFSET),shp->bltin_tree,0))
802 if(!strcmp(cp,LIBCMD) && (addr=(Fptr_t)dlllook((void*)0,stakptr(n))))
804 if((np = sh_addbuiltin(stakptr(PATH_OFFSET),addr,NiL)) && nv_isattr(np,NV_BLTINOPT))
834 (addr=(Fptr_t)dlllook(oldpp->bltin_lib,stakptr(n))) &&
835 (!(np = sh_addbuiltin(stakptr(PATH_OFFSET),NiL,NiL)) || np->nvalue.bfp!=addr) &&
836 (np = sh_addbuiltin(stakptr(PATH_OFFSET),addr,NiL)))
845 f = canexecute(shp,stakptr(PATH_OFFSET),isfun);
860 np = nv_search(stakptr(n),shp->bltin_tree,0);
865 np = sh_addbuiltin(stakptr(PATH_OFFSET),np->nvalue.bfp,nv_context(np));
918 path = stakptr(PATH_OFFSET);
923 memcpy(stakptr(offset),".sh",4);
1042 path = stakptr(PATH_OFFSET);
1059 path = stakptr(PATH_OFFSET);
1108 opath = stakptr(PATH_OFFSET);
1432 name = (const char*)stakptr(offset);
1479 if(pp->len==1 && *stakptr(offset)=='/')
1482 if((fd=open(stakptr(offset),O_RDONLY))>=0)
1487 sp = stakptr(offset+pp->len);
1512 char *ptr = stakptr(offset+pp->len+1);
1515 path_addcomp(shp,first,old,stakptr(offset),PATH_FPATH|PATH_BFPATH);
1550 memcpy((void*)&pp->lib[m],stakptr(offset),pp->len);
1798 sp = stakptr(PATH_OFFSET);