summaryrefslogtreecommitdiffstats
path: root/util/system/fstat.cpp
diff options
context:
space:
mode:
authoryazevnul <[email protected]>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/system/fstat.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/fstat.cpp')
-rw-r--r--util/system/fstat.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/fstat.cpp b/util/system/fstat.cpp
index 81e98cbc6bb..d25651621ab 100644
--- a/util/system/fstat.cpp
+++ b/util/system/fstat.cpp
@@ -132,23 +132,23 @@ TFileStat::TFileStat(const char* fileName, bool nofollow) {
MakeFromFileName(fileName, nofollow);
}
-bool TFileStat::IsNull() const noexcept {
+bool TFileStat::IsNull() const noexcept {
return *this == TFileStat();
}
-bool TFileStat::IsFile() const noexcept {
+bool TFileStat::IsFile() const noexcept {
return S_ISREG(Mode);
}
-bool TFileStat::IsDir() const noexcept {
+bool TFileStat::IsDir() const noexcept {
return S_ISDIR(Mode);
}
-bool TFileStat::IsSymlink() const noexcept {
+bool TFileStat::IsSymlink() const noexcept {
return S_ISLNK(Mode);
}
-bool operator==(const TFileStat& l, const TFileStat& r) noexcept {
+bool operator==(const TFileStat& l, const TFileStat& r) noexcept {
return l.Mode == r.Mode &&
l.Uid == r.Uid &&
l.Gid == r.Gid &&
@@ -159,7 +159,7 @@ bool operator==(const TFileStat& l, const TFileStat& r) noexcept {
l.CTime == r.CTime;
}
-bool operator!=(const TFileStat& l, const TFileStat& r) noexcept {
+bool operator!=(const TFileStat& l, const TFileStat& r) noexcept {
return !(l == r);
}