Searched refs:sffileno (Results 1 - 25 of 29) sorted by relevance

12

/macosx-10.10.1/ksh-23/ksh/src/lib/libast/sfio/
H A D_sffileno.c24 #undef sffileno macro
27 int sffileno(reg Sfio_t* f) function
29 int sffileno(f)
/macosx-10.10.1/ksh-23/ksh/src/lib/libast/stdio/
H A Dfileno.c39 return sffileno(f);
H A Dvfwscanf.c41 if (sffileno(f) >= 0)
/macosx-10.10.1/ksh-23/ksh/src/lib/libast/uwin/
H A Dgetpass.c58 if(tcgetattr(sffileno(iop),&told) < 0)
63 if(tcsetattr(sffileno(iop),TCSANOW,&tnew) < 0)
69 tcsetattr(sffileno(iop),TCSANOW,&told);
/macosx-10.10.1/ksh-23/ksh/src/lib/libast/port/
H A Dastquery.c63 if (isatty(sffileno(sfstdin)))
67 if (isatty(sffileno(sfstderr)))
/macosx-10.10.1/ksh-23/ksh/src/lib/libcmd/
H A Dwc.c165 if (!(mode&(WC_WORDS|WC_LINES|WC_MBYTE|WC_LONGEST)) && fstat(sffileno(fp),&statb)>=0
168 wp->chars = statb.st_size - lseek(sffileno(fp),0L,1);
169 lseek(sffileno(fp),0L,2);
H A Dcmp.c369 if (fstat(sffileno(f1), &s1))
371 else if (fstat(sffileno(f2), &s2))
H A Dtail.c166 return last || fstat(sffileno(fp), &st) || st.st_size || FIFO(st.st_mode) ? -1 : 0;
298 else if (fstat(sffileno(tp->sp), &st))
329 if (fstat(sffileno(tp->sp), &st))
650 if (fstat(sffileno(fp->sp), &st))
H A Dtee.c76 register int fd = sffileno(fp);
H A Dcksum.c238 if (!st && fstat(sffileno(ip), st = &ss))
320 if (fstat(sffileno(sp), &st))
/macosx-10.10.1/ksh-23/ksh/src/lib/libast/disc/
H A Dsfdcmore.c98 int rfd = sffileno(rp);
99 int wfd = sffileno(rp);
319 if (!(sfset(f, 0, 0) & SF_WRITE) || !isatty(sffileno(sfstdin)) || !isatty(sffileno(sfstdout)))
335 astwinsize(sffileno(sfstdin), &rows, &cols);
H A Dsfdcfilter.c64 close(sffileno(fi->filter));
H A Dsfdcsubstr.c191 if (!(sp = f) && !(sp = sfnew(NIL(Sfio_t*), NIL(Void_t*), (size_t)SF_UNBOUND, dup(sffileno(parent)), parent->flags)))
/macosx-10.10.1/ksh-23/ksh/src/cmd/ksh93/bltins/
H A Dmkservice.c185 int r=0, fd = sffileno(iop);
239 sfprintf(sfstderr," %d",sffileno(poll_list[i]));
246 sfprintf(sfstderr," %d",sffileno(poll_list[i]));
H A Dprint.c218 fd = sffileno(shp->gd->hist_ptr->histfp);
234 else if(!(shp->inuse_bits&(1<<fd)) && (sh_inuse(shp,fd) || (shp->gd->hist_ptr && fd==sffileno(shp->gd->hist_ptr->histfp))))
332 if(sffileno(outfile)!=sffileno(sfstderr))
/macosx-10.10.1/ksh-23/ksh/src/cmd/ksh93/sh/
H A Dshcomp.c115 if(fstat(sffileno(out),&statb) >=0)
H A Dfcin.c63 if(sffileno(f) >= 0)
H A Dio.c478 else if(type==SF_WRITE && (*(ssize_t*)data)<0 && sffileno(iop)!=2)
500 errormsg(SH_DICT,ERROR_system(1),e_badwrite,sffileno(iop));
549 if((iop = shp->sftable[fd]) && sffileno(iop)>=0)
1000 int r, fd=sffileno(sp), close_exec = shp->fdstatus[fd]&IOCLEX;
1003 shp->fdstatus[sffileno(sp)] |= IOCLEX;
1028 shp->fdstatus[sffileno(sp)] &= ~IOCLEX;
1268 dupfd = sffileno(sfstdout);
1575 int fno = sffileno(shp->heredocs);
1601 if(sffileno(tmp)>0)
1622 fd = sffileno(outfil
[all...]
H A Dsubshell.c135 if((fd=sffileno(sfstdout))<0)
673 if(iop && sffileno(iop)==1)
H A Dlex.c207 if(sffileno(iop)>=0)
/macosx-10.10.1/ksh-23/ksh/src/lib/libast/astsa/
H A Dast.h125 #define sffileno(f) fileno(f) macro
/macosx-10.10.1/ksh-23/ksh/src/cmd/ksh93/edit/
H A Dhistory.c473 close(sffileno(hist_old->histfp));
494 if(fstat(sffileno(hist_old->histfp),&statb)>=0)
809 return(write(sffileno(iop),(char*)buff,size));
810 if((cur = lseek(sffileno(iop),(off_t)0,SEEK_END)) <0)
873 size = write(sffileno(iop),(char*)buff,size);
1198 close(oldfd=sffileno(fp));
/macosx-10.10.1/ksh-23/ksh/src/lib/libast/include/
H A Dsfio.h315 extern int sffileno _ARG_((Sfio_t*));
382 __INLINE__ int sffileno(Sfio_t* f) { return __sf_fileno(f); } function
405 #define sffileno(f) ( __sf_fileno(f) )
/macosx-10.10.1/ksh-23/ksh/src/lib/libcoshell/
H A Dcoopen.c58 close(sffileno(state.current->msgfp));
/macosx-10.10.1/ksh-23/ksh/src/lib/libast/misc/
H A Derror.c573 if (fd == sffileno(sfstderr) && error_info.write == write)

Completed in 272 milliseconds

12