only a few changes, and now uvm and kern should be all ansi all the time.

Index: kern/exec_subr.c
===================================================================
RCS file: /home/tedu/cvs/src/sys/kern/exec_subr.c,v
retrieving revision 1.28
diff -u -r1.28 exec_subr.c
--- kern/exec_subr.c    14 Nov 2006 18:00:27 -0000      1.28
+++ kern/exec_subr.c    28 Jun 2011 19:19:48 -0000
@@ -54,15 +54,7 @@
  */
 
 void
-new_vmcmd(evsp, proc, len, addr, vp, offset, prot, flags)
-       struct  exec_vmcmd_set *evsp;
-       int     (*proc)(struct proc * p, struct exec_vmcmd *);
-       u_long  len;
-       u_long  addr;
-       struct  vnode *vp;
-       u_long  offset;
-       u_int   prot;
-       int     flags;
+new_vmcmd(struct exec_vmcmd_set *evsp, int (*proc)(struct proc *, struct 
exec_vmcmd *), u_long len, u_long addr, struct vnode *vp, u_long offset, u_int 
prot, int flags)
 {
        struct exec_vmcmd    *vcp;
 
@@ -81,8 +73,7 @@
 #endif /* DEBUG */
 
 void
-vmcmdset_extend(evsp)
-       struct  exec_vmcmd_set *evsp;
+vmcmdset_extend(struct exec_vmcmd_set *evsp)
 {
        struct exec_vmcmd *nvcp;
        u_int ocnt;
@@ -165,9 +156,7 @@
  */
 
 int
-vmcmd_map_pagedvn(p, cmd)
-       struct proc *p;
-       struct exec_vmcmd *cmd;
+vmcmd_map_pagedvn(struct proc *p, struct exec_vmcmd *cmd)
 {
        /*
         * note that if you're going to map part of a process as being
@@ -183,21 +172,21 @@
         */
 
        if (cmd->ev_len == 0)
-               return(0);
+               return (0);
        if (cmd->ev_offset & PAGE_MASK)
-               return(EINVAL);
+               return (EINVAL);
        if (cmd->ev_addr & PAGE_MASK)
-               return(EINVAL);
+               return (EINVAL);
        if (cmd->ev_len & PAGE_MASK)
-               return(EINVAL);
+               return (EINVAL);
 
        /*
         * first, attach to the object
         */
 
-       uobj = uvn_attach((void *) cmd->ev_vp, VM_PROT_READ|VM_PROT_EXECUTE);
+       uobj = uvn_attach((void *)cmd->ev_vp, VM_PROT_READ|VM_PROT_EXECUTE);
        if (uobj == NULL)
-               return(ENOMEM);
+               return (ENOMEM);
 
        /*
         * do the map
@@ -278,9 +267,7 @@
  */
 
 int
-vmcmd_map_zero(p, cmd)
-       struct proc *p;
-       struct exec_vmcmd *cmd;
+vmcmd_map_zero(struct proc *p, struct exec_vmcmd *cmd)
 {
        int error;
 
@@ -313,9 +300,7 @@
  */
 
 int
-exec_setup_stack(p, epp)
-       struct proc *p;
-       struct exec_package *epp;
+exec_setup_stack(struct proc *p, struct exec_package *epp)
 {
 
 #ifdef MACHINE_STACK_GROWS_UP
@@ -354,5 +339,5 @@
            VM_PROT_READ|VM_PROT_WRITE);
 #endif
 
-       return 0;
+       return (0);
 }
Index: uvm/uvm_map.c
===================================================================
RCS file: /home/tedu/cvs/src/sys/uvm/uvm_map.c,v
retrieving revision 1.141
diff -u -r1.141 uvm_map.c
--- uvm/uvm_map.c       6 Jun 2011 17:10:23 -0000       1.141
+++ uvm/uvm_map.c       28 Jun 2011 19:24:50 -0000
@@ -3356,8 +3356,7 @@
  */
 
 void
-uvmspace_share(p1, p2)
-       struct proc *p1, *p2;
+uvmspace_share(struct proc *p1, struct proc *p2)
 {
        p2->p_vmspace = p1->p_vmspace;
        p1->p_vmspace->vm_refcnt++;
@@ -3924,10 +3923,8 @@
  */
 
 void
-uvm_object_printit(uobj, full, pr)
-       struct uvm_object *uobj;
-       boolean_t full;
-       int (*pr)(const char *, ...);
+uvm_object_printit(struct uvm_object *uobj, boolean_t full,
+    int (*pr)(const char *, ...))
 {
        struct vm_page *pg;
        int cnt = 0;
@@ -3965,10 +3962,8 @@
        "\31PMAP1\32PMAP2\33PMAP3";
 
 void
-uvm_page_printit(pg, full, pr)
-       struct vm_page *pg;
-       boolean_t full;
-       int (*pr)(const char *, ...);
+uvm_page_printit(struct vm_page *pg, boolean_t full,
+    int (*pr)(const char *, ...))
 {
        struct vm_page *tpg;
        struct uvm_object *uobj;
Index: uvm/uvm_stat.c
===================================================================
RCS file: /home/tedu/cvs/src/sys/uvm/uvm_stat.c,v
retrieving revision 1.22
diff -u -r1.22 uvm_stat.c
--- uvm/uvm_stat.c      17 Jun 2009 00:13:59 -0000      1.22
+++ uvm/uvm_stat.c      28 Jun 2011 19:25:28 -0000
@@ -184,7 +184,7 @@
 #endif /* UVMHIST */
 
 void
-uvmcnt_dump()
+uvmcnt_dump(void)
 {
        struct uvm_cnt *uvc = uvm_cnt_head;

Reply via email to