linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wes Gibbs <wg21908@gmail.com>
To: linux-man@vger.kernel.org
Cc: mtk.manpages@gmail.com, colomar.alejandro@gmail.com,
	bigeasy@linutronix.de, Wes Gibbs <wg21908@gmail.com>
Subject: [PATCH v2] Subject: copy_file_range.2: glibc no longer provides fallback after 2.30
Date: Tue, 28 Oct 2025 22:13:48 -0400	[thread overview]
Message-ID: <20251029021348.85946-1-wg21908@gmail.com> (raw)

Update the documentation to note that glibc no longer provides a
user-space fallback for copy_file_range() when the system call is
not available, as of glibc 2.30. Applications must now handle ENOSYS
themselves.

Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=220489
Signed-off-by: Wes Gibbs <wg21908@gmail.com>
---
 man/man2/copy_file_range.2 | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/man/man2/copy_file_range.2 b/man/man2/copy_file_range.2
index e9e9e9945..5146c0d11 100644
--- a/man/man2/copy_file_range.2
+++ b/man/man2/copy_file_range.2
@@ -202,10 +202,16 @@ that was also backported to earlier stable kernels.
 .SH STANDARDS
 Linux, GNU.
 .SH HISTORY
-Linux 4.5,
-but glibc 2.27 provides a user-space
-emulation when it is not available.
+Linux 4.5.
+Before glibc 2.30, the glibc wrapper function provided a user-space
+fallback implementation when the kernel did not implement this
+system call. Since glibc 2.30, that fallback has been removed; the
+function now fails with ENOSYS if the kernel lacks support for
+.BR copy_file_range ().
+.\" Fallback introduced in glibc 2.27:
 .\" https://sourceware.org/git/?p=glibc.git;a=commit;f=posix/unistd.h;h=bad7a0c81f501fbbcc79af9eaa4b8254441c4a1f
+.\" Fallback removed in glibc 2.30:
+.\" https://sourceware.org/git/?p=glibc.git;a=commit;h=50c6ee3e74e08b8205f18dfb2830e9ec1bcf2ad4
 .SH NOTES
 If
 .I fd_in
-- 
2.48.1


                 reply	other threads:[~2025-10-29  2:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251029021348.85946-1-wg21908@gmail.com \
    --to=wg21908@gmail.com \
    --cc=bigeasy@linutronix.de \
    --cc=colomar.alejandro@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).