mirror of https://github.com/mkerrisk/man-pages
splice.2: ERRORS: Add EINVAL case for file opened O_APPEND
Target file cannot be opened in append (O_APPEND) mode In kernels prior to v2.6.27 splice() to a file in append mode is broken, and since that version it is disallowed. It is possible this behaviour may change in the future; see the kernel commit message (efc968d450e013049a662d22727cf132618dcb2f) for more information. Signed-off-by: Mark Hills <mark@pogo.org.uk> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
da39f64cf7
commit
28081592c7
|
@ -23,7 +23,7 @@
|
|||
.\" Formatted or processed versions of this manual, if unaccompanied by
|
||||
.\" the source, must acknowledge the copyright and authors of this work.
|
||||
.\"
|
||||
.TH SPLICE 2 2008-09-26 "Linux" "Linux Programmer's Manual"
|
||||
.TH SPLICE 2 2009-02-20 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
splice \- splice data to/from a pipe
|
||||
.SH SYNOPSIS
|
||||
|
@ -146,6 +146,9 @@ or do not have proper read-write mode.
|
|||
.TP
|
||||
.B EINVAL
|
||||
Target file system doesn't support splicing;
|
||||
target file is opened in append mode;
|
||||
.\" The append-mode error is given since 2.6.27; in earlier kernels,
|
||||
.\" splice() in append mode was broken
|
||||
neither of the descriptors refers to a pipe; or
|
||||
offset given for non-seekable device.
|
||||
.TP
|
||||
|
|
Loading…
Reference in New Issue