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

12

/illumos-gate/usr/src/lib/libast/common/sfio/
H A D_sffileno.c24 #undef sffileno macro
27 int sffileno(reg Sfio_t* f) function
29 int sffileno(f)
/illumos-gate/usr/src/lib/libast/common/stdio/
H A Dfileno.c39 return sffileno(f);
H A Dvfwscanf.c41 if (sffileno(f) >= 0)
/illumos-gate/usr/src/lib/libast/common/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);
/illumos-gate/usr/src/lib/libast/common/port/
H A Dastquery.c60 if (isatty(sffileno(sfstdin)))
64 if (isatty(sffileno(sfstderr)))
/illumos-gate/usr/src/lib/libcmd/common/
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.c277 if (fstat(sffileno(f1), &s1))
279 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;
300 else if (fstat(sffileno(tp->sp), &st))
331 if (fstat(sffileno(tp->sp), &st))
646 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))
/illumos-gate/usr/src/lib/libast/common/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)))
/illumos-gate/usr/src/lib/libshell/common/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.c184 fd = sffileno(shp->hist_ptr->histfp);
200 else if(!(sh.inuse_bits&(1<<fd)) && (sh_inuse(fd) || (shp->hist_ptr && fd==sffileno(shp->hist_ptr->histfp))))
298 if(sffileno(outfile)!=sffileno(sfstderr))
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dshcomp.c115 if(fstat(sffileno(out),&statb) >=0)
H A Dfcin.c63 if(sffileno(f) >= 0)
H A Dio.c429 else if(type==SF_WRITE && (*(ssize_t*)data)<0 && sffileno(iop)!=2)
451 errormsg(SH_DICT,ERROR_system(1),e_badwrite,sffileno(iop));
504 if((iop = shp->sftable[fd]) && sffileno(iop)>=0)
839 int r, fd=sffileno(sp), close_exec = shp->fdstatus[fd]&IOCLEX;
842 shp->fdstatus[sffileno(sp)] |= IOCLEX;
867 shp->fdstatus[sffileno(sp)] &= ~IOCLEX;
1076 dupfd = sffileno(sfstdout);
1392 fd = sffileno(outfile);
1410 return(write(sffileno(iop),buff,n));
1618 fno = sffileno(io
[all...]
H A Dsubshell.c127 if((fd=sffileno(sfstdout))>=0)
617 if(iop && sffileno(iop)==1)
/illumos-gate/usr/src/lib/libshell/common/edit/
H A Dhistory.c473 close(sffileno(hist_old->histfp));
491 if(fstat(sffileno(hist_old->histfp),&statb)>=0)
776 return(write(sffileno(iop),(char*)buff,size));
777 if((cur = lseek(sffileno(iop),(off_t)0,SEEK_END)) <0)
841 size = write(sffileno(iop),(char*)buff,size);
1166 close(oldfd=sffileno(fp));
/illumos-gate/usr/src/lib/libast/amd64/include/ast/
H A Dsfio.h313 extern int sffileno _ARG_((Sfio_t*));
380 __INLINE__ int sffileno(Sfio_t* f) { return __sf_fileno(f); } function
403 #define sffileno(f) ( __sf_fileno(f) )
/illumos-gate/usr/src/lib/libast/common/include/
H A Dsfio.h313 extern int sffileno _ARG_((Sfio_t*));
380 __INLINE__ int sffileno(Sfio_t* f) { return __sf_fileno(f); } function
403 #define sffileno(f) ( __sf_fileno(f) )
/illumos-gate/usr/src/lib/libast/i386/include/ast/
H A Dsfio.h313 extern int sffileno _ARG_((Sfio_t*));
380 __INLINE__ int sffileno(Sfio_t* f) { return __sf_fileno(f); } function
403 #define sffileno(f) ( __sf_fileno(f) )
/illumos-gate/usr/src/lib/libast/sparc/include/ast/
H A Dsfio.h313 extern int sffileno _ARG_((Sfio_t*));
380 __INLINE__ int sffileno(Sfio_t* f) { return __sf_fileno(f); } function
403 #define sffileno(f) ( __sf_fileno(f) )
/illumos-gate/usr/src/lib/libast/sparcv9/include/ast/
H A Dsfio.h313 extern int sffileno _ARG_((Sfio_t*));
380 __INLINE__ int sffileno(Sfio_t* f) { return __sf_fileno(f); } function
403 #define sffileno(f) ( __sf_fileno(f) )

Completed in 144 milliseconds

12