From 23c24a8842abea3355937e9f67c17f4f1f1405a7 Mon Sep 17 00:00:00 2001 From: bernie Date: Wed, 8 Dec 2004 08:57:35 +0000 Subject: [PATCH] Rename sigset_t to sigmask_t. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@307 38d2e660-2303-0410-9eaa-f027e97ec537 --- kern/proc_p.h | 7 +++++-- kern/signal.c | 13 ++++++++----- kern/signal.h | 10 ++++++---- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/kern/proc_p.h b/kern/proc_p.h index c4c93c74..746cb050 100755 --- a/kern/proc_p.h +++ b/kern/proc_p.h @@ -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 diff --git a/kern/signal.c b/kern/signal.c index 0243987b..9b61120a 100755 --- a/kern/signal.c +++ b/kern/signal.c @@ -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. *#* @@ -107,9 +110,9 @@ * 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); diff --git a/kern/signal.h b/kern/signal.h index e5248965..5d3d261e 100755 --- a/kern/signal.h +++ b/kern/signal.h @@ -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 *#* @@ -39,14 +42,13 @@ 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 */ -- 2.25.1