1 .\" Copyright (C) 1995 Andries Brouwer (aeb@cwi.nl)
2 .\" Written 10 June 1995 by Andries Brouwer <aeb@cwi.nl>
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
26 .\" Modified Thu Oct 31 15:16:23 1996 by Eric S. Raymond <esr@thyrsus.com>
28 .TH LLSEEK 2 2016-03-15 "Linux" "Linux Programmer's Manual"
30 _llseek \- reposition read/write file offset
33 .B #include <sys/types.h>
34 .B #include <unistd.h>
36 .BI "int _llseek(unsigned int " fd ", unsigned long " offset_high ,
37 .BI " unsigned long " offset_low ", loff_t *" result ,
38 .BI " unsigned int " whence );
42 There is no glibc wrapper for this system call; see NOTES.
46 function repositions the offset of the open file description associated
47 with the file descriptor
50 .I (offset_high<<32) | offset_low
51 bytes relative to the beginning of the file, the current file offset,
52 or the end of the file, depending on whether
60 It returns the resulting file position in the argument
63 This system call exists on various 32-bit platforms to support
64 seeking to large file offsets.
66 Upon successful completion,
69 Otherwise, a value of \-1 is returned and
71 is set to indicate the error.
76 is not an open file descriptor.
79 Problem with copying results to user space.
85 This function is Linux-specific, and should not be used in programs
86 intended to be portable.
88 Glibc does not provide a wrapper for this system call.
89 To invoke it directly, use
91 However, you probably want to use the
93 wrapper function instead.