1LLSEEK(2)                  Linux Programmer's Manual                 LLSEEK(2)
2
3
4

NAME

6       _llseek - reposition read/write file offset
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <unistd.h>
11
12       int _llseek(unsigned int fd, unsigned long offset_high,
13                   unsigned long offset_low, loff_t *result,
14                   unsigned int whence);
15

DESCRIPTION

17       The  _llseek() function repositions the offset of the open file associ‐
18       ated with the file descriptor  fd  to  (offset_high<<32)  |  offset_low
19       bytes  relative  to  the beginning of the file, the current position in
20       the file, or the end of  the  file,  depending  on  whether  whence  is
21       SEEK_SET,  SEEK_CUR, or SEEK_END, respectively.  It returns the result‐
22       ing file position in the argument result.
23

RETURN VALUE

25       Upon successful completion, _llseek() returns 0.  Otherwise, a value of
26       -1 is returned and errno is set to indicate the error.
27

ERRORS

29       EBADF  fd is not an open file descriptor.
30
31       EFAULT Problem with copying results to user space.
32
33       EINVAL whence is invalid.
34

CONFORMING TO

36       This  function  is  Linux-specific,  and should not be used in programs
37       intended to be portable.
38

NOTES

40       Glibc does not provide a wrapper for this system call;  call  it  using
41       syscall(2).
42

SEE ALSO

44       lseek(2), lseek64(3)
45

COLOPHON

47       This  page  is  part of release 3.22 of the Linux man-pages project.  A
48       description of the project, and information about reporting  bugs,  can
49       be found at http://www.kernel.org/doc/man-pages/.
50
51
52
53Linux                             2007-06-01                         LLSEEK(2)
Impressum