|
AquilaOS documentation
How it works, and its code
|
The generic lseek operation for files that are vnodes, as POSIX (IEEE Std 1003.1) describes it. More...
Go to the source code of this file.
Functions | |
| off_t | posix_file_lseek (struct file *file, off_t offset, int whence) |
| Moves an open file's offset: to offset (SEEK_SET), by offset from where it is (SEEK_CUR), or by offset from the end of the file (SEEK_END). | |
The generic lseek operation for files that are vnodes, as POSIX (IEEE Std 1003.1) describes it.
Definition in file lseek.c.
Moves an open file's offset: to offset (SEEK_SET), by offset from where it is (SEEK_CUR), or by offset from the end of the file (SEEK_END).
The offset may go past the end of the file.
| file | the open file |
| offset | the offset, or the distance to move it |
| whence | SEEK_SET, SEEK_CUR or SEEK_END |
Definition at line 22 of file lseek.c.
References file::offset, posix_file_lseek(), and vnode::size.
Referenced by posix_file_lseek().