fcntl.2: Add "file locking" subheading under NOTES

(No actual changes to the text.)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-05-15 08:55:20 +02:00
parent b939d6e4ba
commit 381eddf1bc
1 changed files with 6 additions and 5 deletions

View File

@ -1225,6 +1225,12 @@ macro to obtain these definitions.)
.\" .PP
.\" SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions.
.SH NOTES
The errors returned by
.BR dup2 (2)
are different from those returned by
.BR F_DUPFD .
.\"
.SS File locking
The original Linux
.BR fcntl ()
system call was not designed to handle large file offsets
@ -1246,11 +1252,6 @@ However, these details can be ignored by applications using glibc, whose
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
.BR F_DUPFD .
Since kernel 2.0, there is no interaction between the types of lock
placed by
.BR flock (2)