Lines Matching refs:fp
46 FILE *fp = cookie;
49 ret = read(fp->_file, buf, n);
52 fp->_offset += ret;
54 fp->_flags &= ~__SOFF; /* paranoia */
61 FILE *fp = cookie;
63 if (fp->_flags & __SAPP)
64 (void) lseek(fp->_file, (off_t)0, SEEK_END);
65 fp->_flags &= ~__SOFF; /* in case FAPPEND mode is set */
66 return (write(fp->_file, buf, n));
72 FILE *fp = cookie;
75 ret = lseek(fp->_file, (off_t)offset, whence);
77 fp->_flags &= ~__SOFF;
79 fp->_flags |= __SOFF;
80 fp->_offset = ret;