Lines Matching defs:offset
54 fseek(FILE *fp, long offset, int whence)
64 ret = _fseeko(fp, (off_t)offset, whence, 1);
72 fseeko(FILE *fp, off_t offset, int whence)
82 ret = _fseeko(fp, offset, whence, 0);
90 * Seek the given file to the given offset.
94 _fseeko(FILE *fp, off_t offset, int whence, int ltest)
118 * In order to seek relative to the current stream offset,
119 * we have to first find the current stream offset via
129 if (offset > 0 && curoff > OFF_MAX - offset) {
133 offset += curoff;
134 if (offset < 0) {
138 if (ltest && offset > LONG_MAX) {
147 if (offset < 0) {
189 target = offset;
193 if (offset > 0 && st.st_size > OFF_MAX - offset) {
197 target = st.st_size + offset;
221 * offset backwards by this count so that it represents the
222 * file offset for the first byte in the current input buffer.
236 * If the target offset is within the current buffer,
256 * By aligning the file offset to a block boundary, we can let
285 (ret = _sseek(fp, (fpos_t)offset, whence)) == POS_ERR)