Searched defs:outfile (Results 1 - 25 of 25) sorted by relevance

/ast/src/cmd/pack/
H A Dhuffputhdr.c31 * This routine outputs a pack format header to <outfile> and returns
35 int huffputhdr(register Huff_t *hp,Sfio_t *outfile) argument
38 register Sfio_t *fp = outfile;
H A Dhuffencode.c55 * result to <outfile>
59 Sfoff_t huffencode(register Huff_t *hp,Sfio_t *infile,Sfio_t *outfile,int size) argument
66 register Sfio_t *fp = outfile;
H A Dpack.c94 register char *infile,*outfile; local
140 if(!(outfile = outname(infile)))
152 else if(access(outfile,F_OK) ==0)
153 error(ERROR_system(0), "%s: already exists", outfile);
154 else if(((out=open(outfile,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,PERM(statb.st_mode))) < 0) ||
156 error(ERROR_system(0), "%s: cannot create", outfile);
157 else if((deleted++,chmod(outfile,statb.st_mode)) < 0)
158 error(ERROR_system(0), "%s: cannot change mode to %o",outfile,statb.st_mode);
161 chown(outfile,statb.st_uid,statb.st_gid);
193 remove(outfile);
[all...]
H A Dunpack.c89 register char *infile,*outfile; local
141 while (outfile = *argv++)
146 if(!(infile = inname(outfile)))
163 else if(access(outfile,F_OK) ==0)
164 error(2, "%s: already exists", outfile);
165 else if(((out=open(outfile,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,PERM(statb.st_mode))) < 0) ||
167 error(2, "%s: cannot create", outfile);
168 else if((deleted++,chmod(outfile,statb.st_mode)) < 0)
169 error(ERROR_system(0), "%s: cannot change mode to %o",outfile,statb.st_mode);
172 chown(outfile,stat
213 inname(register char *outfile) argument
[all...]
/ast/src/lib/libcmd/
H A Dbasename.c69 static void namebase(Sfio_t *outfile, register char *pathname, char *suffix) argument
97 sfwrite(outfile,first,last-first);
98 sfputc(outfile,'\n');
H A Ddirname.c66 static void l_dirname(register Sfio_t *outfile, register const char *pathname) argument
94 sfwrite(outfile,pathname,last+1-pathname);
95 sfputc(outfile,'\n');
H A Dtail.c201 pipetail(Sfio_t* infile, Sfio_t* outfile, Sfoff_t number, int delim) argument
243 sfmove(tmp[!fno], outfile, n, -1);
247 sfmove(tmp[fno], outfile, offset[fno], -1);
H A Djoin.c149 Sfio_t* outfile; member in struct:Join_s
465 register Sfio_t* iop = jp->outfile;
972 jp->outfile = sfstdout;
/ast/src/cmd/ksh93/sh/
H A Dtdump.c43 static Sfio_t *outfile; variable
47 outfile = out;
70 return(sfputl(outfile,-1));
71 if(sfputl(outfile,t->tre.tretyp)<0)
82 if(sfputu(outfile,t->fork.forkline)<0)
101 if(sfputl(outfile,-1)<0)
115 if(sfputu(outfile,t->ar.arline)<0)
119 if(sfputu(outfile,t->for_.forline)<0)
127 if(sfputu(outfile,t->sw.swline)<0)
133 if(sfputu(outfile,
[all...]
H A Ddeparse.c62 static Sfio_t *outfile; variable
69 outfile = out;
99 sfnputc(outfile,'\t',level);
128 sfputr(outfile,"|&",'\n');
133 sfputr(outfile,"&",'\n');
162 sfprintf(outfile,"(( %s; ",forinit);
164 sfputr(outfile,arg->argval,';');
166 sfprintf(outfile," %s))\n",arg->argval);
222 sfputc(outfile,'\n');
226 sfputr(outfile,c
[all...]
H A Dnvtree.c817 register Sfio_t *outfile = wp->out; local
826 if(outfile && !wp->array)
828 sfputc(outfile,'(');
832 sfputc(outfile,'\n');
852 if(outfile)
863 sfnputc(outfile,'\t',wp->indent);
871 sfputr(outfile,sp,' ');
873 nv_outname(outfile,cp,nextcp-cp);
874 sfputc(outfile,'=');
884 sfputc(outfile,'\
969 Sfio_t *outfile; local
[all...]
H A Djobs.c150 static Sfio_t *outfile; variable
573 outfile = sfstderr;
915 outfile = file;
1011 sfprintf(outfile,"%s\n",sh_pid2str(shp,px->p_pgrp?px->p_pgrp:px->p_pid));
1013 sfprintf(outfile,"%d\n",px->p_pgrp?px->p_pgrp:px->p_pid);
1028 sfputc(outfile,'\n');
1029 sfprintf(outfile,"[%d] %c ",n, msize);
1035 sfprintf(outfile,"%s\t",sh_pid2str(shp,px->p_pid));
1037 sfprintf(outfile,"%d\t",px->p_pid);
1049 sfputr(outfile,ms
[all...]
H A Dmacro.c267 * The result is written to <outfile>
269 void sh_machere(Shell_t *shp,Sfio_t *infile, Sfio_t *outfile, char *string) argument
282 mp->sp = outfile;
323 sfwrite(outfile,fcseek(0),c);
345 sfputc(outfile,ESCAPE);
388 sfwrite(outfile,(char*)stkptr(stkp,offset2),c);
402 sfputc(outfile,'$');
H A Dio.c1554 register Sfio_t *infile = 0, *outfile, *tmp; local
1560 if(!(outfile=sftmp(0)))
1566 sfputr(outfile,name,'\n');
1591 sfdisc(outfile,&tee_disc);
1593 tmp = outfile;
1615 sh_machere(shp,infile,outfile,iop->ioname);
1621 /* close stream outfile, but save file descriptor */
1622 fd = sffileno(outfile);
1623 sfsetfd(outfile,-1);
1624 sfclose(outfile);
2436 sh_menu(Sfio_t *outfile,int argn,char *argv[]) argument
[all...]
H A Dxec.c186 static void l_time(Sfio_t *outfile,register clock_t t,int p) argument
200 sfprintf(outfile,"%dh",hr);
202 sfprintf(outfile,"%dm%d%c%0*ds",min,sec,GETDECIMAL(0),p,frac);
204 sfprintf(outfile,"%dm%ds",min,sec);
/ast/src/cmd/ksh93/bltins/
H A Dhist.c48 Sfio_t *outfile; local
186 outfile = sfstdout;
195 outfile= sfnew(NIL(Sfio_t*),shp->outbuff,IOBSIZE,fdo,SF_WRITE);
202 sfprintf(outfile,"%d\t",range[flag]);
204 sfputc(outfile,'\t');
205 hist_list(shp->gd->hist_ptr,outfile,hist_tell(shp->gd->hist_ptr,range[flag]),0,arg);
214 sfclose(outfile);
H A Dprint.c173 register Sfio_t *outfile; local
301 if(!(outfile=shp->sftable[fd]))
305 shp->sftable[fd] = outfile = sfnew(NIL(Sfio_t*),shp->outbuff,IOBSIZE,fd,n);
307 sfpool(outfile,shp->outpool,SF_WRITE);
310 n = sfset(outfile,SF_SHARE|SF_PUBLIC,0);
328 sfprintf(outfile,"%!",&pdata);
331 sfwrite(outfile,stakptr(staktell()),pdata.argsize);
332 if(sffileno(outfile)!=sffileno(sfstderr))
333 sfsync(outfile);
341 fmtbase64(outfile,*arg
373 sh_echolist(Shell_t *shp,Sfio_t *outfile, int raw, char *argv[]) argument
[all...]
H A Dtypeset.c50 Sfio_t *outfile; member in struct:tdata
1309 nv_attribute(np,tp->outfile,tp->prefix,tp->aflag);
1404 tp->outfile = file;
1414 nv_attribute(np,dp->outfile,dp->prefix,dp->aflag);
1434 tp->outfile = file;
/ast/src/lib/libz/
H A Dminigzip.c197 local char outfile[MAX_NAME_LEN]; local
201 strcpy(outfile, file);
202 strcat(outfile, GZ_SUFFIX);
209 out = gzopen(outfile, mode);
211 fprintf(stderr, "%s: can't gzopen %s\n", prog, outfile);
227 char *infile, *outfile; local
236 outfile = buf;
237 outfile[len-3] = '\0';
239 outfile = file;
248 out = fopen(outfile, "w
[all...]
/ast/src/cmd/ie/
H A Deditlib.c55 static struct fileblk outfile = { ed_errbuf, ed_errbuf, ed_errbuf+IOBSIZE, 2, IOWRT}; variable in typeref:struct:fileblk
276 io_ftable[fd] = &outfile;
/ast/src/cmd/kshlib/open/
H A Dopen.c327 Sfio_t *outfile; local
331 outfile = 0;
332 else if(!(outfile=out))
333 outfile = out = sfnew((Sfio_t*)0,(char*)0,-1,-1,SF_WRITE|SF_STRING);
335 sfseek(outfile,0L,SEEK_SET);
336 genvalue(outfile,&dcp->sclass,0,np);
338 if(!outfile)
/ast/src/cmd/builtin/
H A Dpr.c106 Sfio_t *outfile; member in struct:_pr_
178 sfputc(pp->outfile,'\n');
179 sfputc(pp->outfile,'\n');
181 sfwrite(pp->outfile,pp->margin,pp->offlen);
182 if(sfprintf(pp->outfile,"%s %s Page %d\n\n\n",pp->date,header,pp->pageno)<0)
202 if(sfputc(pp->outfile,'\f') < 0)
207 if(sfnputc(pp->outfile, '\n',n+HDRSZ) < 0)
223 out = pp->outfile;
232 sfnputc(pp->outfile,'\n',HDRSZ);
253 if(sfputc(pp->outfile,p
[all...]
/ast/src/cmd/ksh93/edit/
H A Dhistory.c916 * write the command starting at offset <offset> onto file <outfile>.
921 void hist_list(register History_t *hp,Sfio_t *outfile, off_t offset,int last, char *nl) argument
927 sfputr(outfile,sh_translate(e_unknown),'\n');
934 sfputr(outfile,nl,-1);
938 sfputc(outfile,oldc);
/ast/src/lib/libpp/
H A Dpp.h71 #define PPWRITE(n) do{if(write(1,pp.outbuf,n)!=(n))pperror(ERROR_SYSTEM|3,"%s: write error",pp.outfile);pp.offset+=(n);pp.lastout=pp.outbuf[(n)-1];}while(0)
401 char* outfile; /* output file name */ member in struct:ppglobals
/ast/src/cmd/INIT/
H A Dproto.c367 char* outfile; member in struct:ppglobals

Completed in 78 milliseconds