From owner-svn-src-head@freebsd.org Thu Mar 2 22:17:54 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D760CF6367; Thu, 2 Mar 2017 22:17:54 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 55943122F; Thu, 2 Mar 2017 22:17:54 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v22MHrtx014534; Thu, 2 Mar 2017 22:17:53 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v22MHrpX014533; Thu, 2 Mar 2017 22:17:53 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201703022217.v22MHrpX014533@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Thu, 2 Mar 2017 22:17:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r314568 - head/sys/kern X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2017 22:17:54 -0000 Author: emaste Date: Thu Mar 2 22:17:53 2017 New Revision: 314568 URL: https://svnweb.freebsd.org/changeset/base/314568 Log: kern_sig.c: ANSIfy and remove archaic register keyword Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c ============================================================================== --- head/sys/kern/kern_sig.c Thu Mar 2 21:13:25 2017 (r314567) +++ head/sys/kern/kern_sig.c Thu Mar 2 22:17:53 2017 (r314568) @@ -822,12 +822,10 @@ struct sigaction_args { }; #endif int -sys_sigaction(td, uap) - struct thread *td; - register struct sigaction_args *uap; +sys_sigaction(struct thread *td, struct sigaction_args *uap) { struct sigaction act, oact; - register struct sigaction *actp, *oactp; + struct sigaction *actp, *oactp; int error; actp = (uap->act != NULL) ? &act : NULL; @@ -852,12 +850,10 @@ struct freebsd4_sigaction_args { }; #endif int -freebsd4_sigaction(td, uap) - struct thread *td; - register struct freebsd4_sigaction_args *uap; +freebsd4_sigaction(struct thread *td, struct freebsd4_sigaction_args *uap) { struct sigaction act, oact; - register struct sigaction *actp, *oactp; + struct sigaction *actp, *oactp; int error; @@ -884,13 +880,11 @@ struct osigaction_args { }; #endif int -osigaction(td, uap) - struct thread *td; - register struct osigaction_args *uap; +osigaction(struct thread *td, struct osigaction_args *uap) { struct osigaction sa; struct sigaction nsa, osa; - register struct sigaction *nsap, *osap; + struct sigaction *nsap, *osap; int error; if (uap->signum <= 0 || uap->signum >= ONSIG) @@ -920,9 +914,7 @@ osigaction(td, uap) #if !defined(__i386__) /* Avoid replicating the same stub everywhere */ int -osigreturn(td, uap) - struct thread *td; - struct osigreturn_args *uap; +osigreturn(struct thread *td, struct osigreturn_args *uap) { return (nosys(td, (struct nosys_args *)uap)); @@ -935,8 +927,7 @@ osigreturn(td, uap) * set to ignore signals that are ignored by default. */ void -siginit(p) - struct proc *p; +siginit(struct proc *p) { register int i; struct sigacts *ps; @@ -1109,9 +1100,7 @@ struct sigprocmask_args { }; #endif int -sys_sigprocmask(td, uap) - register struct thread *td; - struct sigprocmask_args *uap; +sys_sigprocmask(struct thread *td, struct sigprocmask_args *uap) { sigset_t set, oset; sigset_t *setp, *osetp; @@ -1139,9 +1128,7 @@ struct osigprocmask_args { }; #endif int -osigprocmask(td, uap) - register struct thread *td; - struct osigprocmask_args *uap; +osigprocmask(struct thread *td, struct osigprocmask_args *uap) { sigset_t set, oset; int error; @@ -1359,9 +1346,7 @@ struct sigpending_args { }; #endif int -sys_sigpending(td, uap) - struct thread *td; - struct sigpending_args *uap; +sys_sigpending(struct thread *td, struct sigpending_args *uap) { struct proc *p = td->td_proc; sigset_t pending; @@ -1380,9 +1365,7 @@ struct osigpending_args { }; #endif int -osigpending(td, uap) - struct thread *td; - struct osigpending_args *uap; +osigpending(struct thread *td, struct osigpending_args *uap) { struct proc *p = td->td_proc; sigset_t pending; @@ -1409,13 +1392,11 @@ struct osigvec_args { #endif /* ARGSUSED */ int -osigvec(td, uap) - struct thread *td; - register struct osigvec_args *uap; +osigvec(struct thread *td, struct osigvec_args *uap) { struct sigvec vec; struct sigaction nsa, osa; - register struct sigaction *nsap, *osap; + struct sigaction *nsap, *osap; int error; if (uap->signum <= 0 || uap->signum >= ONSIG) @@ -1449,9 +1430,7 @@ struct osigblock_args { }; #endif int -osigblock(td, uap) - register struct thread *td; - struct osigblock_args *uap; +osigblock(struct thread *td, struct osigblock_args *uap) { sigset_t set, oset; @@ -1467,9 +1446,7 @@ struct osigsetmask_args { }; #endif int -osigsetmask(td, uap) - struct thread *td; - struct osigsetmask_args *uap; +osigsetmask(struct thread *td, struct osigsetmask_args *uap) { sigset_t set, oset; @@ -1491,9 +1468,7 @@ struct sigsuspend_args { #endif /* ARGSUSED */ int -sys_sigsuspend(td, uap) - struct thread *td; - struct sigsuspend_args *uap; +sys_sigsuspend(struct thread *td, struct sigsuspend_args *uap) { sigset_t mask; int error; @@ -1559,9 +1534,7 @@ struct osigsuspend_args { #endif /* ARGSUSED */ int -osigsuspend(td, uap) - struct thread *td; - struct osigsuspend_args *uap; +osigsuspend(struct thread *td, struct osigsuspend_args *uap) { sigset_t mask; @@ -1579,9 +1552,7 @@ struct osigstack_args { #endif /* ARGSUSED */ int -osigstack(td, uap) - struct thread *td; - register struct osigstack_args *uap; +osigstack(struct thread *td, struct osigstack_args *uap) { struct sigstack nss, oss; int error = 0; @@ -1614,9 +1585,7 @@ struct sigaltstack_args { #endif /* ARGSUSED */ int -sys_sigaltstack(td, uap) - struct thread *td; - register struct sigaltstack_args *uap; +sys_sigaltstack(struct thread *td, struct sigaltstack_args *uap) { stack_t ss, oss; int error; @@ -1799,9 +1768,7 @@ sys_kill(struct thread *td, struct kill_ } int -sys_pdkill(td, uap) - struct thread *td; - struct pdkill_args *uap; +sys_pdkill(struct thread *td, struct pdkill_args *uap) { struct proc *p; cap_rights_t rights; @@ -2986,7 +2953,7 @@ postsig(sig) register int sig; { struct thread *td = curthread; - register struct proc *p = td->td_proc; + struct proc *p = td->td_proc; struct sigacts *ps; sig_t action; ksiginfo_t ksi; @@ -3059,9 +3026,7 @@ postsig(sig) * Kill the current process for stated reason. */ void -killproc(p, why) - struct proc *p; - char *why; +killproc(struct proc *p, char *why) { PROC_LOCK_ASSERT(p, MA_OWNED); @@ -3082,9 +3047,7 @@ killproc(p, why) * does not return. */ void -sigexit(td, sig) - struct thread *td; - int sig; +sigexit(struct thread *td, int sig) { struct proc *p = td->td_proc; @@ -3573,9 +3536,7 @@ struct nosys_args { #endif /* ARGSUSED */ int -nosys(td, args) - struct thread *td; - struct nosys_args *args; +nosys(struct thread *td, struct nosys_args *args) { struct proc *p = td->td_proc; @@ -3590,9 +3551,7 @@ nosys(td, args) * credentials rather than those of the current process. */ void -pgsigio(sigiop, sig, checkctty) - struct sigio **sigiop; - int sig, checkctty; +pgsigio(struct sigio **sigiop, int sig, int checkctty) { ksiginfo_t ksi; struct sigio *sigio;