Lines Matching refs:ip
416 register Sfio_t* ip; in b_tail() local
750 ip = sfstdin; in b_tail()
752 else if (!(ip = sfopen(NiL, file, "r"))) in b_tail()
764 sfset(ip, SF_SHARE, 1); in b_tail()
765 …if (number < -1 && (moved = sfmove(ip, NiL, -(number + 1), delim)) >= 0 && delim >= 0 && moved < -… in b_tail()
766 (void)sfgetr(ip, delim, SF_LASTR); in b_tail()
768 rev_line(ip, sfstdout, sfseek(ip, (Sfoff_t)0, SEEK_CUR)); in b_tail()
770 sfmove(ip, sfstdout, SF_UNBOUND, -1); in b_tail()
774 sfset(ip, SF_SHARE, 0); in b_tail()
775 if ((offset = tailpos(ip, number, delim)) >= 0) in b_tail()
778 rev_line(ip, sfstdout, offset); in b_tail()
781 sfseek(ip, offset, SEEK_SET); in b_tail()
782 sfmove(ip, sfstdout, SF_UNBOUND, -1); in b_tail()
788 pipetail(ip, op, number, delim); in b_tail()
798 if (ip != sfstdin) in b_tail()
799 sfclose(ip); in b_tail()