Rename do_sigprocmask() to kern_sigprocmask() and make it a global symbol
so that it can be used by binary emulators.
This commit is contained in:
parent
08865ba1d1
commit
e77daab1af
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113685
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user