signal: introduce a low-level API to specify the particular signal masks to use
[bertos.git] / bertos / cfg / compiler.h
index c2e814e522e0be69086eb447ef7442d81ced9d51..ac60848f5da9eec2b3877e62d8ace28e1ac3847e 100644 (file)
@@ -459,6 +459,14 @@ typedef const void * const_iptr_t;
 typedef unsigned char sigbit_t;  /**< Type for signal bits. */
 typedef unsigned char sigmask_t; /**< Type for signal masks. */
 
+/**
+ * Signal structure
+ */
+typedef struct Signal
+{
+       sigmask_t    wait;    /**< Signals the process is waiting for */
+       sigmask_t    recv;    /**< Received signals */
+} Signal;
 
 /**
  * \name Standard type definitions.