NetBSD/sys/kern
dyoung 5493f188c7 KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous
parentheses in return statements.

Cosmetic: don't open-code TAILQ_FOREACH().

Cosmetic: change types of variables to avoid oodles of casts: in
   in6_src.c, avoid casts by changing several route_in6 pointers
   to struct route pointers.  Remove unnecessary casts to caddr_t
   elsewhere.

Pave the way for eliminating address family-specific route caches:
   soon, struct route will not embed a sockaddr, but it will hold
   a reference to an external sockaddr, instead.  We will set the
   destination sockaddr using rtcache_setdst().  (I created a stub
   for it, but it isn't used anywhere, yet.)  rtcache_free() will
   free the sockaddr.  I have extracted from rtcache_free() a helper
   subroutine, rtcache_clear().  rtcache_clear() will "forget" a
   cached route, but it will not forget the destination by releasing
   the sockaddr.  I use rtcache_clear() instead of rtcache_free()
   in rtcache_update(), because rtcache_update() is not supposed
   to forget the destination.

Constify:

   1 Introduce const accessor for route->ro_dst, rtcache_getdst().

   2 Constify the 'dst' argument to ifnet->if_output().  This
     led me to constify a lot of code called by output routines.

   3 Constify the sockaddr argument to protosw->pr_ctlinput.  This
     led me to constify a lot of code called by ctlinput routines.

   4 Introduce const macros for converting from a generic sockaddr
     to family-specific sockaddrs, e.g., sockaddr_in: satocsin6,
     satocsin, et cetera.
2007-02-17 22:34:07 +00:00
..
Make.tags.inc
Makefile
bufq_disksort.c Avoid unnecessary cast in bufq_disksort_init(). 2007-02-01 00:36:37 +00:00
bufq_fcfs.c
bufq_priocscan.c
bufq_readprio.c
cnmagic.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
core_elf32.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
core_elf64.c
core_netbsd.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
exec_aout.c
exec_conf.c
exec_ecoff.c
exec_elf32.c Put back break mistakenly removed in previous commit. 2006-11-24 01:13:11 +00:00
exec_elf64.c
exec_macho.c
exec_script.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
exec_subr.c
genlintstub.awk
init_main.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
init_sysctl.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
init_sysent.c Regen. 2007-02-10 11:32:58 +00:00
kern_acct.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kern_auth.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kern_clock.c Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts 2007-02-16 02:53:43 +00:00
kern_condvar.c unwrap short lines. 2007-02-11 15:41:53 +00:00
kern_core.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_descrip.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_drvctl.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
kern_event.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_exec.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_exit.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_fileassoc.c remove empty line 2007-02-08 16:06:58 +00:00
kern_fork.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_kcont.c
kern_ksyms.c Pass a simple ELF header to ksyms_init_explicit with the minimum contents 2006-11-06 13:35:35 +00:00
kern_kthread.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kern_ktrace.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_lkm.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kern_lock.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kern_lwp.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_malloc.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kern_malloc_debug.c
kern_microtime.c
kern_mutex.c - Add a mutex_wakeup() which clears the waiters flag and wakes all waiters. 2007-02-15 15:49:27 +00:00
kern_ntptime.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kern_pax.c PR/35253: YAMAMOTO Takashi: fileassoc hash size problem 2007-02-06 01:09:48 +00:00
kern_physio.c merge yamt-splraiseipl branch. 2006-12-21 15:55:21 +00:00
kern_proc.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_prot.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_ras.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kern_resource.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kern_rwlock.c - Add/correct comments. 2007-02-10 21:07:52 +00:00
kern_sig.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_sleepq.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_stub.c A quick hack to get things building again: put back the SA system calls 2007-02-10 11:32:21 +00:00
kern_subr.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_synch.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_sysctl.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kern_systrace.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
kern_tc.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kern_time.c Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts 2007-02-16 02:53:43 +00:00
kern_timeout.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kern_todr.c
kern_turnstile.c Add uvm_kick_scheduler() (MP safe) to replace wakeup(&proc0). 2007-02-15 20:21:13 +00:00
kern_uuid.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kern_verifiedexec.c PR/35253: YAMAMOTO Takashi: fileassoc hash size problem 2007-02-06 01:09:48 +00:00
kern_xxx.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kgdb_stub.c
makesyscalls.sh
subr_autoconf.c
subr_blist.c
subr_bufq.c
subr_callback.c
subr_debug.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
subr_devsw.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
subr_disk.c Replace the myriad copies of bounds_check_with_label() with a single MI 2006-11-25 11:59:55 +00:00
subr_disk_mbr.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
subr_evcnt.c
subr_extent.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
subr_iostat.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
subr_kmem.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
subr_lockdebug.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
subr_log.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
subr_once.c
subr_optstr.c Fix matching of options with common prefixes (e.g. console and console_speed). 2006-11-04 11:37:12 +00:00
subr_pool.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
subr_prf.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
subr_prof.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
subr_specificdata.c Replace some uses of lockmgr() / simplelocks. 2007-02-15 15:40:50 +00:00
subr_userconf.c
subr_vmem.c qc_reap, qc_destroy: simplify. 2006-11-18 07:51:54 +00:00
subr_workqueue.c workqueue_exit: update a comment. 2007-02-11 15:37:20 +00:00
subr_xxx.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
sys_generic.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
sys_lwp.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
sys_pipe.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
sys_pmc.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
sys_process.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
sys_sched.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
sys_sig.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
sys_socket.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
syscalls.c Regen. 2007-02-10 11:32:58 +00:00
syscalls.conf
syscalls.master A quick hack to get things building again: put back the SA system calls 2007-02-10 11:32:21 +00:00
sysv_ipc.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
sysv_msg.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
sysv_sem.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
sysv_shm.c Replace some uses of lockmgr() / simplelocks. 2007-02-15 15:40:50 +00:00
tty.c Acquire proclist_lock across the p_find() and pg_find() calls while 2007-02-17 21:43:08 +00:00
tty_bsdpty.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
tty_conf.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
tty_ptm.c CID-4197,4198: ensure that `fp' is not NULL before calling FILE_UNUSE() 2006-12-27 18:45:30 +00:00
tty_pty.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
tty_subr.c
tty_tty.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
uipc_domain.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
uipc_mbuf.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
uipc_mbuf2.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
uipc_proto.c
uipc_sem.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
uipc_socket.c Use KAUTH_ARG(). 2007-01-17 12:21:34 +00:00
uipc_socket2.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
uipc_syscalls.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
uipc_usrreq.c Pointing one element past an array is fine, pointing before it isn't. 2006-11-01 11:37:59 +00:00
vfs_bio.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
vfs_cache.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
vfs_getcwd.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
vfs_hooks.c
vfs_init.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
vfs_lockf.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
vfs_lookup.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
vfs_subr.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
vfs_syscalls.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
vfs_trans.c Make fstrans(9) the default helper for file system suspension. 2007-02-16 17:23:53 +00:00
vfs_vnops.c Make fstrans(9) the default helper for file system suspension. 2007-02-16 17:23:53 +00:00
vfs_xattr.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
vnode_if.c regen for VOP_FOO_DESCOFFSET change in vnode_if.sh 2006-11-30 21:07:36 +00:00
vnode_if.sh Generate preprocessor macros for vop offsets in vfs op descs. And 2006-11-30 21:06:29 +00:00
vnode_if.src update some comments for vnode locking smoergasbord change 2007-01-07 21:33:24 +00:00