diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/system/sigset.h | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 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 ed76bac439..8dd02fd817 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 |