Files marked with [dup] have more than one conceptual patch affecting them. Usually, the diffs can be separated out into the various patches, but in at least one case a common file is patched once as part of MD support on two different ports. Calling a patch "foreign" amounts to saying I picked it up from somewhere else rather than writing it myself. Commentary is minimal; this is intended to be descriptive, not evangelical, apologetic, justificatory, or even in most cases explanatory. src/Makefile Add a BUILD_NO_CLEANDIR switch to suppress the "make cleandir" from a "make build" without any of the other effects of setting UPDATE. src/bin/chmod/chmod.1 [dup] Miscellanous nroff cleanup, such as using .Dq x instead of ``x'' in various places or using \- instead of -. src/bin/chmod/chmod.1 [dup] src/bin/chmod/chmod.c [dup] src/lib/libc/gen/setmode.c Support for ls-style modes, so you can say (for exmaple) chmod rwxr-x--x src obj man? or, to leave some bits untouched, something like chmod .w..-..-. * (which amounts to u+w,go-w). src/bin/chmod/chmod.1 [dup] src/bin/chmod/chmod.c [dup] Add -F, akin to umount(8)'s -R option, to just do mode setting, without going near fts_*. src/bin/chmod/mv.1 src/bin/chmod/mv.c Add -R, akin to umount(8)'s -R option, to just call rename(2). src/bin/test/TEST.csh src/bin/test/test.1 src/bin/test/test.c Add -l, which tests for MNT_LOCAL. src/dist/bind/bin/dnsquery/dnsquery.c src/dist/bind/man/dnsquery.1 Add -R, which turns off RES_RECURSE. src/etc/etc.alpha/MAKEDEV [dup] src/etc/etc.i386/MAKEDEV [dup] src/etc/etc.sparc/MAKEDEV [dup] src/sys/arch/alpha/alpha/conf.c [dup] src/sys/arch/alpha/conf/files.alpha [dup] src/sys/arch/i386/conf/files.i386 [dup] src/sys/arch/i386/i386/conf.c [dup] src/sys/arch/sparc/conf/files.sparc [dup] src/sys/arch/sparc/include/conf.h src/sys/arch/sparc/sparc/conf.c [dup] src/sys/conf/files [dup] src/sys/dev/pseudo/Makefile [dup] src/sys/dev/pseudo/ed-intf.h src/sys/dev/pseudo/ed-kern.h src/sys/dev/pseudo/ed.h Add the ed encrypted-disk driver. src/etc/etc.alpha/MAKEDEV [dup] src/etc/etc.sparc/MAKEDEV [dup] src/etc/etc.i386/MAKEDEV [dup] src/etc/etc.sun3/MAKEDEV [dup] src/sys/arch/alpha/alpha/conf.c [dup] src/sys/arch/i386/i386/conf.c [dup] src/sys/arch/mac68k/mac68k/conf.c [dup] src/sys/arch/next68k/next68k/conf.c [dup] src/sys/arch/sparc/include/conf.h [dup] src/sys/arch/sparc/sparc/conf.c [dup] src/sys/arch/sun3/sun3/conf.c [dup] src/sys/conf/files [dup] src/sys/dev/pseudo/ptape-kern.h src/sys/dev/pseudo/ptape.c src/sys/dev/pseudo/ptape.doc Add the ptape pseudo-driver (pseudo-tape devices). src/etc/etc.alpha/MAKEDEV [dup] src/etc/etc.sparc/MAKEDEV [dup] src/etc/etc.i386/MAKEDEV [dup] src/etc/etc.macppc/MAKEDEV src/sys/arch/alpha/alpha/conf.c [dup] src/sys/arch/i386/i386/conf.c [dup] src/sys/arch/mac68k/mac68k/conf.c [dup] src/sys/arch/macppc/macppc/conf.c [dup] src/sys/arch/next68k/next68k/conf.c [dup] src/sys/arch/sparc/include/conf.h [dup] src/sys/arch/sparc/sparc/conf.c [dup] src/sys/arch/sun3/sun3/conf.c [dup] src/sys/conf/files [dup] src/sys/dev/pseudo/pdisk-kern.h src/sys/dev/pseudo/pdisk.c src/sys/dev/pseudo/pdisk.doc Add the pdisk pseudo-driver (pseudo-disk devices). src/etc/etc.alpha/MAKEDEV [dup] src/etc/etc.sparc/MAKEDEV [dup] src/etc/etc.i386/MAKEDEV [dup] src/sys/arch/alpha/alpha/conf.c [dup] src/sys/arch/i386/i386/conf.c [dup] src/sys/arch/sparc/include/conf.h [dup] src/sys/arch/sparc/sparc/conf.c [dup] src/sys/conf/files [dup] src/sys/dev/pseudo/Makefile [dup] src/sys/dev/pseudo/if_encap.c src/sys/dev/pseudo/if_encap.h src/sys/netinet/in_proto.c Add the encap pseudo-driver (a signed IP-in-IP encapsulation). src/etc/etc.alpha/MAKEDEV [dup] src/etc/etc.sparc/MAKEDEV [dup] src/etc/etc.i386/MAKEDEV [dup] src/sys/arch/alpha/alpha/conf.c [dup] src/sys/arch/i386/i386/conf.c [dup] src/sys/arch/sparc/include/conf.h [dup] src/sys/arch/sparc/sparc/conf.c [dup] src/sys/conf/files [dup] src/sys/dev/pseudo/Makefile [dup] src/sys/dev/pseudo/if_srt.c src/sys/dev/pseudo/if_srt.h Add the srt pseudo-driver (ip_src-based routing support). src/etc/etc.alpha/MAKEDEV [dup] src/etc/etc.sparc/MAKEDEV [dup] src/etc/etc.i386/MAKEDEV [dup] src/sys/arch/alpha/alpha/conf.c [dup] src/sys/arch/i386/i386/conf.c [dup] src/sys/arch/sparc/include/conf.h [dup] src/sys/arch/sparc/sparc/conf.c [dup] src/sys/conf/files [dup] src/sys/dev/pseudo/Makefile [dup] src/sys/dev/pseudo/if_ethc.c src/sys/dev/pseudo/if_ethc.h Add the ethc pseudo-driver (partial EtherChannel support). src/etc/etc.alpha/MAKEDEV [dup] src/etc/etc.i386/MAKEDEV [dup] src/etc/etc.sparc/MAKEDEV [dup] src/share/man/man4/Makefile [dup] src/share/man/man4/vlan.4 src/sys/arch/alpha/alpha/conf.c [dup] src/sys/arch/i386/i386/conf.c [dup] src/sys/arch/sparc/include/conf.h [dup] src/sys/arch/sparc/sparc/conf.c [dup] src/sys/conf/files [dup] src/sys/dev/pseudo/Makefile [dup] src/sys/dev/pseudo/dot1qint.h src/sys/dev/pseudo/if_vlan.c src/sys/dev/pseudo/if_vlan.h src/sys/net/if.h [dup] src/sys/net/if_ethersubr.c [dup] Add the vlan pseudo-driver (802.1q support). src/etc/etc.alpha/MAKEDEV [dup] src/sys/arch/alpha/alpha/disksubr.c src/sys/arch/alpha/conf/files.alpha [dup] src/sys/arch/alpha/include/disklabel.h Make disks have 16 partitions instead of 8 on alpha. src/etc/etc.sparc/MAKEDEV [dup] src/sys/arch/sparc/conf/files.sparc [dup] src/sys/arch/sparc/include/disklabel.h src/sys/arch/sparc/sparc/disksubr.c src/sys/dev/sun/disklabel.h [dup] Make disks have 16 partitions instead of 8 on sparc (including support for 16-partition Sun-ish labels). src/etc/etc.sun3/MAKEDEV [dup] src/sys/arch/sun3/conf/files.sun3 [dup] src/sys/arch/sun3/include/disklabel.h src/sys/arch/sun3/sun3/disksubr.c src/sys/dev/sun/disklabel.h [dup] Make disks have 16 partitions instead of 8 on sun3 (including support for 16-partition Sun-ish labels). src/etc/etc.vax/MAKEDEV Use 1.34 instead of 1.30. I think no changes to 1.34. src/etc/mtree/NetBSD.dist Remove ./altroot, ./home, ,/mnt, and ./stand. src/etc/Makefile Use Canada/Eastern instead of US/Pacific for the default /etc/localtime link. src/etc/netstart Support interface aliases configured with variables in rc.conf, eg ifalias_le0_1, ifalias_le0_2, etc. src/etc/rc [dup] Set maxproc.soft to maxproc.hard for both the rc shell and init. src/etc/rc [dup] Remove the boot-time clearing of /tmp. src/etc/rc.conf Call the local-additions file rc.conf.local, not rc.local.conf. (It's local additions to rc.conf, not a config file for rc.local!) src/games/canfield/canfield/canfield.c Cast printf args to int, presumably to shut up -Wformat. src/games/cribbage/crib.c Call do_wait() in two places where it wasn't before, presumably to avoid things happening too fast - foreign, I think. src/games/cribbage/cribbage.h Define __P if NEED_PROTOTYPES, and declare sys_errlist[] and a macro strerror() if NEED_STRERROR. Probably foreign. src/games/fish/fish.c Improved dealing to simulate a real deck; the previous code would pick with equal probability for each rank that had any cards left, regardless of how many cards the ranks had left. src/games/hunt/hunt/playit.c Don't go under the hood of curses! src/games/larn/data.c src/games/larn/main.c [dup] src/games/larn/monster.c [dup] Fix some spelling and grammar errors in messages and comments. src/games/larn/extern.h src/games/larn/global.c src/games/larn/help.c src/games/larn/io.c [dup] src/games/larn/main.c [dup] src/games/larn/monster.c [dup] src/games/larn/moreobj.c src/games/larn/object.c src/games/larn/store.c [dup] Rename getchar() to lgetchar() to avoid clashing with stdio. src/games/larn/header.h Improve the commenting of a list of values. src/games/larn/io.c [dup] src/games/larn/scores.c [dup] src/games/larn/store.c [dup] Make the LRS work right, instead of scrambling the display. This involves some discouragingly extensive work in apparently unrelated areas; notably: - lcreat() calls lflush(), to push buffered data before switching buffers - :bc: and :bs: are checked by the termcap init code, to figure out how to backspace - the output handling code deals correctly with ^G and ^H in the output buffer - readnum() does its own line assembly, rather than dropping back into echo+!cbreak mode and letting the tty driver do it (this is to make echo &c go through lprc() and friends rather than risking scrolling) - the scorefile code calls set_score_output() at different places, to get errors to go to the right place at the right time src/games/larn/io.c [dup] Cosmetics: remove a stray semicolon after a { } block. src/games/larn/main.c [dup] src/games/larn/scores.c [dup] Don't call seteuid() if euid==uid; this makes it possible to debug the game when running as non-root. (Otherwise, the call to seteuid() causes the debugger to lose control of the process, even if the uid being set to equals the current uid.) src/games/larn/store.c [dup] Make entering the 5th level branch of the Bank resync the game's idea of what level you're on, same as returning to the home level does. src/games/mille/print.c Cast mvprintw arg to int, presumably for -Wformat. src/games/phantasia/fight.c %0.f -> %0.0f (the former is not legal, I think). src/games/phantasia/misc.c Cast mvprintw arg to int, presumably for -Wformat. src/games/phantasia/phantdefs.h Support DEL as well as BS for erase. src/games/quiz/datfiles/collectives They're "bananas", not "banannas". src/games/robots/score.c [dup] Don't zero-pad scores on display. src/games/robots/score.c [dup] Cast printw arg to int, presumably for -Wformat. src/games/wump/wump.c Don't place the player in a pit/bat room; don't use floating point unnecessarily. src/gnu/dist/bfd/aoutx.h Foreign. I think this is VAX-related, but I'm not sure. src/gnu/dist/bfd/elflink.h NUL-terminate the message string fetched by bfd_get_section_contents() (avoids printing garbage after some .warn messages). src/gnu/dist/gcc/c-common.c [dup] Disable the stupid "zero-length format string" warning. src/gnu/dist/gcc/c-common.c [dup] Make the -Wformat driving tables match the NetBSD reality, as opposed to the glibc reality. Involves some code changes, since the a flag for strftime has special code scattered around to handle it; that code also goes. src/gnu/dist/gcc/c-decl.c [dup] src/gnu/dist/gcc/c-tree.h src/gnu/dist/gcc/c-typeck.c [dup] src/gnu/dist/gcc/toplev.c Add -W{no-,}missing-init, to control missing-initializer warnings independently of other warnings. src/gnu/dist/gcc/c-decl.c [dup] src/gnu/dist/gcc/c-parse.in [dup] src/gnu/dist/gcc/c-parse.y [dup] src/gnu/dist/gcc/c-typeck.c [dup] src/gnu/dist/gcc/objc/objc-parse.y [dup] Add support for transparent struct/union members: they can be named __transparent__, or they can have no name at all. src/gnu/dist/gcc/c-parse.in [dup] src/gnu/dist/gcc/c-parse.y [dup] src/gnu/dist/gcc/cp/expr.c src/gnu/dist/gcc/cp/semantics.c src/gnu/dist/gcc/f/std.c src/gnu/dist/gcc/f/ste.c src/gnu/dist/gcc/objc/objc-parse.y [dup] src/gnu/dist/gcc/stmt.c [dup] src/gnu/dist/gcc/tree.h Support <"string"> labels on some control structure constructs: while, do, for, switch, break, continue, case:, default:. src/gnu/dist/gcc/stmt.c [dup] Cosmetics; fix up a comment to contain balanced { }. src/gnu/lib/libgcc/Makefile Build tramp.o correctly on the powerpc. src/gnu/usr.bin/gzip/gzip.c Foreign. Check for file name length overflow. src/gnu/usr.bin/ld/ld/ld.c I think this may be just using 1.72 instead of 1.68. Not certain. src/gnu/usr.bin/ld/ld/rrs.c Shut off "RSS text relocation" whines on the VAX. src/gnu/Makefile Don't build libexec (all that's there is uucp). src/include/arpa/inet.h src/include/resolv.h Add missing . src/include/arpa/nameser.h Add a define for T_DNAME. src/include/Makefile src/include/wchar.h Add wchar.h. src/include/vis.h Add missing . Maybe should be fixed differently. src/lib/libc/gen/getcwd.c Fix an off-by-one error. Foreign. (Includes the whole foreign patch, even though some of it is irrelevant and unnecessary.) src/lib/libc/gen/getusershell.c Warn about calls to *usershell(). (I plan to someday comb the tree and eradicate them.) lib/libc/locale/setlocale.c Avoid array overrun. Foreign. src/lib/libc/net/Makefile.inc src/lib/libc/net/__cmsg_alignbytes.c src/sys/kern/kern_sysctl.c src/sys/lib/libkern/Makefile [dup] src/sys/lib/libkern/__cmsg_alignbytes.c src/sys/sys/socket.h [dup] src/sys/sys/sysctl.h src/usr.sbin/pim6dd/mld6.c src/usr.sbin/pim6dd/pim6.c src/usr.sbin/pim6sd/mld6.c src/usr.sbin/pim6sd/pim6.c src/usr.sbin/rtadvd/rtadvd.c src/usr.sbin/rtsold/probe.c src/usr.sbin/rtsold/rtsol.c src/usr.sbin/traceroute6/traceroute6.c Import, mutatis mutandis, the __cmsg_alignbytes stuff from -current to deal with the socket control data alignment issue. This also implies adding the hw.alignbytes sysctl, and fixing some code that used to use CMSG_ALIGN when setting the size of arrays with static storage duration. src/lib/libc/net/getaddrinfo.3 Don't use memset to zero pointers. src/lib/libc/net/gethnamaddr.c [dup] Use 1.33 as base instead of 1.30. src/lib/libc/net/gethnamaddr.c [dup] src/lib/libc/net/getnetnamadr.c Switch from length-remaining to end-pointer paradigm for detecting end-of-packet. Foreign. src/lib/libc/net/gethnamaddr.c [dup] Detect and ignore T_DNAME records, just like T_KEY and T_SIG. src/lib/libc/net/res_debug.c Add an entry for T_DNAME records. src/lib/libc/rpc/svc.c Don't use memset to zero pointers. src/lib/libc/rpc/xdr_array.c Avoid array size overflow. Foreign. src/lib/libc/sys/ptrace.2 [dup] Minor nroff cleanup. src/lib/libc/sys/ptrace.2 [dup] src/sys/arch/sparc/sparc/trap.c src/sys/arch/sun3/sun3/trap.c src/sys/kern/sys_process.c [dup] src/sys/sys/proc.h [dup] src/sys/sys/ptrace.h Add PT_SYSCALL and related stuff. src/lib/libc/sys/wait.2 src/sys/kern/kern_exit.c src/sys/sys/wait.h Add the WNOREAP flag bit. src/lib/libcrypt/Makefile [dup] src/lib/libcrypt/crypt.3 [dup] src/lib/libcrypt/internal.h [dup] Add crypt_makesalt(). src/lib/libcrypt/crypt.3 [dup] Minor cleanup (describe more accurately, use .Dq instead of ``''). src/lib/libcrypt/crypt.3 [dup] src/lib/libcrypt/crypt.c src/lib/libcrypt/internal.h [dup] src/lib/libcrypt/md5crypt.c src/lib/libcrypt/newcrypt.doc src/lib/libcrypt/realcrypt.c Add md5_crypt(), des_crypt(), and make crypt() a front-end wrapper. src/lib/libcurses/* Switch to a newer curses (ncurses, I think). src/lib/libmenu/menu.h Remove a hack no longer needed with the new libcurses. src/lib/libterm/Makefile src/lib/libterm/shlib_version src/lib/libterm/termcap.3 src/lib/libterm/termcap.c src/lib/libterm/termcap.h src/lib/libterm/termcap_private.h src/lib/libterm/tgoto.c src/lib/libterm/tputs.c This appears to be just a new libterm, though I have very vague and fuzzy memories indicating I'm responsible for termcap_private.h. src/libexec/ftpd/ftpd.8 src/libexec/ftpd/ftpd.c [dup] Add -p, to tell ftpd to not bother with using privileged ports for non-PASV default data connections. src/libexec/ftpd/ftpd.c [dup] Try to fix a logging overflow. src/libexec/ftpd/ftpd.c [dup] Rip out getusershell() silliness. src/libexec/ftpd/ftpd.c [dup] Don't actually call chroot() if the path we would pass to it is "/". This (plus -p, vide supra) allows us to run anonymous ftp as a non-root user. (The same change applies to CLASS_CHROOT, for consistency.) src/libexec/makewhatis/makewhatis.c Write a new db and rename() it into place, to avoid destroying the existing db if soething goes wrong in dumpwhatis. src/libexec/telnetd/sys_term.c Add a missing paren in a comment. src/libexec/telnetd/telnetd.c Violating the protocol is arguably better than overflowing the buffer. src/sbin/fsck_ffs/fsck.h [dup] src/sbin/fsck_ffs/main.c [dup] src/sbin/fsck_ffs/pass4.c Add -z, which makes it relink, rather than destroying, files with no links but nonzero size. src/sbin/fsck_ffs/fsck.h [dup] src/sbin/fsck_ffs/main.c [dup] src/sbin/fsck_ffs/setup.c [dup] Change "alternate" to "alternative" in a number of places where the latter is the correct word. src/sbin/fsck_ffs/setup.c [dup] Fix superblock endianness swapping to be correct in more cases. src/sbin/fsck_ffs/main.c [dup] Make skipclean default to 0, rather than 1. src/sbin/ifconfig/ifconfig.8 [dup] src/sbin/ifconfig/ifconfig.c [dup] src/sys/net/if_ethersubr.c [dup] Add IFF_BPFONLY, which when set means that only bpf listeners get packets; attempts to pass them up to protocol stacks are annulled. Add ifconfig bpfonly/-bpfonly to control it. src/sbin/ifconfig/ifconfig.8 [dup] src/sbin/ifconfig/ifconfig.c [dup] src/sys/netinet/ip_input.c [dup] src/sys/netinet/ip_mroute.c Add IFF_NOFWFROM, which when set prevents IPv4 packets received on the interface from being forwarded, even if packet forwarding is on. (An ICMP administratively-prohibited unreachable is generated.) Packets are still processed normally if they wouldn't be forwarded. Add ifconfig nofwfrom/-nofwfrom to control it. src/sbin/ifconfig/ifconfig.8 [dup] src/sbin/ifconfig/ifconfig.c [dup] src/sys/netinet/ip_input.c [dup] Add IFF_NOFWTO, which when set prevents forwarded IPv4 packets from being sent out the interface (an ICMP administratively-prohibited unreachable is generated instead). Add ifconfig nofwto/-nofwto to control it. src/sbin/ifconfig/ifconfig.c [dup] Cosmetic fixes: spelling mistake in a comment, delete two superflous spaces before tabs src/sbin/ifconfig/ifconfig.c [dup] Don't make stupid alignment assumptions about ifreq/ifconf structures; force the ifrbuf[] to be correctly aligned, and use the (properly aligned) copy of the struct ifreq. src/sbin/ifconfig/ifconfig.c [dup] src/sbin/routed/defs.h src/sys/net/bpf.c src/sys/net/if.h [dup] src/usr.sbin/cnwctl/cnwctl.c src/usr.sbin/greconfig/greconfig.c Make if_flags unsigned long instead of short. Fix related code to match. src/sbin/mount_ffs/mount_ffs.8 src/sbin/mount_ffs/mount_ffs.c src/sys/ufs/ffs/ffs_extern.h src/sys/ufs/ffs/ffs_vfsops.c src/sys/ufs/mfs/mfs_vfsops.c src/sys/ufs/ufs/ufs_vfsops.c src/sys/ufs/ufs/ufs_vnops.c [dup] src/sys/ufs/ufs/ufsmount.h Support for mounting only part of what's in an FFS filesystem. struct ufs_args gets another field, "subpath", which is set with a new -p option to mount_ffs. This specifies a path, relative to the partition's root, naming the entity (directory, normally) which is to be attached at the mount point. This involves ffs_mountfs() acquiring an extra argument, which means touching all its callers, sigh. src/sbin/mount_nfs/mount_nfs.8 src/sbin/mount_nfs/mount_nfs.c Add -h, -H, and -Q. -h prints out the filehandle being used for the mount. -H allows specifying the filehandle to be used rather than doing the mount RPC; -Q specifies the port number to be used for NFS traffic, rather than getting it from the server's portmapper. With these, mount_nfs becomes capable of testing whether NFS servers actually enforce security per-request or whether they let the mountd/portmapper do all the checking. src/sbin/mount_pfs/* A sample userland daemon to use the kernel pfs support (see src/sys/miscfs/pfs/). Arguably should go in share/examples or some such rather than sbin, as it's not really usable as it stands. src/sbin/newfs/mkfs.c [dup] src/sbin/newfs/newfs.8 src/sbin/newfs/newfs.c [dup] Add -L to mount_mfs, which makes it mlock() all the VM, keeping it from being paged and ensuring real pages are allocated immediately. src/sbin/newfs/mkfs.c [dup] Cosmetic fix (spelling mistake in a comment). src/sbin/newfs/mkfs.c [dup] src/sbin/newfs/newfs.c [dup] Support newfsing things for which no partition table is available, provided all the geometry values are specified on the command line. src/sbin/ping6/ping6.c Fix a spelling mistake in a warning message. src/sbin/scsictl/scsictl.8 [dup] Cosmetic fixes: place "only" correctly in the sentences. src/sbin/scsictl/scsictl.c [dup] Cosmetic fixes: line up initializers, strip trailing whitespace, fix spelling mistakes in comments. src/sbin/scsictl/scsictl.8 [dup] src/sbin/scsictl/scsictl.c [dup] src/sys/dev/scsipi/scsiconf.c src/sys/sys/scsiio.h Add an SCBUSIODETACH ioctl and a scsictl "detach" command to use it. src/sbin/slattach/slattach.8 Fix a spelling mistake. src/sbin/slattach/slattach.c Downgrade TIOCSDTR failure to a warning (so as to make SLIP usable on a pty). src/sbin/umount/umount.8 List -R in the SYNOPSIS. src/share/man/man4/Makefile [dup] src/share/man/man4/ptape.4 Add the ptape pseudo-tape driver. src/share/man/man4/tcp.4 Add a missing close paren. src/share/man/man4/tun.4 Cosmetics: use parens instead of .Po/.Pc, place "only" correctly in a sentence, fix a plural/singular agreement botch. src/share/misc/na.phone Fix all abbreviations for Quebec to be QC; also, Arkansas is AR, not AK. Split the Yukon and Northwest Territories because, even though they may have the same area code, their abbreviations differ. (I don't know what has become of this situation with the creation of Nunavut.) src/share/mk/sys.mk Tweak the way CFLAGS is set slightly. I forget, now, why I wanted it this way; there must have been something that was difficult with it the other way. (Maybe I wanted to add stuff to CFLAGS without meddling with the auto-choice of optimization setting.) src/sys/arch/alpha/alpha/conf.c [dup] src/sys/dev/wscons/files.wscons [dup] src/sys/dev/wscons/rwkm.c src/sys/dev/wscons/rwkmint.h src/sys/dev/wscons/wskbd.c src/sys/dev/wscons/wsmouse.c Add the rwkm driver, for raw keyboard/mouse access - necessary to use the console keyboard as a keyboard independent of the console without a whole lot of headaches. src/sys/arch/alpha/alpha/conf.c [dup] src/sys/arch/i386/i386/conf.c [dup] src/sys/arch/mac68k/mac68k/conf.c [dup] src/sys/arch/macppc/macppc/conf.c [dup] src/sys/arch/next68k/next68k/conf.c [dup] src/sys/arch/sparc/include/conf.h [dup] src/sys/arch/sparc/sparc/conf.c [dup] src/sys/arch/sun3/sun3/conf.c [dup] src/sys/conf/files [dup] src/sys/dev/ata/wd.c [dup] src/sys/dev/pseudo/diskwatch-kern.h src/sys/dev/pseudo/diskwatch.c src/sys/dev/pseudo/diskwatch.doc src/sys/dev/scsipi/sd.c src/sys/dev/scsipi/sdvar.h Add diskwatch support, for live backup. src/sys/arch/alpha/alpha/conf.c [dup] src/sys/arch/i386/i386/conf.c [dup] src/sys/arch/macppc/macppc/conf.c [dup] src/sys/arch/sparc/sparc/conf.c [dup] Make chrtoblk() panic if chrtoblktbl[] is too small, rather than blindly accessing garbage. src/sys/arch/alpha/alpha/machdep.c Add boot options: -i, to set RB_INITPATH (qv), and -r, to set RB_CHROOT (qc). src/sys/arch/alpha/alpha/mainbus.c src/sys/arch/alpha/conf/files.alpha [dup] src/sys/arch/i386/conf/files.i386 [dup] src/sys/arch/i386/i386/mainbus.c src/sys/arch/sparc/conf/files.sparc [dup] src/sys/arch/sparc/sparc/autoconf.c [dup] src/sys/conf/files [dup] src/sys/dev/pseudo/pseudo-kern.h src/sys/dev/pseudo/pseudo.c Add a pseudo bus, attached to mainbus, for pseudo-devices that want to appear in the autoconf device tree to attach to. src/sys/arch/alpha/alpha/trap.c Snip out a call to printtrap() that's too noisy for normal use. src/sys/arch/alpha/stand/Makefile.bootprogs Make cleandir remove leftover lib/ directories. src/sys/arch/alpha/tc/scc.c [dup] Add a variable to control the "send keyboard output to raster console" code. src/sys/arch/alpha/tc/scc.c [dup] Add a (currently unused) scc debugging interface. src/sys/arch/alpha/tc/sfb.c [dup] src/sys/arch/alpha/tc/sfbreg.h src/sys/arch/alpha/tc/sfbvar.h [dup] Use what acceleration support the sfb has for raster console. src/sys/arch/alpha/tc/sfb.c [dup] Take raster console out of reverse video. src/sys/arch/alpha/tc/sfb.c [dup] Make raster console as large as will fill the screen. src/sys/arch/alpha/tc/sfbvar.h [dup] Strip unnecessary trailing whitespace. src/sys/arch/alpha/tc/tc_3000_300.c [dup] Get turbochannel slot numbers right on the 300 series machines. src/sys/arch/alpha/tc/tc_3000_300.c [dup] Remove an inappropriate newline from a panic message. src/sys/arch/i386/i386/conf.c [dup] src/sys/dev/ic/lpt.c [dup] src/sys/dev/ic/lptvar.h [dup] Create a new mode for the lpt driver, wherein it is not a printer interface but a fairly raw parallel-port interface. This is driven off the 0x100 bit in the minor number. (This affects conf.c because it means the lpt driver now needs a read method in its cdevsw entry.) src/sys/arch/i386/i386/disksubr.c Don't crash in the presence of certain bogus on-disk `labels' src/sys/arch/i386/isa/fd.c Shut up "fdformat: blkno %x count %lx" console messages. src/sys/arch/i386/stand/lib/netbsd_opts.c Add boot option -i, to set RB_INITPATH (qv), and change -r from RB_DFLTROOT to RB_CHROOT (qv); the former does not appear to be used anywhere on i386. src/sys/arch/mac68k/dev/adbvar.h src/sys/arch/mac68k/dev/pm_direct.c Remove DEBUG's turning on ADB_DEBUG. src/sys/arch/macppc/conf/GENERIC src/sys/arch/macppc/conf/files.macppc src/sys/arch/macppc/dev/if_gm.c src/sys/arch/macppc/dev/if_gmreg.h Add gm at pci. src/sys/arch/macppc/dev/mesh.c Shut off annoying verbose blather that makes mesh effectively unusable in DEBUG kernels. src/sys/arch/macppc/include/bus.h outsw->outswrb in bus_space_write_mult_[24]. src/sys/arch/macppc/include/intr.h Add missing include so that defines spl*(), as spl*(9) says it does. src/sys/arch/macppc/macppc/extintr.c Clean up macppc interrupt handling logic. This version might actually be correct; it's certainly closer in practice. src/sys/arch/macppc/stand/Makefile Descend into fixcoff when making cleandir. src/sys/arch/macppc/stand/ofwboot/Makefile Remove .mrg and .xcf files, and lib/, when making cleandir. src/sys/arch/next68k/conf/GENERIC Turn on SERCONSOLE. src/sys/arch/next68k/conf/files.next68k src/sys/arch/next68k/include/db_machdep.h src/sys/arch/next68k/next68k/db_machdep.c src/sys/arch/next68k/next68k/machdep.c [dup] src/sys/arch/next68k/next68k/rtc.c Provide a next68k-specific command in ddb to turn the power off ("mach poweroff"). Power-off appears to be the only way out of certain wedged states, and this seems nicer than forcing one to unplug the machine. This involves making rtc_init() tolerate calls very early during startup. src/sys/arch/next68k/dev/nextdisplay.c [dup] Make it actually work with 2bpp megapixel displays (visible width 1120 pixels, memory stride 1152 pixels). src/sys/arch/next68k/dev/nextdisplay.c [dup] Change from 80x34 to 93x37 (the latter being as large as possible in 1120x832 with gallant.r.19). src/sys/arch/next68k/dev/nextdisplay.c [dup] Make mmap() actually work here. src/sys/arch/next68k/dev/nextkbd.c src/sys/arch/next68k/next68k/conf.c Add an nk driver that grabs all keyboard/mouse events, instead of passing them up to wscons. (See the X hw/next/ keybaord stuff for more on this choice.) This also includes actually doing something with mouse events. src/sys/arch/next68k/dev/zs.c Make zssoft() return void, so its signature is correct for passing to allocate_sir(). src/sys/arch/next68k/next68k/clock.c [dup] Provide prototypes for rtc_init(), setsecs(), and getsecs(), to avoid warnings at compile time. (These really should be declared in include files.) src/sys/arch/next68k/next68k/clock.c [dup] Cast calls to IIOV() to the appropriate pointer type. src/sys/arch/next68k/next68k/clock.c [dup] Actually incremement tv_usec in microtime(). src/sys/arch/next68k/next68k/machdep.c [dup] Code cleanup (add missing external declarations). src/sys/arch/next68k/next68k/mem.c [dup] Provide prototypes for mm{open,close,rw,mmap} to avoid warnings at compile time. (These really should be declared in include files.) src/sys/arch/next68k/next68k/mem.c [dup] Enclose a label that's used only ifndef DEBUG inside its own ifndef DEBUG, to avoid compiler complaints. src/sys/arch/next68k/next68k/pmap_bootstrap.c Prototype pmap_bootstrap() to avoid warnings at compile time. src/sys/arch/next68k/next68k/sys_machdep.c [dup] Parenthesize to avoid warnings at compile time. src/sys/arch/next68k/next68k/sys_machdep.c [dup] Wrap #if 0 around an unused variable declaration to avoid warnings at compile time. src/sys/arch/next68k/next68k/vm_machdep.c [dup] Prototype iomap() and iounmap() to avoid warnings at compile time. src/sys/arch/next68k/next68k/vm_machdep.c [dup] Prototype cpu_fork(). src/sys/arch/next68k/next68k/vm_machdep.c [dup] Prototype the declaration of proc_trampoline(). Add an explanatory comment clarifying the declaration. src/sys/arch/next68k/next68k/vm_machdep.c [dup] Wrap setredzone(), which isn't used, inside #if 0. src/sys/arch/next68k/stand/boot/Makefile Remove lib/ and a handful of other things on make cleandir. src/sys/arch/sparc/conf/files.sparc [dup] src/sys/dev/sun/kmmux.c src/sys/dev/sun/kmmuxvar.h Add the kmmux layer between the zs chips and the kbd/ms devices, virtualizing keyboards and mice. src/sys/arch/sparc/conf/files.sparc [dup] Add a zx driver, for the SUNW,leo. src/sys/arch/sparc/conf/files.sparc [dup] src/sys/arch/sparc/include/conf.h [dup] src/sys/arch/sparc/sparc/conf.c [dup] src/sys/dev/pseudo/sun/pev.c Add the pev driver (a pseudo-driver for keyboard/mouse events). src/sys/arch/sparc/dev/cgfourteen.c [dup] src/sys/arch/sparc/dev/cgfourteenvar.h Rework of the cg14 driver. Turn on CG14_MAP_REGS and CG14_CG8 in the .c file (I'm not sure CG14_MAP_REGS is the way to go; that aspect is provisional). Allow mapping all the useful pieces (in particular the video RAM spaces not previously mappable). Support RASTERCONSOLE. src/sys/arch/sparc/dev/cgfourteen.c [dup] Add code to switch back to the PROM-compatible 8bpp mode when shutting down or dropping into ddb. src/sys/arch/sparc/dev/cgsix.c src/sys/arch/sparc/dev/cgsix_obio.c src/sys/arch/sparc/dev/cgsix_sbus.c src/sys/arch/sparc/dev/cgsixvar.h Use the cg6 blitter to accelerate rasterconsole. Scrolling is now even faster than on a bwtwo. src/sys/arch/sparc/dev/fb.c [dup] Conditionalize two variables that are used only ifdef RASTERCONS_FULLSCREEN. src/sys/arch/sparc/dev/fb.c [dup] src/sys/dev/rasops/rasops.c [dup] Put the cursor in the lower left corner instead of the upper left corner at initialization. src/sys/arch/sparc/dev/sbus.c Identify slave-only SBus slots as such in the boot messages. src/sys/arch/sparc/dev/tcx.c [dup] Cosmetics: clean up a comment, remove a stray blank line. src/sys/arch/sparc/dev/tcx.c [dup] Support for the S24 24bpp tcx variant, including not only simplifed depth detection but correct fb_linebytes computation and mmap support for all available spaces (including supporting the STIP, BLIT, RDFB32, RSTIP, and RBLIT spaces in usable form). src/sys/arch/sparc/dev/tcx.c [dup] Remove the addition of 0x1000 to the sbr_offset values for the THC and TEC offsets. This needs checking on a system with an 8bpp tcx; the change is correct for my s24, but may be wrong for the 8bpp variant, or perhaps only for some ROM revs. src/sys/arch/sparc/dev/tcx.c [dup] Add (fairly minimal) RASTERCONSOLE support. src/sys/arch/sparc/dev/zs.c [dup] Make zshard() always claim to have handled the interrupt. I don't know why I otherwise got stray interrupt babble, but I did. src/sys/arch/sparc/dev/zs.c [dup] Support baud rates that are achievable only by using the chip's ÷1 mode. src/sys/arch/sparc/dev/zx.c src/sys/arch/sparc/dev/zx_sbus.c src/sys/arch/sparc/dev/zxvar.h src/sys/arch/sparc/include/Makefile [dup] src/sys/arch/sparc/include/conf.h [dup] src/sys/arch/sparc/include/zxintf.h src/sys/arch/sparc/sparc/conf.c [dup] Add a driver for the SUNW,leo. Still preliminary. src/sys/arch/sparc/include/Makefile [dup] Add intr.h to the list of includes to be installed. src/sys/arch/sparc/include/Makefile [dup] src/sys/arch/sparc/include/db_enterleave.h src/sys/arch/sparc/sparc/db_interface.c Add a facility permitting registering hooks to be called when entering and leaving ddb. src/sys/arch/sparc/include/bus.h Missing includes. src/sys/arch/sparc/include/conf.h [dup] Missing include. src/sys/arch/sparc/include/conf.h [dup] Add #ifndef/#define/#endif wrapper. src/sys/arch/sparc/include/conf.h [dup] src/sys/arch/sparc/sparc/conf.c [dup] src/sys/conf/files [dup] src/sys/dev/pseudo/pfw-kern.h src/sys/dev/pseudo/pfw.c src/sys/dev/pseudo/pfwtest.c Add pfw reflex-firewall capability. src/sys/arch/sparc/include/conf.h [dup] src/sys/arch/sparc/sparc/conf.c [dup] src/sys/dev/sbus/Makefile src/sys/dev/sbus/files.sbus [dup] src/sys/dev/sbus/lpvi.c src/sys/dev/sbus/lpviio.h Add the lpvi driver. src/sys/arch/sparc/include/fbio.h [dup] Missing includes. src/sys/arch/sparc/include/fbio.h [dup] Add #ifndef/#define/#endif wrapper. src/sys/arch/sparc/include/fbvar.h [dup] Missing includes. src/sys/arch/sparc/include/fbvar.h [dup] Add #ifndef/#define/#endif wrapper. src/sys/arch/sparc/include/intr.h Add missing include so that defines spl*(), as spl*(9) says it does. src/sys/arch/sparc/include/kbio.h Add KIOCBELL, support for more reliable bells. src/sys/arch/sparc/include/vuid_event.h Missing includes. src/sys/arch/sparc/sparc/autoconf.c [dup] Add boot options -i, to set RB_INITPATH (qv), and -r, to set RB_CHROOT (qv). src/sys/arch/sparc/sparc/clock.c [dup] Default stathz to hz even if FORCE_HZ is defined. src/sys/arch/sparc/sparc/clock.c [dup] Minor whitespace fixup in a comment. src/sys/arch/sparc/sparc/clock.c [dup] Be more paranoid about insane times in the battery-backed clock. src/sys/arch/sparc/sparc/cpuvar.h Missing include. src/sys/arch/sparc/sparc/memecc.c Print ECC error addresses in a more obviously unambiguous format. src/sys/arch/sparc/sparc/vm_machdep.c Fix up calls to the pmap module from vmapbuf()/vunmapbuf(). src/sys/arch/sparc/stand/boot/Makefile [dup] Set RELOC to 0x380000 instead of 0x700000; the latter doesn't work very well on machines with sparse memory and a 4M stick in the first slot. src/sys/arch/sparc/stand/boot/Makefile [dup] Add a "realall" target. src/sys/arch/sparc/stand/common/dvma.c Map DVMA space in a way that doesn't run into signedness/wraparound problems. src/sys/arch/sparc/stand/common/promdev.c Cast to u_quad_t *before* "calling" dbtob (which, because it's a macro, does not have the argument-promotion semantics of a function). src/sys/arch/sun3/conf/GENERIC src/sys/arch/sun3/conf/files.sun3 [dup] src/sys/arch/sun3/dev/sc.c Add (commented-out) sc support. src/sys/arch/sun3/include/Makefile Add intr.h to the list of include files to be installed. src/sys/arch/sun3/include/intr.h Add an intr.h to make the manpage for spl*() correct. src/sys/arch/sun3/sun3/sunmon.c Add boot options -i, to set RB_INITPATH (qv), and -r, to set RB_CHROOT (qv). src/sys/arch/sun3/sun3x/pmap.c Add a bunch of locking in an attempt (a failed attempt, I think) to make the sun3x pmap work. src/sys/arch/vax/boot/boot/Makefile Remove lib/ on make cleandir. src/sys/arch/vax/boot/xxboot/Makefile Remove lib/ on make cleandir. src/sys/arch/vax/include/Makefile src/sys/arch/vax/include/intr.h Add an intr.h. src/sys/arch/vax/vax/pmap.c Print actual memory ranges very early in startup. src/sys/compat/ibcs2/ibcs2_stat.c Avoid reading inappropriate areas of kernel memory (check len correctly). src/sys/conf/files [dup] src/sys/dev/ic/an.c src/sys/dev/ic/anreg.h src/sys/dev/ic/anvar.h src/sys/dev/pcmcia/files.pcmcia src/sys/dev/pcmcia/if_an_pcmcia.c Add the an driver. src/sys/conf/files [dup] src/sys/kern/timer_impl.c src/sys/kern/uipc_domain.c src/sys/sys/Makefile src/sys/sys/socket.h [dup] src/sys/sys/timersock.h Add AF_TIMER sockets. src/sys/ddb/db_command.h Missing includes. src/sys/dev/Makefile Add pseudo/ subdirectory. src/sys/dev/ata/ata_wdc.c src/sys/dev/ata/atareg.h src/sys/dev/ata/wd.c [dup] src/sys/dev/ata/wdvar.h src/sys/dev/ic/wdc.c [dup] src/sys/dev/ic/wdcreg.h [dup] src/sys/dev/ic/wdcvar.h Add LBA48 support. src/sys/dev/ata/wd.c [dup] Neaten up a list of manifest constants. src/sys/dev/audio_if.h Include to get splaudio() and IPL_AUDIO on architectures where it's defined. src/sys/dev/dec/lk201_ws.c Send an LK_ENABLE_401 command, to put 401s into 401 mode. src/sys/dev/ic/i82365.c [dup] Cosmetics: add missing "static"s, whitespace fixup. src/sys/dev/ic/i82365.c [dup] Add locking to force single-threading of pcic attach/detach. This cleans up boot messages that otherwise come out intermixed with one another. src/sys/dev/ic/lpt.c [dup] Add (thoroughly hacky) code for interfacing to PlayStation controllers. src/sys/dev/ic/lpt.c [dup] Make LPT_BSIZE's #define conditional, so it can be overridden in the kernel config file. src/sys/dev/ic/ncr53c9x.c Shut up about the ESP100 workaround, even ifdef DEBUG. src/sys/dev/ic/pckbc.c Increase KBD_DELAY. This seems to be necessary on at least some hardware. The value chosen may be overkill.... src/sys/dev/ic/smc83c170.c Add an EPIC_FORCE_ADDR kernel option to override the epic's ROMed MAC address. src/sys/dev/ic/wdc.c [dup] Don't crash if pool_get fails (it can be called with PR_NOWAIT, so it may fail). src/sys/dev/ic/wdcreg.h [dup] Neaten up a list of manifest constants. src/sys/dev/ic/wdcreg.h [dup] Cosmetics: remove stray blank line at EOF. src/sys/dev/ic/z8530sc.h Add #ifndef/#define/#endif wrapper. src/sys/dev/isa/lpt_isa.c Remove defines for LPTPRI and LPT_BSIZE. src/sys/dev/midi_if.h Fixup defining splaudio and IPL_AUDIO to use the right test. src/sys/dev/pci/if_de.c src/sys/dev/pci/if_deioc.h Add a commented-out attempt at get/set MAC address ioctls. src/sys/dev/pci/pcidevs [dup] src/sys/dev/pci/pcidevs.h [dup] src/sys/dev/pci/pcidevs_data.h [dup] Add the MPC107 "Chaparral" host bridge. src/sys/dev/pci/pcidevs [dup] src/sys/dev/pci/pcidevs.h [dup] src/sys/dev/pci/pcidevs_data.h [dup] Update the list of PROMISE (vendor 0x105a) devices. src/sys/dev/pci/pciide.c [dup] src/sys/dev/pci/pciide_pdc202xx_reg.h [dup] Add partial support for the Promise Ultra/100 TX2. src/sys/dev/pci/pciide.c [dup] Fix a spelling mistake in a comment. src/sys/dev/pci/pciide_pdc202xx_reg.h [dup] Fix spelling mistakes in comments. src/sys/dev/pci/pucdata.c Add the Lava Semiconductor 2-port board. src/sys/dev/pcmcia/if_cnw.c src/sys/dev/pcmcia/pcmciadevs.h src/sys/dev/pcmcia/pcmciadevs_data.h New pcmciadevs*.h; this entails cleaning up the TDK/XIRCOM vendor ID collision. src/sys/dev/pcmcia/if_ep_pcmcia.c Allocate I/O space twice. See the comment in the diff. src/sys/dev/pcmcia/if_ne_pcmcia.c src/sys/dev/pcmcia/pcmciadevs s/SOCEKT/SOCKET/ src/sys/dev/pcmcia/if_ray.c src/sys/net/if_ieee80211.h Import new version (1.1 -> 1.12) of if_ieee80211.h and update code that uses it. src/sys/dev/pcmcia/if_xe.c Call arp_ifinit correctly, maybe. src/sys/dev/rasops/rasops.c [dup] Don't care about font width. src/sys/dev/sbus/bpp.c [dup] Make it work, maybe. (Fairly extensive overhaul. Still doesn't really work right.) src/sys/dev/sbus/bpp.c [dup] Add a dumb-parallel-port interface akin to the one in sys/dev/ic/lpt.c. src/sys/dev/sbus/bpp.c [dup] Add (thoroughly hacky) code for interfacing to PlayStation controllers, akin to the one in sys/dev/ic/lpt.c. src/sys/dev/sbus/files.sbus [dup] Cosmetics: remove stray blank line at EOF. src/sys/dev/sbus/magma.c [dup] src/sys/dev/sbus/magmareg.h Rework device identification algorithms to deal with the 2+1HS Sp, which the previous code couldn't. src/sys/dev/sbus/magma.c [dup] Rework the baud rate selection code so almost the entire achievable range works. src/sys/dev/sbus/magma.c [dup] Improve the device attach messages. src/sys/dev/sbus/magma.c [dup] Get the device clock from the OBP clock property rather than blindly assuming 25MHz. src/sys/dev/sbus/qe.c Don't define QEDEBUG by default. src/sys/dev/sbus/sbusvar.h Missing includes. src/sys/dev/scsipi/cd.c Ignore certain error conditions if opening RAW_PART. src/sys/dev/scsipi/cd_scsi.c Dummy out cd_scsibus_set_pa_immed; it causes severe SCSI bus misbehaviour on at least one machine I've worked with. src/sys/dev/scsipi/st.c Handle fixed-blocksize devices a little better. src/sys/dev/sequencer.c [dup] Allocate seqdevs at boot time rather than compile time, and get the initialization right. src/sys/dev/sequencer.c [dup] src/sys/dev/sequencervar.h src/sys/sys/midiio.h Add two new ioctls to the sequencer device, one for controlling sequencerdebug and one for controlling what underlying MIDI units it uses (so it can be made to not grab all available MIDI devices on open). src/sys/dev/sun/event_var.h [dup] Add #ifndef/#define/#endif wrapper. src/sys/dev/sun/event_var.h [dup] Missing include. src/sys/dev/sun/kbd.c [dup] Support writes directly to keyboards. Mainly useful to turn off stuck-on bells from a shell and suchlike. src/sys/dev/sun/kbd.c [dup] Handle loss of reset response in a way that doesn't completely gronk keyboard input. src/sys/dev/sun/kbd.c [dup] Always set click, rather than assuming anything about which way the keyboard comes up set. src/sys/dev/sun/kbd.c [dup] Add KIOCBELL support. src/sys/dev/sun/kbd.c [dup] Cosmetics: remove stray blank line at EOF. src/sys/dev/sun/kbd_tables.h Add #ifndef/#define/#endif wrapper. src/sys/dev/sun/kbd_xlate.h Add #ifndef/#define/#endif wrapper. src/sys/dev/sun/kbd_zs.c src/sys/dev/sun/kbdvar.h [dup] Rename k_cs to k_private, since that's really what it is. src/sys/dev/sun/kbdvar.h [dup] Missing includes. src/sys/dev/sun/ms_zs.c src/sys/dev/sun/msvar.h [dup] Rename ms_cs to ms_private, since that's really what it is. src/sys/dev/sun/msvar.h [dup] Missing include. src/sys/dev/usb/if_cue.c src/sys/dev/usb/if_cuereg.h Push stats gathering into a kernel thread, and disable it because it's observed to not work. src/sys/dev/usb/ohci.c Remove ignored-interrupt printf, as it appears >=once per keystroke under some circumstances - makes it pretty unusable. src/sys/dev/vnd.c [dup] Make vnd work with backing files >4G. src/sys/dev/vnd.c [dup] Allow VND_NONPRIV config option to turn off the suser() check in vndioctl(). src/sys/dev/vnd.c [dup] src/sys/dev/vndvar.h Add VNDIOSDEBUG and VNDIOGDEBUG ioctls to get/set the internal debugging flag. src/sys/dev/vnd.c [dup] Disable lowering the size to match the geometry's size. src/sys/dev/wscons/files.wscons [dup] Add a defopt for wsfont choice. src/sys/dev/wscons/wscons_rfont.h src/sys/dev/wscons/wscons_rinit.c Support fixed (6x13) as an alternative to gallant (12x22). src/sys/dev/wscons/wsconsio.h Missing include. src/sys/dev/wscons/wsemul_sun.c Rework attribute handling so that things like insert-line and clear-to-EOL can use non-standout attributes even if standout is currently on. src/sys/dev/wscons/wseventvar.h [dup] Missing includes. src/sys/dev/wscons/wseventvar.h [dup] Add #ifndef/#define/#endif wrapper. src/sys/dev/wsfont/files.wsfont src/sys/dev/wsfont/fixed6x13.h src/sys/dev/wsfont/wsfont.c Add a fixed6x13 font; make it the default, if enabled ("options FONT_FIXED6x13"). src/sys/dev/wsfont/gallant12x22.h Make gallant12x22 support all 256 character cells; in particular, give it an 8859-1 top half. (This also involves moving everything down one pixel within the character cell.) src/sys/dev/wsfont/vs4k60-12x21.h Add a wsfont version of the VAXstation 4000/60 12x21 ROM font. src/sys/kern/exec_script.c Improve two comments. src/sys/kern/init_main.c [dup] Cosmetics: improve some comments. src/sys/kern/init_main.c [dup] src/sys/kern/vfs_syscalls.c [dup] src/sys/sys/reboot.h [dup] Support RB_CHROOT, which prompts for a root directory within the root filesystem, effectively chroot()ing to it before doing anything further. (This also affects remounting /.) src/sys/kern/init_main.c [dup] src/sys/sys/reboot.h [dup] Support RB_INITPATH, which promtps for a path to init (instead of trying a small compiled-in list and failing hard if none of them work). The same code also prompts for an init path if the compiled-in paths don't work. src/sys/kern/kern_clock.c [dup] Support some more hz values. src/sys/kern/kern_clock.c [dup] Cosmetics: remove stray blank line at EOF. src/sys/kern/kern_exec.c Set-id cleanup: disable set-id if P_TRACED as well as if MNT_NOSUID, and call p_sugid() earlier. src/sys/kern/kern_fork.c Don't bother making PIDs <100 reserved for boot time; in my experience only a very few of the first hundred processes actually persist for long. src/sys/kern/kern_malloc.c Improve debugging support, in the hope of finding/fixing the "out of space in kmem_map" panic. src/sys/kern/kern_subr.c src/sys/sys/systm.h Export getstr(), so init_main can call it to prompt for init paths and root directories. src/sys/kern/kern_sysctl.c Check arguments more correctly. Foreign. src/sys/kern/sys_process.c [dup] Add a loop around the call to procfs_domem when doing ptrace I/O, so ptrace doesn't randomly fail with ENOMEM. src/sys/kern/tty.c [dup] Add two includes. src/sys/kern/tty.c [dup] src/sys/sys/ttycom.h Add TIOCCONSOLE, like TIOCCONS but it might actually work. src/sys/kern/tty.c [dup] TS_ASYNC fixups: clear it on TIOCSCTTY and TIOCSPGRP. src/sys/kern/tty.c [dup] Check that the tty has a session before calling isctty on it. src/sys/kern/uipc_socket.c src/sys/sys/socket.h [dup] Add SO_SNDQLEN, a getsockopt() way to get a socket's send queue byte count. src/sys/kern/uipc_syscalls.c [dup] Limit ancillary control data to PAGE_SIZE. src/sys/kern/uipc_syscalls.c [dup] Avoid giving processes file descriptors without telling them their numbers, when receiving truncated SCM_RIGHTS messages. src/sys/kern/uipc_usrreq.c [dup] Do a zero-length send (to get creds sent) upon PRU_CONNECT to an AF_LOCAL socket which has UNP_WANTCRED set. src/sys/kern/uipc_usrreq.c [dup] src/sys/sys/un.h [dup] src/sys/sys/unpcb.h Add the ability to make UNP_WANTCRED sticky, in which case _every_ send passes creds. src/sys/kern/vfs_syscalls.c [dup] Make statfs() _not_ follow final symlinks. src/sys/kern/vfs_syscalls.c [dup] Add (commented-out) preliminary code to support atomically replacing writable symlinks in sys_symlink(). src/sys/kern/vfs_syscalls.c [dup] Make access() _not_ follow final symlinks. src/sys/kern/vfs_syscalls.c [dup] Make chflags() _not_ follow final symlinks. src/sys/kern/vnode_if.sh src/sys/sys/vnode_if.h Add #include "vnode.h". src/sys/lib/libkern/Makefile [dup] src/sys/lib/libkern/blowfish-pi.c src/sys/lib/libkern/blowfish.c src/sys/sys/blowfish.h Add support for blowfish encryption. src/sys/lib/libkern/libkern.h Add #ifndef/#define/#endif wrapper. src/sys/miscfs/Makefile Add pfs; sort and re-fold the SUBDIR assignment. src/sys/miscfs/kernfs/kernfs_vnops.c Add /kern/tickadj. src/sys/miscfs/pfs/* src/sys/sys/mount.h [dup] src/sys/sys/vnode.h [dup] Add pseudo-filesystem support. src/sys/net/bpf.h Missing includes. src/sys/net/if.h [dup] Missing include. src/sys/net/if.h [dup] Cosmetics: Reformat list of IFF_ flags. src/sys/net/if_arp.h Missing include. src/sys/net/if_dl.h Missing include. src/sys/net/if_ether.h Missing includes. src/sys/net/if_pppvar.h Missing includes. src/sys/net/if_sl.c src/sys/net/if_slvar.h Add IPv6 support to sl. src/sys/net/if_tun.c [dup] src/sys/net/if_types.h src/sys/netinet6/in6.c Add INET6 support to tun. This includes giving tun interfaces their own if_type value (IFT_TUN). src/sys/net/if_tun.c [dup] Change an error return to a more usual error. src/sys/net/if_tun.c [dup] src/sys/net/if_tun.h [dup] Don't force the interface down on special-device close. src/sys/net/if_tun.c [dup] Cosmetics: whitespace cleanup. src/sys/net/if_tun.c [dup] Check TUNSIFMODE argument more properly. src/sys/net/if_tun.h [dup] Reformat/renumber a list of manifest constants. src/sys/net/pfil.h Missing include. src/sys/netinet/icmp6.h Missing include. src/sys/netinet/icmp_var.h Missing includes. src/sys/netinet/if_arp.c [dup] Cosmetics: remove two stray blank lines. src/sys/netinet/if_arp.c [dup] Support more detailed control over where ARP entries point. src/sys/netinet/if_inarp.h Missing include. src/sys/netinet/in.h Missing include. src/sys/netinet/in_var.h Missing includes. src/sys/netinet/ip.h Missing includes. src/sys/netinet/ip_fil.c src/sys/netinet/ip_icmp.c src/sys/netinet/ip_icmp.h [dup] src/sys/netinet/ip_input.c [dup] Get the MTU value right for DF-and-frag-needed ICMP unreachables that hit a route limit rather than an interface limit. This involves making icmp_error take an MTU value instead of an interface pointer (because, while you can get an interface from a route, the interface's MTU is the wrong one to use). src/sys/netinet/ip_icmp.h [dup] Missing includes. src/sys/netinet/ip_icmp.h [dup] Cosmetics: delete stray blank line. src/sys/netinet/ip_input.c [dup] Clear ipforward_rt once a second, to limit the damage done by routing table changes leaving the wrong route there. src/sys/netinet/ip_input.c [dup] Remove unused dummyifp. src/sys/netinet/ip_ipip.c Fix the worst of the insanities here - or rather, provide a mode that fixes them. See the comment near the beginning of the patch. src/sys/netinet/ip_output.c Missing include. src/sys/netinet/tcp.h src/sys/netinet/tcp_subr.c [dup] src/sys/netinet/tcp_usrreq.c src/sys/netinet/tcp_var.h Add support for dropping a TCP connection without sending anything to the peer. src/sys/netinet/tcp_input.c [dup] src/sys/netinet6/in6.h [dup] src/sys/netinet6/in6_pcb.c src/sys/netinet6/in6_pcb.h [dup] src/sys/netinet6/ip6_output.c Rework much of faith handling to support (a) a mode wherein a faithed /96 can support all ports simultaneously and (b) a mode for sockets so they get _only_ faithed connections. src/sys/netinet/tcp_input.c [dup] Check for SS_CANTRCVMORE a couple of places where the check was missing. Foreign, I think. src/sys/netinet/tcp_output.c Add an XXX comment indicating a possibly desirable change. src/sys/netinet/tcp_subr.c [dup] Change the window value sent in response to SYN|RST packets. src/sys/netinet/tcp_timer.c Add a kernel config option FORCE_TCP_KEEPALIVES which turns on keepalives for _all_ TCP connections, even if the application doesn't turn them on (or even explicitly turns them off). src/sys/netinet/udp_var.h Missing includes. src/sys/netinet6/icmp6.c Don't log rejected redirects. src/sys/netinet6/in6.h [dup] Missing include. src/sys/netinet6/in6.h [dup] Cosmetics: add a blank line. src/sys/netinet6/in6_ifattach.c Cosmetics: make in6_ifattach_getifid's messages a little bit more informative. src/sys/netinet6/in6_pcb.h [dup] Reformat list of IN6P_ options, including providing leading zeros to make it obvious how many bits remain. src/sys/netinet6/in6_proto.c Make icmp6_rediraccept default off. src/sys/netinet6/ip6_input.c Actually set a packet's received-on interface pointer before calling out to the protocol input routine. src/sys/netinet6/nd6.c Don't log failures to add routes for neighbours. src/sys/netinet6/nd6_nbr.c Disable DAD messages in normal cases. src/sys/netns/ns.h Missing include. src/sys/nfs/nfs_socket.c Handle certain zero-length records more correctly. Foreign. src/sys/nfs/nfs_syscalls.c [dup] Make the "nfsd: locking botch" condition more informative. src/sys/nfs/nfs_syscalls.c [dup] Use the correct size for kerberized NFS keys. (Foreign?) src/sys/sys/audioio.h Missing includes. src/sys/sys/conf.h Missing includes. src/sys/sys/device.h Missing includes. src/sys/sys/dirent.h Allow non-kernel code to get the DIRENT_SIZE macro defined without having to lie with _KERNEL. src/sys/sys/domain.h Missing include. src/sys/sys/fcntl.h Move outside the #ifndef _KERNEL. (This could be thought of as a missing-include patch.) src/sys/sys/file.h [dup] Missing include. src/sys/sys/file.h [dup] Make f_data void * instead of caddr_t. src/sys/sys/gmon.h Missing include. src/sys/sys/kernel.h Missing include. src/sys/sys/ktrace.h Missing includes. src/sys/sys/lock.h Missing includes. src/sys/sys/mbuf.h Missing includes. src/sys/sys/mman.h Missing include. src/sys/sys/mount.h [dup] Move outside the #ifndef _KERNEL. (This could be thought of as a missing-include patch.) src/sys/sys/mount.h [dup] Make mnt_data void * instead of qaddr_t. (*q*addr_t??) src/sys/sys/mtio.h Missing include. src/sys/sys/proc.h [dup] Missing includes. src/sys/sys/protosw.h Missing include. src/sys/sys/resource.h Missing include. src/sys/sys/select.h Missing include. src/sys/sys/signal.h Missing include. src/sys/sys/socket.h [dup] Missing include. src/sys/sys/syslog.h Make c_name const char * instead of char *, so they can be initialized to string literals without upsetting -Wwrite-strings. src/sys/sys/ucred.h Missing includes. src/sys/sys/uio.h Missing include. src/sys/sys/un.h [dup] Missing include. src/sys/sys/vnode.h [dup] Missing includes. src/sys/ufs/ffs/ffs_alloc.c Turn off "optimization changed..." blather unless FFS_LOG_OPTCHG is turned on in the kernel config. src/sys/ufs/ffs/ffs_bswap.c Make ffs_sb_swap behave sanely if the first two arguments are equal. src/sys/ufs/ffs/fs.h Missing includes. src/sys/ufs/ufs/dinode.h Add #ifndef/#define/#endif wrapper. src/sys/ufs/ufs/ufs_bswap.h Add #ifndef/#define/#endif wrapper. src/sys/ufs/ufs/ufs_vnops.c [dup] Be sure to unlock at the correct time when discarding aliased device nodes! src/sys/uvm/uvm_extern.h Missing includes. src/sys/uvm/uvm_swap.c Add ddb_swapctl_l(), a "swapctl -l" callable from ddb. src/sys/vm/vm_kern.h Missing include. src/sys/vm/vm_map.h Missing include. src/usr.bin/Makefile [dup] src/usr.bin/login/Makefile src/usr.bin/login/login.1 src/usr.bin/login/login.c src/usr.bin/motp-add/Makefile src/usr.bin/motp-add/motp-add.1 src/usr.bin/motp-add/motp-add.c Add true one-time password support. src/usr.bin/Makefile [dup] src/usr.bin/seqctl/Makefile src/usr.bin/seqctl/seqctl.1 src/usr.bin/seqctl/seqctl.c Add a seqctl user interface program to access the underlying MIDI device settings of the sequencer device. src/usr.bin/at/at.c [dup] Use ISO dates rather than the horrid ambiguous notation %X uses. (Better would be to fix %X (and %x), but that looked a good deal harder.) src/usr.bin/at/at.1 src/usr.bin/at/at.c [dup] Add job names. src/usr.bin/fstat/fstat.1 src/usr.bin/fstat/fstat.c Add -o, to print offsets instead of sizes. src/usr.bin/kdump/kdump.1 [dup] src/usr.bin/kdump/kdump.c [dup] Add -x, to print I/O buffers in hex instead of VIS_CSTYLE. src/usr.bin/kdump/kdump.1 [dup] src/usr.bin/kdump/kdump.c [dup] Add -p, to filter output by process ID. src/usr.bin/kdump/kdump.c [dup] Cast IOCGROUP() value to int, for printf use. src/usr.bin/kdump/kdump.c [dup] Use IOC* macros where possible when printing ioctls; note the one that doesn't have such a macro in an XXX comment. src/usr.bin/ktrace/ktrace.1 src/usr.bin/ktrace/subr.c Provide C and R tracing letters, to trace syscall entry and exit independently. src/usr.bin/ktruss/dump.c Cast ioctl group character to int, for printf use. src/usr.bin/less/less/command.c src/usr.bin/less/less/funcs.h src/usr.bin/less/less/screen.c src/usr.bin/less/less/signal.c Put a cap on the amount that d and u scroll (wscroll). src/usr.bin/less/less/help.c [dup] src/usr.bin/less/less/opttbl.c [dup] Provide an option (-H) to tell less to not blather about how the terminal is (supposedly) dumb. src/usr.bin/less/less/help.c [dup] src/usr.bin/less/less/line.c src/usr.bin/less/less/opttbl.c [dup] Provide an option (-R) to display CRs even when followed by LFs. src/usr.bin/lex/flex.skl Add prototypes compatible with -Wstrict-prototypes -Wmissing-prototypes. src/usr.bin/make/cond.c Support "quotedstring" == "quotedstring" (and !=) comparisons. src/usr.bin/make/parse.c Fix parsing for archive lines ("foo.a(bar.o): blah blah"). src/usr.bin/make/var.c [dup] Improve a comment. src/usr.bin/make/var.c [dup] Add :U variable expansion modifer ("uniq") to uniqify the words in a variable, ie, remove adjacent duplicates. src/usr.bin/mkdep/mkdep-mouse.c Here to preserve my C version of mkdep, in case I decide to switch to it someday. src/usr.bin/netstat/if.c src/usr.bin/netstat/main.c [dup] src/usr.bin/netstat/netstat.1 [dup] src/usr.bin/netstat/netstat.h [dup] Add -T, which prints just traffic stats (mostly for monitoring shellscript use). src/usr.bin/netstat/main.c [dup] src/usr.bin/netstat/netstat.1 [dup] src/usr.bin/netstat/netstat.h [dup] Add -q, which suppresses the headers for -i and -I output. src/usr.bin/passwd/local_passwd.c Use crypt_makesalt() when changing passwords. (See the libcrypt changes.) src/usr.bin/passwd/yp_passwd.c Use crypt_makesalt() when changing passwords, iff NEW_YP_ENTRIES is defined at compile time (otherwise, traditional salts). src/usr.bin/sed/compile.c Bugfix (wrong call). Foreign. src/usr.bin/systat/bufcache.c Cast printw/mvprintw args to int to pacify -Wformat. src/usr.bin/systat/ip.c Use %qu and u_quad_t rather than %llu and unsigned long long int. src/usr.bin/systat/netcmds.c Cast printw arg to int to pacify -Wformat. src/usr.bin/systat/netstat.c Cast printw args to int to pacify -Wformat. src/usr.bin/systat/tcp.c Cast mwprintw arg to unsigned long int to pacify -Wformat. src/usr.bin/tn3270/ascii/termin.c [dup] Some termio/termios cpp stuff I don't entirely understand. Foreign. src/usr.bin/tn3270/ascii/termin.c [dup] Recognize an escape character. Foreign. src/usr.bin/top/display.c [dup] Cosmetics: fix spelling mistake in a comment. src/usr.bin/top/display.c [dup] Get the procstate in the right place (cpp test backwards). src/usr.bin/top/display.c [dup] Deal with unpleasantly wrapping lines. src/usr.bin/tr/tr.c Avoid stdio, so output is at least as unbuffered as input. Reorganize how tables are constructed as part of this. src/usr.bin/w/w.c Just print hh:mm, don't special-case when one is zero. src/usr.bin/window/Makefile Add -funsigned-char, necessary in my experience. src/usr.bin/window/char.c [dup] Comment the _cmap[] table. src/usr.bin/window/char.c [dup] Use high-half literal characters in the _unctrl table entries for the 8859 high-half printables. src/usr.sbin/Makefile [dup] src/usr.sbin/edconfig/Makefile src/usr.sbin/edconfig/edconfig.1 src/usr.sbin/edconfig/edconfig.c Add edconfig, a configuration utility for the ed driver. src/usr.sbin/Makefile [dup] src/usr.sbin/encapconfig/Makefile src/usr.sbin/encapconfig/encapconfig.1 src/usr.sbin/encapconfig/encapconfig.c Add encapconfig, a configuration utility for the encap driver. src/usr.sbin/Makefile [dup] src/usr.sbin/ethcconfig/Makefile src/usr.sbin/ethcconfig/ethcconfig.1 src/usr.sbin/ethcconfig/ethcconfig.c Add ethcconfig, a configuration utility for the ethc driver. src/usr.sbin/Makefile [dup] src/usr.sbin/srtconfig/Makefile src/usr.sbin/srtconfig/srtconfig.1 src/usr.sbin/srtconfig/srtconfig.c Add srtconfig, a configuration utlity for the srt driver. src/usr.sbin/Makefile [dup] src/usr.sbin/vlanconfig/Makefile src/usr.sbin/vlanconfig/vlanconfig.1 src/usr.sbin/vlanconfig/vlanconfig.c Add vlanconfig, a configuration utlity for the vlan driver. src/usr.sbin/vnconfig/vnconfig.8 [dup] src/usr.sbin/vnconfig/vnconfig.c Add -d, to control the internal debug setting. src/usr.sbin/vnconfig/vnconfig.8 [dup] Typo fix: insert a missing word. src/usr.sbin/Makefile [dup] src/usr.sbin/ptaped/Makefile src/usr.sbin/ptaped/ptaped.8 src/usr.sbin/ptaped/ptaped.c Add ptaped, a sample userland daemon for use with the ptape driver. src/usr.sbin/arp/arp.8 src/usr.sbin/arp/arp.c Support more detailed control over ARP entries. (The way ARP works is really really messy and begs to be put out of its misery and replaced. I'm just not quite quixotic enough to try to do that.) src/usr.sbin/eeprom/ophandlers.c [dup] Cosmetics: use 0 for the function pointer in the opextab[] array sentinel entry. src/usr.sbin/eeprom/ophandlers.c [dup] Support setting security-mode and security-password. src/usr.sbin/eeprom/ophandlers.c [dup] Make op_notsupp print out unsupported property values in raw hex when doing a query. src/usr.sbin/inetd/inetd.8 Cosmetics: "Sun-RPC" doesn't begin with a vowel sound, so it takes "a", not "an". src/usr.sbin/inetd/inetd.c [dup] Turn on keepalives for internal services that could otherwise hang forever if the remote end crashes or otherwise leaves us with a half-open connection. src/usr.sbin/inetd/inetd.c [dup] Cosmetics: remove stray blank line at EOF. src/usr.sbin/kvm_mkdb/kvm_mkdb.c Add -f, to force kvm_mkdb to rebuild the database, even if it thinks it's up-to-date. src/usr.sbin/mountd/mountd.8 [dup] Cosmetics: s/port/service/ src/usr.sbin/mountd/mountd.8 [dup] src/usr.sbin/mountd/mountd.c Add -a and -p, to specify address and port that the mount service is to listen on. src/usr.sbin/rbootd/rbootd.8 src/usr.sbin/rbootd/rbootd.c Add -b, to specify the directory to find the bootfile in. src/usr.sbin/route6d/route6d.c Make it create host routes, not /128 network routes, for routes advertised with a /128 prefix length. src/usr.sbin/screenblank/screenblank.c Cast signal handler to the correct type. src/usr.sbin/syslogd/syslogd.c Lower kernel message default priority from LOG_CRIT to LOG_WARNING. src/usr.sbin/tcpdump/Makefile src/usr.sbin/tcpdump/interface.h src/usr.sbin/tcpdump/pppoe.h src/usr.sbin/tcpdump/print-ether.c src/usr.sbin/tcpdump/print-ppp.c src/usr.sbin/tcpdump/print-pppoe.c Add support for recognizing and dumping PPPoE packets. src/usr.sbin/tcpdump/print-ip.c Add support for recognizing and dumping the protocol 98 encapsulation done by the encap driver. src/usr.sbin/xntp/xntpd/ntp_control.c Recognize and log attempts to exploit a buffer overflow. src/usr.sbin/xntp/xntpd/ntp_io.c Make bind failures soft failures always.