Patched Chrome browser ======================== See Bug [258679](https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258679) L;DR: The v92 port was the first version that had the sendfile optimization on (Free)BSD. However, the modification was broken for any arch where ssize_t != off_t. This got fixed with the v94 port. I really wonder if activating sendfile() was a sensible decision though. Contrary to Linux the FreeBSD sendfile call limits the out descriptor to a socket. According to the Linux man page the out descriptor can be any file there. > -- cut -- > --- base/files/file_util_posix.cc~ 2021-11-12 20:13:11.151633000 +0100 > +++ base/files/file_util_posix.cc 2021-11-12 20:13:20.289125000 +0100 > @@ -1290,8 +1290,8 @@ bool CopyFileContentsWithSendfile(File& > // file sizes and file offsets will not have changed. A slow fallback and > // proceed without issues. > retry_slow = (copied == 0 && res < 0 && >- (errno == EINVAL || errno == ENOSYS || errno == EPERM)); >- >+ (errno == EINVAL || errno == ENOSYS || errno == EPERM || errno == ENOTSOCK)); >+//fprintf(stderr, "CopyFileContentsWithSendfile: errno=%d\n", errno); > return res >= 0; > } > #endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD) >-- cut --