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
16       Note: There is no glibc wrapper for this system call; see NOTES.
17

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

CONFORMING TO

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

NOTES

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

SEE ALSO

46       lseek(2), lseek64(3)
47

COLOPHON

49       This  page  is  part of release 3.53 of the Linux man-pages project.  A
50       description of the project, and information about reporting  bugs,  can
51       be found at http://www.kernel.org/doc/man-pages/.
52
53
54
55Linux                             2012-07-13                         LLSEEK(2)
Impressum