diff options
author | Matthias Wolf <freebsd@rheinwolf.de> | 2021-08-22 10:38:57 +0200 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2021-08-22 10:42:34 +0200 |
commit | 76daa653245e62b0f8e07ef4899c0a5bb176b3da (patch) | |
tree | 4f5c6c7dd73a6466567cafab9eea70de0f20a466 /www/chromium/files/patch-base_files_file__util.h | |
parent | emulators/yuzu: exclude on non-amd64 for now (diff) |
www/chromium: update to 92.0.4515.159
Mark broken on i386 for now, it does not compile there because of a
ssize_t * vs off_t * mismatch.
MFH: 2021Q3
Security: https://vuxml.freebsd.org/freebsd/128deba6-ff56-11eb-8514-3065ec8fd3ec.html
Security: https://vuxml.freebsd.org/freebsd/c3c6c4a3-f47d-11eb-b632-3065ec8fd3ec.html
Security: https://vuxml.freebsd.org/freebsd/76487640-ea29-11eb-a686-3065ec8fd3ec.html
Diffstat (limited to 'www/chromium/files/patch-base_files_file__util.h')
-rw-r--r-- | www/chromium/files/patch-base_files_file__util.h | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/www/chromium/files/patch-base_files_file__util.h b/www/chromium/files/patch-base_files_file__util.h index 40aae8f579de..2fe14cf11e09 100644 --- a/www/chromium/files/patch-base_files_file__util.h +++ b/www/chromium/files/patch-base_files_file__util.h @@ -1,6 +1,6 @@ ---- base/files/file_util.h.orig 2021-05-12 22:05:40 UTC +--- base/files/file_util.h.orig 2021-07-19 18:45:05 UTC +++ base/files/file_util.h -@@ -283,14 +283,14 @@ BASE_EXPORT bool SetPosixFilePermissions(const FilePat +@@ -284,14 +284,14 @@ BASE_EXPORT bool SetPosixFilePermissions(const FilePat BASE_EXPORT bool ExecutableExistsInPath(Environment* env, const FilePath::StringType& executable); @@ -17,7 +17,7 @@ #endif // OS_POSIX -@@ -602,7 +602,7 @@ BASE_EXPORT bool VerifyPathControlledByAdmin(const bas +@@ -614,7 +614,7 @@ BASE_EXPORT bool VerifyPathControlledByAdmin(const bas // the directory |path|, in the number of FilePath::CharType, or -1 on failure. BASE_EXPORT int GetMaximumPathComponentLength(const base::FilePath& path); @@ -26,3 +26,21 @@ // Broad categories of file systems as returned by statfs() on Linux. enum FileSystemType { FILE_SYSTEM_UNKNOWN, // statfs failed. +@@ -661,7 +661,7 @@ BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath + const FilePath& to_path); + #endif // defined(OS_WIN) + +-#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) ++#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD) + // CopyFileContentsWithSendfile will use the sendfile(2) syscall to perform a + // file copy without moving the data between kernel and userspace. This is much + // more efficient than sequences of read(2)/write(2) calls. The |retry_slow| +@@ -673,7 +673,7 @@ BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath + BASE_EXPORT bool CopyFileContentsWithSendfile(File& infile, + File& outfile, + bool& retry_slow); +-#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) ++#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD) + + // Used by PreReadFile() when no kernel support for prefetching is available. + bool PreReadFileSlow(const FilePath& file_path, int64_t max_bytes); |