Searched defs:fno (Results 1 - 14 of 14) sorted by relevance

/illumos-gate/usr/src/lib/libbc/libc/stdio/4.2/
H A Dsetbuf.c45 register int fno = fileno(iop); /* file number */ local
53 iop->_base = _smbuf[fno];
H A Dflsbuf.c229 int fno = fileno(iop); /* file number */ local
235 iop->_base = _smbuf[fno];
239 if ( isatty(fno) ) {
243 if (fstat(fno, &statb) < 0)
256 iop->_base = _smbuf[fno];
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dsetvbuf.c47 register int fno = fileno(iop); /* file number */ local
58 iop->_base = _smbuf[fno];
H A Dsetbuffer.c48 int fno = fileno(iop); /* file number */ local
56 iop->_base = _smbuf[fno];
/illumos-gate/usr/src/lib/libbc/libc/stdio/sys5/
H A Dsetbuf.c45 register int fno = fileno(iop); /* file number */ local
53 iop->_base = _smbuf[fno];
57 if (isatty(fno))
H A Dflsbuf.c234 int fno = fileno(iop); /* file number */ local
240 iop->_base = _smbuf[fno];
244 if ( isatty(fno) ) {
248 if (fstat(fno, &statb) < 0)
261 iop->_base = _smbuf[fno];
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dsetbuf.c47 int fno = GET_FD(iop); /* file number */ local
59 if (fno < 2) {
61 buf = (fno == 0) ? _sibuf : _sobuf;
64 if (fno < _NFILE) {
65 buf = _smbuf[fno];
73 if (isatty(fno))
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dsetbuffer.c53 int fno = fileno(iop); /* file number */ local
62 if (fno < 2) {
64 buf = (fno == 0) ? _sibuf : _sobuf;
66 } else if (fno < _NFILE) {
67 buf = _smbuf[fno];
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dmain.c383 static void exfile(register Shell_t *shp, register Sfio_t *iop,register int fno) argument
395 if(fno > 0)
398 if(fno < 10 && ((r=sh_fcntl(fno,F_DUPFD,10))>=10))
400 shp->fdstatus[r] = shp->fdstatus[fno];
401 sh_close(fno);
402 fno = r;
404 fcntl(fno,F_SETFD,FD_CLOEXEC);
405 shp->fdstatus[fno] |= IOCLEX;
406 iop = sh_iostream((void*)shp,fno);
[all...]
H A Dpath.c627 * load functions from file <fno>
629 static void funload(Shell_t *shp,int fno, const char *name) argument
659 sh_eval(sfnew(NIL(Sfio_t*),buff,IOBSIZE,fno,SF_READ),SH_FUNEVAL);
680 register int fno; local
729 if(pp && strmatch(name,e_alphanum) && (fno=path_opentype(name,pp,1))>=0)
733 sh_close(fno);
736 funload(shp,fno,name);
H A Dio.c1610 register int n,fno; local
1618 fno = sffileno(iop);
1623 if(errno==0 && (n=fcntl(fno,F_GETFL,0))&O_NDELAY)
1626 fcntl(fno, F_SETFL, n);
1634 n = fcntl(fno,F_GETFL,0);
1636 fcntl(fno, F_SETFL, n);
1652 if(isatty(fno))
/illumos-gate/usr/src/lib/libcmd/common/
H A Dtail.c207 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...]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dlufs.c567 daddr_t fno; local
618 fno = logbtofrag(fs, ep->pbno);
620 for (j = 0; j < nfno; j += fs->fs_frag, fno += fs->fs_frag)
621 free(ip, fno, fs->fs_bsize, 0);
668 daddr_t fno; /* in frags */ local
694 fno = contigpref(ufsvfsp, nb + fs->fs_bsize, minb);
695 error = alloc(ip, fno, fs->fs_bsize, &fno, cr);
698 bno = fsbtodb(fs, fno);
720 error = alloc(ip, fno
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dutilities.c2177 daddr32_t nfno, fno; local
2215 fno = logbtofrag(&sblock, ep->pbno);
2217 for (j = 0; j < nfno; ++j, ++fno) {
2227 (*cb)(fno);
2228 if (!testbmap(fno))
2235 fno = logbtofrag(&sblock, sblock.fs_logbno);
2236 for (j = 0; j < sblock.fs_frag; ++j, ++fno)
2237 (*cb)(fno);

Completed in 82 milliseconds