aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/fstat.h
diff options
context:
space:
mode:
authorAlexander Fokin <apfokin@gmail.com>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:38 +0300
commitbf9e69a933f89af083d895185f01ed65e4d90766 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/system/fstat.h
parent863a59a65247c24db7cb06789bc5cf79d04da32f (diff)
downloadydb-bf9e69a933f89af083d895185f01ed65e4d90766.tar.gz
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/fstat.h')
-rw-r--r--util/system/fstat.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/system/fstat.h b/util/system/fstat.h
index 8b61fb8c89..64e79e1b55 100644
--- a/util/system/fstat.h
+++ b/util/system/fstat.h
@@ -7,24 +7,24 @@ class TFile;
class TFsPath;
struct TFileStat {
- ui32 Mode = 0; /* protection */
- ui32 Uid = 0; /* user ID of owner */
- ui32 Gid = 0; /* group ID of owner */
+ ui32 Mode = 0; /* protection */
+ ui32 Uid = 0; /* user ID of owner */
+ ui32 Gid = 0; /* group ID of owner */
ui64 NLinks = 0; /* number of hard links */
ui64 Size = 0; /* total size, in bytes */
ui64 INode = 0; /* inode number */
ui64 AllocationSize = 0; /* number of bytes allocated on the disk */
- time_t ATime = 0; /* time of last access */
- time_t MTime = 0; /* time of last modification */
- time_t CTime = 0; /* time of last status change */
+ time_t ATime = 0; /* time of last access */
+ time_t MTime = 0; /* time of last modification */
+ time_t CTime = 0; /* time of last status change */
public:
TFileStat();
bool IsNull() const noexcept;
-
+
bool IsFile() const noexcept;
bool IsDir() const noexcept;
bool IsSymlink() const noexcept;
@@ -37,11 +37,11 @@ public:
friend bool operator==(const TFileStat& l, const TFileStat& r) noexcept;
friend bool operator!=(const TFileStat& l, const TFileStat& r) noexcept;
-
+
private:
void MakeFromFileName(const char* fileName, bool nofollow);
};
i64 GetFileLength(FHANDLE fd);
-i64 GetFileLength(const char* name);
+i64 GetFileLength(const char* name);
i64 GetFileLength(const TString& name);