From 2d37894b1b037cf24231090eda8589bbb44fb6fc Mon Sep 17 00:00:00 2001
From: orivej <orivej@yandex-team.ru>
Date: Thu, 10 Feb 2022 16:45:01 +0300
Subject: Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2
 of 2.

---
 .../source/platform/linux-shared/Environment.cpp   |  8 ++--
 .../source/platform/linux-shared/FileSystem.cpp    | 48 +++++++++++-----------
 .../source/platform/linux-shared/OSVersionInfo.cpp |  8 ++--
 .../source/platform/linux-shared/Security.cpp      |  8 ++--
 .../source/platform/linux-shared/Time.cpp          |  8 ++--
 5 files changed, 40 insertions(+), 40 deletions(-)

(limited to 'contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform')

diff --git a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/Environment.cpp b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/Environment.cpp
index facba6a7a7..ee627340bb 100644
--- a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/Environment.cpp
+++ b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/Environment.cpp
@@ -1,7 +1,7 @@
-/** 
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 
- * SPDX-License-Identifier: Apache-2.0. 
- */ 
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
 
 #include <aws/core/platform/Environment.h>
 
diff --git a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/FileSystem.cpp b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/FileSystem.cpp
index 447fd9bf09..c1ad818911 100644
--- a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/FileSystem.cpp
+++ b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/FileSystem.cpp
@@ -1,7 +1,7 @@
-/** 
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 
- * SPDX-License-Identifier: Apache-2.0. 
- */ 
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
 #include <aws/core/platform/FileSystem.h>
 
 #include <aws/core/platform/Environment.h>
@@ -9,7 +9,7 @@
 #include <aws/core/utils/DateTime.h>
 #include <aws/core/utils/logging/LogMacros.h>
 #include <aws/core/utils/StringUtils.h>
-#include <aws/core/utils/UUID.h> 
+#include <aws/core/utils/UUID.h>
 
 #include <unistd.h>
 #include <pwd.h>
@@ -19,9 +19,9 @@
 #include <climits>
 
 #include <cassert>
-#ifdef __APPLE__ 
-#include <mach-o/dyld.h> 
-#endif 
+#ifdef __APPLE__
+#include <mach-o/dyld.h>
+#endif
 namespace Aws
 {
 namespace FileSystem
@@ -72,7 +72,7 @@ static const char* FILE_SYSTEM_UTILS_LOG_TAG = "FileSystemUtils";
                 {
                     Aws::String entryName = dirEntry->d_name;
                     if(entryName != ".." && entryName != ".")
-                    { 
+                    {
                         entry = ParseFileInfo(dirEntry, true);
                         invalidEntry = false;
                     }
@@ -117,9 +117,9 @@ static const char* FILE_SYSTEM_UTILS_LOG_TAG = "FileSystemUtils";
                 entry.path = m_directoryEntry.path;
                 entry.relativePath = m_directoryEntry.relativePath;
             }
- 
+
             AWS_LOGSTREAM_TRACE(FILE_SYSTEM_UTILS_LOG_TAG, "Calling stat on path " << entry.path);
- 
+
             struct stat dirInfo;
             if(!lstat(entry.path.c_str(), &dirInfo))
             {
@@ -147,7 +147,7 @@ static const char* FILE_SYSTEM_UTILS_LOG_TAG = "FileSystemUtils";
                 AWS_LOGSTREAM_ERROR(FILE_SYSTEM_UTILS_LOG_TAG, "Failed to stat file path " << entry.path << " with error code " << errno);
             }
 
-            return entry; 
+            return entry;
         }
 
         DIR* m_dir;
@@ -252,8 +252,8 @@ Aws::String CreateTempFilePath()
 {
     Aws::StringStream ss;
     auto dt = Aws::Utils::DateTime::Now();
- 
-    ss << dt.ToGmtString("%Y%m%dT%H%M%S") << dt.Millis() << Aws::String(Aws::Utils::UUID::RandomUUID()); 
+
+    ss << dt.ToGmtString("%Y%m%dT%H%M%S") << dt.Millis() << Aws::String(Aws::Utils::UUID::RandomUUID());
     Aws::String tempFile(ss.str());
 
     AWS_LOGSTREAM_DEBUG(FILE_SYSTEM_UTILS_LOG_TAG, "CreateTempFilePath generated: " << tempFile);
@@ -264,22 +264,22 @@ Aws::String CreateTempFilePath()
 Aws::String GetExecutableDirectory()
 {
     char dest[PATH_MAX];
-    memset(dest, 0, PATH_MAX); 
-#ifdef __APPLE__ 
-    uint32_t destSize = PATH_MAX; 
-    if (_NSGetExecutablePath(dest, &destSize) == 0) 
-#else 
-    size_t destSize = PATH_MAX; 
-    if (readlink("/proc/self/exe", dest, destSize)) 
-#endif 
+    memset(dest, 0, PATH_MAX);
+#ifdef __APPLE__
+    uint32_t destSize = PATH_MAX;
+    if (_NSGetExecutablePath(dest, &destSize) == 0)
+#else
+    size_t destSize = PATH_MAX;
+    if (readlink("/proc/self/exe", dest, destSize))
+#endif
     {
         Aws::String executablePath(dest);
         auto lastSlash = executablePath.find_last_of('/');
         if(lastSlash != std::string::npos)
         {
             return executablePath.substr(0, lastSlash);
-        } 
-    } 
+        }
+    }
     return "./";
 }
 
diff --git a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/OSVersionInfo.cpp b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/OSVersionInfo.cpp
index ed35c20fa0..040173a2e5 100644
--- a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/OSVersionInfo.cpp
+++ b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/OSVersionInfo.cpp
@@ -1,7 +1,7 @@
-/** 
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 
- * SPDX-License-Identifier: Apache-2.0. 
- */ 
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
 
 #include <aws/core/platform/OSVersionInfo.h>
 #include <aws/core/utils/memory/stl/AWSStringStream.h>
diff --git a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/Security.cpp b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/Security.cpp
index 15490f24f0..286de1a948 100644
--- a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/Security.cpp
+++ b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/Security.cpp
@@ -1,7 +1,7 @@
-/** 
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 
- * SPDX-License-Identifier: Apache-2.0. 
- */ 
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
 
 #include <aws/core/platform/Security.h>
 
diff --git a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/Time.cpp b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/Time.cpp
index 8c8f3b8209..7a0d3d1c0a 100644
--- a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/Time.cpp
+++ b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/platform/linux-shared/Time.cpp
@@ -1,7 +1,7 @@
-/** 
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 
- * SPDX-License-Identifier: Apache-2.0. 
- */ 
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
 
 #include <aws/core/platform/Time.h>
 
-- 
cgit v1.2.3