Lines Matching refs:offset_t
77 lseek32_common(file_t *fp, int stype, offset_t off, offset_t max, in lseek32_common()
78 offset_t *retoff) in lseek32_common()
84 offset_t curoff, newoff; in lseek32_common()
118 if (reg && (off > (max - (offset_t)vattr.va_size))) { in lseek32_common()
122 noff = (u_offset_t)(off + (offset_t)vattr.va_size); in lseek32_common()
154 fp->f_offset = (offset_t)noff; in lseek32_common()
155 (*retoff) = (offset_t)noff; in lseek32_common()
177 if (off < (offset_t)vattr.va_size) in lseek32_common()
185 fp->f_offset = (offset_t)noff; in lseek32_common()
186 (*retoff) = (offset_t)noff; in lseek32_common()
195 newoff = (offset_t)noff; in lseek32_common()
210 offset_t retoff; in lseek32()
228 error = lseek32_common(fp, stype, (offset_t)off, in lseek32()
229 (offset_t)MAXOFF32_T, &retoff); in lseek32()
231 error = lseek32_common(fp, stype, (offset_t)(uint_t)off, in lseek32()
232 (offset_t)(uint_t)UINT_MAX, &retoff); in lseek32()
243 offset_t
248 offset_t retoff; in llseek32()
250 offset_t off = ((u_offset_t)off2 << 32) | (u_offset_t)off1; in llseek32()
252 offset_t off = ((u_offset_t)off1 << 32) | (u_offset_t)off2; in llseek32()
262 return (error ? (offset_t)set_errno(error) : retoff); in llseek32()
281 offset_t new_off; in lseek64()
309 new_off = (offset_t)off; in lseek64()
324 if (new_off >= (offset_t)vattr.va_size) { in lseek64()
352 if (off < (offset_t)vattr.va_size) { in lseek64()
353 new_off = (offset_t)vattr.va_size; in lseek64()