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/sigset.h | |
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/sigset.h')
-rw-r--r-- | util/system/sigset.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/util/system/sigset.h b/util/system/sigset.h index 8dd02fd817..ed76bac439 100644 --- a/util/system/sigset.h +++ b/util/system/sigset.h @@ -5,20 +5,20 @@ #include "compat.h" #if defined _unix_ - #include <pthread.h> + #include <pthread.h> #elif defined _win_ - // Flags for sigprocmask: - #define SIG_BLOCK 1 - #define SIG_UNBLOCK 2 - #define SIG_SETMASK 3 + // Flags for sigprocmask: + #define SIG_BLOCK 1 + #define SIG_UNBLOCK 2 + #define SIG_SETMASK 3 using sigset_t = ui32; #else - #error not supported yet + #error not supported yet #endif -inline int SigEmptySet(sigset_t* set) { +inline int SigEmptySet(sigset_t* set) { #if defined _unix_ return sigemptyset(set); #else @@ -27,7 +27,7 @@ inline int SigEmptySet(sigset_t* set) { #endif } -inline int SigFillSet(sigset_t* set) { +inline int SigFillSet(sigset_t* set) { #if defined _unix_ return sigfillset(set); #else @@ -36,7 +36,7 @@ inline int SigFillSet(sigset_t* set) { #endif } -inline int SigAddSet(sigset_t* set, int signo) { +inline int SigAddSet(sigset_t* set, int signo) { #if defined _unix_ return sigaddset(set, signo); #else @@ -46,7 +46,7 @@ inline int SigAddSet(sigset_t* set, int signo) { #endif } -inline int SigDelSet(sigset_t* set, int signo) { +inline int SigDelSet(sigset_t* set, int signo) { #if defined _unix_ return sigdelset(set, signo); #else @@ -56,9 +56,9 @@ inline int SigDelSet(sigset_t* set, int signo) { #endif } -inline int SigIsMember(const sigset_t* set, int signo) { +inline int SigIsMember(const sigset_t* set, int signo) { #if defined _unix_ - return sigismember(const_cast<sigset_t*>(set), signo); + return sigismember(const_cast<sigset_t*>(set), signo); #else Y_UNUSED(set); Y_UNUSED(signo); @@ -66,7 +66,7 @@ inline int SigIsMember(const sigset_t* set, int signo) { #endif } -inline int SigProcMask(int how, const sigset_t* set, sigset_t* oset) { +inline int SigProcMask(int how, const sigset_t* set, sigset_t* oset) { #if defined _unix_ return pthread_sigmask(how, set, oset); #else |