mirror of https://github.com/mkerrisk/man-pages
llseek.2, lseek.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
79c064f2e3
commit
674367694c
|
@ -43,7 +43,7 @@ There is no glibc wrapper for this system call; see NOTES.
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
.BR _llseek ()
|
.BR _llseek ()
|
||||||
function repositions the offset of the open file description associated
|
system call repositions the offset of the open file description associated
|
||||||
with the file descriptor
|
with the file descriptor
|
||||||
.I fd
|
.I fd
|
||||||
to
|
to
|
||||||
|
|
|
@ -54,9 +54,8 @@ lseek \- reposition read/write file offset
|
||||||
.PP
|
.PP
|
||||||
.BI "off_t lseek(int " fd ", off_t " offset ", int " whence );
|
.BI "off_t lseek(int " fd ", off_t " offset ", int " whence );
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The
|
|
||||||
.BR lseek ()
|
.BR lseek ()
|
||||||
function repositions the file offset of the open file description
|
repositions the file offset of the open file description
|
||||||
associated with the file descriptor
|
associated with the file descriptor
|
||||||
.I fd
|
.I fd
|
||||||
to the argument
|
to the argument
|
||||||
|
@ -80,9 +79,8 @@ The file offset is set to the size of the file plus
|
||||||
.I offset
|
.I offset
|
||||||
bytes.
|
bytes.
|
||||||
.PP
|
.PP
|
||||||
The
|
|
||||||
.BR lseek ()
|
.BR lseek ()
|
||||||
function allows the file offset to be set beyond the end
|
allows the file offset to be set beyond the end
|
||||||
of the file (but this does not change the size of the file).
|
of the file (but this does not change the size of the file).
|
||||||
If data is later written at this point, subsequent reads of the data
|
If data is later written at this point, subsequent reads of the data
|
||||||
in the gap (a "hole") return null bytes (\(aq\\0\(aq) until
|
in the gap (a "hole") return null bytes (\(aq\\0\(aq) until
|
||||||
|
|
Loading…
Reference in New Issue