Searched defs:fno (Results 1 - 4 of 4) sorted by relevance
/ast/src/cmd/ksh93/sh/ |
H A D | main.c | 364 static void exfile(register Shell_t *shp, register Sfio_t *iop,register int fno) argument 376 if(fno > 0) 379 if(fno < 10 && ((r=sh_fcntl(fno,F_DUPFD,10))>=10)) 381 shp->fdstatus[r] = shp->fdstatus[fno]; 382 sh_close(fno); 383 fno = r; 385 fcntl(fno,F_SETFD,FD_CLOEXEC); 386 shp->fdstatus[fno] |= IOCLEX; 387 iop = sh_iostream((void*)shp,fno); [all...] |
H A D | path.c | 584 * load functions from file <fno> 586 static void funload(Shell_t *shp,int fno, const char *name) argument 615 sh_close(fno); 624 sh_eval(sfnew(NIL(Sfio_t*),buff,IOBSIZE,fno,SF_READ),SH_FUNEVAL); 625 sh_close(fno); 658 register int fno; local 708 if(pp && strmatch(name,e_alphanum) && (fno=path_opentype(shp,name,pp,1))>=0) 712 sh_close(fno); 715 funload(shp,fno,name);
|
H A D | io.c | 1072 static char *io_usename(char *name, int *perm, int fno, int mode) argument 1113 sfprintf(stkstd,"%<#d_%d{;.tmp",getpid(),fno); 1575 int fno = sffileno(shp->heredocs); local 1576 if(fno>=0) 1581 fcntl(fno,F_SETLKW,&lock); 1594 if(fno>=0 && !(iop->iofile&IOQUOTE)) 1596 if(fno>=0 || (iop->iofile&IOQUOTE)) 1607 if(fno>=0) 1608 fcntl(fno,F_SETLK,&lock); 1844 register int n,fno; local [all...] |
/ast/src/lib/libcmd/ |
H A D | tail.c | 207 register int fno = 0; local 218 offset[fno] = sftell(out); 221 out = tmp[fno= !fno]; 228 offset[fno] = 0; 229 fno= !fno; 237 if (offset[fno]) 241 sfmove(tmp[!fno], NiL, n, delim); 242 if ((n = offset[!fno] [all...] |
Completed in 22 milliseconds