Rename sigset_t to sigmask_t.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 8 Dec 2004 08:57:35 +0000 (08:57 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 8 Dec 2004 08:57:35 +0000 (08:57 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@307 38d2e660-2303-0410-9eaa-f027e97ec537

kern/proc_p.h
kern/signal.c
kern/signal.h

index c4c93c74aa57f929c583a3e107018bd3b5702644..746cb0509873298277d82c81954067b0e6a35b06 100755 (executable)
@@ -15,6 +15,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.12  2004/12/08 08:57:35  bernie
+ *#* Rename sigset_t to sigmask_t.
+ *#*
  *#* Revision 1.11  2004/11/16 22:37:14  bernie
  *#* Replace IPTR with iptr_t.
  *#*
@@ -78,8 +81,8 @@ typedef struct Process
        iptr_t       user_data;   /*!< Custom data passed to the process */
 
 #if CONFIG_KERN_SIGNALS
-       sigset_t     sig_wait;    /*!< Signals the process is waiting for */
-       sigset_t     sig_recv;    /*!< Received signals */
+       sigmask_t    sig_wait;    /*!< Signals the process is waiting for */
+       sigmask_t    sig_recv;    /*!< Received signals */
 #endif
 
 #if CONFIG_KERN_PREEMPTIVE
index 0243987be76ac237b4b0c9ce8704b294f9584498..9b61120a8e46aa1e243254da302641e0ccffa90b 100755 (executable)
@@ -66,6 +66,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.9  2004/12/08 08:57:35  bernie
+ *#* Rename sigset_t to sigmask_t.
+ *#*
  *#* Revision 1.8  2004/09/14 21:06:44  bernie
  *#* Use debug.h instead of kdebug.h.
  *#*
  * Check if any of the signals in \a sigs has occurred and clear them.
  * Return the signals that have occurred.
  */
-sigset_t sig_check(sigset_t sigs)
+sigmask_t sig_check(sigmask_t sigs)
 {
-       sigset_t result;
+       sigmask_t result;
        cpuflags_t flags;
 
        DISABLE_IRQSAVE(flags);
@@ -124,9 +127,9 @@ sigset_t sig_check(sigset_t sigs)
  * Sleep until any of the signals in \a sigs occurs.
  * Return the signal(s) that have awaked the process.
  */
-sigset_t sig_wait(sigset_t sigs)
+sigmask_t sig_wait(sigmask_t sigs)
 {
-       sigset_t result;
+       sigmask_t result;
        cpuflags_t flags;
 
        DISABLE_IRQSAVE(flags);
@@ -156,7 +159,7 @@ sigset_t sig_wait(sigset_t sigs)
  *
  * \note This call is interrupt safe.
  */
-void sig_signal(Process *proc, sigset_t sigs)
+void sig_signal(Process *proc, sigmask_t sigs)
 {
        cpuflags_t flags;
        DISABLE_IRQSAVE(flags);
index e52489658dffc5d8788ecb4888f1d4209c6662cc..5d3d261ef2c9f12c582d89878f51a7c4892600fa 100755 (executable)
@@ -15,6 +15,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.5  2004/12/08 08:57:35  bernie
+ *#* Rename sigset_t to sigmask_t.
+ *#*
  *#* Revision 1.4  2004/08/25 14:12:09  rasky
  *#* Aggiornato il comment block dei log RCS
  *#*
 struct Process;
 
 /* Inter-process Communication services */
-sigset_t sig_check(sigset_t sigs);
-void sig_signal(struct Process *proc, sigset_t sig);
-sigset_t sig_wait(sigset_t sigs);
+sigmask_t sig_check(sigmask_t sigs);
+void sig_signal(struct Process *proc, sigmask_t sig);
+sigmask_t sig_wait(sigmask_t sigs);
 
 
 /*!
  * \name Signal definitions
- *
  * \{
  */
 #define SIG_USER0    BV(0)  /*!< Free for user usage */