summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_condvar.c12
-rw-r--r--sys/kern/kern_sig.c6
-rw-r--r--sys/kern/kern_synch.c12
-rw-r--r--sys/kern/subr_trap.c2
-rw-r--r--sys/netncp/ncp_sock.c2
-rw-r--r--sys/sys/signalvar.h2
6 files changed, 18 insertions, 18 deletions
diff --git a/sys/kern/kern_condvar.c b/sys/kern/kern_condvar.c
index 87e4184b84be..46085399f95d 100644
--- a/sys/kern/kern_condvar.c
+++ b/sys/kern/kern_condvar.c
@@ -133,17 +133,17 @@ cv_switch_catch(struct thread *td)
/*
* We put ourselves on the sleep queue and start our timeout before
- * calling CURSIG, as we could stop there, and a wakeup or a SIGCONT (or
+ * calling cursig, as we could stop there, and a wakeup or a SIGCONT (or
* both) could occur while we were stopped. A SIGCONT would cause us to
* be marked as SSLEEP without resuming us, thus we must be ready for
- * sleep when CURSIG is called. If the wakeup happens while we're
- * stopped, td->td_wchan will be 0 upon return from CURSIG.
+ * sleep when cursig is called. If the wakeup happens while we're
+ * stopped, td->td_wchan will be 0 upon return from cursig.
*/
td->td_flags |= TDF_SINTR;
mtx_unlock_spin(&sched_lock);
p = td->td_proc;
PROC_LOCK(p);
- sig = CURSIG(p); /* XXXKSE */
+ sig = cursig(p); /* XXXKSE */
mtx_lock_spin(&sched_lock);
PROC_UNLOCK(p);
if (sig != 0) {
@@ -286,7 +286,7 @@ cv_wait_sig(struct cv *cvp, struct mtx *mp)
PROC_LOCK(p);
if (sig == 0)
- sig = CURSIG(p); /* XXXKSE */
+ sig = cursig(p); /* XXXKSE */
if (sig != 0) {
if (SIGISMEMBER(p->p_sigacts->ps_sigintr, sig))
rval = EINTR;
@@ -443,7 +443,7 @@ cv_timedwait_sig(struct cv *cvp, struct mtx *mp, int timo)
PROC_LOCK(p);
if (sig == 0)
- sig = CURSIG(p);
+ sig = cursig(p);
if (sig != 0) {
if (SIGISMEMBER(p->p_sigacts->ps_sigintr, sig))
rval = EINTR;
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 2a57c91ba350..e98eb73d14a0 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -172,7 +172,7 @@ static int sigproptbl[NSIG] = {
* MP SAFE.
*/
int
-CURSIG(struct proc *p)
+cursig(struct proc *p)
{
PROC_LOCK_ASSERT(p, MA_OWNED);
@@ -1530,10 +1530,10 @@ out:
* Stop signals with default action are processed immediately, then cleared;
* they aren't returned. This is checked after each entry to the system for
* a syscall or trap (though this can usually be done without calling issignal
- * by checking the pending signal masks in the CURSIG macro.) The normal call
+ * by checking the pending signal masks in cursig.) The normal call
* sequence is
*
- * while (sig = CURSIG(curproc))
+ * while (sig = cursig(curproc))
* postsig(sig);
*/
int
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index eb98bae2dbad..1615d5721cdc 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -468,12 +468,12 @@ msleep(ident, mtx, priority, wmesg, timo)
callout_reset(&td->td_slpcallout, timo, endtsleep, td);
/*
* We put ourselves on the sleep queue and start our timeout
- * before calling CURSIG, as we could stop there, and a wakeup
+ * before calling cursig, as we could stop there, and a wakeup
* or a SIGCONT (or both) could occur while we were stopped.
* A SIGCONT would cause us to be marked as SSLEEP
* without resuming us, thus we must be ready for sleep
- * when CURSIG is called. If the wakeup happens while we're
- * stopped, td->td_wchan will be 0 upon return from CURSIG.
+ * when cursig is called. If the wakeup happens while we're
+ * stopped, td->td_wchan will be 0 upon return from cursig.
*/
if (catch) {
CTR3(KTR_PROC, "msleep caught: proc %p (pid %d, %s)", p,
@@ -481,7 +481,7 @@ msleep(ident, mtx, priority, wmesg, timo)
td->td_flags |= TDF_SINTR;
mtx_unlock_spin(&sched_lock);
PROC_LOCK(p);
- sig = CURSIG(p);
+ sig = cursig(p);
mtx_lock_spin(&sched_lock);
PROC_UNLOCK(p);
if (sig != 0) {
@@ -524,8 +524,8 @@ msleep(ident, mtx, priority, wmesg, timo)
if (rval == 0 && catch) {
PROC_LOCK(p);
- /* XXX: shouldn't we always be calling CURSIG() */
- if (sig != 0 || (sig = CURSIG(p))) {
+ /* XXX: shouldn't we always be calling cursig() */
+ if (sig != 0 || (sig = cursig(p))) {
if (SIGISMEMBER(p->p_sigacts->ps_sigintr, sig))
rval = EINTR;
else
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index a5b035ae8d41..4a02c85da07b 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -200,7 +200,7 @@ ast(framep)
if (sflag & PS_NEEDSIGCHK) {
mtx_lock(&Giant);
PROC_LOCK(p);
- while ((sig = CURSIG(p)) != 0)
+ while ((sig = cursig(p)) != 0)
postsig(sig);
PROC_UNLOCK(p);
mtx_unlock(&Giant);
diff --git a/sys/netncp/ncp_sock.c b/sys/netncp/ncp_sock.c
index a16964d63df2..9055d14e34ce 100644
--- a/sys/netncp/ncp_sock.c
+++ b/sys/netncp/ncp_sock.c
@@ -249,7 +249,7 @@ done:
PROC_UNLOCK(p);
done_noproclock:
if (error == ERESTART) {
-/* printf("Signal: %x", CURSIG(p));*/
+/* printf("Signal: %x", cursig(p));*/
error = 0;
}
return (error);
diff --git a/sys/sys/signalvar.h b/sys/sys/signalvar.h
index cd61cff1f20d..6302d03a9b37 100644
--- a/sys/sys/signalvar.h
+++ b/sys/sys/signalvar.h
@@ -234,7 +234,7 @@ extern struct mtx sigio_lock;
/*
* Machine-independent functions:
*/
-int CURSIG(struct proc *p);
+int cursig(struct proc *p);
void execsigs(struct proc *p);
void gsignal(int pgid, int sig);
int issignal(struct proc *p);