Lines Matching refs:iop
51 ftell_common(FILE *iop) in ftell_common() argument
57 FLOCKFILE(lk, iop); in ftell_common()
67 if (_get_fd(iop) == -1) { in ftell_common()
68 (void) _fflush_u(iop); in ftell_common()
71 if (iop->_cnt < 0) in ftell_common()
72 iop->_cnt = 0; in ftell_common()
73 if (iop->_flag & _IOREAD) { in ftell_common()
74 adjust = (ptrdiff_t)-iop->_cnt; in ftell_common()
75 } else if (iop->_flag & (_IOWRT | _IORW)) { in ftell_common()
77 if (((iop->_flag & (_IOWRT | _IONBF)) == _IOWRT) && in ftell_common()
78 (iop->_base != 0)) { in ftell_common()
79 adjust = iop->_ptr - iop->_base; in ftell_common()
80 } else if ((iop->_flag & _IORW) && (iop->_base != 0)) { in ftell_common()
81 adjust = (ptrdiff_t)-iop->_cnt; in ftell_common()
89 tres = _xseek64(iop, 0, SEEK_CUR); in ftell_common()
98 ftell(FILE *iop) in ftell() argument
102 tres = ftell_common(iop); in ftell()