Ĥ=129841 159 240 122 135 284 122 1465 409 371 368 156 211 536 244 409 975 194 346 266 142 200 409 231 199 307 499 160 276 311 166 124 139 156 219 224 101 193 113 128 128 128 139 128 194 193 446 286 483 586 421 183 261 194 503 491 125 132 124 121 177 177 176 165 224 154 269 3613 247 268 606 197 638 195 328 891 386 457 340 161 149 218 487 278 374 119 214 205 135 146 158 165 208 149 151 162 180 138 278 193 215 148 201 165 140 148 139 237 330 519 173 1878 404 170 299 116 1069 756 183 294 154 239 265 291 266 486 2045 190 242 1144 168 185 290 176 270 266 168 212 154 172 2454 241 483 415 318 176 749 202 270 119 258 563 131 187 196 645 135 156 113 290 290 K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-05-29T15:52:39.000000Z K 7 svn:log V 143 Don't release Giant until after the call to vput() in nfsrv_setattr(). Unless running with debug.mpsafenet=1, this was not actually a problem. END K 10 svn:author V 6 marius K 8 svn:date V 27 2004-05-29T16:54:59.000000Z K 7 svn:log V 27 Spelling fix in a comment. END K 10 svn:author V 6 marius K 8 svn:date V 27 2004-05-29T17:45:45.000000Z K 7 svn:log V 40 Move __FBSDID out from under a comment. END K 10 svn:author V 6 marius K 8 svn:date V 27 2004-05-29T18:09:10.000000Z K 7 svn:log V 188 Remove double __FBSDID and move the remaining one into a common place after the license(s) and before the driver comment (the latter only in drivers not having __FBSDID at that location). END K 10 svn:author V 6 marius K 8 svn:date V 27 2004-05-29T18:13:44.000000Z K 7 svn:log V 27 Spelling fix in a comment. END K 10 svn:author V 6 marius K 8 svn:date V 27 2004-05-29T18:23:26.000000Z K 7 svn:log V 1368 DP83840A on hme(4) don't advertise their media capabilities themselves properly. This causes the autonegotiation to e.g. never establish a 100baseTX full-duplex link. The solution to this problem is to manually write the capabilities from the BMSR to the ANAR every time a media change occurs, even when already in autonegotiation mode. The NetBSD way of doing this is to set their MIIF_FORCEANEG flag in the NIC driver. This causes mii_phy_setmedia() to call mii_phy_auto() (which will set the ANAR according to the BMSR) even when the PHY alread is in autonegotiation mode. However, while doing the same on FreeBSD (which involves porting the MIIF_FORCEANEG flag and converting nsphy.c to use mii_phy_setmedia()) fixes autonegotiation, using mii_phy_setmedia() causes this driver to no longer work properly in the other modes. Another drawback of that approach is that this will also force writing the ANAR on other PHYs whose drivers use mii_phy_setmedia() and which are used with a NIC whose driver sets MIIF_FORCEANEG (e.g. hme(4) is known to be used together with 3 different PHYs while only the DP83840A require this workaround). So instead of moving to MIIF_FORCEANEG, just call mii_phy_auto() in nsphy_service() unconditionally when hanging off of a hme(4) and serving a media change This is part 1/2 of fixing autonegotiation on hme(4) using DP83840A PHYs. END K 10 svn:author V 6 marius K 8 svn:date V 27 2004-05-29T18:29:53.000000Z K 7 svn:log V 313 In hme_init() call mii_mediachg() to make sure the current media is set. This is part 2/2 of fixing autonegotiation on hme(4) using DP83840A PHYs. It appears to also fix the occasional problems to establish a link on hme(4) using LU6612 PHYs and shouldn't hurt on those using QS6612 PHYs. Obtained from: NetBSD END K 10 svn:author V 5 maxim K 8 svn:date V 27 2004-05-29T18:39:27.000000Z K 7 svn:log V 276 o Implement -U flag: run command as user which exists only in jail. o getpwnam(3) returns NULL and does not set errno when the user does not exist. Bail out with "no such user" instead of "Unknown error: 0". PR: bin/67262 Submitted by: demon (-U flag) MFC after: 3 weeks END K 10 svn:author V 4 csjp K 8 svn:date V 27 2004-05-29T21:03:00.000000Z K 7 svn:log V 274 Remove constant which makes the assumption that the length of _PATH_DEV will never change. In the un-likely event that _PATH_DEV should ever change, watch(8) would have broke because of a mis-generated device name. Approved by: bmilekic (mentor) Pointed out by: Yvan Boily END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2004-05-29T22:34:08.000000Z K 7 svn:log V 62 Fix build with ndisulator: Add prototype for my_strcasecmp(). END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2004-05-29T23:14:03.000000Z K 7 svn:log V 113 Update a couple of comments. PR: 67139 Submitted by: Xin LI <[3]delphij@FreeBSD.org.cn> Obtained from: OpenBSD END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2004-05-29T23:24:18.000000Z K 7 svn:log V 438 Fix some bugs that don't manifest themselves in practice. 1) Don't check for getopt returning '?', we have a default case. 2) Check if the priority is LOG_KERN correctly - in practice LOG_KERN is 0, so it makes no difference. OpenBSD fixed a different nearby bug that we don't have 'cos our definition of LOG_MAKEPRI is different to OpenBSD's. Copy a comment from OpenBSD, observing that LOG_KERN is 0. Inspired by PR: 67139 END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2004-05-29T23:27:50.000000Z K 7 svn:log V 146 Exit with a warning if the path to one of the logging sockets is too long, rather than silently truncating them. PR: 67139 Inspired by: OpenBSD END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2004-05-29T23:40:30.000000Z K 7 svn:log V 311 Some string fixes. 1) Use strncpy on strings out of utmp. 2) Avoid running off the start of one string while removing white space. (I've used slightly different code to OpenBSD here.) 3) Ignore trailing spaces in the priority. PR: 67139 Submitted by: Xin LI Obtained from: OpenBSD END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2004-05-30T00:02:19.000000Z K 7 svn:log V 877 Try to be more careful about using using the file descriptor f_file. Syslogd should ensure that f_file is a valid file descriptor when f_type is FILE, CONSOLE, TTY and for a PIPE where f_pid > 0. If the descriptor is closed/invalid then the type should be set to UNUSED or the pid should be set to 0. To this end: 1) Don't close(f->f_file) if we can't send a message to a remote host because the file descriptor used for remote logging is stored in finet, not in f->f_file. f->f_file is probably uninitialised, so I guess we usually end up closing fd 0. 2) Don't close PIPE file descriptors if they are invalid. 3) If the call to p_open fails, don't set the pid. The OpenBSD patches in this area set f_file to -1 after the fd is closed and then avoids calling close if f_file < 0. I haven't done this, but it might be a good idea too. Inspired by: PR 67139/OpenBSD END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2004-05-30T00:09:43.000000Z K 7 svn:log V 97 Permit (but ignore) -Z with -x or -t, now that libarchive recognizes and decompresses .Z format. END K 10 svn:author V 3 hmp K 8 svn:date V 27 2004-05-30T00:42:38.000000Z K 7 svn:log V 253 Correct typo, vm_page_list_find() is called vm_pageq_find() for quite a long time, i.e., since the cleanup of the VM Page-queues code done two years ago. Reviewed by: Alan Cox , Matthew Dillon END K 10 svn:author V 6 sanpei K 8 svn:date V 27 2004-05-30T01:48:04.000000Z K 7 svn:log V 170 check interface number Kyocera AH-K3001V has 2 data interface. But we could use only one interface(id = 0) PR: kern/66779 Submitted by: Togawa Satoshi END K 10 svn:author V 6 scottl K 8 svn:date V 27 2004-05-30T04:01:29.000000Z K 7 svn:log V 47 Use a unique malloc type rather than M_DEVBUF. END K 10 svn:author V 3 alc K 8 svn:date V 27 2004-05-30T04:49:39.000000Z K 7 svn:log V 107 MFi386 revision 1.6 Reenable ithread preemption for interrupts that occur while executing in the kernel. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2004-05-30T08:47:12.000000Z K 7 svn:log V 312 Remove the macros for creal{,f} and cimag{,f}. They failed to convert their arguments to the needed type and so the result type depended on the argument type. Fixing them isn't really worth the effort because GCC emits the same assembler code with or without them. Not minded by: ru Approved by: das (mentor) END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2004-05-30T08:54:27.000000Z K 7 svn:log V 134 The file pt_tcplisten.c lacks the $FreeBSD$ keyword. Use the opportunity to change all files to __FBSDID. Approved by: das (mentor) END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2004-05-30T08:59:10.000000Z K 7 svn:log V 102 Include rather than for string function prototypes. Approved by: das (mentor) END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2004-05-30T09:21:56.000000Z K 7 svn:log V 210 Add implementations for cimag{,f,l}, creal{,f,l} and conj{,f,l}. They are needed for cases where GCC's builtin functions cannot be used and for compilers that don't know about them. Approved by: das (mentor) END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2004-05-30T10:04:03.000000Z K 7 svn:log V 401 A log file name may now be prefixed by a '-' if it should not be explicitly fsynced after kernel messages are logged. This option should be syntax compatible with a similar option in Linux syslogd. I've made some small changes to Pekka's patch, hoepfully I haven't goofed anything. PR: 66790 Submitted by: Pekka Savola Obtained from: Martin Schulze's syslogd MFC after: 1 month END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2004-05-30T10:10:41.000000Z K 7 svn:log V 63 Use a better way to calculate POINTER_WIDTH suggested by pjd@. END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2004-05-30T10:34:58.000000Z K 7 svn:log V 178 Also terminate program names if we hit a '/' - this is to be slightly more friendly to postfix log messages. PR: 50912 Submitted by: Stanislav Lapshansky END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2004-05-30T10:53:46.000000Z K 7 svn:log V 213 MFC: 1.126 Remove the requirement that the "discard" service be defined. 1.125 request_init pairs terminated by a 0 key. 1.124 Warn if inetd's config file doesn't exist. 1.123 Rename 'int log' to avoid shadowing. END K 10 svn:author V 6 sanpei K 8 svn:date V 27 2004-05-30T12:21:55.000000Z K 7 svn:log V 71 MFC 1.49-1.51: add support Kyocera AH-K3001V (cellular phone in Japan) END K 10 svn:author V 6 sanpei K 8 svn:date V 27 2004-05-30T12:23:34.000000Z K 7 svn:log V 29 Sync to 1.11.2.58 of usbdevs END K 10 svn:author V 4 nyan K 8 svn:date V 27 2004-05-30T13:56:06.000000Z K 7 svn:log V 46 Merged from sys/dev/fdc/fdc.c revision 1.272. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-05-30T15:16:07.000000Z K 7 svn:log V 64 struct cpu_nameclass is a private to identcpu.c, move it there. END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2004-05-30T16:09:12.000000Z K 7 svn:log V 121 Use miligram rather than mg in the definition of carats. PR: 61451 Submitted by: Tony Monroe END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2004-05-30T17:03:48.000000Z K 7 svn:log V 126 Make the comment for DLT_NULL slightly more accurate. PR: 62272 Submitted by: Radim Kolar MFC after: 1 week END K 10 svn:author V 2 le K 8 svn:date V 27 2004-05-30T17:40:39.000000Z K 7 svn:log V 10 Fix typo. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-05-30T17:57:46.000000Z K 7 svn:log V 100 Add some missing includes which are masked by the one on death-row in END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-05-30T18:04:06.000000Z K 7 svn:log V 21 Zap a redundant NULL END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-05-30T20:00:41.000000Z K 7 svn:log V 36 Add missing includes END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-05-30T20:08:47.000000Z K 7 svn:log V 36 Add missing includes END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-05-30T20:27:19.000000Z K 7 svn:log V 36 add missing #include END K 10 svn:author V 5 brian K 8 svn:date V 27 2004-05-30T20:32:00.000000Z K 7 svn:log V 45 Describe pkg_version_index Reviewed by: joe END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-05-30T20:34:58.000000Z K 7 svn:log V 36 Add missing #include END K 10 svn:author V 3 alc K 8 svn:date V 27 2004-05-30T20:48:15.000000Z K 7 svn:log V 101 Remove a stale comment: PG_DIRTY and PG_FILLED were removed in revisions 1.17 and 1.12 respectively. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2004-05-30T22:40:28.000000Z K 7 svn:log V 98 Turn down the queue size by 8 until I can figure out why the 512th command keeps on getting lost. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-05-30T22:41:43.000000Z K 7 svn:log V 349 Acquire Giant around two more cases when calling into VFS to vput() a vnode. Not bumped into with asserts in the main tree because we run the NFS server with Giant by default. Discovered by inspection. Complete annotations of Giant acquisition/release to note that it's only because of VFS that we acquire Giant in most places in the NFS server. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-05-30T22:59:54.000000Z K 7 svn:log V 189 One more case where we want to drop the NFS server lock and acquire Giant when entering VFS. Discovered by code inspection; still not hit without debug.mpsafenet=1. Reported by: bmilekic END K 10 svn:author V 3 imp K 8 svn:date V 27 2004-05-30T23:08:53.000000Z K 7 svn:log V 390 Include and here (only in the kernel). No other sys/*.h file requires machine/foo.h to be included before it. In addition, all the files that include rman.h would need to include those two anyway. From these two perspectives, it is traditional to include things like this. This lets us stop treating sys/rman.h specially in every bus frontend file. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-05-31T00:59:10.000000Z K 7 svn:log V 489 The NFS server modevent code manually patches the system call table to install nfssvc(). It also updates the argument count, but did so without setting SYF_MPSAFE, effectively removing the MPSAFE flag even when syscalls.master indicates it doesn't require Giant. This change forces the modevent to set MPSAFE as a flag to its internal notion of an argument coutn. Note: this duplication of information is a bad thing, but is a more general problem I'm not currently willing to address. END K 10 svn:author V 4 kris K 8 svn:date V 27 2004-05-31T07:34:40.000000Z K 7 svn:log V 327 Add common share/locale directories (everything used by >= 5 ports [1]) and /usr/local/www [1] Semi-arbitrary cutoff, but I didn't want to add every locale directory used by ports, because a lot are only used by one or two, and it's less intrusive for these ports to just clean up after themselves. MFC after: 2 days END K 10 svn:author V 8 takawata K 8 svn:date V 27 2004-05-31T11:38:46.000000Z K 7 svn:log V 86 Devclass have to be shared with same 'pcm' devclass, or unit management will corrupt. END K 10 svn:author V 3 den K 8 svn:date V 27 2004-05-31T11:43:25.000000Z K 7 svn:log V 168 Add russian translation for hardware notes and connect it to the build Build proc-alpha from english sources Obtained from: The FreeBSD Russian Documentation Project END K 10 svn:author V 3 tjr K 8 svn:date V 27 2004-05-31T12:44:50.000000Z K 7 svn:log V 101 Use __isctype() instead of __istype() for iswdigit() and iswxdigit() for consistency with . END K 10 svn:author V 6 nsouch K 8 svn:date V 27 2004-05-31T14:24:21.000000Z K 7 svn:log V 407 Necessary modifications do get pcf working again for ISA. Tested with my Elektor card. Note that the hints are necessary to specify the IO base of the pcf chip. This enables to check the IO base when the probe routine is called during ISA enumeration. The interrupt driven code is mixed with polled mode, which is wrong and produces supposed spurious interrupts at each access. I still have to work on it. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-05-31T16:32:49.000000Z K 7 svn:log V 394 Add an assertion that nfssvc() isn't called with Giant. Add two additional pairs of assertions, one at the end of the NFS server event loop, and one one exit from the NFS daemon, that assert that if debug.mpsafenet is enabled, Giant is not held, and that if it is not enabled, Giant will be held. This is intended to support debugging scenarios where Giant is "leaked" during NFS processing. END K 10 svn:author V 5 krion K 8 svn:date V 27 2004-05-31T16:55:12.000000Z K 7 svn:log V 31 - Fix typo Approved by: tobez END K 10 svn:author V 3 yar K 8 svn:date V 27 2004-05-31T17:14:25.000000Z K 7 svn:log V 40 MFC: Add `-j' and `-J' for time jitter. END K 10 svn:author V 3 yar K 8 svn:date V 27 2004-05-31T17:27:01.000000Z K 7 svn:log V 32 MFC: cron(8) -j and -J options. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-05-31T19:06:01.000000Z K 7 svn:log V 25 Assert Giant in vrele(). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-05-31T19:08:22.000000Z K 7 svn:log V 81 Release NFS subsystem lock and acquire Giant when calling into vn_start_write(). END K 10 svn:author V 3 yar K 8 svn:date V 27 2004-05-31T19:17:07.000000Z K 7 svn:log V 85 MFC: Clarify the issue of compatibility of different interfaces to advisory locking. END K 10 svn:author V 3 ume K 8 svn:date V 27 2004-05-31T19:27:54.000000Z K 7 svn:log V 84 use source address as a hint to determine destination address. Obtained from: KAME END K 10 svn:author V 8 bmilekic K 8 svn:date V 27 2004-05-31T20:21:06.000000Z K 7 svn:log V 68 Giant wasn't dropped here if we have to return EBUSY. This is bad. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2004-05-31T20:22:41.000000Z K 7 svn:log V 126 Correction: -h should be a synonym for -L, not -H. (as specified by Linux Standards Base, GNU tar, and 4.4BSD documentation) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-05-31T20:56:10.000000Z K 7 svn:log V 58 Assert Giant in vn_start_write() and vn_finished_write(). END K 10 svn:author V 3 ume K 8 svn:date V 27 2004-05-31T21:09:14.000000Z K 7 svn:log V 176 Treat IPv4 private address as global scope rather than site scope. Though it breaks RFC 3484, without this change, dest addr selection doesn't work well under NAT environment. END K 10 svn:author V 8 bmilekic K 8 svn:date V 27 2004-05-31T21:46:06.000000Z K 7 svn:log V 3514 Bring in mbuma to replace mballoc. mbuma is an Mbuf & Cluster allocator built on top of a number of extensions to the UMA framework, all included herein. Extensions to UMA worth noting: - Better layering between slab <-> zone caches; introduce Keg structure which splits off slab cache away from the zone structure and allows multiple zones to be stacked on top of a single Keg (single type of slab cache); perhaps we should look into defining a subset API on top of the Keg for special use by malloc(9), for example. - UMA_ZONE_REFCNT zones can now be added, and reference counters automagically allocated for them within the end of the associated slab structures. uma_find_refcnt() does a kextract to fetch the slab struct reference from the underlying page, and lookup the corresponding refcnt. mbuma things worth noting: - integrates mbuf & cluster allocations with extended UMA and provides caches for commonly-allocated items; defines several zones (two primary, one secondary) and two kegs. - change up certain code paths that always used to do: m_get() + m_clget() to instead just use m_getcl() and try to take advantage of the newly defined secondary Packet zone. - netstat(1) and systat(1) quickly hacked up to do basic stat reporting but additional stats work needs to be done once some other details within UMA have been taken care of and it becomes clearer to how stats will work within the modified framework. From the user perspective, one implication is that the NMBCLUSTERS compile-time option is no longer used. The maximum number of clusters is still capped off according to maxusers, but it can be made unlimited by setting the kern.ipc.nmbclusters boot-time tunable to zero. Work should be done to write an appropriate sysctl handler allowing dynamic tuning of kern.ipc.nmbclusters at runtime. Additional things worth noting/known issues (READ): - One report of 'ips' (ServeRAID) driver acting really slow in conjunction with mbuma. Need more data. Latest report is that ips is equally sucking with and without mbuma. - Giant leak in NFS code sometimes occurs, can't reproduce but currently analyzing; brueffer is able to reproduce but THIS IS NOT an mbuma-specific problem and currently occurs even WITHOUT mbuma. - Issues in network locking: there is at least one code path in the rip code where one or more locks are acquired and we end up in m_prepend() with M_WAITOK, which causes WITNESS to whine from within UMA. Current temporary solution: force all UMA allocations to be M_NOWAIT from within UMA for now to avoid deadlocks unless WITNESS is defined and we can determine with certainty that we're not holding any locks when we're M_WAITOK. - I've seen at least one weird socketbuffer empty-but- mbuf-still-attached panic. I don't believe this to be related to mbuma but please keep your eyes open, turn on debugging, and capture crash dumps. This change removes more code than it adds. A paper is available detailing the change and considering various performance issues, it was presented at BSDCan2004: http://www.unixdaemons.com/~bmilekic/netbuf_bmilekic.pdf Please read the paper for Future Work and implementation details, as well as credits. Testing and Debugging: rwatson, brueffer, Ketrien I. Saihr-Kesenchedra, ... Reviewed by: Lots of people (for different parts) END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2004-05-31T22:48:19.000000Z K 7 svn:log V 151 "Get rid of the nested include of from " or better do no longer depend on it. Requested-by: phk Approved-by: bms(mentor) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2004-06-01T00:16:32.000000Z K 7 svn:log V 173 Remove duplicates of the "wherever you go, there you are" fortune, quote directly from the movie, and give a better attribution (with correct spelling) for Buckaroo Banzai. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2004-06-01T00:25:44.000000Z K 7 svn:log V 512 Add a warning note to security.jail.allow_raw_sockets about the risks of enabling raw sockets in prisons. Because raw sockets can be used to configure and interact with various network subsystems, extra caution should be used where privileged access to jails is given out to untrusted parties. As such, by default this option is disabled. A few others and I are currently auditing the kernel source code to ensure that the use of raw sockets by privledged prison users is safe. Approved by: bmilekic (mentor) END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-06-01T01:04:25.000000Z K 7 svn:log V 104 Remove debugging printf that never triggered because acpi is the first user of nexus::bus_get_resource. END K 10 svn:author V 8 truckman K 8 svn:date V 27 2004-06-01T01:18:51.000000Z K 7 svn:log V 540 Add MSG_NBIO flag option to soreceive() and sosend() that causes them to behave the same as if the SS_NBIO socket flag had been set for this call. The SS_NBIO flag for ordinary sockets is set by fcntl(fd, F_SETFL, O_NONBLOCK). Pass the MSG_NBIO flag to the soreceive() and sosend() calls in fifo_read() and fifo_write() instead of frobbing the SS_NBIO flag on the underlying socket for each I/O operation. The O_NONBLOCK flag is a property of the descriptor, and unlike ordinary sockets, fifos may be referenced by multiple descriptors. END K 10 svn:author V 8 gshapiro K 8 svn:date V 27 2004-06-01T01:29:42.000000Z K 7 svn:log V 98 Honor NOINET6 and disable IPv6 support in libmilter and sendmail if it is set. MFC after: 4 days END K 10 svn:author V 8 bmilekic K 8 svn:date V 27 2004-06-01T01:36:26.000000Z K 7 svn:log V 230 Fix a comment above uma_zsecond_create(), describing its arguments. It doesn't take 'align' and 'flags' but 'master' instead, which is a reference to the Master Zone, containing the backing Keg. Pointed out by: Tim Robbins (tjr) END K 10 svn:author V 3 gad K 8 svn:date V 27 2004-06-01T02:03:21.000000Z K 7 svn:log V 798 Rewrite the kludge-option processing to improve how it handles a few more special situations. This is the code which process `ps blah', when "blah" does not include a leading '-'. This change also removes a long-undocumented BACKWARD_COMPATIBILITY compile-time option, where: ps -options arg1 arg2 (with no '-' on "arg1" and "arg2") was treated as: ps -options -N arg1 -M arg2 This also changes `ps' to check for any additional arguments after processing all the '-'-options, and attempt to use those arguments as a pid or pidlist. If an extra argument is not a valid pidlist, then `ps' will print an error and exit. This seems a more generally useful extension of the kludge-option processing than the -N/-M behavior, and has fewer confusing side-effects. Reviewed by: freebsd-arch END K 10 svn:author V 3 gad K 8 svn:date V 27 2004-06-01T02:31:44.000000Z K 7 svn:log V 293 Additional tiny adjustment to kludge-option processing so `ps t p0' is treated like `ps -t p0', instead of changing it to `ps -T p0'. Note that `ps t' is still changed to `ps -T', since that is one of the main reasons for this kludge processing... Noticed by: Jilles Tjoelker on freebsd-arch END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-06-01T02:42:56.000000Z K 7 svn:log V 360 The SS_COMP and SS_INCOMP flags in the so_state field indicate whether the socket is on an accept queue of a listen socket. This change renames the flags to SQ_COMP and SQ_INCOMP, and moves them to a new state field on the socket, so_qstate, as the locking for these flags is substantially different for the locking on the remainder of the flags in so_state. END K 10 svn:author V 3 gad K 8 svn:date V 27 2004-06-01T03:01:51.000000Z K 7 svn:log V 247 Fix so `ps' catches and complains about null-values specified for a process id, instead of using pid==0. Ie, `ps -p 12,' and `ps -p ,12' are now errors (instead of being treated like `ps -p 0 -p 12'). Noticed by: Cyrille Lefevre on freebsd-arch END K 10 svn:author V 3 hrs K 8 svn:date V 27 2004-06-01T03:49:13.000000Z K 7 svn:log V 69 Bump __FreeBSD_version to 491100 for 4.10-STABLE. Submitted by: eik END K 10 svn:author V 4 ache K 8 svn:date V 27 2004-06-01T04:02:24.000000Z K 7 svn:log V 56 lat-amer -> latinamerican keymap PR: 67365 END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-06-01T04:08:48.000000Z K 7 svn:log V 121 Add a global mutex, accept_filter_mtx, to protect the global list of accept filters and prevent read-modify-write races. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2004-06-01T04:32:11.000000Z K 7 svn:log V 392 * Reformat several attributions according to ../Notes (mostly whitespace) * Spell out some names that were pointlessly abbreviated * Remove a couple of incidental duplicates * Harry Truman had no actual middle name. The initial "S" was added to his name to make him appear more statesmanlike. Therefore it's not usually punctuated. * Format a couple of actual fortunes to fit into 72 columns END K 10 svn:author V 5 dougb K 8 svn:date V 27 2004-06-01T05:00:46.000000Z K 7 svn:log V 183 Update the "All I really need to know I learned in kindergarten" entry by using the text from the Villard Books edition (1989, pages 6 through 8) and formatting to fit in 72 columns. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2004-06-01T05:32:26.000000Z K 7 svn:log V 278 Collapse aac_map_command() into aac_startio(). Check the AAC_QUEUE_FRZN in every iteration of aac_startio(). This ensures that a command that is deferred for lack of resources doesn't immediately get retried in the aac_startio() loop. This avoids an almost certain livelock. END K 10 svn:author V 4 ache K 8 svn:date V 27 2004-06-01T06:12:01.000000Z K 7 svn:log V 26 Add latinamerican.iso.acc END K 10 svn:author V 8 tanimura K 8 svn:date V 27 2004-06-01T06:22:59.000000Z K 7 svn:log V 116 Axe the old midi drivers and framework. matk has developed a new module-friendly midi subsystem to be merged soon. END K 10 svn:author V 3 tjr K 8 svn:date V 27 2004-06-01T06:53:07.000000Z K 7 svn:log V 112 Change the signature of ftok from (const char *, char) to (const char *, int) Obtained from: NetBSD (christos) END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2004-06-01T07:38:11.000000Z K 7 svn:log V 42 Finish repo move arlconfig -> arlcontrol. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2004-06-01T07:38:56.000000Z K 7 svn:log V 52 MFC rev. 1.218: fix buffer overrun in in_pcbopts(). END K 10 svn:author V 8 truckman K 8 svn:date V 27 2004-06-01T08:59:03.000000Z K 7 svn:log V 61 Whitespace correction - #define should be followed by a tab. END K 10 svn:author V 2 ru K 8 svn:date V 27 2004-06-01T09:34:04.000000Z K 7 svn:log V 74 Fixed manpage's synopsis, and synchronized it with the program's usage(). END K 10 svn:author V 8 tanimura K 8 svn:date V 27 2004-06-01T09:43:22.000000Z K 7 svn:log V 110 Add Alice Liddell, Christopher Robin Milne and Winnie-the-Pooh, who inspired well-known stories for children. END K 10 svn:author V 3 des K 8 svn:date V 27 2004-06-01T09:45:16.000000Z K 7 svn:log V 57 Consistently credit President Truman as Harry S. Truman. END K 10 svn:author V 8 tanimura K 8 svn:date V 27 2004-06-01T09:45:56.000000Z K 7 svn:log V 54 MFC rev 1.28: Alice, Christopher Robin and Pooh Bear. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-06-01T10:15:56.000000Z K 7 svn:log V 70 ttyclose() increments t_gen. Remove redundant increments in drivers. END K 10 svn:author V 3 sos K 8 svn:date V 27 2004-06-01T11:34:46.000000Z K 7 svn:log V 88 Dont retry on devices that left the system. Ignore "fake" devices that has 0x7f status. END K 10 svn:author V 3 sos K 8 svn:date V 27 2004-06-01T11:37:24.000000Z K 7 svn:log V 46 Only set and report error if not set already. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-06-01T11:38:06.000000Z K 7 svn:log V 185 There is no need to explicitly call ttwakeup() and ttwwakeup() after ttyclose() has been called. It's already been done once by ttyclose, and probably once by the line-discipline too. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-06-01T11:56:04.000000Z K 7 svn:log V 100 shift the four cdevsw functions for ttys to sys/conf.h and prototype them with the correct typedef. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-06-01T11:57:15.000000Z K 7 svn:log V 122 There is no need to explicitly call the stop function. In all likelyhood ->l_close() did it and ttyclose certainly will. END K 10 svn:author V 3 sos K 8 svn:date V 27 2004-06-01T12:26:08.000000Z K 7 svn:log V 56 Use the right cmd+errorcode if we are in autosense/not. END K 10 svn:author V 3 sos K 8 svn:date V 27 2004-06-01T12:28:45.000000Z K 7 svn:log V 108 When waiting for drive to become ready, reinit the request params as they might get trashed by autosensing. END K 10 svn:author V 2 ru K 8 svn:date V 27 2004-06-01T13:15:32.000000Z K 7 svn:log V 74 Removed a leftover from the previous change. Submitted by: Gleb Smirnoff END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-06-01T13:39:02.000000Z K 7 svn:log V 48 Introduce a ttyioctl() cdevsw default function. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-06-01T13:49:28.000000Z K 7 svn:log V 56 Gainfully employ the new ttyioctl in the trivial cases. END K 10 svn:author V 2 ru K 8 svn:date V 27 2004-06-01T14:50:38.000000Z K 7 svn:log V 48 MFC: Maintain statistics about received frames. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2004-06-01T15:50:11.000000Z K 7 svn:log V 141 Commit the correct version of the patch from last night. This fixes an immediate panic when doing any i/o, and it closes a completion race. END K 10 svn:author V 8 bmilekic K 8 svn:date V 27 2004-06-01T16:17:10.000000Z K 7 svn:log V 232 Fix a couple of bugs in the mbuf and packet ctors. In the latter case, nextpkt within the m_hdr was not being initialized to NULL for !M_PKTHDR cases. *Maybe* this will fix weird socket buffer inconsistency panics, but we'll see. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-06-01T18:03:20.000000Z K 7 svn:log V 422 Push the VOP_ADVLOCK() call to release advisory locks on vnode file descriptors out of fdrop_locked() and into vn_closefile(). This removes all knowledge of vnodes from fdrop_locked(), since the lock behavior was specific to vnodes. This also removes the specific requirement for Giant in fdrop_locked(), it's now only required by code that it calls into. Add GIANT_REQUIRED to vn_closefile() since VFS requires Giant. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-06-01T18:05:41.000000Z K 7 svn:log V 77 Add GIANT_REQUIRED to kqueue_close(), since kqueue currently requires Giant. END K 10 svn:author V 3 bde K 8 svn:date V 27 2004-06-01T18:08:39.000000Z K 7 svn:log V 1784 Fixed 2 bugs in the computation /* t_h=ax+bp[k] High */. (1) The bit for the 1.0 part of bp[k] was right shifted by 4. This seems to have been caused by a typo in converting e_pow.c to e_powf.c. (2) The lower 12 bits of ax+bp[k] were not discarded, so t_h was actually plain ax+bp[k]. This seems to have been caused by a logic error in the conversion. These bugs gave wrong results like: powf(-1.1, 101.0) = -15158.703 (should be -15158.707) hex values: BF8CCCCD 42CA0000 C66CDAD0 C66CDAD4 Fixing (1) gives a result wrong in the opposite direction (hex C66CDAD8), and fixing (2) gives the correct result. ucbtest has been reporting this particular wrong result on i386 systems with unpatched libraries for 9 years. I finally figured out the extent of the bugs. On i386's they are normally hidden by extra precision. We use the trick of representing floats as a sum of 2 floats (one much smaller) to get extra precision in intermediate calculations without explicitly using more than float precision. This trick is just a pessimization when extra precision is available naturally (as it always is when dealing with IEEE single precision, so the float precision part of the library is mostly misimplemented). (1) and (2) break the trick in different ways, except on i386's it turns out that the intermediate calculations are done in enough precision to mask both the bugs and the limited precision of the float variables (as far as ucbtest can check). ucbtest detects the bugs because it forces float precision, but this is not a normal mode of operation so the bug normally has little effect on i386's. On systems that do float arithmetic in float precision, e.g., amd64's, there is no accidental extra precision and the bugs just give wrong results. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2004-06-01T18:09:58.000000Z K 7 svn:log V 311 A few BIOS's will actually enumerate logical CPUs in their MP Table. Try to handle that case better by adding any CPUs that appear to be logical CPUs to the logical_cpus_mask bitmask. -CURRENT uses different code for enumerating CPUs, so this is not an MFC. Submitted by: Bruce Walker bmw at mxtreme dot com END K 10 svn:author V 3 gad K 8 svn:date V 27 2004-06-01T18:12:04.000000Z K 7 svn:log V 78 Make a few style-istic improvements to the previous commits. Noticed by: bde END K 10 svn:author V 3 gad K 8 svn:date V 27 2004-06-01T19:00:42.000000Z K 7 svn:log V 206 Since I'm not ready to add the non-standard ADD_PS_LISTRESET feature, remove the #ifdef for it for now. I might add the feature for real at some later date, there isn't much reason for the #ifdef for now. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-06-01T19:02:51.000000Z K 7 svn:log V 24 Remove unused variable. END K 10 svn:author V 3 bde K 8 svn:date V 27 2004-06-01T19:03:31.000000Z K 7 svn:log V 976 Fixed another precision bug in powf(). This one is in the computation [t=p_l+p_h High]. We multiply t by lg2_h, and want the result to be exact. For the bogus float case of the high-low decomposition trick, we normally discard the lowest 12 bits of the fraction for the high part, keeping 12 bits of precision. That was used for t here, but it doesnt't work because for some reason we only discard the lowest 9 bits in the fraction for lg2_h. Discard another 3 bits of the fraction for t to compensate. This bug gave wrong results like: powf(0.9999999, -2.9999995) = 1.0000002 (should be 1.0000001) hex values: 3F7FFFFF C03FFFFE 3F800002 3F800001 As explained in the log for the previous commit, the bug is normally masked by doing float calculations in extra precision on i386's, but is easily detected by ucbtest on systems that don't have accidental extra precision. This completes fixing all the bugs in powf() that were routinely found by ucbtest. END K 10 svn:author V 3 bde K 8 svn:date V 27 2004-06-01T19:28:38.000000Z K 7 svn:log V 663 Fixed the sign of the result in some overflow and underflow cases (ones where the exponent is an odd integer and the base is negative). Obtained from: fdlibm-5.3 Sun finally released a new version of fdlibm just a coupe of weeks ago. It only fixes 3 bugs (this one, another one in pow() that we already have (rev.1.9), and one in tan(). I've learned too much about powf() lately, so this fix was easy to merge. The patch is not verbatim, because our base version has many differences for portability and I didn't like global renaming of an unrelated variable to keep it separate from the sign variable. This patch uses a new variable named sn for the sign. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2004-06-01T19:30:13.000000Z K 7 svn:log V 88 Add Aerospace Corporation copyrights to EUI64 support files. Suggested by: marcel, imp END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-06-01T19:33:06.000000Z K 7 svn:log V 197 Replace current locking comments for struct socket/struct sockbuf with new ones. Annotate constant-after-creation fields as such. The comments describe a number of locks that are not yet merged. END K 10 svn:author V 3 bde K 8 svn:date V 27 2004-06-01T19:33:30.000000Z K 7 svn:log V 62 Merged from double precision case (e_pow.c 1.10: sign fixes). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2004-06-01T19:49:38.000000Z K 7 svn:log V 146 Use the local APIC ID rather than the ACPI Processor ID to index the array of CPUs since local APIC IDs are bounded but ACPI IDs are not bounded. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2004-06-01T19:50:42.000000Z K 7 svn:log V 172 Fix legacy_add_child() to properly handle the case where device_add_child_ordered() fails (due to a duplicate device add for example) and properly cleanup and return NULL. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2004-06-01T19:51:29.000000Z K 7 svn:log V 198 Allow the pir0 device add to fail since pir0 may already exist. This should fix the panics in device_set_ivars() that people were seeing on boxes with multiple Host-PCI bridges but not using ACPI. END K 10 svn:author V 5 joerg K 8 svn:date V 27 2004-06-01T20:18:25.000000Z K 7 svn:log V 171 Add SVR4-compatible VTOC-style elements to the Sun label. The FreeBSD kernel doesn't use them but sunlabel(8) shortly will, and both these files are used by sunlabel(8). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2004-06-01T20:28:42.000000Z K 7 svn:log V 393 - Add a function ioapic_program_intpin() that completely programs an I/O APIC interrupt pin based on the settings in the corresponding interrupt source structure. - Use ioapic_program_intpin() in place of manual frobbing of the intpin configuration in ioapic_program_destination() and ioapic_register(). - Use ioapic_program_intpin() to implement suspend/resume support for I/O APICs. END K 10 svn:author V 5 joerg K 8 svn:date V 27 2004-06-01T20:32:36.000000Z K 7 svn:log V 1949 Major overhaul of sunlabel(8). . Implement option -c, all partition sizes will be calculated in cylinders as opposed to sectors. Since the Sun label is inherently cylinder-based, this makes the job a little easier. . Implement option -h, print the label in `human readable' size/offset format. . Implement SVR4-compatible VTOC-style elements. They are fully optional, defaulting to the current behaviour where no VTOC-style table will be written to disk. However, if desired, the full functionality of the partitioning menu of Solaris' format(1m) is now offered (and even more). . When editing the label, do not loop around edit_label() where a new template file is generated for each turn, this used to be annoying in that any possible syntax error caused a complaint, but then the template was created anew, so the user had to perform all their editing again. Rather loop inside edit_label(), similar to bsdlabel(8), so in case of errors, the user will be presented their previous template file again. . If VTOC-style elements are present, the overlap checks are made less stringent. Overlaps will still be warned about, but overlaps of `unmountable' partitions against other ones are no longer fatal. That way, e. g. VxVM encapsulated disk labels can be fully edited in FreeBSD (but not in Solaris ;-). . In print_label(), generate the editing hints only if the -e flag is in effect. Additionally, print a hint about the total number of sectors in the (hardware) medium. . When editing a label, allow for changing the geometry emulation (and textual name) by modifying the "text:" line on top. That way, a more effective emulation can be chosen. . When editing/reading a label, additionally allow for the suffixes `s' (512-byte sectors), and `c' (cylinders) in the partition size field. . Finally, turn the stub man page into something that really explains the entire thing. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2004-06-01T20:32:44.000000Z K 7 svn:log V 97 Sentences should not start with conjunctions. Change "Because" to "Since". Pointed out by: Ceri END K 10 svn:author V 3 gad K 8 svn:date V 27 2004-06-01T22:19:16.000000Z K 7 svn:log V 149 A few more style-fixes from Bruce. The only non-cosmetic change is to drop a call to setuid() which has not been needed for years. Noticed by: bde END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-06-01T22:53:00.000000Z K 7 svn:log V 1050 A major overhaul of the nmdm(4) driver: It was based on the pty(4) driver which as a tty side an a non-tty side. Nmdm(4) seems to have inherited two symmetric sides from pty but unfortunately they are not quite ttys. Running a getty one one side and tip on the other failed to produce NL->CRNL mapping for instance. Rip out the basically bogus cdevsw->{read,write} functions and rely on ttyread() and ttywrite() which does the same thing. Use taskqueue_swi_giant to run a task for either side to do what needs to be done. (Direct calling is not an option as it leads to recursion.) Trigger the task from the t_oproc and t_stop methods. Default the ports to not ECHO. Since we neither rate limiting nor emulation, two ports echoing each other is a really bad idea, which can only be properly mitigated by rate limiting, rate emulation or intelligent detection. Rate emulation would be a neat feature. Ditch the modem-line emulation, if needed for some app, it needs to be thought much more about how it interacts with the open/close logic. END K 10 svn:author V 6 archie K 8 svn:date V 27 2004-06-01T22:55:24.000000Z K 7 svn:log V 73 MFC: Allow "lower" and "orphans" hooks to be connected at the same time. END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2004-06-01T23:24:17.000000Z K 7 svn:log V 91 Explicitly #include instead of depending on to do it for us. END K 10 svn:author V 3 gad K 8 svn:date V 27 2004-06-01T23:27:11.000000Z K 7 svn:log V 197 Try to change the isdigitch() macro to something that Bruce won't roll his eyes at quite so much... (actually someone else pointed this out to me a long time ago, but apparently I never fixed it) END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2004-06-01T23:27:36.000000Z K 7 svn:log V 82 Explicitly #include in these files too (they use MODULE_DEPEND()). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-06-01T23:36:47.000000Z K 7 svn:log V 173 Rather than assert f_type==DTYPE_VNODE, conditionally perform the file lock release based on f_type==DTYPE_VNODE. vn_closefile() is used by non-vnode types as well (fifo). END K 10 svn:author V 3 gad K 8 svn:date V 27 2004-06-02T00:02:12.000000Z K 7 svn:log V 173 When rotating some "blah.log" file, make sure that a chmod and (if requested) a chown is done on the "blah.log.0" file. PR: bin/67137 Submitted by: jeh MFC after: 10 days END K 10 svn:author V 3 gad K 8 svn:date V 27 2004-06-02T00:14:28.000000Z K 7 svn:log V 76 Improved versions of the is*ch() and tolowerch() macros that I like to use. END K 10 svn:author V 5 brian K 8 svn:date V 27 2004-06-02T01:34:00.000000Z K 7 svn:log V 117 MFC descriptions of pkg_version and pkg_version_index. Pull in a bunch of spelling and grammar fixes while I'm here. END K 10 svn:author V 5 brian K 8 svn:date V 27 2004-06-02T01:42:59.000000Z K 7 svn:log V 60 MFC: Add a missing memcpy and a few tests for NULL pointers END K 10 svn:author V 2 bp K 8 svn:date V 27 2004-06-02T03:41:10.000000Z K 7 svn:log V 81 Distinguish cases when ncp module not loaded and when module have old interface. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-06-02T04:15:39.000000Z K 7 svn:log V 2356 Integrate accept locking from rwatson_netperf, introducing a new global mutex, accept_mtx, which serializes access to the following fields across all sockets: so_qlen so_incqlen so_qstate so_comp so_incomp so_list so_head While providing only coarse granularity, this approach avoids lock order issues between sockets by avoiding ownership of the fields by a specific socket and its per-socket mutexes. While here, rewrite soclose(), sofree(), soaccept(), and sonewconn() to add assertions, close additional races and address lock order concerns. In particular: - Reorganize the optimistic concurrency behavior in accept1() to always allocate a file descriptor with falloc() so that if we do find a socket, we don't have to encounter the "Oh, there wasn't a socket" race that can occur if falloc() sleeps in the current code, which broke inbound accept() ordering, not to mention requiring backing out socket state changes in a way that raced with the protocol level. We may want to add a lockless read of the queue state if polling of empty queues proves to be important to optimize. - In accept1(), soref() the socket while holding the accept lock so that the socket cannot be free'd in a race with the protocol layer. Likewise in netgraph equivilents of the accept1() code. - In sonewconn(), loop waiting for the queue to be small enough to insert our new socket once we've committed to inserting it, or races can occur that cause the incomplete socket queue to overfill. In the previously implementation, it was sufficient to simply tested once since calling soabort() didn't release synchronization permitting another thread to insert a socket as we discard a previous one. - In soclose()/sofree()/et al, it is the responsibility of the caller to remove a socket from the incomplete connection queue before calling soabort(), which prevents soabort() from having to walk into the accept socket to release the socket from its queue, and avoids races when releasing the accept mutex to enter soabort(), permitting soabort() to avoid lock ordering issues with the caller. - Generally cluster accept queue related operations together throughout these functions in order to facilitate locking. Annotate new locking in socketvar.h. END K 10 svn:author V 3 das K 8 svn:date V 27 2004-06-02T04:39:29.000000Z K 7 svn:log V 148 Merge a bugfix from FDLIBM 5.3 to ensure that the error in tan() is always less than 1 ulp. Also update to the 5.3 license. Obtained from: FDLIBM END K 10 svn:author V 3 das K 8 svn:date V 27 2004-06-02T04:39:44.000000Z K 7 svn:log V 390 Port a bugfix from FDLIBM 5.3. The bug really only applies to tan() and not tanf() because float type can't represent numbers large enough to trigger the problem. However, there seems to be a precedent that the float versions of the fdlibm routines should mirror their double counterparts. Also update to the FDLIBM 5.3 license. Obtained from: FDLIBM Reviewed by: exhaustive comparison END K 10 svn:author V 4 jeff K 8 svn:date V 27 2004-06-02T05:46:48.000000Z K 7 svn:log V 321 - Run sched_balance() and sched_balance_groups() from hardclock via sched_clock() rather than using callouts. This means we no longer have to take the load of the callout thread into consideration while balancing and should make the balancing decisions simpler and more accurate. Tested on: x86/UP, amd64/SMP END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-06-02T06:48:13.000000Z K 7 svn:log V 225 Give daemon(8) the ability to create a pid-file. Since the target program does not know anything about the pid-file and we don't keep a babysitting process for the task, the pid-file will linger. Submitted by: mi PR: 56398 END K 10 svn:author V 3 ume K 8 svn:date V 27 2004-06-02T06:49:36.000000Z K 7 svn:log V 84 use source address as a hint to determine destination address by getipnodebyname(). END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-06-02T07:04:21.000000Z K 7 svn:log V 656 There is a comma missing in the table initializing the pmap_prefault_pageorder array. This has two effects: 1. The resulting bogus contents of the array thwarts part of the optimization effect pmap_prefault() is supposed to have. 2. The resulting array is only 7 elements long (auto-sized), while pmap_prefault() expects it to be the intended 8 elements. So this function in fact accesses memory beyond the end of the array. Fortunately though, if the data at this location is out of bounds it will be ignored. This bug dates back more than 6 years. It has been introduced in revision 1.178. Submitted by: Uwe Doering PR: 67460 END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-06-02T07:09:34.000000Z K 7 svn:log V 109 Give du(1) a -m option to report in megabytes. Submitted by: Vasily Korytov PR: 66976 END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2004-06-02T07:23:54.000000Z K 7 svn:log V 172 Both "foo/" and "foo" should match "foo/bar", so strip trailing '/' characters on include patterns for extraction. Pointed out by: games/quakeforge port (thanks to Kris!) END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-06-02T07:31:11.000000Z K 7 svn:log V 27 typos. Pointed out by: ru END K 10 svn:author V 3 tjr K 8 svn:date V 27 2004-06-02T07:52:36.000000Z K 7 svn:log V 165 Move TDF_SA from td_flags to td_pflags (and rename it accordingly) so that it is no longer necessary to hold sched_lock while manipulating it. Reviewed by: davidxu END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2004-06-02T08:14:43.000000Z K 7 svn:log V 465 Refactor read_data: * New read_data_block is both sparse-file aware and uses zero-copy semantics * Push read_data_block down into specific formats (opens door to various encoded entry bodies, such as zip or gtar -S) * Reimplement read_data, read_data_skip, read_data_into_fd in terms of new read_data_block. * Update documentation It's unfortunate that I couldn't just call the new interface archive_read_data, but didn't want to upset the API that much. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2004-06-02T08:16:21.000000Z K 7 svn:log V 34 Add MLINKS for new API functions. END K 10 svn:author V 3 ume K 8 svn:date V 27 2004-06-02T09:11:28.000000Z K 7 svn:log V 95 MFC 1.14: drop packet which has ::1 as src or dst via other than lo0 like as rc.firewall does. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-06-02T09:38:32.000000Z K 7 svn:log V 103 Some embedded platforms have no keyboard controller. Give up waiting for it to react after a timeout. END K 10 svn:author V 3 ume K 8 svn:date V 27 2004-06-02T09:39:49.000000Z K 7 svn:log V 552 Add ip6addrctl_enable and ip6_addrctl_verbose option. If ip6addrctl_enable is set to YES, address selection policy is installed into kernel. If there is /etc/ip6addrctl.conf, it is used for address selection policy. Even if there is no /etc/ip6addrctl.conf, we install default policy. In this case, if ipv6_enable is set to YES, we use address selection policy described in RFC 3484 as default. Otherwise, we install priority policy for IPv4 address. The default of ip6addrctl_enable is NO for now. However, it may better to enable it by default. END K 10 svn:author V 3 ume K 8 svn:date V 27 2004-06-02T09:58:18.000000Z K 7 svn:log V 43 fix typo in comment in my previous commit. END K 10 svn:author V 3 tjr K 8 svn:date V 27 2004-06-02T12:05:06.000000Z K 7 svn:log V 64 Remove a redundant "td = curthread" statement from profclock(). END K 10 svn:author V 3 jmz K 8 svn:date V 27 2004-06-02T12:24:34.000000Z K 7 svn:log V 21 Fill the 06/02 slot. END K 10 svn:author V 5 krion K 8 svn:date V 27 2004-06-02T14:15:35.000000Z K 7 svn:log V 195 - Mention new targets from bsd.port.mk: * config * showconfig * rmconfig * describe - Add OPTIONS description - Word smithing PR: docs/67342 Reviewed by: ru Approved by: josef (mentor) END K 10 svn:author V 5 krion K 8 svn:date V 27 2004-06-02T14:21:15.000000Z K 7 svn:log V 195 - Mention new targets from bsd.port.mk: * config * showconfig * rmconfig * describe - Add OPTIONS description - Word smithing PR: docs/67342 Reviewed by: ru Approved by: josef (mentor) END