public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Shawn Landden <slandden-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Shawn Landden <slandden-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: [PATCH] copy_file_range: update for glibc compatibility
Date: Sun, 31 Dec 2017 20:12:59 -0800	[thread overview]
Message-ID: <20180101041259.642-1-slandden@gmail.com> (raw)

Signed-off-by: Shawn Landden <slandden-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 man2/copy_file_range.2 | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/man2/copy_file_range.2 b/man2/copy_file_range.2
index 6e50ea6ec..3a3a6aa9f 100644
--- a/man2/copy_file_range.2
+++ b/man2/copy_file_range.2
@@ -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 ,
@@ -124,12 +124,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
-- 
2.14.1

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2018-01-01  4:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-01  4:12 Shawn Landden [this message]
     [not found] ` <20180101041259.642-1-slandden-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-01-08 23:58   ` [PATCH] copy_file_range: update for glibc compatibility Michael Kerrisk (man-pages)

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=20180101041259.642-1-slandden@gmail.com \
    --to=slandden-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /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