-int nullop __P((void));
-int enodev (); /* avoid actual prototype for multiple use */
-void enodev_strat();
-int nulldev();
-int enoioctl __P((void));
-int enxio __P((void));
-int eopnotsupp __P((void));
-int einval __P((void));
-
-#ifdef __APPLE_API_UNSTABLE
-int seltrue __P((dev_t dev, int which, struct proc *p));
-#endif /* __APPLE_API_UNSTABLE */
-
-void *hashinit __P((int count, int type, u_long *hashmask));
-int nosys __P((struct proc *, void *, register_t *));
-
-#ifdef __GNUC__
-volatile void panic __P((const char *, ...));
-#else
-void panic __P((const char *, ...));
-#endif
-void tablefull __P((const char *));
-void log __P((int, const char *, ...));
-void kprintf __P((const char *, ...));
-void ttyprintf __P((struct tty *, const char *, ...));
-
-int kvprintf __P((char const *, void (*)(int, void*), void *, int,
- _BSD_VA_LIST_));
-
-int snprintf __P((char *, size_t, const char *, ...));
-int sprintf __P((char *buf, const char *, ...));
-void uprintf __P((const char *, ...));
-void vprintf __P((const char *, _BSD_VA_LIST_));
-int vsnprintf __P((char *, size_t, const char *, _BSD_VA_LIST_));
-int vsprintf __P((char *buf, const char *, _BSD_VA_LIST_));
-
-void bcopy __P((const void *from, void *to, size_t len));
-void ovbcopy __P((const void *from, void *to, size_t len));
-void bzero __P((void *buf, size_t len));
-
-int copystr __P((void *kfaddr, void *kdaddr, size_t len, size_t *done));
-int copyinstr __P((void *udaddr, void *kaddr, size_t len, size_t *done));
-int copyoutstr __P((void *kaddr, void *udaddr, size_t len, size_t *done));
-int copyin __P((void *udaddr, void *kaddr, size_t len));
-int copyout __P((void *kaddr, void *udaddr, size_t len));
-int copywithin __P((void *saddr, void *daddr, size_t len));
-
-int fubyte __P((void *base));
-#ifdef notdef
-int fuibyte __P((void *base));
-#endif
-int subyte __P((void *base, int byte));
-int suibyte __P((void *base, int byte));
-long fuword __P((void *base));
-long fuiword __P((void *base));
-int suword __P((void *base, long word));
-int suiword __P((void *base, long word));
-
-#ifdef __APPLE_API_UNSTABLE
-int hzto __P((struct timeval *tv));
+
+#ifdef BSD_KERNEL_PRIVATE
+int einval(void);
+void nullsys(void);
+int errsys(void);
+int seltrue(dev_t dev, int which, struct proc *p);
+void ttyprintf(struct tty *, const char *, ...) __printflike(2, 3);
+void realitexpire(struct proc *);
+int hzto(struct timeval *tv);
+void tablefull(const char *);
+int kvprintf(char const *, void (*)(int, void*), void *, int,
+ __darwin_va_list) __printflike(1, 0);
+void uprintf(const char *, ...) __printflike(1, 2);
+int copywithin(void *saddr, void *daddr, size_t len);
+int64_t fulong(user_addr_t addr);
+int sulong(user_addr_t addr, int64_t longword);
+uint64_t fuulong(user_addr_t addr);
+int suulong(user_addr_t addr, uint64_t ulongword);
+int clone_system_shared_regions(int shared_regions_active,
+ int chain_regions,
+ int base_vnode);
+extern kern_return_t bsd_exception(int, mach_exception_data_t codes, int);
+extern void bsdinit_task(void);
+extern void unix_syscall_return(int) __dead2;
+void initclocks(void);
+void startprofclock(struct proc *);
+void stopprofclock(struct proc *);
+void setstatclockrate(int hzrate);
+struct time_value;
+void get_procrustime(struct time_value *tv);
+void load_init_program(struct proc *p);
+void __pthread_testcancel(int presyscall);
+void throttle_info_get_last_io_time(mount_t mp, struct timeval *tv);
+void update_last_io_time(mount_t mp);
+void throttle_info_end_io(buf_t bp);
+#endif /* BSD_KERNEL_PRIVATE */
+
+#ifdef KERNEL_PRIVATE
+void timeout(void (*)(void *), void *arg, int ticks);
+void timeout_with_leeway(void (*)(void *), void *arg, int ticks, int leeway_ticks);
+void untimeout(void (*)(void *), void *arg);
+int bsd_hostname(char *, int, int*);
+int vslock(user_addr_t addr, user_size_t len);
+int vsunlock(user_addr_t addr, user_size_t len, int dirtied);
+#endif /* KERNEL_PRIVATE */
+
+int nullop(void);
+int nulldev(void);
+int enoioctl(void);
+int enosys(void);
+int enxio(void);
+int eopnotsupp(void);
+void *hashinit(int count, int type, u_long *hashmask);
+void ovbcopy(const void *from, void *to, size_t len);
+int fubyte(user_addr_t addr);
+int fuibyte(user_addr_t addr);
+int subyte(user_addr_t addr, int byte);
+int suibyte(user_addr_t addr, int byte);
+long fuword(user_addr_t addr);
+long fuiword(user_addr_t addr);
+int suword(user_addr_t addr, long word);
+int suiword(user_addr_t addr, long word);
+#define fusize(_a) ((user_size_t)fulong(_a))
+#define susize(_a, _s) sulong((_a), (_s))
+#define fuptr(a) ((user_addr_t)fulong(_a)
+#define suptr(_a, _p) sulong((_a), (_p))
+int useracc(user_addr_t addr, user_size_t len, int prot);