aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/compat.cpp
diff options
context:
space:
mode:
authorleo <leo@yandex-team.ru>2022-02-10 16:46:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:40 +0300
commit99609724f661f7e21d1cb08e8d80e87c3632fdb3 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/system/compat.cpp
parent980edcd3304699edf9d4e4d6a656e585028e2a72 (diff)
downloadydb-99609724f661f7e21d1cb08e8d80e87c3632fdb3.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/compat.cpp')
-rw-r--r--util/system/compat.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/system/compat.cpp b/util/system/compat.cpp
index a00d03dbe9..18fbfa296a 100644
--- a/util/system/compat.cpp
+++ b/util/system/compat.cpp
@@ -2,12 +2,12 @@
#include "defaults.h"
#include "progname.h"
-#include <cctype>
-#include <cerrno>
-#include <cstdio>
+#include <cctype>
+#include <cerrno>
+#include <cstdio>
#include <cstring>
-#include <cstdarg>
-#include <cstdlib>
+#include <cstdarg>
+#include <cstdlib>
#include <util/generic/string.h>
@@ -34,12 +34,12 @@ void usleep(i64 len) {
#include <fcntl.h>
int ftruncate(int fd, i64 length) {
- return _chsize_s(fd, length);
+ return _chsize_s(fd, length);
}
int truncate(const char* name, i64 length) {
- int fd = ::_open(name, _O_WRONLY);
- int ret = ftruncate(fd, length);
- ::close(fd);
- return ret;
-}
+ int fd = ::_open(name, _O_WRONLY);
+ int ret = ftruncate(fd, length);
+ ::close(fd);
+ return ret;
+}
#endif