]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux(4): Add sendfile fallback for non-socket fds
authorJames McLaughlin <james_mclgh.net>
Thu, 17 Aug 2023 19:57:17 +0000 (22:57 +0300)
committerDmitry Chagin <dchagin@FreeBSD.org>
Thu, 17 Aug 2023 19:57:17 +0000 (22:57 +0300)
commitbb66c59753836cd8abb596fe316dcdb77ea66999
treeb21541734e8543ae4764c7183c0ee0e59c256ff7
parent7307c4396347af670dc86e2e7a9dfadb55e1c458
linux(4): Add sendfile fallback for non-socket fds

Before Linux 2.6.33, out_fd must refer to a socket. Since Linux 2.6.33
it can be any file.
The patch was originally provided by James McLaughlin and adapted by me
for copy_file_range.

PR: 262535
Differential revision: https://reviews.freebsd.org/D34555
MFC after: 1 month
sys/compat/linux/linux_socket.c