PERFORCE change 35350 for review

Robert Watson rwatson at FreeBSD.org
Fri Aug 1 12:03:39 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=35350

Change 35350 by rwatson at rwatson_tislabs on 2003/08/01 12:03:26

	Integrate the TrustedBSD MAC branch: dhclient changes, UMA
	bugfixes and more bugfixes, threading bugfixes and platform
	support, awk upgrade, lots of ATM and driver changes,
	loopback of MAC_ALWAYS_LABEL_MBUF ifdef cleanup, more gcc
	3.3 tweaks, ACPI fixes, ddb paging improvements, and phk's
	vn_open fd change.

Affected files ...

.. //depot/projects/trustedbsd/mac/MAINTAINERS#19 integrate
.. //depot/projects/trustedbsd/mac/UPDATING#30 integrate
.. //depot/projects/trustedbsd/mac/contrib/isc-dhcp/FREEBSD-upgrade#6 integrate
.. //depot/projects/trustedbsd/mac/contrib/isc-dhcp/client/dhclient.8#6 integrate
.. //depot/projects/trustedbsd/mac/contrib/isc-dhcp/client/dhclient.c#8 integrate
.. //depot/projects/trustedbsd/mac/contrib/isc-dhcp/client/scripts/freebsd#5 integrate
.. //depot/projects/trustedbsd/mac/contrib/isc-dhcp/common/dispatch.c#5 integrate
.. //depot/projects/trustedbsd/mac/contrib/isc-dhcp/includes/dhcpd.h#7 integrate
.. //depot/projects/trustedbsd/mac/contrib/one-true-awk/FIXES#6 integrate
.. //depot/projects/trustedbsd/mac/contrib/one-true-awk/FREEBSD-upgrade#6 integrate
.. //depot/projects/trustedbsd/mac/contrib/one-true-awk/b.c#6 integrate
.. //depot/projects/trustedbsd/mac/contrib/one-true-awk/lex.c#4 integrate
.. //depot/projects/trustedbsd/mac/contrib/one-true-awk/main.c#7 integrate
.. //depot/projects/trustedbsd/mac/contrib/one-true-awk/run.c#6 integrate
.. //depot/projects/trustedbsd/mac/contrib/smbfs/lib/smb/ctx.c#7 integrate
.. //depot/projects/trustedbsd/mac/contrib/smbfs/mount_smbfs/mount_smbfs.8#3 integrate
.. //depot/projects/trustedbsd/mac/etc/auth.conf#3 integrate
.. //depot/projects/trustedbsd/mac/etc/defaults/rc.conf#28 integrate
.. //depot/projects/trustedbsd/mac/etc/mtree/BSD.local.dist#14 integrate
.. //depot/projects/trustedbsd/mac/etc/mtree/BSD.usr.dist#24 integrate
.. //depot/projects/trustedbsd/mac/etc/rc.d/Makefile#12 integrate
.. //depot/projects/trustedbsd/mac/etc/rc.d/atm1#5 integrate
.. //depot/projects/trustedbsd/mac/etc/rc.d/atm2#1 branch
.. //depot/projects/trustedbsd/mac/etc/rc.d/atm2.sh#6 delete
.. //depot/projects/trustedbsd/mac/etc/rc.d/atm3#1 branch
.. //depot/projects/trustedbsd/mac/etc/rc.d/atm3.sh#3 delete
.. //depot/projects/trustedbsd/mac/etc/rc.d/dhclient#6 integrate
.. //depot/projects/trustedbsd/mac/etc/rc.d/hostname#2 integrate
.. //depot/projects/trustedbsd/mac/etc/rc.d/ipfilter#9 integrate
.. //depot/projects/trustedbsd/mac/etc/rc.d/ipfw#5 integrate
.. //depot/projects/trustedbsd/mac/etc/rc.d/ipsec#6 integrate
.. //depot/projects/trustedbsd/mac/etc/rc.d/netif#3 integrate
.. //depot/projects/trustedbsd/mac/etc/rc.d/ttys#4 integrate
.. //depot/projects/trustedbsd/mac/gnu/usr.bin/cc/cc_int/Makefile#8 integrate
.. //depot/projects/trustedbsd/mac/gnu/usr.bin/patch/backupfile.c#3 integrate
.. //depot/projects/trustedbsd/mac/kerberos5/lib/libasn1/Makefile#8 integrate
.. //depot/projects/trustedbsd/mac/kerberos5/lib/libhdb/Makefile#9 integrate
.. //depot/projects/trustedbsd/mac/lib/libatm/atm_addr.c#5 integrate
.. //depot/projects/trustedbsd/mac/lib/libatm/cache_key.c#4 integrate
.. //depot/projects/trustedbsd/mac/lib/libatm/ioctl_subr.c#5 integrate
.. //depot/projects/trustedbsd/mac/lib/libatm/ip_addr.c#5 integrate
.. //depot/projects/trustedbsd/mac/lib/libatm/ip_checksum.c#4 integrate
.. //depot/projects/trustedbsd/mac/lib/libatm/libatm.h#4 integrate
.. //depot/projects/trustedbsd/mac/lib/libc/alpha/gen/makecontext.c#3 integrate
.. //depot/projects/trustedbsd/mac/lib/libc/gen/arc4random.3#4 integrate
.. //depot/projects/trustedbsd/mac/lib/libc/i386/sys/i386_get_ldt.2#4 integrate
.. //depot/projects/trustedbsd/mac/lib/libc/locale/Makefile.inc#13 integrate
.. //depot/projects/trustedbsd/mac/lib/libc/locale/gb18030.c#1 branch
.. //depot/projects/trustedbsd/mac/lib/libc/locale/setrunelocale.c#8 integrate
.. //depot/projects/trustedbsd/mac/lib/libc/stdlib/malloc.c#13 integrate
.. //depot/projects/trustedbsd/mac/lib/libc/stdlib/random.3#3 integrate
.. //depot/projects/trustedbsd/mac/lib/libc/string/Makefile.inc#6 integrate
.. //depot/projects/trustedbsd/mac/lib/libc/string/index.3#4 integrate
.. //depot/projects/trustedbsd/mac/lib/libc/string/rindex.3#4 delete
.. //depot/projects/trustedbsd/mac/lib/libc/string/strchr.3#3 integrate
.. //depot/projects/trustedbsd/mac/lib/libc/string/strrchr.3#2 delete
.. //depot/projects/trustedbsd/mac/lib/libkvm/kvm.c#6 integrate
.. //depot/projects/trustedbsd/mac/lib/libkvm/kvm.h#4 integrate
.. //depot/projects/trustedbsd/mac/lib/libkvm/kvm_file.c#3 integrate
.. //depot/projects/trustedbsd/mac/lib/libkvm/kvm_getswapinfo.c#3 integrate
.. //depot/projects/trustedbsd/mac/lib/libkvm/kvm_proc.c#15 integrate
.. //depot/projects/trustedbsd/mac/lib/libpthread/arch/amd64/amd64/enter_uts.S#2 integrate
.. //depot/projects/trustedbsd/mac/lib/libpthread/arch/amd64/include/ksd.h#2 integrate
.. //depot/projects/trustedbsd/mac/lib/libpthread/arch/i386/Makefile.inc#2 integrate
.. //depot/projects/trustedbsd/mac/lib/libpthread/arch/i386/i386/_atomic_lock.S#2 delete
.. //depot/projects/trustedbsd/mac/lib/libpthread/arch/i386/i386/thr_enter_uts.S#4 integrate
.. //depot/projects/trustedbsd/mac/lib/libpthread/arch/i386/i386/thr_getcontext.S#2 integrate
.. //depot/projects/trustedbsd/mac/lib/libpthread/arch/i386/i386/thr_switch.S#4 delete
.. //depot/projects/trustedbsd/mac/lib/libpthread/arch/i386/include/pthread_md.h#3 integrate
.. //depot/projects/trustedbsd/mac/lib/libpthread/thread/thr_concurrency.c#4 integrate
.. //depot/projects/trustedbsd/mac/lib/libpthread/thread/thr_mutex.c#6 integrate
.. //depot/projects/trustedbsd/mac/lib/libpthread/thread/thr_private.h#9 integrate
.. //depot/projects/trustedbsd/mac/lib/libpthread/thread/thr_sig.c#8 integrate
.. //depot/projects/trustedbsd/mac/lib/libpthread/thread/thr_sigwait.c#6 integrate
.. //depot/projects/trustedbsd/mac/release/Makefile#47 integrate
.. //depot/projects/trustedbsd/mac/release/alpha/dokern.sh#11 delete
.. //depot/projects/trustedbsd/mac/release/alpha/drivers.conf#14 delete
.. //depot/projects/trustedbsd/mac/release/alpha/fixit_crunch.conf#6 delete
.. //depot/projects/trustedbsd/mac/release/doc/en_US.ISO8859-1/hardware/i386/proc-i386.sgml#8 integrate
.. //depot/projects/trustedbsd/mac/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml#60 integrate
.. //depot/projects/trustedbsd/mac/release/doc/fr_FR.ISO8859-1/early-adopter/article.sgml#3 integrate
.. //depot/projects/trustedbsd/mac/release/ia64/dokern.sh#2 delete
.. //depot/projects/trustedbsd/mac/release/ia64/mkisoimages.sh#3 integrate
.. //depot/projects/trustedbsd/mac/release/pc98/dokern.sh#12 integrate
.. //depot/projects/trustedbsd/mac/release/sparc64/dokern.sh#2 delete
.. //depot/projects/trustedbsd/mac/rescue/rescue/Makefile#2 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/atm/Makefile#3 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/atm/atm.8#3 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/atm/atm.c#3 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/atm/atm.h#3 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/atm/atm_eni.c#3 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/atm/atm_fore200.c#3 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/atm/atm_inet.c#3 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/atm/atm_print.c#3 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/atm/atm_set.c#3 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/atm/atm_show.c#4 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/atm/atm_subr.c#3 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/fore_dnld/Makefile#3 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/fore_dnld/fore_dnld.8#3 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/fore_dnld/fore_dnld.c#3 integrate
.. //depot/projects/trustedbsd/mac/sbin/atm/fore_dnld/pca200e.c#2 integrate
.. //depot/projects/trustedbsd/mac/sbin/dhclient/Makefile.inc#4 integrate
.. //depot/projects/trustedbsd/mac/sbin/fsck_ffs/fsutil.c#14 integrate
.. //depot/projects/trustedbsd/mac/sbin/fsck_ffs/main.c#12 integrate
.. //depot/projects/trustedbsd/mac/sbin/fsck_ffs/setup.c#17 integrate
.. //depot/projects/trustedbsd/mac/share/colldef/Makefile#12 integrate
.. //depot/projects/trustedbsd/mac/share/man/man4/acpi.4#8 integrate
.. //depot/projects/trustedbsd/mac/share/man/man4/puc.4#3 integrate
.. //depot/projects/trustedbsd/mac/share/man/man5/rc.conf.5#26 integrate
.. //depot/projects/trustedbsd/mac/share/man/man7/Makefile#12 integrate
.. //depot/projects/trustedbsd/mac/share/man/man7/rescue.7#2 delete
.. //depot/projects/trustedbsd/mac/share/man/man8/Makefile#10 integrate
.. //depot/projects/trustedbsd/mac/share/man/man8/rescue.8#1 branch
.. //depot/projects/trustedbsd/mac/share/man/man9/bus_dma.9#4 integrate
.. //depot/projects/trustedbsd/mac/share/mklocale/Makefile#12 integrate
.. //depot/projects/trustedbsd/mac/share/mklocale/zh_CN.GB18030.src#1 branch
.. //depot/projects/trustedbsd/mac/share/monetdef/Makefile#13 integrate
.. //depot/projects/trustedbsd/mac/share/monetdef/zh_CN.GB18030.src#1 branch
.. //depot/projects/trustedbsd/mac/share/msgdef/Makefile#13 integrate
.. //depot/projects/trustedbsd/mac/share/msgdef/zh_CN.GB18030.src#1 branch
.. //depot/projects/trustedbsd/mac/share/numericdef/Makefile#13 integrate
.. //depot/projects/trustedbsd/mac/share/numericdef/zh_TW.Big5.src#2 delete
.. //depot/projects/trustedbsd/mac/share/timedef/Makefile#12 integrate
.. //depot/projects/trustedbsd/mac/share/timedef/zh_CN.GB18030.src#1 branch
.. //depot/projects/trustedbsd/mac/sys/alpha/alpha/busdma_machdep.c#12 integrate
.. //depot/projects/trustedbsd/mac/sys/alpha/alpha/machdep.c#24 integrate
.. //depot/projects/trustedbsd/mac/sys/alpha/alpha/mp_machdep.c#14 integrate
.. //depot/projects/trustedbsd/mac/sys/alpha/alpha/pmap.c#30 integrate
.. //depot/projects/trustedbsd/mac/sys/alpha/alpha/vm_machdep.c#18 integrate
.. //depot/projects/trustedbsd/mac/sys/alpha/include/bus.h#12 integrate
.. //depot/projects/trustedbsd/mac/sys/alpha/include/param.h#6 integrate
.. //depot/projects/trustedbsd/mac/sys/amd64/amd64/amd64_mem.c#1 branch
.. //depot/projects/trustedbsd/mac/sys/amd64/amd64/busdma_machdep.c#4 integrate
.. //depot/projects/trustedbsd/mac/sys/amd64/amd64/machdep.c#5 integrate
.. //depot/projects/trustedbsd/mac/sys/amd64/amd64/pmap.c#5 integrate
.. //depot/projects/trustedbsd/mac/sys/amd64/amd64/vm_machdep.c#5 integrate
.. //depot/projects/trustedbsd/mac/sys/amd64/include/bus_dma.h#4 integrate
.. //depot/projects/trustedbsd/mac/sys/amd64/include/param.h#4 integrate
.. //depot/projects/trustedbsd/mac/sys/cam/cam_ccb.h#4 integrate
.. //depot/projects/trustedbsd/mac/sys/cam/scsi/scsi_cd.c#17 integrate
.. //depot/projects/trustedbsd/mac/sys/cam/scsi/scsi_da.c#29 integrate
.. //depot/projects/trustedbsd/mac/sys/compat/linux/linux_misc.c#27 integrate
.. //depot/projects/trustedbsd/mac/sys/conf/NOTES#44 integrate
.. //depot/projects/trustedbsd/mac/sys/conf/files.alpha#17 integrate
.. //depot/projects/trustedbsd/mac/sys/conf/files.amd64#3 integrate
.. //depot/projects/trustedbsd/mac/sys/conf/files.i386#30 integrate
.. //depot/projects/trustedbsd/mac/sys/conf/files.ia64#20 integrate
.. //depot/projects/trustedbsd/mac/sys/conf/kern.pre.mk#18 integrate
.. //depot/projects/trustedbsd/mac/sys/conf/options#53 integrate
.. //depot/projects/trustedbsd/mac/sys/contrib/dev/acpica/dbcmds.c#12 integrate
.. //depot/projects/trustedbsd/mac/sys/ddb/db_command.c#11 integrate
.. //depot/projects/trustedbsd/mac/sys/ddb/db_output.c#4 integrate
.. //depot/projects/trustedbsd/mac/sys/ddb/db_ps.c#16 integrate
.. //depot/projects/trustedbsd/mac/sys/ddb/ddb.h#8 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/acpica/acpi_ec.c#14 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/ahb/ahb.c#8 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/amd/amd.c#6 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/ata/atapi-cam.c#11 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/ed/if_ed_pccard.c#13 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/fatm/if_fatm.c#3 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/fatm/if_fatmvar.h#2 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/firewire/firewire.h#6 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/firewire/firewirereg.h#9 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/firewire/fwdev.c#7 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/firewire/fwohci.c#13 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/firewire/if_fwe.c#11 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/firewire/sbp.c#14 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/fxp/if_fxp.c#26 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hatm/if_hatm.c#3 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hatm/if_hatm_ioctl.c#3 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hatm/if_hatm_tx.c#3 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hatm/if_hatmvar.h#2 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hea/eni_if.c#3 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hfa/fore_aali.h#2 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hfa/fore_command.c#5 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hfa/fore_if.c#3 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hfa/fore_init.c#4 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hfa/fore_intr.c#2 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hfa/fore_output.c#6 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hfa/fore_var.h#4 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hfa/fore_vcm.c#2 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hfa/hfa_freebsd.c#5 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/hfa/hfa_freebsd.h#2 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/md/md.c#26 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/patm/if_patm.c#2 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/patm/if_patm_ioctl.c#2 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/patm/if_patm_tx.c#2 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/pccard/pccarddevs#19 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/pccard/pccarddevs.h#19 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/pci/pci.c#22 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/pdq/if_fea.c#6 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/ppc/ppc.c#2 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/ppc/ppc_puc.c#1 branch
.. //depot/projects/trustedbsd/mac/sys/dev/ppc/ppcvar.h#1 branch
.. //depot/projects/trustedbsd/mac/sys/dev/puc/puc.c#12 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/raidframe/rf_freebsdkintf.c#10 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/usb/umass.c#24 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/usb/usb_mem.c#2 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/utopia/utopia.c#3 integrate
.. //depot/projects/trustedbsd/mac/sys/dev/wi/if_wi_pci.c#9 integrate
.. //depot/projects/trustedbsd/mac/sys/geom/geom_ccd.c#2 integrate
.. //depot/projects/trustedbsd/mac/sys/geom/geom_mbr.c#18 integrate
.. //depot/projects/trustedbsd/mac/sys/i386/acpica/acpi_wakeup.c#16 integrate
.. //depot/projects/trustedbsd/mac/sys/i386/i386/busdma_machdep.c#14 integrate
.. //depot/projects/trustedbsd/mac/sys/i386/i386/identcpu.c#19 integrate
.. //depot/projects/trustedbsd/mac/sys/i386/i386/locore.s#13 integrate
.. //depot/projects/trustedbsd/mac/sys/i386/i386/machdep.c#34 integrate
.. //depot/projects/trustedbsd/mac/sys/i386/i386/pmap.c#34 integrate
.. //depot/projects/trustedbsd/mac/sys/i386/i386/sys_machdep.c#14 integrate
.. //depot/projects/trustedbsd/mac/sys/i386/include/bus_dma.h#7 integrate
.. //depot/projects/trustedbsd/mac/sys/i386/include/pcpu.h#7 integrate
.. //depot/projects/trustedbsd/mac/sys/i386/isa/pcvt/pcvt_hdr.h#3 integrate
.. //depot/projects/trustedbsd/mac/sys/ia64/ia64/busdma_machdep.c#11 integrate
.. //depot/projects/trustedbsd/mac/sys/ia64/ia64/machdep.c#33 integrate
.. //depot/projects/trustedbsd/mac/sys/ia64/ia64/mp_machdep.c#17 integrate
.. //depot/projects/trustedbsd/mac/sys/ia64/ia64/pmap.c#31 integrate
.. //depot/projects/trustedbsd/mac/sys/ia64/ia64/vm_machdep.c#24 integrate
.. //depot/projects/trustedbsd/mac/sys/ia64/include/bus.h#10 integrate
.. //depot/projects/trustedbsd/mac/sys/ia64/include/param.h#8 integrate
.. //depot/projects/trustedbsd/mac/sys/isa/ppc.c#8 delete
.. //depot/projects/trustedbsd/mac/sys/isa/ppcreg.h#2 delete
.. //depot/projects/trustedbsd/mac/sys/kern/kern_acct.c#23 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/kern_alq.c#5 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/kern_descrip.c#46 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/kern_ktr.c#12 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/kern_ktrace.c#22 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/kern_linker.c#24 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#398 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/kern_mutex.c#26 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/kern_sig.c#34 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/link_elf.c#20 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/subr_mbuf.c#38 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/subr_trap.c#29 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/subr_witness.c#35 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/sys_generic.c#22 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/sys_pipe.c#41 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/tty_cons.c#12 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/vfs_syscalls.c#108 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/vfs_vnops.c#65 integrate
.. //depot/projects/trustedbsd/mac/sys/kern/vnode_if.src#18 integrate
.. //depot/projects/trustedbsd/mac/sys/modules/cam/Makefile#6 integrate
.. //depot/projects/trustedbsd/mac/sys/net/if_atm.h#8 integrate
.. //depot/projects/trustedbsd/mac/sys/net/if_atmsubr.c#17 integrate
.. //depot/projects/trustedbsd/mac/sys/net/if_spppsubr.c#17 integrate
.. //depot/projects/trustedbsd/mac/sys/netatm/atm_if.c#11 integrate
.. //depot/projects/trustedbsd/mac/sys/netatm/atm_ioctl.h#5 integrate
.. //depot/projects/trustedbsd/mac/sys/netatm/atm_usrreq.c#7 integrate
.. //depot/projects/trustedbsd/mac/sys/netatm/atm_vc.h#2 integrate
.. //depot/projects/trustedbsd/mac/sys/netatm/ipatm/ipatm_usrreq.c#6 integrate
.. //depot/projects/trustedbsd/mac/sys/netatm/sigpvc/sigpvc_if.c#7 integrate
.. //depot/projects/trustedbsd/mac/sys/netatm/spans/spans_arp.c#8 integrate
.. //depot/projects/trustedbsd/mac/sys/netatm/spans/spans_if.c#7 integrate
.. //depot/projects/trustedbsd/mac/sys/netatm/uni/uniarp.c#8 integrate
.. //depot/projects/trustedbsd/mac/sys/netatm/uni/uniarp_cache.c#7 integrate
.. //depot/projects/trustedbsd/mac/sys/netatm/uni/uniip_var.h#5 integrate
.. //depot/projects/trustedbsd/mac/sys/netatm/uni/unisig_if.c#7 integrate
.. //depot/projects/trustedbsd/mac/sys/netgraph/atm/ng_atm.c#2 integrate
.. //depot/projects/trustedbsd/mac/sys/netgraph/atm/ng_atm.h#2 integrate
.. //depot/projects/trustedbsd/mac/sys/netinet/ip_dummynet.c#17 integrate
.. //depot/projects/trustedbsd/mac/sys/netinet6/ip6_fw.c#11 integrate
.. //depot/projects/trustedbsd/mac/sys/netsmb/smb_conn.h#7 integrate
.. //depot/projects/trustedbsd/mac/sys/nfsclient/nfs_lock.c#18 integrate
.. //depot/projects/trustedbsd/mac/sys/nfsclient/nfs_vnops.c#18 integrate
.. //depot/projects/trustedbsd/mac/sys/pc98/i386/machdep.c#32 integrate
.. //depot/projects/trustedbsd/mac/sys/pccard/pcic_pci.c#12 integrate
.. //depot/projects/trustedbsd/mac/sys/pci/if_dc.c#29 integrate
.. //depot/projects/trustedbsd/mac/sys/pci/if_rl.c#27 integrate
.. //depot/projects/trustedbsd/mac/sys/pci/if_sis.c#24 integrate
.. //depot/projects/trustedbsd/mac/sys/pci/if_xl.c#22 integrate
.. //depot/projects/trustedbsd/mac/sys/pci/ncr.c#9 integrate
.. //depot/projects/trustedbsd/mac/sys/powerpc/include/bus.h#11 integrate
.. //depot/projects/trustedbsd/mac/sys/powerpc/include/param.h#7 integrate
.. //depot/projects/trustedbsd/mac/sys/powerpc/powerpc/busdma_machdep.c#9 integrate
.. //depot/projects/trustedbsd/mac/sys/powerpc/powerpc/machdep.c#23 integrate
.. //depot/projects/trustedbsd/mac/sys/powerpc/powerpc/pmap.c#21 integrate
.. //depot/projects/trustedbsd/mac/sys/powerpc/powerpc/vm_machdep.c#19 integrate
.. //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#218 integrate
.. //depot/projects/trustedbsd/mac/sys/security/mac_mls/mac_mls.c#176 integrate
.. //depot/projects/trustedbsd/mac/sys/sparc64/include/bus.h#15 integrate
.. //depot/projects/trustedbsd/mac/sys/sparc64/include/param.h#11 integrate
.. //depot/projects/trustedbsd/mac/sys/sparc64/sparc64/bus_machdep.c#15 integrate
.. //depot/projects/trustedbsd/mac/sys/sparc64/sparc64/genassym.c#21 integrate
.. //depot/projects/trustedbsd/mac/sys/sparc64/sparc64/iommu.c#16 integrate
.. //depot/projects/trustedbsd/mac/sys/sparc64/sparc64/machdep.c#32 integrate
.. //depot/projects/trustedbsd/mac/sys/sparc64/sparc64/pmap.c#35 integrate
.. //depot/projects/trustedbsd/mac/sys/sparc64/sparc64/vm_machdep.c#21 integrate
.. //depot/projects/trustedbsd/mac/sys/sys/lock.h#8 integrate
.. //depot/projects/trustedbsd/mac/sys/sys/param.h#25 integrate
.. //depot/projects/trustedbsd/mac/sys/sys/vnode.h#58 integrate
.. //depot/projects/trustedbsd/mac/sys/ufs/ffs/ffs_vnops.c#25 edit
.. //depot/projects/trustedbsd/mac/sys/ufs/ufs/extattr.h#6 integrate
.. //depot/projects/trustedbsd/mac/sys/ufs/ufs/ufs_extattr.c#31 integrate
.. //depot/projects/trustedbsd/mac/sys/ufs/ufs/ufs_quota.c#15 integrate
.. //depot/projects/trustedbsd/mac/sys/ufs/ufs/ufs_vnops.c#67 integrate
.. //depot/projects/trustedbsd/mac/sys/vm/swap_pager.c#19 integrate
.. //depot/projects/trustedbsd/mac/sys/vm/swap_pager.h#10 integrate
.. //depot/projects/trustedbsd/mac/sys/vm/uma_core.c#22 integrate
.. //depot/projects/trustedbsd/mac/sys/vm/uma_int.h#10 integrate
.. //depot/projects/trustedbsd/mac/sys/vm/vm_contig.c#11 integrate
.. //depot/projects/trustedbsd/mac/sys/vm/vm_glue.c#25 integrate
.. //depot/projects/trustedbsd/mac/sys/vm/vm_kern.c#15 integrate
.. //depot/projects/trustedbsd/mac/sys/vm/vm_object.c#32 integrate
.. //depot/projects/trustedbsd/mac/tools/regression/README#7 integrate
.. //depot/projects/trustedbsd/mac/tools/regression/pipe/Makefile#1 branch
.. //depot/projects/trustedbsd/mac/tools/regression/pipe/bigpipetest.c#1 branch
.. //depot/projects/trustedbsd/mac/tools/tools/release/chk_dokern.sh_and_drivers.conf#1 branch
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/Makefile#4 integrate
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/ada.rc#2 delete
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/current.rc#2 delete
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/default.rc#2 delete
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/dsa.rc#2 delete
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/dwp.rc#2 delete
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/etc/Makefile#1 branch
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/etc/ada.rc#1 branch
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/etc/current.rc#1 branch
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/etc/default.rc#1 branch
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/etc/dsa.rc#1 branch
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/etc/dwp.rc#1 branch
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/etc/experimental.rc#1 branch
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/etc/releng_4.rc#1 branch
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/etc/stanley.rc#1 branch
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/releng_4.rc#2 delete
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/stanley.rc#2 delete
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/tbmaster.1#3 integrate
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/tbmaster.pl#9 integrate
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/www/Makefile#2 integrate
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/www/daemon.png#1 branch
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/www/index.cgi#3 integrate
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/www/valid-css.gif#2 delete
.. //depot/projects/trustedbsd/mac/tools/tools/tinderbox/www/valid-css.png#1 branch
.. //depot/projects/trustedbsd/mac/usr.bin/last/last.1#5 integrate
.. //depot/projects/trustedbsd/mac/usr.bin/last/last.c#9 integrate
.. //depot/projects/trustedbsd/mac/usr.bin/mklocale/yacc.y#9 integrate
.. //depot/projects/trustedbsd/mac/usr.sbin/acpi/acpiconf/acpiconf.8#5 integrate
.. //depot/projects/trustedbsd/mac/usr.sbin/acpi/acpiconf/acpiconf.c#5 integrate
.. //depot/projects/trustedbsd/mac/usr.sbin/atm/atmarpd/atmarp_log.c#2 integrate
.. //depot/projects/trustedbsd/mac/usr.sbin/atm/atmarpd/atmarp_subr.c#3 integrate
.. //depot/projects/trustedbsd/mac/usr.sbin/atm/atmarpd/atmarpd.c#3 integrate
.. //depot/projects/trustedbsd/mac/usr.sbin/atm/scspd/scsp_subr.c#3 integrate
.. //depot/projects/trustedbsd/mac/usr.sbin/edquota/edquota.8#6 integrate
.. //depot/projects/trustedbsd/mac/usr.sbin/i4b/isdnd/support.c#4 integrate
.. //depot/projects/trustedbsd/mac/usr.sbin/lpr/common_source/lp.local.h#3 integrate
.. //depot/projects/trustedbsd/mac/usr.sbin/pstat/pstat.8#6 integrate
.. //depot/projects/trustedbsd/mac/usr.sbin/pstat/pstat.c#11 integrate
.. //depot/projects/trustedbsd/mac/usr.sbin/rtadvd/rtadvd.conf.5#3 integrate

Differences ...

==== //depot/projects/trustedbsd/mac/MAINTAINERS#19 (text+ko) ====

@@ -1,4 +1,4 @@
-$FreeBSD: src/MAINTAINERS,v 1.75 2003/07/19 00:17:36 markm Exp $
+$FreeBSD: src/MAINTAINERS,v 1.76 2003/07/30 10:43:13 bp Exp $
 
 subsystem	login	notes
 -----------------------------
@@ -78,6 +78,10 @@
 unifdef(1)	fanf	Pre-commit review requested.
 ntp         roberto	Pre-commit review requested.
 inetd		dwmalone	Recommends pre-commit review.
+nwfs		bp	In case of functional changes pre-commit review
+			requested.
+contrib/smbfs	bp	Open for in-tree committs. In case of functional
+			changes pre-commit review requested.
 
 Following are the entries from the Makefiles, and a few other sources.
 Please remove stale entries from both their origin, and this file.

==== //depot/projects/trustedbsd/mac/UPDATING#30 (text+ko) ====

@@ -17,6 +17,13 @@
 	developers choose to disable these features on build machines
 	to maximize performance.
 
+20030728:
+	All current USB and Firewire quirks in da(4) have been deprecated
+	and will be removed for 5.2.  If this causes failure for your
+	umass(4) devices, enable "options DA_OLD_QUIRKS" in your kernel
+	and send the output of "camcontrol inquiry da0" to scsi at freebsd.org
+	so the quirk can be re-enabled.
+
 20030722:
 	FPU-less support has been removed from FreeBSD.  Chances are you won't
 	notice.  386+387 support should still work after this change, but
@@ -1326,4 +1333,4 @@
 Contact Warner Losh if you have any questions about your use of
 this document.
 
-$FreeBSD: src/UPDATING,v 1.259 2003/07/22 11:08:41 imp Exp $
+$FreeBSD: src/UPDATING,v 1.260 2003/07/29 04:40:33 njl Exp $

==== //depot/projects/trustedbsd/mac/contrib/isc-dhcp/FREEBSD-upgrade#6 (text+ko) ====

@@ -1,5 +1,5 @@
 # ex:ts=8
-$FreeBSD: src/contrib/isc-dhcp/FREEBSD-upgrade,v 1.14 2003/01/16 19:05:56 murray Exp $
+$FreeBSD: src/contrib/isc-dhcp/FREEBSD-upgrade,v 1.16 2003/07/28 08:30:11 mbr Exp $
 
 ISC DHCP client 3.0.1rc11
 	originals can be found at: ftp://ftp.isc.org/isc/dhcp/
@@ -42,19 +42,26 @@
 	client/clparse.c
 	  r1.6 - prefer strlcpy to strcpy.
 	client/dhclient.8 
+	  r1.14 - interface polling
 	  r1.8 - correct a man reference and a typo.
 	  r1.6 - document -D option.
           - remove dhcpd from SEE ALSO section.
 	client/dhclient.c
+	  r1.26 - interface polling
+	  r1.25 - correct release lease option
 	  r1.19 - connect std{in,out,err}.
 	  r1.13 - prefer strlcpy to strcpy.
 	  r1.6  - quiet by default.
 	        - document -D option.
 	client/dhclient.conf.5
-	  - Remove dhcpd from SEE ALSO section.
+	        - Remove dhcpd from SEE ALSO section.
 	common/dhcp-options.5
 	  r1.2 - note that hostname is only set if not already set.
-	  - Remove dhcpd from SEE ALSO section.
+	       - Remove dhcpd from SEE ALSO section.
+	common/dispatch.c
+	  r1.2 - polling mode
+	includes/dhcpd.h
+	  r1.2 - polling mode
     (see CVS logs for complete details)
 
 murray at FreeBSD.org

==== //depot/projects/trustedbsd/mac/contrib/isc-dhcp/client/dhclient.8#6 (text+ko) ====

@@ -20,7 +20,7 @@
 .\"
 .\" Portions copyright (c) 2000 David E. O'Brien.
 .\" All rights reserved.
-.\" $FreeBSD: src/contrib/isc-dhcp/client/dhclient.8,v 1.13 2003/03/18 19:46:55 obrien Exp $
+.\" $FreeBSD: src/contrib/isc-dhcp/client/dhclient.8,v 1.14 2003/07/28 08:30:11 mbr Exp $
 .\"
 .TH dhclient 8
 .SH NAME
@@ -74,6 +74,10 @@
 relay
 ]
 [
+.B -i
+interval
+]
+[
 .B -n
 ]
 [
@@ -190,6 +194,12 @@
 flag, followed by the IP address to send.   This is only useful for testing,
 and should not be expected to work in any consistent or useful way.
 .PP
+On FreeBSD, dhclient can be enabled to automatically handle the
+link status of the network card. Normally polling is done every
+five seconds. The polling interval can be set using the
+.B -i
+flag, followed by the numbers of seconds. Minimum is one second.
+.PP
 The DHCP client will normally run in the foreground until it has
 configured an interface, and then will revert to running in the
 background.   To run force dhclient to always run as a foreground

==== //depot/projects/trustedbsd/mac/contrib/isc-dhcp/client/dhclient.c#8 (text+ko) ====

@@ -42,12 +42,19 @@
 #ifndef lint
 static char ocopyright[] =
 "$Id: dhclient.c,v 1.129.2.12 2002/11/07 23:26:38 dhankins Exp $ Copyright (c) 1995-2002 Internet Software Consortium.  All rights reserved.\n"
-"$FreeBSD: src/contrib/isc-dhcp/client/dhclient.c,v 1.25 2003/03/23 23:29:36 mbr Exp $\n";
+"$FreeBSD: src/contrib/isc-dhcp/client/dhclient.c,v 1.27 2003/07/28 13:25:04 mbr Exp $\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
 #include "version.h"
 
+#ifdef __FreeBSD__
+#include <sys/ioctl.h>
+#include <net/if_media.h>
+#include <net80211/ieee80211_ioctl.h>
+#include <net80211/ieee80211.h>
+#endif
+
 TIME cur_time;
 TIME default_lease_time = 43200; /* 12 hours... */
 TIME max_lease_time = 86400; /* 24 hours... */
@@ -85,6 +92,10 @@
 int onetry=0;
 int quiet=1;
 int nowait=0;
+int doinitcheck=0;
+#ifdef ENABLE_POLLING_MODE
+int polling_interval = 5;
+#endif
 
 static void usage PROTO ((void));
 
@@ -202,6 +213,19 @@
 		} else if (!strcmp (argv [i], "-n")) {
 			/* do not start up any interfaces */
 			interfaces_requested = 1;
+#ifdef ENABLE_POLLING_MODE
+		} else if (!strcmp (argv [i], "-i")) {
+			if (++i == argc)
+				usage ();
+			polling_interval = (int)strtol(argv [i],
+			    (char **)NULL, 10);
+			if (polling_interval <= 0) {
+				log_info ("Incorrect polling interval %d",
+				    polling_interval);
+				log_info ("Using a default of 5 seconds");
+				polling_interval = 5;
+			}
+#endif
 		} else if (!strcmp (argv [i], "-w")) {
 			/* do not exit if there are no broadcast interfaces. */
 			persist = 1;
@@ -233,6 +257,8 @@
 			    log_fatal ("%s: interface name too long (max %ld)",
 				       argv [i], (long)strlen (argv [i]));
  		    strlcpy (tmp -> name, argv [i], IFNAMSIZ);
+		    set_ieee802(tmp);
+		    tmp->linkstatus = interface_active(tmp);
 		    if (interfaces) {
 			    interface_reference (&tmp -> next,
 						 interfaces, MDL);
@@ -386,6 +412,7 @@
 					     INTERFACE_AUTOMATIC)) !=
 			     INTERFACE_REQUESTED))
 				continue;
+			set_ieee802(ip);
 			script_init (ip -> client,
 				     "PREINIT", (struct string_list *)0);
 			if (ip -> client -> alias)
@@ -428,8 +455,13 @@
 				client -> state = S_INIT;
 				/* Set up a timeout to start the initialization
 				   process. */
+#ifdef ENABLE_POLLING_MODE
 				add_timeout (cur_time + random () % 5,
+					     state_link, client, 0, 0);
+#else
+				add_timeout(cur_time + random () % 5,
 					     state_reboot, client, 0, 0);
+#endif
 			}
 		}
 	}
@@ -1353,6 +1385,9 @@
 	int interval;
 	int increase = 1;
 
+	if (interface_active(client -> interface) == 0)
+		return;
+
 	/* Figure out how long it's been since we started transmitting. */
 	interval = cur_time - client -> first_sending;
 
@@ -1458,6 +1493,9 @@
 	struct client_lease *loop;
 	struct client_lease *lp;
 
+	if (interface_active(client -> interface) == 0)
+		return;
+
 	loop = lp = client -> active;
 
 	log_info ("No DHCPOFFERS received.");
@@ -2771,7 +2809,8 @@
 				break;
 			}
 			client -> state = S_INIT;
-			state_reboot (client);
+			if (interface_active(ip))
+				state_reboot(client);
 		}
 	}
 }
@@ -2932,8 +2971,10 @@
 			client -> state = S_INIT;
 			/* Set up a timeout to start the initialization
 			   process. */
-			add_timeout (cur_time + random () % 5,
-				     state_reboot, client, 0, 0);
+			if (interface_active(ip)) {
+				add_timeout(cur_time + random () % 5,
+					     state_reboot, client, 0, 0);
+			}
 		}
 	}
 	return ISC_R_SUCCESS;
@@ -2997,7 +3038,8 @@
 		    break;
 
 		  case server_awaken:
-		    state_reboot (client);
+		    if (interface_active(ip))
+			    state_reboot(client);
 		    break;
 		}
 	    }
@@ -3134,3 +3176,152 @@
 	data_string_forget (&ddns_dhcid, MDL);
 	return rcode;
 }
+
+/* Check to see if there's a wire plugged in */
+int
+interface_active(struct interface_info *ip) {
+#ifdef __FreeBSD__
+	struct ifmediareq ifmr;
+	int *media_list, i;
+	char *ifname;
+	int sock;
+
+	ifname = ip -> name;
+
+	if ((sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0)
+		log_fatal("Can't create interface_active socket");
+
+	(void) memset(&ifmr, 0, sizeof(ifmr));
+	(void) strncpy(ifmr.ifm_name, ifname, sizeof(ifmr.ifm_name));
+
+	if (ioctl(sock, SIOCGIFMEDIA, (caddr_t)&ifmr) < 0) {
+		/*
+		 * Interface doesn't support SIOCGIFMEDIA, presume okay
+		 */
+		close(sock);
+		return (1);
+	}
+	close(sock);
+
+	if (ifmr.ifm_count == 0) {
+		/*
+		 * this is unexpected (to me), but we'll just assume
+		 * that this means interface does not support SIOCGIFMEDIA
+		 */
+		log_fatal("%s: no media types?", ifname);
+		return (1);
+	}
+
+	if (ifmr.ifm_status & IFM_AVALID) {
+		if (ip->ieee802) {
+			if ((IFM_TYPE(ifmr.ifm_active) == IFM_IEEE80211) &&
+			     (ifmr.ifm_status & IFM_ACTIVE))
+				return (1);
+		} else {
+			if (ifmr.ifm_status & IFM_ACTIVE)
+				return (1);
+		}
+	}
+
+	return (0);
+#else /* ifdef __FreeBSD__ */
+
+	return (1);
+#endif /* Other OSs */
+}
+
+#ifdef __FreeBSD__
+set_ieee802 (struct interface_info *ip) {
+
+	struct ieee80211req     ireq;
+	u_int8_t                data[32];
+	int                     associated = 0;
+	int *media_list, i;
+	char *ifname;
+	int sock;
+
+	ifname = ip -> name;
+
+	if ((sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0)
+		log_fatal("Can't create interface_active socket");
+
+	(void) memset(&ireq, 0, sizeof(ireq));
+	(void) strncpy(ireq.i_name, ifname, sizeof(ireq.i_name));
+	ireq.i_data = &data;
+	ireq.i_type = IEEE80211_IOC_SSID;
+	ireq.i_val = -1;
+	/*
+	 * If we can't get the SSID,
+	 * this isn't an 802.11 device.
+	 */
+	if (ioctl(sock, SIOCG80211, &ireq) < 0)
+		ip->ieee802 = 0;
+	else {
+#ifdef DEBUG
+		printf("Device %s has 802.11\n", ifname);
+#endif
+		ip->ieee802 = 1;
+	}
+	close(sock);
+}
+#endif /* __FreeBSD__ */
+
+#ifdef ENABLE_POLLING_MODE
+/* Check the state of the NICs if we have link */
+void state_link (cpp)
+        void *cpp;
+{
+	struct interface_info *ip;
+	struct client_state *client;
+
+#ifdef DEBUG
+	printf("Polling interface status\n");
+#endif
+	for (ip = interfaces; ip; ip = ip -> next) {
+		if (ip->linkstatus == 0 || doinitcheck == 0) {
+			if (interface_active(ip)) {
+#ifdef DEBUG
+				printf("%s: Found Link on interface\n", ip->name);
+#endif
+				for (client = ip -> client;
+				     client; client = client -> next) {
+					add_timeout(cur_time + random () % 5,
+					             state_reboot, client, 0, 0);
+				}
+				ip->linkstatus = 1;
+			} else {
+#ifdef DEBUG
+				printf("%s: No Link on interface\n", ip->name);
+#endif
+				for (client = ip -> client;
+				     client; client = client -> next) {
+					cancel_timeout(state_init, client);
+			 		cancel_timeout(send_discover, client);
+					cancel_timeout(send_request, client);
+					/*
+					 * XXX without this, dhclient does
+					 * not poll on a interface if there
+					 * is no cable plugged in at startup
+					 * time
+					 */
+					if (client -> state == S_INIT) {
+						add_timeout(cur_time + polling_interval,
+						             state_link, client, 0, 0);
+					}
+			 	}
+				ip->linkstatus = 0;
+			}
+		} else {
+			if (interface_active(ip) == 0) {
+#ifdef DEBUG
+				printf("%s: Lost Link on interface\n", ip->name);
+#endif
+				ip->linkstatus = 0;
+			}
+		}
+	}
+	if (doinitcheck)
+		go_daemon ();
+	doinitcheck = 1;
+}
+#endif /* ifdef ENABLE_POLLING_MODE */

==== //depot/projects/trustedbsd/mac/contrib/isc-dhcp/client/scripts/freebsd#5 (text+ko) ====

@@ -2,7 +2,7 @@
 #
 # $Id: freebsd,v 1.13.2.4 2002/06/09 22:37:55 murray Exp $
 #
-# $FreeBSD: src/contrib/isc-dhcp/client/scripts/freebsd,v 1.21 2003/01/15 10:47:32 murray Exp $
+# $FreeBSD: src/contrib/isc-dhcp/client/scripts/freebsd,v 1.22 2003/07/28 22:25:20 mbr Exp $
 
 if [ -x /usr/bin/logger ]; then
 	LOGGER="/usr/bin/logger -s -p user.notice -t dhclient"
@@ -13,13 +13,19 @@
 make_resolv_conf() {
   if [ x"$new_domain_name_servers" != x ]; then
     if [ "x$new_domain_name" != x ]; then
-      echo search $new_domain_name >/etc/resolv.conf
+      ( echo search $new_domain_name >/etc/resolv.conf )
+      exit_status=$?
+    else
+      ( rm /etc/resolv.conf )
+      exit_status=$?
+    fi
+    if [ $exit_status -ne 0 ]; then
+      $LOGGER "WARNING: Unable to update resolv.conf: Error $exit_status"
     else
-      rm /etc/resolv.conf
+      for nameserver in $new_domain_name_servers; do
+       ( echo nameserver $nameserver >>/etc/resolv.conf )
+      done
     fi
-    for nameserver in $new_domain_name_servers; do
-      echo nameserver $nameserver >>/etc/resolv.conf
-    done
   fi
 }
 

==== //depot/projects/trustedbsd/mac/contrib/isc-dhcp/common/dispatch.c#5 (text+ko) ====

@@ -43,7 +43,8 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dispatch.c,v 1.63.2.3 2002/11/17 02:26:57 dhankins Exp $ Copyright (c) 1995-2002 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dispatch.c,v 1.63.2.3 2002/11/17 02:26:57 dhankins Exp $ Copyright (c) 1995-2002 The Internet Software Consortium.  All rights reserved.\n"
+"$FreeBSD: src/contrib/isc-dhcp/common/dispatch.c,v 1.3 2003/07/28 11:49:07 mbr Exp $\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -51,6 +52,10 @@
 struct timeout *timeouts;
 static struct timeout *free_timeouts;
 
+#ifdef ENABLE_POLLING_MODE
+extern int polling_interval;
+#endif
+
 void set_time (u_int32_t t)
 {
 	/* Do any outstanding timeouts. */
@@ -95,11 +100,26 @@
 void dispatch ()
 {
 	struct timeval tv, *tvp;
+#ifdef ENABLE_POLLING_MODE
+	struct timeval *tvp_new;
+#endif
 	isc_result_t status;
+	TIME cur_time;
 
+	tvp = NULL;
+#ifdef ENABLE_POLLING_MODE
+	tvp_new = NULL;
+#endif
 	/* Wait for a packet or a timeout... XXX */
 	do {
 		tvp = process_outstanding_timeouts (&tv);
+#ifdef ENABLE_POLLING_MODE
+		GET_TIME (&cur_time);
+		add_timeout(cur_time + polling_interval, state_link, 0, 0, 0);
+		tvp_new = process_outstanding_timeouts(&tv);
+		if (tvp != NULL && (tvp -> tv_sec > tvp_new -> tv_sec))
+			tvp = tvp_new;
+#endif /* ENABLE_POLLING_MODE */
 		status = omapi_one_dispatch (0, tvp);
 	} while (status == ISC_R_TIMEDOUT || status == ISC_R_SUCCESS);
 	log_fatal ("omapi_one_dispatch failed: %s -- exiting.",

==== //depot/projects/trustedbsd/mac/contrib/isc-dhcp/includes/dhcpd.h#7 (text+ko) ====

@@ -39,6 +39,8 @@
  * ``http://www.isc.org/''.  To learn more about Vixie Enterprises,
  * see ``http://www.vix.com''.   To learn more about Nominum, Inc., see
  * ``http://www.nominum.com''.
+ *
+ * $FreeBSD: src/contrib/isc-dhcp/includes/dhcpd.h,v 1.3 2003/07/28 11:49:07 mbr Exp $
  */
 
 #ifndef __CYGWIN32__
@@ -778,6 +780,8 @@
 	unsigned remote_id_len;		/* Length of Remote ID. */
 
 	char name [IFNAMSIZ];		/* Its name... */
+	int linkstatus;			/* Link status */
+	int ieee802;			/* True if media is ieee802 */
 	int index;			/* Its index. */
 	int rfdesc;			/* Its read file descriptor. */
 	int wfdesc;			/* Its write file descriptor, if
@@ -1853,6 +1857,9 @@
 void send_decline PROTO ((void *));
 
 void state_reboot PROTO ((void *));
+#ifdef ENABLE_POLLING_MODE
+void state_link PROTO (());
+#endif
 void state_init PROTO ((void *));
 void state_selecting PROTO ((void *));
 void state_requesting PROTO ((void *));

==== //depot/projects/trustedbsd/mac/contrib/one-true-awk/FIXES#6 (text+ko) ====

@@ -25,6 +25,52 @@
 This file lists all bug fixes, changes, etc., made since the AWK book
 was sent to the printers in August, 1987.
 
+Jul 29, 2003:
+	fixed (i think) the long-standing botch that included the beginning of
+	line state ^ for RE's in the set of valid characters; this led to a
+	variety of odd problems, including failure to properly match certain
+	regular expressions in non-US locales.  thanks to ruslan for keeping
+	at this one.
+
+Jul 28, 2003:
+	n-th try at getting internationalization right, with thanks to volker
+	kiefel, arnold robbins and ruslan ermilov for advice, though they
+	should not be blamed for the outcome.  according to posix, "."  is the
+	radix character in programs and command line arguments regardless of
+	the locale; otherwise, the locale should prevail for input and output
+	of numbers.  so it's intended to work that way.
+	
+	i have rescinded the attempt to use strcoll in expanding shorthands in
+	regular expressions (cclenter).  its properties are much too
+	surprising; for example [a-c] matches aAbBc in locale en_US but abBcC
+	in locale fr_CA.  i can see how this might arise by implementation
+	but i cannot explain it to a human user.  (this behavior can be seen
+	in gawk as well; we're leaning on the same library.)
+
+	the issue appears to be that strcoll is meant for sorting, where
+	merging upper and lower case may make sense (though note that unix
+	sort does not do this by default either).  it is not appropriate
+	for regular expressions, where the goal is to match specific
+	patterns of characters.  in any case, the notations [:lower:], etc.,
+	are available in awk, and they are more likely to work correctly in
+	most locales.
+
+	a moratorium is hereby declared on internationalization changes.
+	i apologize to friends and colleagues in other parts of the world.
+	i would truly like to get this "right", but i don't know what
+	that is, and i do not want to keep making changes until it's clear.
+
+Jul 4, 2003:
+	fixed bug that permitted non-terminated RE, as in "awk /x".
+
+Jun 1, 2003:
+	subtle change to split: if source is empty, number of elems
+	is always 0 and the array is not set.
+
+Mar 21, 2003:
+	added some parens to isblank, in another attempt to make things
+	internationally portable.
+
 Mar 14, 2003:
 	the internationalization changes, somewhat modified, are now
 	reinstated.  in theory awk will now do character comparisons

==== //depot/projects/trustedbsd/mac/contrib/one-true-awk/FREEBSD-upgrade#6 (text+ko) ====

@@ -1,18 +1,19 @@
-# $FreeBSD: src/contrib/one-true-awk/FREEBSD-upgrade,v 1.5 2002/12/19 04:34:00 obrien Exp $
+# $FreeBSD: src/contrib/one-true-awk/FREEBSD-upgrade,v 1.6 2003/07/30 06:50:31 ru Exp $
 
-Import of the February 1998 version of the "one true awk", as described
+Import of the July 2003 version of the "one true awk", as described
 in "The AWK Programming Language", by Al Aho, Brian Kernighan,
 and Peter Weinberger (Addison-Wesley, 1988, ISBN 0-201-07981-X).
 
-Original source were taken from Brian Kernighan's home page
+Original sources were taken from the Brian Kernighan's home page
 (http://cm.bell-labs.com/who/bwk/) and include bug fixes up thru
-Novembe 29, 2002.
+July 29, 2003.
 
 The following files were removed for this import:
 
 	buildwin.bat
 	makefile.win
 	missing95.c
+	vcvars32.bat
 	ytab.c
 	ytab.h
 	ytabc.bak
@@ -20,4 +21,4 @@
 
 The vendor import was done by:
 
-	cvs import src/contrib/one-true-awk BELL_LABS bwk_20021213
+	cvs import src/contrib/one-true-awk BELL_LABS bwk_20030729

==== //depot/projects/trustedbsd/mac/contrib/one-true-awk/b.c#6 (text+ko) ====

@@ -33,7 +33,7 @@
 #include "awk.h"
 #include "ytab.h"
 
-#define	HAT	(NCHARS-2)	/* matches ^ in regular expr */
+#define	HAT	(NCHARS+2)	/* matches ^ in regular expr */
 				/* NCHARS is 2**n */
 #define MAXLIN 22
 
@@ -282,24 +282,9 @@
 	return c;
 }
 
-static int collate_range_cmp(int a, int b)
-{
-	int r;
-	static char s[2][2];
-
-	if ((uschar)a == (uschar)b)
-		return 0;
-	s[0][0] = a;

>>> TRUNCATED FOR MAIL (1000 lines) <<<


More information about the p4-projects mailing list