mirror of https://github.com/mkerrisk/man-pages
fcntl.2: Add notes on fcntl64()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
b0226745db
commit
0e8704ae99
24
man2/fcntl.2
24
man2/fcntl.2
|
@ -58,7 +58,7 @@
|
|||
.\" 2010-06-17, Michael Kerrisk
|
||||
.\" Document F_SETPIPE_SZ and F_GETPIPE_SZ.
|
||||
.\"
|
||||
.TH FCNTL 2 2010-11-01 "Linux" "Linux Programmer's Manual"
|
||||
.TH FCNTL 2 2010-11-20 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
fcntl \- manipulate file descriptor
|
||||
.SH SYNOPSIS
|
||||
|
@ -1184,6 +1184,28 @@ macro to obtain these definitions.)
|
|||
.\" .PP
|
||||
.\" SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions.
|
||||
.SH NOTES
|
||||
The original Linux
|
||||
.BR fcntl ()
|
||||
system call was not designed to handle large file offsets
|
||||
(in the
|
||||
.I flock
|
||||
structure).
|
||||
Consequently,
|
||||
an
|
||||
.BR fcntl64 ()
|
||||
system call was added in Linux 2.4.
|
||||
The newer system call employs a different structure for file locking,
|
||||
.IR flock64 ,
|
||||
and corresponding commands,
|
||||
.BR F_GETLK64 ,
|
||||
.BR F_SETLK64 ,
|
||||
and
|
||||
.BR F_SETLKW64 .
|
||||
However, these details can be ignored by applications using glibc, whose
|
||||
.BR fcntl ()
|
||||
wrapper function transparently employs the more recent system call
|
||||
where it is available.
|
||||
|
||||
The errors returned by
|
||||
.BR dup2 (2)
|
||||
are different from those returned by
|
||||
|
|
Loading…
Reference in New Issue