From 915b0beb233edb2bf1eca80174e34002212d74c5 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 20 Sep 2020 21:05:56 -0500 Subject: [PATCH] Cleanup: f_single is not filly updated to using signal-common.h --- level_0/f_signal/c/signal-common.h | 17 +++++++++++++++++ level_0/f_signal/c/signal.h | 36 ------------------------------------ 2 files changed, 17 insertions(+), 36 deletions(-) diff --git a/level_0/f_signal/c/signal-common.h b/level_0/f_signal/c/signal-common.h index b1ba2a9..6874c36 100644 --- a/level_0/f_signal/c/signal-common.h +++ b/level_0/f_signal/c/signal-common.h @@ -35,6 +35,23 @@ extern "C" { #define f_macro_signal_t_initialize(flags, id, set) { flags, id, set } #endif // _di_f_signal_t_ +/** + * This holds a set of signals to block and a set of signals to unblock. + * + * block: The signal flags to block. + * block_not: The signal flags to unblock. + */ +#ifndef _di_f_signal_how_t_ + typedef struct { + sigset_t block; + sigset_t block_not; + } f_signal_how_t; + + #define f_signal_how_t_initialize { { 0 } , { 0 } } + + #define f_macro_signal_how_t_initialize(block, block_not) { block, block_not } +#endif // _di_f_signal_how_t_ + #ifdef __cplusplus } // extern "C" #endif diff --git a/level_0/f_signal/c/signal.h b/level_0/f_signal/c/signal.h index 14b8b6c..0409315 100644 --- a/level_0/f_signal/c/signal.h +++ b/level_0/f_signal/c/signal.h @@ -26,42 +26,6 @@ extern "C" { #endif /** - * This holds a signal type. - * - * flags: The signal flags associated with this. - * id: The signal descriptor. - * set: The signal set. - */ -#ifndef _di_f_signal_t_ - typedef struct { - int flags; - int id; - sigset_t set; - } f_signal_t; - - #define f_signal_t_initialize {0, 0, { 0 } } - - #define f_macro_signal_t_initialize(flags, id, set) { flags, id, set } -#endif // _di_f_signal_t_ - -/** - * This holds a set of signals to block and a set of signals to unblock. - * - * block: The signal flags to block. - * block_not: The signal flags to unblock. - */ -#ifndef _di_f_signal_how_t_ - typedef struct { - sigset_t block; - sigset_t block_not; - } f_signal_how_t; - - #define f_signal_how_t_initialize { { 0 } , { 0 } } - - #define f_macro_signal_how_t_initialize(block, block_not) { block, block_not } -#endif // _di_f_signal_how_t_ - -/** * Close an open signal descriptor. * * The signal.id is set to 0 on success. -- 1.8.3.1