Penguin
Annotated edit history of _llseek(2) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 LLSEEK
2 !!!LLSEEK
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 ERRORS
8 CONFORMING TO
9 BUGS
10 SEE ALSO
11 ----
12 !!NAME
13
14
15 _llseek - reposition read/write file offset
16 !!SYNOPSIS
17
18
19 __#include __
20
21
22 __#include __
23
24
25 ___syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo,
26 loff_t *, res, uint, wh);__
27
28
29 __int _llseek(unsigned int__ ''fd''__, unsigned
30 long__ ''offset_high''__, unsigned long__
31 ''offset_low''__, loff_t *__''result''__, unsigned
32 int__ ''whence''__);__
33 !!DESCRIPTION
34
35
36 The ___llseek__ function repositions the offset of the
37 file descriptor ''fd'' to ''(offset_high
38 '' bytes relative to the beginning of the file,
39 the current position in the file, or the end of the file,
40 depending on whether ''whence'' is __SEEK_SET__,
41 __SEEK_CUR__, or __SEEK_END__, respectively. It
42 returns the resulting file position in the argument
43 ''result''.
44 !!RETURN VALUE
45
46
47 Upon successful completion, ___llseek__ returns 0.
48 Otherwise, a value of -1 is returned and ''errno'' is set
49 to indicate the error.
50 !!ERRORS
51
52
53 __EBADF__
54
55
56 ''fd'' is not an open file descriptor.
57
58
59 __EINVAL__
60
61
62 ''whence'' is invalid.
63 !!CONFORMING TO
64
65
66 This function is Linux-specific, and should not be used in
67 programs intended to be portable.
68 !!BUGS
69
70
71 The ext2 filesystem does not support files with a size of
72 2GB or more.
73 !!SEE ALSO
74
75
76 lseek(2)
77 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.