aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/madvise.cpp
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/system/madvise.cpp
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
downloadydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/madvise.cpp')
-rw-r--r--util/system/madvise.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/system/madvise.cpp b/util/system/madvise.cpp
index 67a9b39ee1..58c894e3ef 100644
--- a/util/system/madvise.cpp
+++ b/util/system/madvise.cpp
@@ -5,20 +5,20 @@
#include <util/generic/yexception.h>
#if defined(_win_)
- #include <util/system/winint.h>
+ #include <util/system/winint.h>
#else
- #include <sys/types.h>
- #include <sys/mman.h>
+ #include <sys/types.h>
+ #include <sys/mman.h>
#endif
-#ifndef MADV_DONTDUMP /* This flag is defined in sys/mman.h since Linux 3.4, but currently old libc header is in use \
- for capability with Ubuntu 12.04, so we need to define it here manually */
- #define MADV_DONTDUMP 16 /* Explicity exclude from the core dump, overrides the coredump filter bits */
+#ifndef MADV_DONTDUMP /* This flag is defined in sys/mman.h since Linux 3.4, but currently old libc header is in use \
+ for capability with Ubuntu 12.04, so we need to define it here manually */
+ #define MADV_DONTDUMP 16 /* Explicity exclude from the core dump, overrides the coredump filter bits */
#endif
-#ifndef MADV_DODUMP /* This flag is defined in sys/mman.h since Linux 3.4, but currently old libc header is in use \
- for capability with Ubuntu 12.04, so we need to define it here manually */
- #define MADV_DODUMP 17 /* Undo the effect of an earlier MADV_DONTDUMP */
+#ifndef MADV_DODUMP /* This flag is defined in sys/mman.h since Linux 3.4, but currently old libc header is in use \
+ for capability with Ubuntu 12.04, so we need to define it here manually */
+ #define MADV_DODUMP 17 /* Undo the effect of an earlier MADV_DONTDUMP */
#endif
namespace {
@@ -36,8 +36,8 @@ namespace {
#else
if (-1 == madvise(begin, size, flag)) {
TString err(LastSystemErrorText());
- ythrow yexception() << "madvise(" << begin << ", " << size << ", " << flag << ")"
- << " returned error: " << err;
+ ythrow yexception() << "madvise(" << begin << ", " << size << ", " << flag << ")"
+ << " returned error: " << err;
}
#endif
}