summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-04-18 20:18:44 +0000
committerjhb <jhb@FreeBSD.org>2003-04-18 20:18:44 +0000
commitfa6200c9ec3dfd9b8ee4c63dbef523a4e4a3c482 (patch)
treead27658f9fd761337e5ef3c7e7677d6753cd348c
parentde4c9711d0944c63d082d39ee9e38a4336a72565 (diff)
downloadFreeBSD-src-fa6200c9ec3dfd9b8ee4c63dbef523a4e4a3c482.zip
FreeBSD-src-fa6200c9ec3dfd9b8ee4c63dbef523a4e4a3c482.tar.gz
Rename do_sigprocmask() to kern_sigprocmask() and make it a global symbol
so that it can be used by binary emulators.
-rw-r--r--sys/kern/kern_sig.c14
-rw-r--r--sys/sys/syscallsubr.h2
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 6e2ae50..5329992 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -89,8 +89,6 @@ static int filt_sigattach(struct knote *kn);
static void filt_sigdetach(struct knote *kn);
static int filt_signal(struct knote *kn, long hint);
static struct thread *sigtd(struct proc *p, int sig, int prop);
-static int do_sigprocmask(struct thread *td, int how,
- sigset_t *set, sigset_t *oset, int old);
static int kern_sigtimedwait(struct thread *td, sigset_t set,
siginfo_t *info, struct timespec *timeout);
@@ -590,12 +588,12 @@ execsigs(p)
}
/*
- * do_sigprocmask()
+ * kern_sigprocmask()
*
* Manipulate signal mask.
*/
-static int
-do_sigprocmask(td, how, set, oset, old)
+int
+kern_sigprocmask(td, how, set, oset, old)
struct thread *td;
int how;
sigset_t *set, *oset;
@@ -636,7 +634,7 @@ do_sigprocmask(td, how, set, oset, old)
}
/*
- * sigprocmask() - MP SAFE (XXXKSE not under KSE it isn't)
+ * sigprocmask() - MP SAFE
*/
#ifndef _SYS_SYSPROTO_H_
@@ -662,7 +660,7 @@ sigprocmask(td, uap)
if (error)
return (error);
}
- error = do_sigprocmask(td, uap->how, setp, osetp, 0);
+ error = kern_sigprocmask(td, uap->how, setp, osetp, 0);
if (osetp && !error) {
error = copyout(osetp, uap->oset, sizeof(oset));
}
@@ -688,7 +686,7 @@ osigprocmask(td, uap)
int error;
OSIG2SIG(uap->mask, set);
- error = do_sigprocmask(td, uap->how, &set, &oset, 1);
+ error = kern_sigprocmask(td, uap->how, &set, &oset, 1);
SIG2OSIG(oset, td->td_retval[0]);
return (error);
}
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index 874bffd..cac8091 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -73,6 +73,8 @@ int kern_select(struct thread *td, int nd, fd_set *fd_in, fd_set *fd_ou,
int kern_sigaction(struct thread *td, int sig, struct sigaction *act,
struct sigaction *oact, int flags);
int kern_sigaltstack(struct thread *td, stack_t *ss, stack_t *oss);
+int kern_sigprocmask(struct thread *td, int how,
+ sigset_t *set, sigset_t *oset, int old);
int kern_sigsuspend(struct thread *td, sigset_t mask);
int kern_symlink(struct thread *td, char *path, char *link,
enum uio_seg segflg);
OpenPOWER on IntegriCloud