summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Change ofwdump(8) to use sysexits(3) exit codes.marius2004-05-224-142/+185
| | | | | | | | | | | | | | | | | | | | | | - Make the code use the new OFIOCMAXVALUE instead of defining the maximum length of property values locally. - Move the application specific parts from ofw_util.c to ofwdump.c in order to make ofw_util.c more library-like. While ofw_dump_properties() could be made non-specific to ofwdump(8) it's currently optimized for use in ofwdump(8) and making it a library-like function would just complicate the code unnecessarily. - Minor clean-up in ofw_util.c, e.g. make its use of getopt(3) the way it's described in style(9), make its usage() static, etc. - Add a comment in ofw_util.c about why it doesn't call usage() when neither the "-a" option nor a node-name where given. - Add ofw_optnode() and ofw_setprop(), helper functions for the OFIOCGETOPTNODE and OFIOCSET ioctls respectively, to ofw_util.[c,h]. - Be consistent with the use of 'const' in ofw_util.[c,h] and add 'const' to the function arguments that are acutally const but weren't declared as such. - Mark WARNS=6 clean. Approved by: tmm
* - Rearrange a comment to fit in 80 chars per line, like the rest of thismarius2004-05-221-4/+4
| | | | | file. - Remove a superfluous ';'.
* - Move OFW_NAME_MAX, used as a limit for OFW property names and devicemarius2004-05-222-13/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | identifiers, to openfirmio.h as OFIOCMAXNAME, so programs can use it for buffer sizes etc. Note: Although this is only a rough upper limit to make the code more robust and to prevent the allocation of ridiculous amounts of memory, the current limit of one page (8191 + '\0' in openfirm_getstr()) still appears a bit high. The maximum length of OFW property names is 31. I didn't find a maximum length for the device identifiers in the OFW documentation but it certainly is much smaller than 8191, too. - Enable the OFIOCSET ioctl, i.e. move it out from under #if 0. - Don't use openfirm_getstr() for the property value in OFIOCSET, there are also properties whose values aren't strings and it makes sense to use a different maximum length for property values than OFW_NAME_MAX/ OFIOCMAXNAME. The maximum accepted property value is defined in openfirmio.h as OFIOCMAXVALUE (currently the maximum size of the value of the nvramrc property). - Make OFIOCSET not return EINVAL when OF_setprop() returns a different length for the written value than it was told to write, this is normal for the text string values of the properties in the OFW /options node. Instead, only return EINVAL if OF_setprop() returned -1 (value could not be written or property could not be created). Add a comment about the specialty of the OFW /options node. - Make OFIOCSET return the length of the written value returned by OF_setprop(), just like OF_getprop() does. Quite useful, at least for debugging. Reviewed by: tmm
* Actually we are also able to list only choosen providers.pjd2004-05-223-3/+6
|
* Change u_intXX_t to uintXX_t. Change a couple of 'unsigned long's todfr2004-05-2218-573/+573
| | | | uint32_t where appropriate.
* Perform conversions straight from the stream buffer instead of scanningtjr2004-05-221-18/+19
| | | | | | | through byte by byte with mbrtowc(). In the usual case (buffer is big enough to contain the multibyte character, character does not straddle buffer boundary) this results in only one call to mbrtowc() for each wide character read.
* Associate a multibyte conversion state object with each stream. Reset ittjr2004-05-227-42/+24
| | | | | | | | | to the initial state when a stream is opened or seeked upon. Use the stream's conversion state object instead of a freshly-zeroed one in fgetwc(), fputwc() and ungetwc(). This is only a performance improvement for now, but it would also be required in order to support state-dependent encodings.
* Add Intel PCI vendor ID.le2004-05-221-0/+4
|
* Don't forget to reset if_hwassist back to 0 when hardware checksummingyar2004-05-221-1/+3
| | | | | | | is being turned off, or else TCP/IP will keep assigning the job to us. Drivers themselves should consult if_capenable, not if_hwassist--the latter is for the TCP/IP stack.
* Remove two debugging printf().mux2004-05-221-2/+0
| | | | On behalf of: cognet
* Get rid of a lockmgr consumer by making agp(4) use a standard mutex,mux2004-05-2218-40/+22
| | | | | since it's always acquiring the lock exclusively. This was tested with X on an SMP box, with and without WITNESS.
* Add regression tests for geom_stripe and geom_nop.pjd2004-05-228-0/+141
| | | | Supported by: Wheel - Open Technologies - http://www.wheel.pl
* Be more precise.pjd2004-05-221-7/+8
|
* style.Makefile(5).pjd2004-05-221-6/+6
|
* Fix typos in comments.le2004-05-221-9/+9
| | | | Submitted by: Gerhard Gonter <gonter@falbala.wu-wien.ac.at>
* Add a "-r" flag to ktrdump(1) to print relative timestamps when usedrwatson2004-05-222-6/+22
| | | | | | | | with "-t" rather than absolute timestamps. This allows the reader to get a better sense of latency between events, such as time to schedule an interrupt thread from time the interrupt occurred. Assert a copyright on ktrdump.c since I seem to be modifying it more than I thought.
* To date, unwiring a fictitious page has produced a panic. The reasonalc2004-05-224-18/+29
| | | | | | | | | | | | | | | being that PHYS_TO_VM_PAGE() returns the wrong vm_page for fictitious pages but unwiring uses PHYS_TO_VM_PAGE(). The resulting panic reported an unexpected wired count. Rather than attempting to fix PHYS_TO_VM_PAGE(), this fix takes advantage of the properties of fictitious pages. Specifically, fictitious pages will never be completely unwired. Therefore, we can keep a fictitious page's wired count forever set to one and thereby avoid the use of PHYS_TO_VM_PAGE() when we know that we're working with a fictitious page, just not which one. In collaboration with: green@, tegge@ PR: kern/29915
* Spelling and style fixes.marius2004-05-222-22/+22
| | | | Obtained from: NetBSD
* Use unsigned types for the arguments of the atomic(9) operations,marius2004-05-221-4/+4
| | | | | | like described in the man page and done on all other architectures. OK'ed by: tmm
* Switch from BSD-style u_intXX_t to ISO C99 uintXX_t.marius2004-05-222-5/+5
|
* Plug three lock leaks.mux2004-05-222-0/+6
|
* Remove gconcat(8) utility. It was replaced by geom(8).pjd2004-05-213-670/+0
|
* - More clear example description.pjd2004-05-211-4/+4
| | | | - Fix copy&paste bug.
* Force commit to note, that those manual pages were...pjd2004-05-210-0/+0
| | | | Reviewed by: simon
* Add manual pages for gconcat(8), gstripe(8) and gnop(8) utilities.pjd2004-05-216-3/+430
| | | | Supported by: Wheel - Open Technologies - http://www.wheel.pl
* Some wordsmithing and mdoc(7) cleanup.josef2004-05-211-14/+27
| | | | | | Submitted by: Michel Lavondès <fox@vader.aacc.cc.md.us> PR: docs/66823 Reviewed by: simon
* Add a quiet mode to ktrdump(1): if the "-q" flag is used, don't printrwatson2004-05-212-21/+30
| | | | | the pretty text header on top of the output. Simplifies feeding the results of tracing into a script for mechanical processing.
* When the 'f' flag is passed to ktrdump(1), use 40 characters for therwatson2004-05-211-1/+1
| | | | | | "file and line" field consistently; previously, a 32-character field length was used for the table header, which resulted in the header not lining up with the table.
* Cosmetic:yar2004-05-211-2/+6
| | | | | Set capability bits in a consistent way. Add a comment on why the VLAN_MTU stuff comes after ether_ifattach().
* Enter the 1990's and assume that the computer knows what time it is.imp2004-05-211-16/+23
| | | | | | Print the ETA of dump being finished, rather than a cryptic delta time. Also, if we have written more blocks than the tapesize, assume that we are 99.99% done and that we'll be finished 'soon'.
* Fix cutNpasto in last commit.imp2004-05-211-1/+1
|
* Add --dereference as a synonym for -Hkientzle2004-05-211-0/+1
| | | | Pointed out by: Kris Kennaway (unbreaks nspr port build)
* The driver fxp(4) has reception of large frames enabled hardcodedly,yar2004-05-211-0/+1
| | | | so let VLAN_MTU be marked in if_capenable from the beginning.
* Mark the capability of this driver to receive VLAN frames >1500 bytesyar2004-05-211-0/+1
| | | | | | as initially active in if_capenable since it is always on. Reviewed by: simokawa
* MFi386 (1.103 and 1.104: fixed some problems in high resolution profilingbde2004-05-211-31/+15
| | | | | | | | | and improved some comments). Also, made the documented {f,s}uword() functions the standard entry points and the undocumented {f,s}uword64() functions alternative entry points, like {f,s}uword32() for i386's. The bitrot in the comments was a little larger here -- there are new undocumented 32-bit sub-word functions, not just renaming of 16-bit functions from documented ones to undocumented ones.
* Updated and reorganized the comments for the fetch and store families ofbde2004-05-211-21/+10
| | | | functions.
* Fixed high resoultion profiling of fuword32() and suword32(). Use thebde2004-05-211-6/+2
| | | | | standard macro ALTENTRY() instead of a home made incomplete version of it.
* - Change command name from 'config' to 'configure'.pjd2004-05-213-7/+7
| | | | - Bump version number.
* Clear KSE thread flags after KSE thread mode is ended. The side effectdavidxu2004-05-214-2/+8
| | | | | | | | of not clearing the flags for execv() syscall will result that a new program runs in KSE thread mode without enabling it. Submitted by: tjr Modified by: davidxu
* ifdef writing to registers that the base pci standard says areimp2004-05-211-0/+13
| | | | | read-only on D3->D0 power state transition. Add a define to enable them, but include a comment to contact me if there's a problem.
* Upon further review it was decided this piece of the msync(2)kensmith2004-05-211-0/+2
| | | | | | | | | | fixes was applicable to HEAD, originally it was thought this should only be done in RELENG_4. Implement IO_INVAL in the vnode op for writing by marking the buffer as "no cache". This fix has already been applied to RELENG_4 as Rev. 1.65.2.15 of ufs/ufs/ufs_readwrite.c. Reviewed by: alc, tegge
* Add ru_RU.KOI8-R relnotes and build infrastructureden2004-05-2119-0/+1525
| | | | Obtained from: The FreeBSD Russian Documentation Project
* Fixed some style bugs in tdsigwakeup().bde2004-05-211-11/+10
|
* Fix spelling.dfr2004-05-213-13/+13
|
* Correct parsing of Solaris default ACLs.kientzle2004-05-211-4/+6
|
* Added dependency on the miibus module.ru2004-05-211-0/+1
|
* Compeletely rewrite the description of hw.pci.do_powerstate to soundimp2004-05-211-2/+2
| | | | better.
* Improve the English somewhat.imp2004-05-211-1/+1
| | | | Prodded by: ru@
* Ooops, forgot to commit the updated definition for hw.pci.do_powerstateimp2004-05-211-2/+1
| | | | when I committed code that changed its meaning.
* MFp4:imp2004-05-211-3/+7
| | | | | | | | | | Split the baby. For idepci devices, now both legacy mode bits need not be set. We can run an idepci in a split mode. However, it only works better than before, not works. It works better in that when one device is legacy and the other isn't and disabled, we now operate correctly. sos submitted a version of this patch.
OpenPOWER on IntegriCloud