diff options
author | des <des@FreeBSD.org> | 2003-03-19 00:49:40 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-03-19 00:49:40 +0000 |
commit | d0bee7242c1b61bb47573e3a33f69be4e1320de0 (patch) | |
tree | ae72949178ef488569f619728ad52e3703a3b224 /sys | |
parent | aeac636bfd3219ef7896be73aaa6e3cadf201424 (diff) | |
download | FreeBSD-src-d0bee7242c1b61bb47573e3a33f69be4e1320de0.zip FreeBSD-src-d0bee7242c1b61bb47573e3a33f69be4e1320de0.tar.gz |
Unregisterize, ansify.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_exit.c | 44 |
1 files changed, 10 insertions, 34 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 4dd360e..38af794 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -105,11 +105,7 @@ static struct exit_list_head exit_list = TAILQ_HEAD_INITIALIZER(exit_list); * MPSAFE */ void -sys_exit(td, uap) - struct thread *td; - struct sys_exit_args /* { - int rval; - } */ *uap; +sys_exit(struct thread *td, struct sys_exit_args *uap) { mtx_lock(&Giant); @@ -123,15 +119,13 @@ sys_exit(td, uap) * status and rusage for wait(). Check for child processes and orphan them. */ void -exit1(td, rv) - register struct thread *td; - int rv; +exit1(struct thread *td, int rv) { struct exitlist *ep; struct proc *p, *nq, *q; struct tty *tp; struct vnode *ttyvp; - register struct vmspace *vm; + struct vmspace *vm; struct vnode *vtmp; #ifdef KTRACE struct vnode *tracevp; @@ -297,7 +291,7 @@ exit1(td, rv) sx_xlock(&proctree_lock); if (SESS_LEADER(p)) { - register struct session *sp; + struct session *sp; sp = p->p_session; if (sp->s_ttyvp) { @@ -524,11 +518,7 @@ exit1(td, rv) * MPSAFE. The dirty work is handled by wait1(). */ int -owait(td, uap) - struct thread *td; - register struct owait_args /* { - int dummy; - } */ *uap; +owait(struct thread *td, struct owait_args *uap __unused) { struct wait_args w; @@ -544,9 +534,7 @@ owait(td, uap) * MPSAFE. The dirty work is handled by wait1(). */ int -wait4(td, uap) - struct thread *td; - struct wait_args *uap; +wait4(struct thread *td, struct wait_args *uap) { return (wait1(td, uap, 0)); @@ -556,15 +544,7 @@ wait4(td, uap) * MPSAFE */ static int -wait1(td, uap, compat) - register struct thread *td; - register struct wait_args /* { - int pid; - int *status; - int options; - struct rusage *rusage; - } */ *uap; - int compat; +wait1(struct thread *td, struct wait_args *uap, int compat) { struct rusage ru; int nfound; @@ -806,9 +786,7 @@ loop: * Must be called with an exclusive hold of proctree lock. */ void -proc_reparent(child, parent) - register struct proc *child; - register struct proc *parent; +proc_reparent(struct proc *child, struct proc *parent) { sx_assert(&proctree_lock, SX_XLOCKED); @@ -832,8 +810,7 @@ proc_reparent(child, parent) */ int -at_exit(function) - exitlist_fn function; +at_exit(exitlist_fn function) { struct exitlist *ep; @@ -856,8 +833,7 @@ at_exit(function) * Returns the number of items removed (0 or 1) */ int -rm_at_exit(function) - exitlist_fn function; +rm_at_exit(exitlist_fn function) { struct exitlist *ep; |