Lines Matching defs:offset
49 * offset Defines the offset to position to
50 * whence Defines how to use offset
53 * The resulting offset on success. A negated errno value is returned on
58 off_t file_seek(struct file *filep, off_t offset, int whence)
76 pos = filep->ops->seek(filep, offset, whence);
92 offset += (off_t)filep->f_pos;
97 if (offset >= 0)
99 filep->f_pos = (loff_t)offset; /* Might be beyond the end-of-file */
128 * The lseek() function repositions the offset of the open file associated
129 * with the file descriptor fd to the argument 'offset' according to the
133 * The offset is set to offset bytes.
135 * The offset is set to its current location plus offset bytes.
137 * The offset is set to the size of the file plus offset bytes.
139 * The lseek() function allows the file offset to be set beyond the end of the
146 * offset Defines the offset to position to
147 * whence Defines how to use offset
150 * The resulting offset on success. -1 on failure withi errno set properly:
154 * resulting file offset would be negative, or beyond the end of a
156 * EOVERFLOW The resulting file offset cannot be represented in an off_t.
161 off_t lseek(int fd, off_t offset, int whence)
176 return file_seek(filep, offset, whence);