-#ifdef KERNEL
-void addupc_intr __P((struct proc *p, u_long pc, u_int ticks));
-void addupc_task __P((struct proc *p, u_long pc, u_int ticks));
-void calcru __P((struct proc *p, struct timeval *up, struct timeval *sp,
- struct timeval *ip));
-void ruadd __P((struct rusage *ru, struct rusage *ru2));
-struct plimit *limcopy __P((struct plimit *lim));
+void addupc_intr(struct proc *p, uint32_t pc, u_int ticks);
+void addupc_task(struct proc *p, user_addr_t pc, u_int ticks);
+void calcru(struct proc *p, struct timeval *up, struct timeval *sp,
+ struct timeval *ip);
+void ruadd(struct rusage *ru, struct rusage *ru2);
+void update_rusage_info_child(struct rusage_info_child *ru, rusage_info_current *ru_current);
+void proc_limitget(proc_t p, int whichi, struct rlimit * limp);
+void proc_limitdrop(proc_t p, int exiting);
+void proc_limitfork(proc_t parent, proc_t child);
+int proc_limitreplace(proc_t p);
+void proc_limitblock(proc_t);
+void proc_limitunblock(proc_t);