ĵC172837 157 297 257 142 123 163 316 151 185 168 230 277 233 146 291 200 198 160 812 125 249 165 1101 361 282 177 468 523 278 272 330 520 329 434 310 289 493 507 294 389 176 884 162 209 234 542 157 567 166 1099 325 662 227 229 278 272 330 520 329 434 310 293 507 294 251 126 2910 156 249 302 184 272 155 155 1914 161 166 196 166 369 389 432 169 263 257 375 185 125 388 192 171 1102 161 315 962 309 608 300 364 512 166 141 226 166 2277 301 141 222 345 164 164 563 564 218 300 322 630 227 258 482 1339 469 201 240 185 129 182 357 153 463 664 101 196 378 279 262 166 151 234 229 202 122 142 573 473 235 214 162 186 155 400 134 193 136 440 129 151 292 K 10 svn:author V 6 marcel K 8 svn:date V 27 2007-10-21T00:04:23.000000Z K 7 svn:log V 201 Add the show command to print the partition information ala gpt(8). Update the manpage accordingly. While here, mention the MBR scheme and add a bugs section. With this commit gpt(8) can be obsoleted. END K 10 svn:author V 6 julian K 8 svn:date V 27 2007-10-21T02:40:28.000000Z K 7 svn:log V 161 This was kthread.9 it has been duplicated to kproc.9 kthread.9 will continue on to describe the coming kthread_xxx functions which will actually make threads. END K 10 svn:author V 6 julian K 8 svn:date V 27 2007-10-21T02:45:57.000000Z K 7 svn:log V 47 Note the temporary removal of these functions. END K 10 svn:author V 6 julian K 8 svn:date V 27 2007-10-21T03:31:40.000000Z K 7 svn:log V 28 Remove out of date comments END K 10 svn:author V 6 julian K 8 svn:date V 27 2007-10-21T04:04:09.000000Z K 7 svn:log V 68 Mark the point where kthread_xxx disappeared and kproc_xxx appeared END K 10 svn:author V 6 julian K 8 svn:date V 27 2007-10-21T04:11:13.000000Z K 7 svn:log V 220 fix up some code for older systems changed by accident in the last commit this whole support for systems earlier than 5.0 should probably be removed but I'll at least FIX it before removing it, so that CVS has it right. END K 10 svn:author V 6 julian K 8 svn:date V 27 2007-10-21T04:17:29.000000Z K 7 svn:log V 56 Note the renaming of kthread_xxx to kproc_xxx in 800002 END K 10 svn:author V 6 julian K 8 svn:date V 27 2007-10-21T04:22:46.000000Z K 7 svn:log V 90 holy shit! that was checked out in RELENG_6.. back it out and put it in the right branch! END K 10 svn:author V 6 julian K 8 svn:date V 27 2007-10-21T04:27:07.000000Z K 7 svn:log V 73 This time to the right branch note the renaming of the kthread_xxx calls END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2007-10-21T05:08:40.000000Z K 7 svn:log V 134 Refer the reader to the elf_update(3) manual page for more information on application control of ELF object layout. MFC after: 1 day END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-10-21T05:15:02.000000Z K 7 svn:log V 182 Change to the original version of the poem titled "The Guy in the Glass," and add the proper attribution. Also add an explanation for the Middle English word used in the first line. END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2007-10-21T05:15:07.000000Z K 7 svn:log V 137 Remove references to the 'e_phnum' field of the ELF header. Instead, point the reader to the elf_getphnum() function. MFC after: 1 day END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-10-21T05:16:52.000000Z K 7 svn:log V 52 Fix a couple of small typos, and remove a duplicate END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-10-21T11:11:07.000000Z K 7 svn:log V 194 Canonicalize naming of local variables for struct ksem and associated labels to 'ks' and 'kslabel' to reflect the convention in posix_sem.c. MFC after: 3 days Obtained from: TrustedBSD Project END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2007-10-21T13:23:32.000000Z K 7 svn:log V 104 Additions from libpcap 0.9.8 unbreak the build. Pointy hat to: mlaier X-MFC after: RELENG_7 buildworld END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2007-10-21T14:05:27.000000Z K 7 svn:log V 102 MFC: bpf.h, rev. 1.48 Additions from libpcap 0.9.8 unbreak the build. Approved by: re (implicit) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2007-10-21T16:38:49.000000Z K 7 svn:log V 65 Add a UUID for ZFS file systems. UUID reused from: Craig Boston END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-10-21T17:03:18.000000Z K 7 svn:log V 716 - Given that we tell the compiler that struct ip is packed and 32-bit aligned, GCC 4.2.1 also generates code for sendudp() that assumes this alignment. GCC 4.2.1 however doesn't 32-bit align wbuf, causing the loader to crash due to an unaligned access of wbuf in sendudp() when netbooting sparc64. Solve this by specifying wbuf as packed and 32-bit aligned, too. As for lastdata and readudp() this currently is no issue when compiled with GCC 4.2.1, though give lastdata the same treatment as wbuf for consistency and possibility of being affected in the future. [1] - Sprinkle const on a lookup table. Reported by: marcel [1] Submitted by: yongari [1] Reviewed by: marcel [1] MFC after: 5 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2007-10-21T17:29:06.000000Z K 7 svn:log V 30 Add a partition type for ZFS. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2007-10-21T19:38:21.000000Z K 7 svn:log V 153 Fix a last-minute, but more importantly, an untested change that made the previous commit non-functional: the usage string was put in the wrong field... END K 10 svn:author V 6 marcel K 8 svn:date V 27 2007-10-21T20:02:57.000000Z K 7 svn:log V 70 Add the freebsd-zfs alias. Both APM and GPT have ZFS partition types. END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-10-21T21:09:55.000000Z K 7 svn:log V 1004 MFC: libexec/rtld-elf/sparc64/reloc.c 1.16, sys/sparc64/sparc64/elf_machdep.c 1.24 - Fix the handling of R_SPARC_OLO10, which is a bit of a special case in the way we implement handling of relocations. As for the kernel part this fixes the loading of lots of modules, which failed to load due to unresolvable symbols when built after the GCC 4.2.0 import. This wasn't due to a change in GCC itself though but one of several changes in configuration done along the import. Specfically, HAVE_AS_REGISTER_PSEUDO_OP, which causes GCC to denote global registers used for scratch purposes and in turn GAS uses R_SPARC_OLO10 relocations for, is now defined. While at it replace some more ELF_R_TYPE which should have been ELF64_R_TYPE_ID but didn't cause problems so far. - Sync a sanity check between kernel and rtld(1) and change it to be maintenance free regarding the type used for the lookup table. - Sprinkle const on lookup tables. - Use __FBSDID. Approved by: re (kensmith) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-10-21T22:17:25.000000Z K 7 svn:log V 263 MFC: archive_write_set_format_cpio.c 1.12 MFC: archive_write_set_format_cpio_newc.c 1.2 Non-regular files should have zero-length bodies. libarchive flags this to clients by updating the entry description when it writes the header. Approved by: re (Ken Smith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-10-21T22:50:11.000000Z K 7 svn:log V 185 Add PRIV_VFS_STAT privilege, which will allow overriding policy limits on the right to stat() a file, such as in mac_bsdextended. Obtained from: TrustedBSD Project MFC after: 3 months END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2007-10-22T03:38:43.000000Z K 7 svn:log V 82 Consistently use the word 'flag' to refer to ELF_F_* constants. MFC after: 1 day END K 10 svn:author V 2 jb K 8 svn:date V 27 2007-10-22T04:12:57.000000Z K 7 svn:log V 376 Add the full module path name to the kld_file_stat structure for kldstat(2). This allows libdtrace to determine the exact file from which a kernel module was loaded without having to guess. The kldstat(2) API is versioned with the size of the kld_file_stat structure, so this change creates version 2. Add the pathname to the verbose output of kldstat(8) too. MFC: 3 days END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-10-22T05:21:05.000000Z K 7 svn:log V 430 Correct an error in vm_map_sync(), nee vm_map_clean(), that has existed since revision 1.1. Specifically, neither traversal of the vm map checks whether the end of the vm map has been reached. Consequently, the first traversal can wrap around and bogusly return an error. This error has gone unnoticed for so long because no one had ever before tried msync(2)ing a region above the stack. Reported by: peter MFC after: 1 week END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-22T05:23:57.000000Z K 7 svn:log V 182 MFC: Improved access permission check treatments. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-22T05:26:28.000000Z K 7 svn:log V 176 MFC: Changed it frees unneeded memory ASAP. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-22T05:28:02.000000Z K 7 svn:log V 234 MFC: Added treatments to prevent readdir infinity loop using with Linux binary compatibility feature. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-22T05:30:40.000000Z K 7 svn:log V 424 MFC: - Added support for vfs_cache on unionfs. As a result, you can use applications that use procfs on unionfs. - Removed unionfs internal cache mechanism because it has vfs_cache support instead. As a result, it just simplified code of unionfs. - Fixed kern/111262 issue. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-22T05:32:07.000000Z K 7 svn:log V 233 MFC: Fixed vnode unlock/vrele untreated issues whenever errors have occurred during some treatments. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-22T05:34:00.000000Z K 7 svn:log V 338 MFC: - It has been become MPSAFE. - Fixed lock panic issue under MPSAFE. - Fixed panic issue whenever it locks vnode with reclaim. - Fixed lock implementations not conforming to vnode_if.src style. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-22T05:35:18.000000Z K 7 svn:log V 214 MFC: Added NULL check code pointed out by Coverity. (via Stanislav Sedov. Thanks) Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-22T05:36:38.000000Z K 7 svn:log V 193 MFC: Fixed un-vrele issue of upper layer root vnode of unionfs. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-22T05:38:29.000000Z K 7 svn:log V 397 MFC: Default copy mode has been changed from traditional-mode to transparent-mode. Some folks who have reported some issues have solved with transparent mode. We guess it is time to change the default copy mode. The transparent-mode is the best in most situations. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-22T05:41:54.000000Z K 7 svn:log V 411 MFC: Added whiteout behavior option. ``-o whiteout=always'' is default mode (it is established practice) and ``-o whiteout=whenneeded'' is less disk-space using mode especially for resource restricted environments like embedded environments. (Contributed by Ed Schouten. Thanks) Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-22T05:44:07.000000Z K 7 svn:log V 198 MFC: This changes give nullfs correctly work with latest unionfs. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-10-22T06:23:46.000000Z K 7 svn:log V 296 Correct an error of omission in the reimplementation of the page cache: vnode_pager_setsize() must handle the case where a file is truncated to a non-page-size-aligned boundary and there is a cached page underlying the new end of file. Reported by: kris, tegge Tested by: kris MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2007-10-22T08:28:24.000000Z K 7 svn:log V 84 Add one of HTC Smartphone/PocketPC device IDs. Tested with Qtek S200 (HTC Prophet). END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-10-22T09:38:44.000000Z K 7 svn:log V 789 1. Determine the location of the rndc* binaries relative to $command so that when using named from the ports (or elsewhere) the proper rndc* commands will be run. 2. Rework the stop routine using ideas from brooks and delphij. Specifically I am duplicating a lot of code from rc.subr's stop routine so that this one will behave more like the one in rc.subr, but use rndc to kill the daemon (or regular kill if that fails). This also avoids the problems related to using killall if rndc fails, which is bad if you're running more than one named on the same box. 3. Take a concept from gshapiro and allow the rndc.key file to be owned by root OR the named_uid user. Although I used different solutions, this commit handles issues raised in: PR: conf/73929 PR: conf/103976 PR: conf/109409 END K 10 svn:author V 2 ru K 8 svn:date V 27 2007-10-22T10:01:58.000000Z K 7 svn:log V 71 Added ".Lb libkse" support to mdoc(7). Reviewed by: deischen, davidxu END K 10 svn:author V 2 ru K 8 svn:date V 27 2007-10-22T10:04:42.000000Z K 7 svn:log V 117 Remove an obsolete paragraph that pthread_single_np(3) is not implemented in libthr. Reviewed by: deischen, davidxu END K 10 svn:author V 2 ru K 8 svn:date V 27 2007-10-22T10:08:01.000000Z K 7 svn:log V 142 Hide the implementation details about multiple threading libraries from the synopses of pthread*(3) manpages. Reviewed by: deischen, davidxu END K 10 svn:author V 2 ru K 8 svn:date V 27 2007-10-22T10:13:38.000000Z K 7 svn:log V 450 - Stop calling libthr alternative as it's now the default threading library. - Now that libpthread is a symlink, it's no longer possible to link applications with libpthread and have libmap.conf(5) select the desired threading library; applications will be linked to the default threading library, libkse or libthr. Remove an obsolete paragraph. - Mention that improvements can be seen compared to libkse. Reviewed by: deischen, davidxu END K 10 svn:author V 2 ru K 8 svn:date V 27 2007-10-22T12:31:23.000000Z K 7 svn:log V 66 Remove the libmytinfow library that's available only in RELENG_6. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-10-22T17:43:43.000000Z K 7 svn:log V 470 Fixes to msdosfs dirtyflag related stuff: - markvoldirty() needs to write to underlying GEOM provider. We have to do that *before* g_access() which sets the GEOM provider to read-only. - Remove dirty flag before free'ing iconv related resources. The dirty flag removal could fail, and it is hard to revert the iconv-free after the fail. - Mark volume as dirty if we have failed to mark it clean for safe. - Other style fixes to the touched functions. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-10-22T17:46:57.000000Z K 7 svn:log V 70 Forced commit to clarify that previous change was: Submitted by: bde END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-10-22T19:01:26.000000Z K 7 svn:log V 1005 Close a race when trying to lookup a gateway route in rt_check(). Specifically, if two threads were doing concurrent lookups and the existing gateway was marked down, the the first thread would drop a reference on the gateway route and then unlock the "root" route while it tried to allocate a new route. The second thread could then also drop a reference on the same gateway route resulting in a reference underflow. Fix this by clearing the gateway route pointer after dropping the reference count but before dropping the lock. Secondly, in this same case, the second thread would overwrite the gateway route pointer w/o free'ing a reference to the route installed by the first thread. In practice this would probably just fix a lost reference that would result in a route never being freed. This fixes panics observed in rt_check() and rtexpunge(). MFC after: 1 week PR: kern/112490 Insight from: mehuljv at yahoo.com Reviewed by: ru (found the "not-setting it to NULL" part) Tested by: several END K 10 svn:author V 2 jb K 8 svn:date V 27 2007-10-22T21:49:39.000000Z K 7 svn:log V 233 Add a BUGS section to note that mount/chroot changes since a module was loaded might make the pathname inaccurate. I wonder if an inode reference should be stored with the pathname to allow a validity check? Suggested by: rwatson@ END K 10 svn:author V 6 grehan K 8 svn:date V 27 2007-10-23T00:52:25.000000Z K 7 svn:log V 566 Cut over to ULE on PowerPC kern/sched_ule.c - Add __powerpc__ to the list of supported architectures powerpc/conf/GENERIC - Swap SCHED_4BSD with SCHED_ULE powerpc/powerpc/genassym.c - Export TD_LOCK field of thread struct powerpc/powerpc/swtch.S - Handle new 3rd parameter to cpu_switch() by updating the old thread's lock. Note: uniprocessor-only, will require modification for MP support. powerpc/powerpc/vm_machdep.c - Set 3rd param of cpu_switch to mutex of old thread's lock, making the call a no-op. Reviewed by: marcel, jeffr (slightly older version) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-10-23T02:30:20.000000Z K 7 svn:log V 130 MFC r1.21 Use ETHER_BPF_MTAP so that the vlan tags are visible to bpf(4) when stacked under a vlan. Approved by: re (kensmith) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-10-23T02:31:39.000000Z K 7 svn:log V 132 MFC r1.105 Use ETHER_BPF_MTAP so that the vlan tags are visible to bpf(4) when bridging a vlan trunk. Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-23T03:22:48.000000Z K 7 svn:log V 182 MFC: Improved access permission check treatments. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-23T03:24:37.000000Z K 7 svn:log V 176 MFC: Changed it frees unneeded memory ASAP. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-23T03:26:37.000000Z K 7 svn:log V 234 MFC: Added treatments to prevent readdir infinity loop using with Linux binary compatibility feature. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-23T03:28:22.000000Z K 7 svn:log V 424 MFC: - Added support for vfs_cache on unionfs. As a result, you can use applications that use procfs on unionfs. - Removed unionfs internal cache mechanism because it has vfs_cache support instead. As a result, it just simplified code of unionfs. - Fixed kern/111262 issue. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-23T03:30:13.000000Z K 7 svn:log V 233 MFC: Fixed vnode unlock/vrele untreated issues whenever errors have occurred during some treatments. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-23T03:32:17.000000Z K 7 svn:log V 338 MFC: - It has been become MPSAFE. - Fixed lock panic issue under MPSAFE. - Fixed panic issue whenever it locks vnode with reclaim. - Fixed lock implementations not conforming to vnode_if.src style. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-23T03:33:43.000000Z K 7 svn:log V 214 MFC: Added NULL check code pointed out by Coverity. (via Stanislav Sedov. Thanks) Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-23T03:34:58.000000Z K 7 svn:log V 197 MFC: Fixed un-vrele issue of upper layer root vnode of unionfs. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-23T03:37:10.000000Z K 7 svn:log V 411 MFC: Added whiteout behavior option. ``-o whiteout=always'' is default mode (it is established practice) and ``-o whiteout=whenneeded'' is less disk-space using mode especially for resource restricted environments like embedded environments. (Contributed by Ed Schouten. Thanks) Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 6 daichi K 8 svn:date V 27 2007-10-23T03:38:32.000000Z K 7 svn:log V 198 MFC: This changes give nullfs correctly work with latest unionfs. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2007-10-23T04:25:43.000000Z K 7 svn:log V 156 - Use pci_enable_busmaster() to turn on busmaster. - Don't test memory/port status and emit an error message; the PCI bus will do this. Reviewed by: sam END K 10 svn:author V 6 matteo K 8 svn:date V 27 2007-10-23T07:35:17.000000Z K 7 svn:log V 31 Avoid leaking file descriptors END K 10 svn:author V 3 bde K 8 svn:date V 27 2007-10-23T10:39:03.000000Z K 7 svn:log V 2816 Forced commit to note that rev.1.179 has the following fixes in addition to the ones mentioned in its log message: For mount-update from rw to ro: - don't misuse the MNT_FORCE flag to break error handling for mark volume to clean. - mark volume back to dirty if g_access() failed (not just if mark volume to clean failed). - clear pm_fmod on success. pm_fmod is bogus, since it is only used to cause a panic in unreachable code when we forgot to clear it here, but something like it will be needed. For mount-update from rw to ro and from ro to rw: - don't forget to lock mp when changing mp->mnt_flag. Giant locking may make this unnecessary, but it is simpler to copy what ffs does. Most of the style changes are near here, to copy ffs's cleaner code. For unmount: - don't misuse the MNT_FORCE flag to break error handling for mark volume to clean. Failure of markvoldirty() is similar to failure of ffs_subupdate() in ffs, and ffs has never used MNT_FORCE to ignore the corresponding error. MNT_FORCE for unmount _should_ force the unmount to succeed, but forcing away of write errors has never been supported. - explicitly return 0 instead of `error' in msdosfs_unmount() after committing to success. This is now just a style fix. With errors from markvoldirty() ignored in the MNT_FORCE case, any error in markvoldirty() caused a nonzero `error' to be returned despite committing to success. Upper layers soon paniced trying to back out of the committed unmount. This bug used to be present in another form in most file systems. VOP_CLOSE() was called after committing to success, so it was necessary to force the VOP_CLOSE() to succeed. This was not done; instead, VOP_CLOSE()'s error code was returned to upper layers so upper layers soon paniced if VOP_CLOSE() failed. I saw this panic only with a buggy device driver with a missing close method, but VOP_CLOSE() can easily fail in theory, with errors like EDQUOT and EIO for unwriteable output. Now the bug has moved. g_vfs_close() is called instead of VOP_CLOSE(), and it returns void so unmount vops cannot even detect errors in it. Hopefully, errors in it only occur when there are other bugs. E.g., with the MNT_FORCE bug in msdosfs_close(), when markvoldirty() in umount failed due to the bugs in mount-update, and when this was the only write error, g_vfs_close() was reached despite the write error being detected earlier; it found one unwriteable buffer which it can only report via printf; then after fixing the panic, umount(2) "succeeded" but the unwriteable buffer was left in the buffer cache and/or VMIO object to spam the console with printfs about failed write attempts, until the next rw mount when the write succeeds, possibly clobbering different media. END K 10 svn:author V 2 ru K 8 svn:date V 27 2007-10-23T12:50:14.000000Z K 7 svn:log V 65 MFC: 1.114: Remove the libmytinfow links. Approved by: re (gnn) END K 10 svn:author V 2 ru K 8 svn:date V 27 2007-10-23T12:53:04.000000Z K 7 svn:log V 157 MFC: Reflect the "libpthread -> libkse", "libthr is the default threding library", and "libpthread is a symlink" changes in manpages. Approved by: re (gnn) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-10-23T14:12:16.000000Z K 7 svn:log V 205 Bump MAC_VERSION to 4 and add an 8.x line in the version table. Version 4 will include significant synchronization to the Mac OS X Leopard version of the MAC Framework. Obtained from: TrustedBSD Project END K 10 svn:author V 2 ru K 8 svn:date V 27 2007-10-23T15:36:41.000000Z K 7 svn:log V 93 MFC: 1.24: Align the warning message with the one in bsd.own.mk. Approved by: re (kensmith) END K 10 svn:author V 2 ru K 8 svn:date V 27 2007-10-23T15:41:34.000000Z K 7 svn:log V 180 MFC: Added MK_INSTALLLIB support and fixed usr.bin/lex/lib/Makefile in case of installing with WITHOUT_INSTALLLIB (e.g. in nanobsd(8)). PR: bin/114200 Approved by: re (kensmith) END K 10 svn:author V 6 obrien K 8 svn:date V 27 2007-10-23T16:07:30.000000Z K 7 svn:log V 60 MFC: rev. 1.61: remove the need to forward declare statics. END K 10 svn:author V 4 ache K 8 svn:date V 27 2007-10-23T17:39:28.000000Z K 7 svn:log V 62 Back out 2nd part of wrong iswascii() change in prev. commit. END K 10 svn:author V 6 julian K 8 svn:date V 27 2007-10-23T17:54:15.000000Z K 7 svn:log V 1817 Take out the single-threading code in fork. After discussions with jeff, alc, (various Ironport people), david Xu, and mostly Alfred (who found the problem) it has been demonstrated that this is not needed for our implementations of threads and represents a real (as in we've seen it happen a lot) deadlock danger. Several points: Since forking multiple threads is not allowed, and posix states that any mutexes owned by othre threads wilol be owned in the child by phantom threads, and therads shouldn't ba accessing shared structures without protection, It can be proved that if this leads to the child process accessing inconsistent data, it's a programming error. The mode of thread_single() being used in fork() is the wrong one. It is using SINGLE_NO_EXIT when it should be using SINGLE_BOUNDARY. Even if this we used, System processes have no need to do it as they have no userland to get inconsistent. This commmit first fixes the above bugs to get tehm correct in CVS. then removes them with #ifdef. This is so that history contains the corrected version should it be needed in the future. This code may be needed if we implement the forkall() syscall from Solaris. It may be needed for other non-posix thread libraries at some time in the future, so let the code sit for a short while while I do some work on it anyhow. This removes a reproducible lockup in NFS. It may be argued that maybe doing a fork while holding a vnode lock may not be the best idea in th efirst place but it shouldn't cause a deadlock. The removal has been running under soak test for several days now. This removal should be seriously considered for 7.0 and RELENG_6. Note. There is code in the core-dumping code that may have a similar problem with coredumping threaded processes MFC After: 4 days END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-10-23T23:41:24.000000Z K 7 svn:log V 64 Make people aware we're entering the FreeBSD-6.3 release cycle. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2007-10-23T23:41:25.000000Z K 7 svn:log V 70 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-10-23T23:45:14.000000Z K 7 svn:log V 99 Cheat slightly - not really 6.3-STABLE yet but it's not 6.2-STABLE either; this is close enough... END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2007-10-23T23:45:15.000000Z K 7 svn:log V 70 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2007-10-24T00:05:52.000000Z K 7 svn:log V 275 Use extended process token. The in kernel process audit state is stored in an extended subject token now. Make sure that we are using the extended data. This fixes the termID for process tokens. Obtained from: TrustedBSD Project Discussed with: rwatson MFC after: 1 week END K 10 svn:author V 4 csjp K 8 svn:date V 27 2007-10-24T00:14:19.000000Z K 7 svn:log V 295 Move where we audit the PID argument such that we unconditionally audit it at the beginning of the syscall. This fixes a problem where the user supplies an invalid process ID which is > 0 which results in the PID argument not being audited. Obtained from: TrustedBSD Project MFC after: 1 week END K 10 svn:author V 4 csjp K 8 svn:date V 27 2007-10-24T00:50:13.000000Z K 7 svn:log V 338 When processing multi-path ip6 routers, place each router entry on its own line. We made this change in traceroute(8) some time ago. This is particularly useful when you are not resolving hostnames since ip6 addresses can be quite long, and lines wrap fairly easily in the multi-path router case. Discussed with: bz MFC after: 1 month END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2007-10-24T01:04:10.000000Z K 7 svn:log V 73 MFC revision 1.87, remove bogus if statement. Approved by: re(kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-10-24T03:53:10.000000Z K 7 svn:log V 170 Stop disabling USB in the PAE kernel config. The USB code has been using bus_dma(9) for quite a while now and has been used on 64-bit archs as well. MFC after: 1 month END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-10-24T04:01:31.000000Z K 7 svn:log V 159 Fix reading of files that use pax 'size' attribute to store size. In particular, bsdtar uses the pax 'size' attribute for any file over 8G. MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-10-24T04:03:25.000000Z K 7 svn:log V 282 Slightly cleanup the 'bootdev' concept on x86 by changing the various macros to treat the 'slice' field as a real part of the bootdev instead of as hack that spans two other fields (adaptor (sic) and controller) that are not used in any modern FreeBSD boot code. MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-10-24T04:13:35.000000Z K 7 svn:log V 93 Reindent the read/write code of bd_realstrategy() so it is more readable. MFC after: 1 week END K 10 svn:author V 4 nyan K 8 svn:date V 27 2007-10-24T11:50:07.000000Z K 7 svn:log V 32 MFC: Optimize for size on pc98. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2007-10-24T11:54:04.000000Z K 7 svn:log V 294 MFi386: revision 1.41 Slightly cleanup the 'bootdev' concept on x86 by changing the various macros to treat the 'slice' field as a real part of the bootdev instead of as hack that spans two other fields (adaptor (sic) and controller) that are not used in any modern FreeBSD boot code. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2007-10-24T12:03:48.000000Z K 7 svn:log V 99 MFi386: revision 1.50 Reindent the read/write code of bd_realstrategy() so it is more readable. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-10-24T12:36:25.000000Z K 7 svn:log V 79 MFC 1.39: Grrr, a fix for the rman_set_rid() stuff I missed in my earlier MFC. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-10-24T12:49:55.000000Z K 7 svn:log V 1008 Rework the read/write support in the bios disk driver some to cut down on duplicated code and support 64-bit LBAs for GPT. - The code to manage an EDD or C/H/S I/O request are now in their own routines. The EDD routine now handles a full 64-bit LBA instead of truncating LBAs to the lower 32-bits. (MBRs and BSD labels only have 32-bit LBAs anyway, so the only LBAs ever passed down were 32-bit). - All of the bounce buffer and retry logic duplicated in bd_read() and bd_write() are merged into a single bd_io() routine that takes an extra direction argument. bd_read() and bd_write() are now simple wrappers around bd_io(). - If a disk supports EDD then always use it rather than only using it if the cylinder is > 1023. Other parts of the boot code already do something similar to this. Also, GPT just uses LBAs, so for a GPT disk it's probably best to ignore C/H/S completely. Always using EDD when it is supported by a disk is an easy way to accomplish this. MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-10-24T12:56:49.000000Z K 7 svn:log V 69 MFC rev. 1.12: Fix various memory leaks. Approved by: re (kensmith) END K 10 svn:author V 5 rafan K 8 svn:date V 27 2007-10-24T14:32:33.000000Z K 7 svn:log V 220 MFC ctype(3) fix for UTF-8 locale. See original commit log for details. PR: 116363 Reported by: Petr Hroudny Patched by: ache Reviewed by: i18n@ Approved by: re (kensmith) OK-ed by: portmgr END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-10-24T19:04:04.000000Z K 7 svn:log V 865 Merge first in a series of TrustedBSD MAC Framework KPI changes from Mac OS X Leopard--rationalize naming for entry points to the following general forms: mac__ mac__check_ The previous naming scheme was inconsistent and mostly reversed from the new scheme. Also, make object types more consistent and remove spaces from object types that contain multiple parts ("posix_sem" -> "posixsem") to make mechanical parsing easier. Introduce a new "netinet" object type for certain IPv4/IPv6-related methods. Also simplify, slightly, some entry point names. All MAC policy modules will need to be recompiled, and modules not updates as part of this commit will need to be modified to conform to the new KPI. Sponsored by: SPARTA (original patches against Mac OS X) Obtained from: TrustedBSD Project, Apple Computer END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-10-24T20:20:41.000000Z K 7 svn:log V 216 silence complaint about not loading the wlan_scan_monitor module; it does not exist and is not needed as monitor mode operation has always required setting the current channel Reviewed by: thompsa MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-10-24T20:51:44.000000Z K 7 svn:log V 512 Add ABI backwards compatibility to the FreeBSD 4/5/6 versions of the PCIOCGETCONF, PCIOCREAD and PCIOCWRITE IOCTLs, which was broken with the introduction of PCI domain support. As the size of struct pci_conf_io wasn't changed with that commit, this unfortunately requires the ABI of PCIOCGETCONF to be broken again in order to be able to provide backwards compatibility to the old version of that IOCTL. Requested by: imp Discussed with: re (kensmith) Reviewed by: PCI maintainers (imp, jhb) MFC after: 5 days END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2007-10-24T20:57:17.000000Z K 7 svn:log V 204 Properly drop the pf mutex around all copyout (consistency still protected by the sx) and avoid a WITNESS panic. Overlooked during last import. Reported and tested by: Max N. Boyarov MFC after: 3 days END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-10-24T20:58:06.000000Z K 7 svn:log V 269 MFC fortunes 1.242: The original version of "The Guy in the Glass" with proper attribution. See also http://www.theguyintheglass.com/ MFC fortunes 1.243, fortunes-o.real 1.23, and limerick 1.12: Fix a few small typos and remove a duplicate Approved by: re (kensmith) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-10-24T21:09:34.000000Z K 7 svn:log V 417 Bring all files up to date with HEAD, which includes: 1. Misc. typo fixes 2. Lots of duplicate removal in the limerick file 3. Some updates to freebsd-tips And most recently: MFC fortunes 1.242: The original version of "The Guy in the Glass" with proper attribution. See also http://www.theguyintheglass.com/ MFC fortunes 1.243, fortunes-o.real 1.23, and limerick 1.12: Fix a few small typos and remove a duplicate END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-10-24T21:15:54.000000Z K 7 svn:log V 70 MFC r1.181 Check for multicast destination on bpf injected packets. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-10-24T21:16:22.000000Z K 7 svn:log V 49 Update copyright attribution. MFC after: 3 days END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-10-24T21:19:02.000000Z K 7 svn:log V 129 MFC if_lagg.c r1.20, if_lagg.h r1.11 Fix two panics in lagg. Updating a pointer with shared locking and a double mbuf free. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2007-10-24T21:19:03.000000Z K 7 svn:log V 70 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-10-24T21:33:00.000000Z K 7 svn:log V 2183 First cut at support for booting a GPT labeled disk via the BIOS bootstrap on i386 and amd64 machines. The overall process is that /boot/pmbr lives in the PMBR (similar to /boot/mbr for MBR disks) and is responsible for locating and loading /boot/gptboot. /boot/gptboot is similar to /boot/boot except that it groks GPT rather than MBR + bsdlabel. Unlike /boot/boot, /boot/gptboot lives in its own dedicated GPT partition with a new "FreeBSD boot" type. This partition does not have a fixed size in that /boot/pmbr will load the entire partition into the lower 640k. However, it is limited in that it can only be 545k. That's still a lot better than the current 7.5k limit for boot2 on MBR. gptboot mostly acts just like boot2 in that it reads /boot.config and loads up /boot/loader. Some more details: - Include uuid_equal() and uuid_is_nil() in libstand. - Add a new 'boot' command to gpt(8) which makes a GPT disk bootable using /boot/pmbr and /boot/gptboot. Note that the disk must have some free space for the boot partition. - This required exposing the backend of the 'add' function as a gpt_add_part() function to the rest of gpt(8). 'boot' uses this to create a boot partition if needed. - Don't cripple cgbase() in the UFS boot code for /boot/gptboot so that it can handle a filesystem > 1.5 TB. - /boot/gptboot has a simple loader (gptldr) that doesn't do any I/O unlike boot1 since /boot/pmbr loads all of gptboot up front. The C portion of gptboot (gptboot.c) has been repocopied from boot2.c. The primary changes are to parse the GPT to find a root filesystem and to use 64-bit disk addresses. Currently gptboot assumes that the first UFS partition on the disk is the / filesystem, but this algorithm will likely be improved in the future. - Teach the biosdisk driver in /boot/loader to understand GPT tables. GPT partitions are identified as 'disk0pX:' (e.g. disk0p2:) which is similar to the /dev names the kernel uses (e.g. /dev/ad0p2). - Add a new "freebsd-boot" alias to g_part() for the new boot UUID. MFC after: 1 month Discussed with: marcel (some things might still change, but am committing what I have so far) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-10-24T21:36:09.000000Z K 7 svn:log V 206 MFC revisions 1.13 of NETWORKING and 1.37 of resolv: 1. Make resolv order deterministic by REQUIRE'ing it in NETWORKING, and having resolv REQUIRE netif. 2. Tighten up the code and fix whitespace in resolv END K 10 svn:author V 6 cognet K 8 svn:date V 27 2007-10-24T22:24:32.000000Z K 7 svn:log V 46 Correct a comment, this was not true anymore. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2007-10-24T22:26:54.000000Z K 7 svn:log V 126 Handle the case where PHYSADDR != KERNPHYSADDR (ie we do not load the kernel at the beginning of the RAM). MFC After: 1 week END K 10 svn:author V 6 cognet K 8 svn:date V 27 2007-10-24T23:12:19.000000Z K 7 svn:log V 249 In ate_get_mac(), try to get the mac address in the right order, at least in the same order as it's set in ate_set_mac. I remember a discussion about this on -arm, but apparently nothing was done. Warner, is this wrong ? X-MFC After: proper review END K 10 svn:author V 6 cognet K 8 svn:date V 27 2007-10-24T23:41:46.000000Z K 7 svn:log V 69 KERNBASE should really be KERNVIRTADDR there too. MFC after: 1 week END K 10 svn:author V 8 deischen K 8 svn:date V 27 2007-10-24T23:53:20.000000Z K 7 svn:log V 67 MFC: Remove symbols that should not be exported. Approved by: re@ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2007-10-25T03:52:42.000000Z K 7 svn:log V 468 MFC of 1.11 Teach makewhatis.c to treat .SS with the same severity as .SH. At least one port (net-mgmt/net-snmp) creates man-pages which are in the format: .SH NAME The Net-SNMP agent \- The snmp agent responds to SNMP queries from manag ement stations. .PP .SS "Modules" At this moment, makewhatis determines the end of the .SH NAME section as where it finds .SH again, but there is none here, is it "terminated" by the .SS. PR: bin/116706 Submitted by: edwin@ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2007-10-25T03:53:46.000000Z K 7 svn:log V 469 MFC of 1.11 Teach makewhatis.c to treat .SS with the same severity as .SH. At least one port (net-mgmt/net-snmp) creates man-pages which are in the format: .SH NAME The Net-SNMP agent \- The snmp agent responds to SNMP queries from manag ement stations. .PP .SS "Modules" At this moment, makewhatis determines the end of the .SH NAME section as where it finds .SH again, but there is none here, is it "terminated" by the .SS. PR: bin/116706 Submitted by: edwin@ END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2007-10-25T06:09:15.000000Z K 7 svn:log V 120 MFC: syscons.c rev. 1.453 and syscons.h rev. 1.88 Serialize output routine of terminal emulator (te_puts()) by a lock. END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2007-10-25T06:10:19.000000Z K 7 svn:log V 202 Temporary fix for polling. - fwohci_arcv() has a problem if the number of packets to be processed is limited. - RELENG_7 and -current already have a same workaround. Reported by: ikob PR: kern/85434 END K 10 svn:author V 5 rafan K 8 svn:date V 27 2007-10-25T06:45:29.000000Z K 7 svn:log V 227 - Add a note about ctype(3) breakage. A proper fix is being working on, should be committed soon. Before that, advice users not to upgrade world. Also add instructions about how to recover from it. Discussed with: delphij END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-10-25T07:05:38.000000Z K 7 svn:log V 537 Load the bytes into the EMAC's MAC address register in the proper order. The kernel used to shuffle them around to get things right, but that was recently fixed. This makes our boot loader match the behavior of most other boot loaders for the atmel parts. This bug was inherited from the Kwikbyte loader that we started from. This bug was discovered by Bj.ANvrn KNvnig back in June, but fell on the floor. He provided patches to the kernel, include backwards compatibility options that were similar to Olivier's if_ate.c commit. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-10-25T07:49:47.000000Z K 7 svn:log V 130 Further MAC Framework cleanup: normalize some local variable names and clean up some comments. Obtained from: TrustedBSD Project END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2007-10-25T08:23:08.000000Z K 7 svn:log V 161 Remove some debugging code that, while useful, doesn't belong in the committed version. While here, expand a macro only used once. Discussed with/oked by: bde END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-10-25T11:31:11.000000Z K 7 svn:log V 385 Consistently name functions for mac_ as _whatever rather than mac__whatever, as this shortens the names and makes the code a bit easier to read. When dealing with label structures, name variables 'mb', 'ml', 'mm rather than the longer 'mac_biba', 'mac_lomac', and 'mac_mls', likewise making the code a little easier to read. Obtained from: TrustedBSD Project END K 10 svn:author V 3 rrs K 8 svn:date V 27 2007-10-25T12:27:06.000000Z K 7 svn:log V 1245 - fix sctp_ifn initial refcount issue (prevents deletion) - fix a bug during cookie collision that prevented an association from coming up in a specific restart case. - Fix it so the shutdown-pending flag gets removed (this is more for correctness then needed) when we enter shutdown-sent or shutdown-ack-sent states. - Fix a bug that caused the receiver to sometimes NOT send a SACK when a duplicate TSN arrived. Without this fix it was possible for the association to fall down if the - Deleted primary destination is also stored when SCTP_MOBILITY_BASE. (Previously, it is stored when only SCTP_MOBILITY_FASTHANDOFF) - Fix a locking issue where we might call send_initiate_ack() and incorrectly state the lock held/not held. Also fix it so that when we release the lock the inp cannot be deleted on us. - Add the debug option that can cause the stack to panic instead of aborting an assoc. This does not and should never show up in options but is useful for debugging unexpected aborts. - Add cumack_log sent to track sending cumack information for the debug case where we are running a special log per assoc. - Added extra () aroudn sctp_sbspace macro to avoid compile warnings. Approved by: re@freebsd.org (Ken Smith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-10-25T12:34:14.000000Z K 7 svn:log V 372 Rename mac_associate_nfsd_label() to mac_proc_associate_nfsd(), and move from mac_vfs.c to mac_process.c to join other functions that setup up process labels for specific purposes. Unlike the two proc create calls, this call is intended to run after creation when a process registers as the NFS daemon, so remains an _associate_ call.. Obtained from: TrustedBSD Project END K 10 svn:author V 6 obrien K 8 svn:date V 27 2007-10-25T12:38:02.000000Z K 7 svn:log V 105 Vendor import of bwk's 23-Oct-2007 release. This includes fixes for FreeBSD PR's: bin/104795, bin/100443 END K 10 svn:author V 6 obrien K 8 svn:date V 27 2007-10-25T12:38:02.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r172958, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2007-10-25T12:38:03.000000Z K 7 svn:log V 89 This commit was manufactured by cvs2svn to create tag 'one-true-awk-vendor-bwk_20071023'. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2007-10-25T12:38:34.000000Z K 7 svn:log V 34 Document the bwk_20071023 import. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2007-10-25T12:43:22.000000Z K 7 svn:log V 87 The AWK 23-Oct-2007 release includes fixes for FreeBSD PR's bin/104795 and bin/100443. END K 10 svn:author V 5 rafan K 8 svn:date V 27 2007-10-25T12:45:39.000000Z K 7 svn:log V 262 MFC lib/Makefile rev. 1.221 Make sure libc is installed before all other shared libraries. Other libraries might depend on versioned symbols from libc. This fixes breakage introduced by ctype(3) MFC. Discussed with: delphij, ru Approved by: re (kensmith) END K 10 svn:author V 5 rafan K 8 svn:date V 27 2007-10-25T12:49:21.000000Z K 7 svn:log V 59 - The breakage of ctype(3) is fixed now. Update the entry. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2007-10-25T12:57:46.000000Z K 7 svn:log V 369 MFi386: part of revision 1.51 Rework the read/write support in the bios disk driver some to cut down on duplicated code. - All of the bounce buffer and retry logic duplicated in bd_read() and bd_write() are merged into a single bd_io() routine that takes an extra direction argument. bd_read() and bd_write() are now simple wrappers around bd_io(). END K 10 svn:author V 3 mtm K 8 svn:date V 27 2007-10-25T14:04:19.000000Z K 7 svn:log V 571 MFC: o Implement the stop_boot subroutine [1]. This subroutine can be used by scripts in rc.d to stop rc(8) from booting into multi-user mode when a critical or severe error condition is encountered. o Modify scripts in etc/rc.d that already implemented this functionality independently. o Document it. [1] - This subroutine was implemented in FreeBSD in rc.d/fsck. I moved it to rc.subr(8). Our version differs slightly in that it takes an optional argument to stop the boot even if "autoboot" is not set. Obtained from: NetBSD END K 10 svn:author V 6 obrien K 8 svn:date V 27 2007-10-25T14:16:07.000000Z K 7 svn:log V 7 Align. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2007-10-25T14:31:52.000000Z K 7 svn:log V 102 MFi386: part of 1.52 Split the pc98_partition specific routine in bd_opendisk() into bd_open_pc98(). END K 10 svn:author V 3 mtm K 8 svn:date V 27 2007-10-25T14:36:12.000000Z K 7 svn:log V 285 MFC: Eliminate global symbols starting with an underscore from rc.d scripts, except for mdconfig* and jail. Such symbols are reserved for the rc.subr internals. Most scripts can be fixed by just declaring _foo symbols as local: few scripts actually need them to be global. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-10-25T14:37:37.000000Z K 7 svn:log V 182 Normalize TCP syncache-related MAC Framework entry points to match most other entry points in the form mac__method(). Discussed with: csjp Obtained from: TrustedBSD Project END K 10 svn:author V 3 mtm K 8 svn:date V 27 2007-10-25T14:58:33.000000Z K 7 svn:log V 169 MFC: rc.d/var rc.d/tmp: Remove unnecessary subshell constructs. rc.d/clean rc.d/initrandom: Remove unnecessary semi-colon at the end of a command line. END K 10 svn:author V 3 mtm K 8 svn:date V 27 2007-10-25T16:48:16.000000Z K 7 svn:log V 74 Partial MFC of rev. 1.18: The mountd daemon creates a pidfile so use it. END K 10 svn:author V 8 takawata K 8 svn:date V 27 2007-10-25T16:49:07.000000Z K 7 svn:log V 54 Turn EC into poll mode before device_resume invoked . END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-10-25T16:53:35.000000Z K 7 svn:log V 141 Break out of the I/O retry loop as soon as an I/O operation succeeds rather than always retrying operations three times. Submitted by: nyan END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-10-25T16:55:00.000000Z K 7 svn:log V 136 MFC: Clear the flags in the persistent keyboard data for ukbd0 when init_keyboard() or kbd_register() fail. Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-10-25T16:56:15.000000Z K 7 svn:log V 109 MFC: Clear the flags in the persistent keyboard data for ukbd0 when init_keyboard() or kbd_register() fails. END K 10 svn:author V 3 mtm K 8 svn:date V 27 2007-10-25T16:59:06.000000Z K 7 svn:log V 30 Remove unnecessary whitespace END K 10 svn:author V 8 takawata K 8 svn:date V 27 2007-10-25T17:03:07.000000Z K 7 svn:log V 45 Fix variable name to be clear what it means. END K 10 svn:author V 3 mtm K 8 svn:date V 27 2007-10-25T17:20:22.000000Z K 7 svn:log V 480 MFC: rev. 1.6 and 1.7 revision 1.6 date: 2007/05/17 11:33:08; author: mtm; state: Exp; lines: +3 -3 o Use the --detach option to kdc(8) instead of using the shell background operator '&'. PR: conf/102722 o No need to include $kerberos5_server_flags in $command_args as rc.subr(8) will take care of this. revision 1.7 Partial backout of rev. 1.6, but instead of putting kerberos5_server_flags back in command_args, put it where rc.subr(8) expects it: kerberos5_flags. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-10-25T17:30:18.000000Z K 7 svn:log V 380 Don't attach to the "IBM0057" ID. This ID is used by IBM machines for the PS/2 mouse controller. Thus, when acpi_ibm(4) claimed the mouse device, the mouse would stop working. The one ACPI dump of an R40 that I've looked at includes an HKEY device with the proper "IBM0068" ID, so I'm not sure how the "IBM0057" ID could have helped at all. MFC after: 1 week Approved by: njl END K 10 svn:author V 5 erwin K 8 svn:date V 27 2007-10-25T17:39:19.000000Z K 7 svn:log V 140 Change a tab back to a space between #define and __FreeBSD_version. This breaks OSVERSION determination in all ports. Reviewed by: rodrigc END K 10 svn:author V 3 mtm K 8 svn:date V 27 2007-10-25T18:02:10.000000Z K 7 svn:log V 121 MFC: rev. 1.14 Check if /sbin/nextboot exists before running it. PR: 93466 Submitted by: Mats Palmgren END K 10 svn:author V 3 mtm K 8 svn:date V 27 2007-10-25T18:10:05.000000Z K 7 svn:log V 70 Nuke rc.d/nfslocking which has been superceeded by rc.d/{lockd,statd} END K 10 svn:author V 4 lulf K 8 svn:date V 27 2007-10-25T19:32:48.000000Z K 7 svn:log V 93 - Show that pjd@ and kib@ are my mentors, and that I work in src. Approved by: kib (mentor) END K 10 svn:author V 4 lulf K 8 svn:date V 27 2007-10-25T19:35:09.000000Z K 7 svn:log V 62 - Add my birthday to the calendar. Approved by: kib (mentor) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-10-25T19:52:22.000000Z K 7 svn:log V 303 Bump __FreeBSDversion for wide and single byte ctype separation MFC. While the change does not break backward binary compatibility, it will potentially cause programs compiled on a new world not to run on older RELENG_6 systems, so we have to make it possible to distungish between old and new states. END K 10 svn:author V 8 takawata K 8 svn:date V 27 2007-10-25T20:02:38.000000Z K 7 svn:log V 37 More style nit. Pointed out by: njl. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-10-25T20:29:46.000000Z K 7 svn:log V 97 Bump __FreeBSDversion for wide and single byte ctype separation MFC. Approved by: re (kensmith) END K 10 svn:author V 6 cognet K 8 svn:date V 27 2007-10-25T22:43:17.000000Z K 7 svn:log V 41 Oooops, get the end of the memory right. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-10-25T22:45:25.000000Z K 7 svn:log V 343 Sort entry points in mac_framework.h and mac_policy.h alphabetically by primary object type, and then by secondarily by method name. This sorts entry points relating to particular objects, such as pipes, sockets, and vnodes together. Sponsored by: SPARTA (original patches against Mac OS X) Obtained from: TrustedBSD Project, Apple Computer END K 10 svn:author V 6 cognet K 8 svn:date V 27 2007-10-25T22:50:25.000000Z K 7 svn:log V 34 Fix signedness to make gcc happy. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2007-10-25T22:57:19.000000Z K 7 svn:log V 56 Move some KB920x-specific options into the KB920x file. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2007-10-25T23:02:42.000000Z K 7 svn:log V 196 Add an option to be able to override the value of the AT91 master clock frequency. It'd be better to be able to calculate it at runtime, but we need the information very early, to setup the uart. END