aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authorpg <pg@yandex-team.com>2023-03-28 21:30:10 +0300
committerpg <pg@yandex-team.com>2023-03-28 21:30:10 +0300
commit25659221f18577ea38430a8ec3349836f5626b6a (patch)
tree61f1c68d385eb4bde77c5c12e055eb6f44e1f9ae /util/system
parenta30195c57a0e043158d80a4385350eee326197f1 (diff)
downloadydb-25659221f18577ea38430a8ec3349836f5626b6a.tar.gz
Diffstat (limited to 'util/system')
-rw-r--r--util/system/compiler.h4
-rw-r--r--util/system/shellcommand.h38
-rw-r--r--util/system/tempfile.h2
3 files changed, 22 insertions, 22 deletions
diff --git a/util/system/compiler.h b/util/system/compiler.h
index c7b73ed51da..5542d462b70 100644
--- a/util/system/compiler.h
+++ b/util/system/compiler.h
@@ -654,8 +654,8 @@ Y_FORCE_INLINE void DoNotOptimizeAway(T&& datum) {
}
/**
- * Use this macro to prevent unused variables elimination.
- */
+ * Use this macro to prevent unused variables elimination.
+ */
#define Y_DO_NOT_OPTIMIZE_AWAY(X) ::DoNotOptimizeAway(X)
#endif
diff --git a/util/system/shellcommand.h b/util/system/shellcommand.h
index c7637821e49..1b1f2bc9271 100644
--- a/util/system/shellcommand.h
+++ b/util/system/shellcommand.h
@@ -184,35 +184,35 @@ public:
}
/**
- * @brief set if Finish() should be called on user-supplied streams
- * if process is run in async mode Finish will be called in process' thread
- * @param val if Finish() should be called
- * @return self
- */
+ * @brief set if Finish() should be called on user-supplied streams
+ * if process is run in async mode Finish will be called in process' thread
+ * @param val if Finish() should be called
+ * @return self
+ */
inline TShellCommandOptions& SetCloseStreams(bool val) {
CloseStreams = val;
return *this;
}
/**
- * @brief set if input stream should be closed after all data is read
- * call SetCloseInput(false) for interactive process
- * @param val if input stream should be closed
- * @return self
- */
+ * @brief set if input stream should be closed after all data is read
+ * call SetCloseInput(false) for interactive process
+ * @param val if input stream should be closed
+ * @return self
+ */
inline TShellCommandOptions& SetCloseInput(bool val) {
ShouldCloseInput.store(val);
return *this;
}
/**
- * @brief set if command should be interpreted by OS shell (/bin/sh or cmd.exe)
- * shell is enabled by default
- * call SetUseShell(false) for command to be sent to OS verbatim
- * @note shell operators > < | && || will not work if this option is off
- * @param useShell if command should be run in shell
- * @return self
- */
+ * @brief set if command should be interpreted by OS shell (/bin/sh or cmd.exe)
+ * shell is enabled by default
+ * call SetUseShell(false) for command to be sent to OS verbatim
+ * @note shell operators > < | && || will not work if this option is off
+ * @param useShell if command should be run in shell
+ * @return self
+ */
inline TShellCommandOptions& SetUseShell(bool useShell) {
UseShell = useShell;
if (!useShell)
@@ -246,7 +246,7 @@ public:
* @note currently ignored on windows
* @param detach if command should be run in new session
* @return self
- */
+ */
inline TShellCommandOptions& SetDetachSession(bool detach) {
DetachSession = detach;
return *this;
@@ -257,7 +257,7 @@ public:
* @note currently ignored on windows
* @param function function to be called after fork
* @return self
- */
+ */
inline TShellCommandOptions& SetFuncAfterFork(const std::function<void()>& function) {
FuncAfterFork = function;
return *this;
diff --git a/util/system/tempfile.h b/util/system/tempfile.h
index de249c129da..ac8bc5c3226 100644
--- a/util/system/tempfile.h
+++ b/util/system/tempfile.h
@@ -43,7 +43,7 @@ private:
*
* Note, that the function is not race-free, the file is guaranteed to exist at the time the function returns, but not at the time the returned name is first used.
* Throws TSystemError on error.
- *
+ *
* Returned filepath has such format: dir/prefixXXXXXX.extension or dir/prefixXXXXXX
* But win32: dir/preXXXX.tmp (prefix is up to 3 characters, extension is always tmp).
*/