aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authorlsurn <lsurn@yandex-team.ru>2022-02-10 16:49:33 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:33 +0300
commit45e70bb2432018a4704845621cd9ddd2ceab6ffb (patch)
treea152f2e39b9786afe16c2a9230f7c4b12a59e4ee /util/system
parent47a7e7b29636bfb2deb1df5f92363b3c75229c95 (diff)
downloadydb-45e70bb2432018a4704845621cd9ddd2ceab6ffb.tar.gz
Restoring authorship annotation for <lsurn@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system')
-rw-r--r--util/system/atomic.h2
-rw-r--r--util/system/defaults.h2
-rw-r--r--util/system/err.cpp2
-rw-r--r--util/system/mktemp.cpp4
-rw-r--r--util/system/mktemp_system.cpp10
-rw-r--r--util/system/sem.cpp8
-rw-r--r--util/system/spinlock.h2
-rw-r--r--util/system/sys_alloc.h10
-rw-r--r--util/system/tls.cpp2
9 files changed, 21 insertions, 21 deletions
diff --git a/util/system/atomic.h b/util/system/atomic.h
index 80265babfd..965b6e3fc5 100644
--- a/util/system/atomic.h
+++ b/util/system/atomic.h
@@ -9,7 +9,7 @@ using TAtomic = volatile TAtomicBase;
#include "atomic_gcc.h"
#elif defined(_MSC_VER)
#include "atomic_win.h"
-#else
+#else
#error unsupported platform
#endif
diff --git a/util/system/defaults.h b/util/system/defaults.h
index dcd7abea38..ce6e5706ee 100644
--- a/util/system/defaults.h
+++ b/util/system/defaults.h
@@ -77,7 +77,7 @@
#ifdef _win_
#include <malloc.h>
-#elif defined(_sun_)
+#elif defined(_sun_)
#include <alloca.h>
#endif
diff --git a/util/system/err.cpp b/util/system/err.cpp
index 5573ea1ee9..a210406239 100644
--- a/util/system/err.cpp
+++ b/util/system/err.cpp
@@ -2,7 +2,7 @@
#include "progname.h"
#include "compat.h"
#include "error.h"
-
+
#include <util/generic/scope.h>
#include <util/stream/printf.h>
diff --git a/util/system/mktemp.cpp b/util/system/mktemp.cpp
index 505b7b4a4b..77654f1f2c 100644
--- a/util/system/mktemp.cpp
+++ b/util/system/mktemp.cpp
@@ -36,7 +36,7 @@ TString MakeTempName(const char* wrkDir, const char* prefix, const char* extensi
}
filePath += "XXXXXX"; // mkstemps requirement
-
+
size_t extensionPartLength = 0;
if (extension && *extension) {
if (extension[0] != '.') {
@@ -49,7 +49,7 @@ TString MakeTempName(const char* wrkDir, const char* prefix, const char* extensi
int fd = mkstemps(const_cast<char*>(filePath.data()), extensionPartLength);
if (fd >= 0) {
- close(fd);
+ close(fd);
return filePath;
}
#else
diff --git a/util/system/mktemp_system.cpp b/util/system/mktemp_system.cpp
index 32bea2987c..31ed1d20bc 100644
--- a/util/system/mktemp_system.cpp
+++ b/util/system/mktemp_system.cpp
@@ -161,15 +161,15 @@ GetTemp(char* path, int* doopen, int domkdir, int slen)
}
/*NOTREACHED*/
}
-
+
extern "C" int mkstemps(char* path, int slen) {
int fd;
-
+
return (GetTemp(path, &fd, 0, slen) ? fd : -1);
-}
-
+}
+
#if defined(_win_)
char* mkdtemp(char* path) {
return (GetTemp(path, (int*)nullptr, 1, 0) ? path : (char*)nullptr);
-}
+}
#endif
diff --git a/util/system/sem.cpp b/util/system/sem.cpp
index 4a93b903b5..1adc5b87af 100644
--- a/util/system/sem.cpp
+++ b/util/system/sem.cpp
@@ -2,7 +2,7 @@
#ifdef _win_
#include <malloc.h>
-#elif defined(_sun)
+#elif defined(_sun)
#include <alloca.h>
#endif
@@ -166,7 +166,7 @@ namespace {
#endif
}
};
-
+
#if defined(_unix_)
/*
Disable errors/warnings about deprecated sem_* in Darwin
@@ -209,7 +209,7 @@ namespace {
#ifdef _darwin_
Y_PRAGMA_DIAGNOSTIC_POP
#endif
-#endif
+#endif
}
class TSemaphore::TImpl: public TSemaphoreImpl {
@@ -223,7 +223,7 @@ public:
TSemaphore::TSemaphore(const char* name, ui32 maxFreeCount)
: Impl_(new TImpl(name, maxFreeCount))
{
-}
+}
TSemaphore::~TSemaphore() = default;
diff --git a/util/system/spinlock.h b/util/system/spinlock.h
index af2630890a..c88ddf35ce 100644
--- a/util/system/spinlock.h
+++ b/util/system/spinlock.h
@@ -44,7 +44,7 @@ static inline void AcquireSpinLock(TAtomic* l) {
} while (!AtomicTryAndTryLock(l));
}
}
-
+
static inline void ReleaseSpinLock(TAtomic* l) {
AtomicUnlock(l);
}
diff --git a/util/system/sys_alloc.h b/util/system/sys_alloc.h
index 4221a28f8c..be480742fa 100644
--- a/util/system/sys_alloc.h
+++ b/util/system/sys_alloc.h
@@ -13,12 +13,12 @@ inline void* y_allocate(size_t n) {
}
return r;
-}
-
+}
+
inline void y_deallocate(void* p) {
free(p);
-}
-
+}
+
/**
* Behavior of realloc from C++99 to C++11 changed (http://www.cplusplus.com/reference/cstdlib/realloc/).
*
@@ -40,4 +40,4 @@ inline void* y_reallocate(void* p, size_t new_sz) {
}
return r;
-}
+}
diff --git a/util/system/tls.cpp b/util/system/tls.cpp
index c2f1a04a14..25440a6a3e 100644
--- a/util/system/tls.cpp
+++ b/util/system/tls.cpp
@@ -64,7 +64,7 @@ namespace {
void* Data_;
TDtor Dtor_;
};
-
+
inline TStoredValue* Value(const TKey* key) {
TStoredValue*& ret = *ValuePtr((size_t)key->Key);