diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/system/madvise.cpp | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/madvise.cpp')
-rw-r--r-- | util/system/madvise.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/util/system/madvise.cpp b/util/system/madvise.cpp index 58c894e3ef..67a9b39ee1 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 } |