Penguin
Annotated edit history of llseek(2) version 3, including all changes. View license author blame.
Rev Author # Line
1 perry 1 !!NAME
2 _llseek - reposition read/write file offset
3 !!SYNOPSIS
2 PerryLorier 4 #include <unistd.h>
5 #include <linux/unistd.h>
1 perry 6
2 PerryLorier 7 ___syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo, loff_t *, res, uint, wh);__
1 perry 8
2 PerryLorier 9 __int _llseek(unsigned int__ ''fd''__, unsigned long__ ''offset_high''__, unsigned long__ ''offset_low''__, loff_t *__''result''__, unsigned int__ ''whence''__);__
1 perry 10
11 !!DESCRIPTION
2 PerryLorier 12 The ___llseek__ function repositions the offset of the file descriptor ''fd'' to ''(offset_high '' bytes relative to the beginning of the file, the current position in the file, or the end of the file, depending on whether ''whence'' is __SEEK_SET__, __SEEK_CUR__, or __SEEK_END__, respectively. It returns the resulting file position in the argument ''result''.
1 perry 13
14 !!RETURN VALUE
2 PerryLorier 15 Upon successful completion, ___llseek__ returns 0. Otherwise, a value of -1 is returned and ''errno'' is set to indicate the error.
1 perry 16
17 !!ERRORS
2 PerryLorier 18 ;[EBADF]: ''fd'' is not an open file descriptor.
19 ;[EINVAL]: ''whence'' is invalid.
1 perry 20
21 !!CONFORMING TO
2 PerryLorier 22 This function is Linux-specific, and should not be used in programs intended to be portable.
1 perry 23
24 !!BUGS
3 PerryLorier 25 Linux prior to 2.4 does not support files with a size of 2GB or more. Some librarys may not support large files unless compiled on a 2.4 kernel.
1 perry 26
27 !!SEE ALSO
28 lseek(2)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 10 times)