mirror of https://github.com/mkerrisk/man-pages
copy_file_range: glibc provides a user-space emulation where the system call is absent
Signed-off-by: Shawn Landden <slandden@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
36f69b24e2
commit
78ab0c7ba9
|
@ -27,7 +27,7 @@
|
|||
copy_file_range \- Copy a range of data from one file to another
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/syscall.h>
|
||||
.B #define _GNU_SOURCE
|
||||
.B #include <unistd.h>
|
||||
.PP
|
||||
.BI "ssize_t copy_file_range(int " fd_in ", loff_t *" off_in ,
|
||||
|
@ -135,12 +135,13 @@ are not on the same mounted filesystem.
|
|||
.SH VERSIONS
|
||||
The
|
||||
.BR copy_file_range ()
|
||||
system call first appeared in Linux 4.5.
|
||||
Library support was added in glibc 2.27.
|
||||
system call first appeared in Linux 4.5, but glibc 2.27 provides a user-space
|
||||
emulation when it is not available.
|
||||
.\" https://sourceware.org/git/?p=glibc.git;a=commit;f=posix/unistd.h;h=bad7a0c81f501fbbcc79af9eaa4b8254441c4a1f
|
||||
.SH CONFORMING TO
|
||||
The
|
||||
.BR copy_file_range ()
|
||||
system call is a nonstandard Linux extension.
|
||||
system call is a nonstandard Linux and GNU extension.
|
||||
.SH NOTES
|
||||
If
|
||||
.I file_in
|
||||
|
|
Loading…
Reference in New Issue