/ast/src/cmd/pack/ |
H A D | huffputhdr.c | 31 * 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 D | huffencode.c | 55 * 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 D | pack.c | 94 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 D | unpack.c | 89 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 D | basename.c | 69 static void namebase(Sfio_t *outfile, register char *pathname, char *suffix) argument 97 sfwrite(outfile,first,last-first); 98 sfputc(outfile,'\n');
|
H A D | dirname.c | 66 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 D | tail.c | 201 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 D | join.c | 149 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 D | tdump.c | 43 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 D | deparse.c | 62 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 D | nvtree.c | 817 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 D | jobs.c | 150 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 D | macro.c | 267 * 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 D | io.c | 1554 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 D | xec.c | 186 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 D | hist.c | 48 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 D | print.c | 173 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 D | typeset.c | 50 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 D | minigzip.c | 197 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 D | editlib.c | 55 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 D | open.c | 327 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 D | pr.c | 106 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 D | history.c | 916 * 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 D | pp.h | 71 #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 D | proto.c | 367 char* outfile; member in struct:ppglobals
|