diff options
author | Ruslan Kovalev <ruslan.a.kovalev@gmail.com> | 2022-02-10 16:46:44 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:44 +0300 |
commit | 59e19371de37995fcb36beb16cd6ec030af960bc (patch) | |
tree | fa68e36093ebff8b805462e9e6d331fe9d348214 /util/system/fstat.h | |
parent | 89db6fe2fe2c32d2a832ddfeb04e8d078e301084 (diff) | |
download | ydb-59e19371de37995fcb36beb16cd6ec030af960bc.tar.gz |
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/system/fstat.h')
-rw-r--r-- | util/system/fstat.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/util/system/fstat.h b/util/system/fstat.h index 64e79e1b55..3c2c5d65c8 100644 --- a/util/system/fstat.h +++ b/util/system/fstat.h @@ -1,34 +1,34 @@ -#pragma once - +#pragma once + #include <util/generic/fwd.h> #include <util/system/fhandle.h> - -class TFile; + +class TFile; class TFsPath; - -struct TFileStat { + +struct TFileStat { 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 */ - -public: - TFileStat(); + +public: + TFileStat(); bool IsNull() const noexcept; bool IsFile() const noexcept; bool IsDir() const noexcept; bool IsSymlink() const noexcept; - + explicit TFileStat(const TFile& f); explicit TFileStat(FHANDLE f); TFileStat(const TFsPath& fileName, bool nofollow = false); @@ -40,7 +40,7 @@ public: private: void MakeFromFileName(const char* fileName, bool nofollow); -}; +}; i64 GetFileLength(FHANDLE fd); i64 GetFileLength(const char* name); |