aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/file.cpp
diff options
context:
space:
mode:
authorkostik <kostik@yandex-team.ru>2022-02-10 16:49:22 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:22 +0300
commitf7619e21ba894db354477390e8fe96256a6eb14a (patch)
treeb69d940766676eea8fd8d90570ed4f2783014d58 /util/system/file.cpp
parenta6f6b22bda21d53d07bd2e0ff63a2b2abf69ede9 (diff)
downloadydb-f7619e21ba894db354477390e8fe96256a6eb14a.tar.gz
Restoring authorship annotation for <kostik@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/file.cpp')
-rw-r--r--util/system/file.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/system/file.cpp b/util/system/file.cpp
index 4a261d020c..847be59b6c 100644
--- a/util/system/file.cpp
+++ b/util/system/file.cpp
@@ -470,11 +470,11 @@ i32 TFileHandle::Read(void* buffer, ui32 byteCount) noexcept {
}
return -1;
#elif defined(_unix_)
- i32 ret;
+ i32 ret;
do {
ret = ::read(Fd_, buffer, byteCount);
} while (ret == -1 && errno == EINTR);
- return ret;
+ return ret;
#else
#error unsupported platform
#endif
@@ -491,11 +491,11 @@ i32 TFileHandle::Write(const void* buffer, ui32 byteCount) noexcept {
}
return -1;
#elif defined(_unix_)
- i32 ret;
+ i32 ret;
do {
ret = ::write(Fd_, buffer, byteCount);
} while (ret == -1 && errno == EINTR);
- return ret;
+ return ret;
#else
#error unsupported platform
#endif
@@ -516,11 +516,11 @@ i32 TFileHandle::Pread(void* buffer, ui32 byteCount, i64 offset) const noexcept
}
return -1;
#elif defined(_unix_)
- i32 ret;
+ i32 ret;
do {
ret = ::pread(Fd_, buffer, byteCount, offset);
} while (ret == -1 && errno == EINTR);
- return ret;
+ return ret;
#else
#error unsupported platform
#endif
@@ -538,11 +538,11 @@ i32 TFileHandle::Pwrite(const void* buffer, ui32 byteCount, i64 offset) const no
}
return -1;
#elif defined(_unix_)
- i32 ret;
+ i32 ret;
do {
ret = ::pwrite(Fd_, buffer, byteCount, offset);
} while (ret == -1 && errno == EINTR);
- return ret;
+ return ret;
#else
#error unsupported platform
#endif