diff options
author | kmacy <kmacy@FreeBSD.org> | 2011-09-16 13:58:51 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2011-09-16 13:58:51 +0000 |
commit | 99851f359e6f006b3223bb37dbc49e751ca8c13a (patch) | |
tree | 2ed8c1cfa9e408c1c66c2cde0823123897e0306e /sys/fs/procfs | |
parent | bf8fedabcd023c90bb2ee4ce0e5d6d8c2b927714 (diff) | |
download | FreeBSD-src-99851f359e6f006b3223bb37dbc49e751ca8c13a.zip FreeBSD-src-99851f359e6f006b3223bb37dbc49e751ca8c13a.tar.gz |
In order to maximize the re-usability of kernel code in user space this
patch modifies makesyscalls.sh to prefix all of the non-compatibility
calls (e.g. not linux_, freebsd32_) with sys_ and updates the kernel
entry points and all places in the code that use them. It also
fixes an additional name space collision between the kernel function
psignal and the libc function of the same name by renaming the kernel
psignal kern_psignal(). By introducing this change now we will ease future
MFCs that change syscalls.
Reviewed by: rwatson
Approved by: re (bz)
Diffstat (limited to 'sys/fs/procfs')
-rw-r--r-- | sys/fs/procfs/procfs_ctl.c | 4 | ||||
-rw-r--r-- | sys/fs/procfs/procfs_ioctl.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/procfs/procfs_ctl.c b/sys/fs/procfs/procfs_ctl.c index 5980ce1..dc267f6 100644 --- a/sys/fs/procfs/procfs_ctl.c +++ b/sys/fs/procfs/procfs_ctl.c @@ -147,7 +147,7 @@ procfs_control(struct thread *td, struct proc *p, int op) p->p_oppid = p->p_pptr->p_pid; proc_reparent(p, td->td_proc); } - psignal(p, SIGSTOP); + kern_psignal(p, SIGSTOP); out: PROC_UNLOCK(p); sx_xunlock(&proctree_lock); @@ -348,7 +348,7 @@ procfs_doprocctl(PFS_FILL_ARGS) thread_unsuspend(p); PROC_SUNLOCK(p); } else - psignal(p, nm->nm_val); + kern_psignal(p, nm->nm_val); PROC_UNLOCK(p); error = 0; } diff --git a/sys/fs/procfs/procfs_ioctl.c b/sys/fs/procfs/procfs_ioctl.c index 4b45af6..522dd9c 100644 --- a/sys/fs/procfs/procfs_ioctl.c +++ b/sys/fs/procfs/procfs_ioctl.c @@ -188,10 +188,10 @@ procfs_ioctl(PFS_IOCTL_ARGS) thread_unsuspend(p); PROC_SUNLOCK(p); } else if (sig) - psignal(p, sig); + kern_psignal(p, sig); #else if (sig) - psignal(p, sig); + kern_psignal(p, sig); p->p_step = 0; wakeup(&p->p_step); #endif |