Lines Matching defs:tname
323 char *tname; /* name used with >; */
1072 char *tname, *sp, *ep;
1105 tname = stakfreeze(1);
1109 rename(tname,name);
1112 unlink(tname);
1115 return(tname);
1135 char *tname=0, *after="", *trace = shp->st.trap[SH_DEBUGTRAP];
1331 tname = io_usename(fname,&perm,0);
1361 if((fd=sh_open(tname?tname:fname,o_mode,RW_ALL)) <0)
1367 chmod(tname,perm);
1469 if(flag==0 || tname || (flag==1 && fn==1 && (shp->fdstatus[fn]&IONOSEEK) && shp->outpipepid && shp->outpipepid==getpid()))
1479 sh_iosave(shp,fn,indx,tname?fname:(trunc?Empty:0));
1482 sh_iosave(shp,fn,indx|IOSUBSHELL,tname?fname:0);
1660 filemap[shp->topfd].tname = name;
1745 if(filemap[fd].tname == Empty && shp->exitval==0)
1747 else if(filemap[fd].tname)
1748 io_usename(filemap[fd].tname,(int*)0,shp->exitval?2:1);