summaryrefslogtreecommitdiffstats
path: root/util/system/file.cpp
diff options
context:
space:
mode:
authorkostik <[email protected]>2022-02-10 16:49:22 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:49:22 +0300
commit89516f2fd8e143755ba2973385407d77676b18a0 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/file.cpp
parentf7619e21ba894db354477390e8fe96256a6eb14a (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 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 847be59b6c2..4a261d020cb 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