summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Major overhaul of sunlabel(8).joerg2004-06-012-72/+757
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | . 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.
* - Add a function ioapic_program_intpin() that completely programs an I/Ojhb2004-06-011-69/+91
| | | | | | | | | 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.
* Add SVR4-compatible VTOC-style elements to the Sun label. Thejoerg2004-06-012-1/+81
| | | | | FreeBSD kernel doesn't use them but sunlabel(8) shortly will, and both these files are used by sunlabel(8).
* Allow the pir0 device add to fail since pir0 may already exist. This shouldjhb2004-06-011-2/+2
| | | | | fix the panics in device_set_ivars() that people were seeing on boxes with multiple Host-PCI bridges but not using ACPI.
* Fix legacy_add_child() to properly handle the case wherejhb2004-06-011-7/+9
| | | | | device_add_child_ordered() fails (due to a duplicate device add for example) and properly cleanup and return NULL.
* Use the local APIC ID rather than the ACPI Processor ID to index the arrayjhb2004-06-011-28/+30
| | | | of CPUs since local APIC IDs are bounded but ACPI IDs are not bounded.
* Merged from double precision case (e_pow.c 1.10: sign fixes).bde2004-06-011-13/+14
|
* Replace current locking comments for struct socket/struct sockbufrwatson2004-06-011-15/+12
| | | | | with new ones. Annotate constant-after-creation fields as such. The comments describe a number of locks that are not yet merged.
* Add Aerospace Corporation copyrights to EUI64 support files.brooks2004-06-012-0/+52
| | | | Suggested by: marcel, imp
* Fixed the sign of the result in some overflow and underflow cases (onesbde2004-06-011-17/+18
| | | | | | | | | | | | | | | 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.
* Fixed another precision bug in powf(). This one is in the computationbde2004-06-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | [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.
* Remove unused variable.phk2004-06-011-1/+0
|
* Since I'm not ready to add the non-standard ADD_PS_LISTRESET feature,gad2004-06-011-26/+1
| | | | | 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.
* Make a few style-istic improvements to the previous commits.gad2004-06-011-16/+15
| | | | Noticed by: bde
* Fixed 2 bugs in the computation /* t_h=ax+bp[k] High */.bde2004-06-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* Add GIANT_REQUIRED to kqueue_close(), since kqueue currently requiresrwatson2004-06-011-0/+2
| | | | Giant.
* Push the VOP_ADVLOCK() call to release advisory locks on vnode filerwatson2004-06-012-12/+19
| | | | | | | | | | 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.
* Fix a couple of bugs in the mbuf and packet ctors. In the latter case,bmilekic2004-06-011-5/+3
| | | | | | 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.
* Commit the correct version of the patch from last night. This fixes anscottl2004-06-011-7/+7
| | | | immediate panic when doing any i/o, and it closes a completion race.
* Gainfully employ the new ttyioctl in the trivial cases.phk2004-06-018-151/+3
|
* Introduce a ttyioctl() cdevsw default function.phk2004-06-014-0/+18
|
* Removed a leftover from the previous change.ru2004-06-011-4/+0
| | | | Submitted by: Gleb Smirnoff
* When waiting for drive to become ready, reinit the request params as theysos2004-06-011-7/+8
| | | | might get trashed by autosensing.
* Use the right cmd+errorcode if we are in autosense/not.sos2004-06-011-2/+3
|
* There is no need to explicitly call the stop function. In all likelyhoodphk2004-06-0111-13/+0
| | | | ->l_close() did it and ttyclose certainly will.
* shift the four cdevsw functions for ttys to sys/conf.h and prototypephk2004-06-013-4/+12
| | | | them with the correct typedef.
* There is no need to explicitly call ttwakeup() and ttwwakeup() afterphk2004-06-016-14/+0
| | | | | ttyclose() has been called. It's already been done once by ttyclose, and probably once by the line-discipline too.
* Only set and report error if not set already.sos2004-06-011-1/+1
|
* Dont retry on devices that left the system.sos2004-06-011-2/+3
| | | | Ignore "fake" devices that has 0x7f status.
* ttyclose() increments t_gen. Remove redundant increments in drivers.phk2004-06-016-7/+0
|
* Consistently credit President Truman as Harry S. Truman.des2004-06-012-9/+9
|
* Add Alice Liddell, Christopher Robin Milne and Winnie-the-Pooh, whotanimura2004-06-011-0/+5
| | | | inspired well-known stories for children.
* Fixed manpage's synopsis, and synchronized it with the program's usage().ru2004-06-012-6/+6
|
* Whitespace correction - #define should be followed by a tab.truckman2004-06-011-1/+1
|
* Finish repo move arlconfig -> arlcontrol.fjoe2004-06-015-601/+11
|
* Change the signature of ftok from (const char *, char) to (const char *, int)tjr2004-06-011-1/+1
| | | | Obtained from: NetBSD (christos)
* Axe the old midi drivers and framework. matk has developed a newtanimura2004-06-0119-12406/+0
| | | | module-friendly midi subsystem to be merged soon.
* Add latinamerican.iso.accache2004-06-012-2/+4
|
* Collapse aac_map_command() into aac_startio(). Check the AAC_QUEUE_FRZN inscottl2004-06-011-43/+31
| | | | | | 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.
* Update the "All I really need to know I learned in kindergarten" entrydougb2004-06-011-25/+36
| | | | | by using the text from the Villard Books edition (1989, pages 6 through 8) and formatting to fit in 72 columns.
* * Reformat several attributions according to ../Notes (mostly whitespace)dougb2004-06-012-445/+420
| | | | | | | | * 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
* Add a global mutex, accept_filter_mtx, to protect the global list ofrwatson2004-06-011-7/+17
| | | | accept filters and prevent read-modify-write races.
* lat-amer -> latinamerican keymapache2004-06-012-2/+2
| | | | PR: 67365
* Fix so `ps' catches and complains about null-values specified for agad2004-06-011-3/+8
| | | | | | | 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
* The SS_COMP and SS_INCOMP flags in the so_state field indicate whetherrwatson2004-06-017-19/+24
| | | | | | | | 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.
* Additional tiny adjustment to kludge-option processing so `ps t p0'gad2004-06-011-6/+7
| | | | | | | | 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
* Rewrite the kludge-option processing to improve how it handles a fewgad2004-06-011-62/+91
| | | | | | | | | | | | | | | | | | | | 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
* Fix a comment above uma_zsecond_create(), describing its arguments.bmilekic2004-06-011-3/+3
| | | | | | | 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)
* Honor NOINET6 and disable IPv6 support in libmilter and sendmail if itgshapiro2004-06-013-3/+15
| | | | | | is set. MFC after: 4 days
* Add MSG_NBIO flag option to soreceive() and sosend() that causestruckman2004-06-013-14/+10
| | | | | | | | | | | | 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.
OpenPOWER on IntegriCloud