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
commit980edcd3304699edf9d4e4d6a656e585028e2a72 (patch)
tree139f47f3911484ae9af0eb347b1a88bd6c4bb35f /util/system/compat.cpp
parentb036a557f285146e5e35d4213e29a094ab907bcf (diff)
downloadydb-980edcd3304699edf9d4e4d6a656e585028e2a72.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 1 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 18fbfa296a..a00d03dbe9 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