Lines Matching refs:fp
47 FILE *fp = cookie; in __sread() local
50 ret = TEMP_FAILURE_RETRY(read(fp->_file, buf, n)); in __sread()
53 fp->_offset += ret; in __sread()
55 fp->_flags &= ~__SOFF; /* paranoia */ in __sread()
62 FILE *fp = cookie; in __swrite() local
64 if (fp->_flags & __SAPP) in __swrite()
65 (void) TEMP_FAILURE_RETRY(lseek(fp->_file, (off_t)0, SEEK_END)); in __swrite()
66 fp->_flags &= ~__SOFF; /* in case FAPPEND mode is set */ in __swrite()
67 return TEMP_FAILURE_RETRY(write(fp->_file, buf, n)); in __swrite()
73 FILE *fp = cookie; in __sseek() local
76 ret = TEMP_FAILURE_RETRY(lseek(fp->_file, (off_t)offset, whence)); in __sseek()
78 fp->_flags &= ~__SOFF; in __sseek()
80 fp->_flags |= __SOFF; in __sseek()
81 fp->_offset = ret; in __sseek()