summaryrefslogtreecommitdiffstats
path: root/chromium/base/files/file.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2023-09-05 12:37:36 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2023-10-17 13:53:46 +0000
commit5a424f4a7b188b75da63eb697f63558af0b17f6f (patch)
tree54c427fcbc567dac8181ab5fd22d20e72cc51609 /chromium/base/files/file.h
parentacbcf08a6dffdfe90a6eaf661fcd6923f0de2447 (diff)
BASELINE: Update Chromium to 116.0.5845.183
Change-Id: Iaaf57e02c218c93993a5044c659b63674e2c8a12 Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/512320 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/base/files/file.h')
-rw-r--r--chromium/base/files/file.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/chromium/base/files/file.h b/chromium/base/files/file.h
index 35abbc2e4cb..1e0b440c920 100644
--- a/chromium/base/files/file.h
+++ b/chromium/base/files/file.h
@@ -34,6 +34,9 @@ using stat_wrapper_t = struct stat;
// obvious non-modifying way are marked as const. Any method that forward calls
// to the OS is not considered const, even if there is no apparent change to
// member variables.
+//
+// On POSIX, if the given file is a symbolic link, most of the methods apply to
+// the file that the symbolic link resolves to.
class BASE_EXPORT File {
public:
// FLAG_(OPEN|CREATE).* are mutually exclusive. You should specify exactly one
@@ -369,9 +372,11 @@ class BASE_EXPORT File {
static std::string ErrorToString(Error error);
#if BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
- // Wrapper for stat() or stat64().
+ // Wrapper for stat().
static int Stat(const char* path, stat_wrapper_t* sb);
+ // Wrapper for fstat().
static int Fstat(int fd, stat_wrapper_t* sb);
+ // Wrapper for lstat().
static int Lstat(const char* path, stat_wrapper_t* sb);
#endif