summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Added an option -ldi<N> to control indentation of local variable names.Bruce Evans2004-02-094-4/+27
| | | | | | | | | | | | | | | The default is to be backwards compatible and non-KNF (use the same indentation for locals as for globals; -ldi0 gives KNF indentation for locals (none)). The indentation for globals also applies to struct member names in local declatations. The indentation of variable names in multi-line declarations is broken in various ways and this commit gives some new variations. indent.1: Also clarified the description of -di<N>. Notes: svn path=/head/; revision=125633
* Only use tabs to indent variable names if the declaration indent isBruce Evans2004-02-091-8/+8
| | | | | | | | | | | nonzero (so that the 1-char indentation given by -di0 is never rendered by a tab). Removed garbage commented out code for setting the indentation of variable names. Notes: svn path=/head/; revision=125631
* Remove VFS_STATFS() call which violated the lock order and wasn'tDag-Erling Smørgrav2004-02-091-4/+0
| | | | | | | | | | really required anyway. PR: kern/61994 Submitted by: Bjoern Groenvall <bg@sics.se> Notes: svn path=/head/; revision=125630
* Backed out a part of previous commit that wasn;t mentioned in the logBruce Evans2004-02-091-2/+1
| | | | | | | | message and wasn't quite ready (it avoided indenting the names of local variables). Notes: svn path=/head/; revision=125629
* Add stub implementations of KfLowerIrql() and KfRaiseIrql() (both ofBill Paul2004-02-091-16/+40
| | | | | | | which are _fastcall). Notes: svn path=/head/; revision=125628
* Too good to miss.Wes Peters2004-02-091-0/+3
| | | | | | | Wisdumb by: Danno Coppock <danno@ipinc.com> Notes: svn path=/head/; revision=125627
* fix build with FAST_IPSEC.Hajimu UMEMOTO2004-02-091-2/+1
| | | | | | | Reported by: cjc Notes: svn path=/head/; revision=125626
* MFi386: Factor out -nostdlib and use PROG.Yoshihiro Takahashi2004-02-099-54/+55
| | | | Notes: svn path=/head/; revision=125625
* Fixed tab lossage in indented variable names. The -diN option wasBruce Evans2004-02-091-6/+22
| | | | | | | | | | worse than useless because it caused things like mangling of "^int\tfoo" to "int foo" (this for N = 8). This quick fix breaks the invariant that characters between s_code and e_code have width 1, but nothing seems to depend on this. Notes: svn path=/head/; revision=125624
* Fixed misformatting of "struct foo *bar" in function parameter lists. ItBruce Evans2004-02-091-8/+11
| | | | | | | | | | | | | was mangled to "struct foo * bar". There should be an option to control this, but no space is normal. This finishes fixing the bugs in rev.1.4. indent(1) still doesn't really understand types in parameter lists. It thinks keywords inside parentheses are for casts or sizeofs. This works accidentally for scalar types and this quick fix makes it work similarly but not so accidentally for struct/union/enum types. Notes: svn path=/head/; revision=125623
* MFi386.Ruslan Ermilov2004-02-093-52/+28
| | | | | | | | | | | - Factor out common settings and put them in an upper level Makefile.inc. - Properly use PROG for real programs, not their products. - Further reduce diffs to i386 versions. Tested on: sparc64 (panther) Notes: svn path=/head/; revision=125622
* - Factor out -nostdlib to an upper level Makefile.inc.Ruslan Ermilov2004-02-0912-58/+64
| | | | | | | | | | | | | | - Now that bsd.prog.mk deals with programs linked with -nostdlib better, and has a notion of an "internal" program, use PROG where possible. This has a good impact on the contents of .depend files and causes programs to be linked with cc(1). XXX: boot2 couldn't be converted as it's actually two programs. Tested on: i386, amd64 Notes: svn path=/head/; revision=125621
* Two changes to aid in cleaning up sys/boot/ makefiles:Ruslan Ermilov2004-02-091-3/+9
| | | | | | | | | | - Don't put libc.a as a dependency if program is linked with -nostdlib. - Added INTERNALPROG (by analogy to INTERNALLIB) for programs which are built only for its side effect and shold not be installed. Notes: svn path=/head/; revision=125620
* Expanded the size of the keyword table from 100 to 1000 entries so thatBruce Evans2004-02-091-1/+3
| | | | | | | | | | | | | the number of typedef-names is not so limited. Same as in rev.1.4. Added the "const" and "volatile" to the keyword table. Rev.1.4 added these but they were misclassified so they were not formatted as types. indent still doesn't really understand them. E.g., it mangles "char * const *foo" and "char *const *foo". This change mainly stops it mangling "char const foo" to "char<declaration-indent>const foo". Notes: svn path=/head/; revision=125619
* Backed out rev.1.4 and 1.7 so they they can be implemented and committedBruce Evans2004-02-091-18/+5
| | | | | | | | | | | | | | | | properly. Of the 3 changes mentioned in the log message for rev.1.4, the first (implementing -[n]fcb) was correct but didn't touch this file, the second (no-space-after-sizeof) was not actually done (it is the default and is controlled by the undcoumented -[n]bs options), and the third (no-space-after 'struct foo *') was very buggy and was reduced to wrong comments and other style bugs by backing out the main part of it in rev.1.6. Rev.1.4 had 2 changes which were not mentioned in its commit log: expand specials[] so that more than -83 typedef-names can be specified (this was the one working change in rev.1.4), and add "const" and "volatile" to specials[] (this was buggy). Notes: svn path=/head/; revision=125618
* Disable branch-target instruction cache on MPC7457 as outlinedPeter Grehan2004-02-091-2/+3
| | | | | | | | | in Motorola processor errata. Submitted by: Suleiman Souhlal <refugee@segfaulted.com> Notes: svn path=/head/; revision=125617
* Fall back to INTR_MPSAFE if INTR_FAST registration fails.Scott Long2004-02-091-2/+8
| | | | | | | PR: kern/62276 Notes: svn path=/head/; revision=125616
* Recognize MPC7547 (aka G4+)Peter Grehan2004-02-091-1/+7
| | | | Notes: svn path=/head/; revision=125615
* Definitions for MPC7457 CPU type and HID0 bitsPeter Grehan2004-02-092-35/+42
| | | | Notes: svn path=/head/; revision=125614
* Fix a typo that stopped ypset's -h option from working with aIan Dowse2004-02-091-1/+1
| | | | | | | | | | | | | hostname rather than an IP. The code was copying the pointer to the IP address instead of the IP address itself. The bug has existed ever since ypset was first imported in 1994. PR: bin/62550 Submitted by: aardvark@saintaardvarkthecarpeted.com MFC after: 1 week Notes: svn path=/head/; revision=125613
* MFp4 @46705:Juli Mallett2004-02-081-0/+2
| | | | | | | | | | Support "uprocp" exactly like "paddr" with the former having been documented in the manual but not implemented. PR: 42484 Notes: svn path=/head/; revision=125612
* Use int rather than size_t storage for printf field widths to avoidIan Dowse2004-02-081-43/+41
| | | | | | | | | many casts. Reviewed by: bde Notes: svn path=/head/; revision=125611
* Further simplify the code for printing the message buffer:Ian Dowse2004-02-081-33/+36
| | | | | | | | | | | | | - Ensure that the buffer ends with "\n\0" to avoid special cases and allow the use of strtol(). - Use strvisx() on each complete line instead of character by character. Submitted by: bde MFC after: 1 week Notes: svn path=/head/; revision=125610
* New errata: SA-04:02.Bruce A. Mah2004-02-081-0/+11
| | | | Notes: svn path=/head/; revision=125606
* Certain ICMP error replies cause ping to perform a reverse DNSIan Dowse2004-02-081-0/+6
| | | | | | | | | | | | | | lookup on an IP address from the packet (such as the IP that sent a TTL exceeded error). If the DNS lookup takes a long time, ^C will appear to be ineffective since the SIGINT handler just sets a flag and returns. Work around this by exiting immediately on receipt of a second SIGINT when DNS lookups are enabled. PR: bin/4696 MFC after: 1 week Notes: svn path=/head/; revision=125605
* Update for the 2004/02/07 import.Ruslan Ermilov2004-02-081-5/+5
| | | | Notes: svn path=/head/; revision=125604
* This commit was generated by cvs2svn to compensate for changes in r125601,Ruslan Ermilov2004-02-084-4/+39
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=125602
| * Vendor import of bwk's 7-Feb-2004 release.Ruslan Ermilov2004-02-084-4/+39
| | | | | | | | Notes: svn path=/vendor/one-true-awk/dist/; revision=125601
* | Rewrite fabs.S to use pure SSE2 operations. I got the clues how to doPeter Wemm2004-02-081-10/+35
| | | | | | | | | | | | | | this from looking at code generated by gcc. Notes: svn path=/head/; revision=125600
* | Make NdisMMapIoSpace() guard against NULL/uninitialized resource pointers too.Bill Paul2004-02-081-2/+4
| | | | | | | | Notes: svn path=/head/; revision=125599
* | Make NdisMMapIoSpace() handle the case where a device has both memBill Paul2004-02-081-3/+5
| | | | | | | | | | | | | | and altmem ranges mapped. Notes: svn path=/head/; revision=125598
* | Remove condition variables and status associated with target modeMatt Jacob2004-02-081-246/+169
| | | | | | | | | | | | | | | | | | | | | | enabling. Instead, go to an interrupt/polled model. Fix get_lun_statep so we don't panic if there are no wildcard luns enabled. MFC after: 6 days Notes: svn path=/head/; revision=125597
* | Remove condition variables and status associated with target modeMatt Jacob2004-02-081-6/+2
| | | | | | | | | | | | | | | | | | enabling. Instead, go to an interrupt/polled model. MFC after: 6 days Notes: svn path=/head/; revision=125596
* | - obey ip6po_minmtu.Hajimu UMEMOTO2004-02-081-3/+30
| | | | | | | | | | | | | | | | | | - notify a proper path MTU to applications. Obtained from: KAME Notes: svn path=/head/; revision=125595
* | Allow amr(4) to get a dynamic major number instead of a static one.Scott Long2004-02-082-4/+0
| | | | | | | | | | | | | | Submitted by: Andre Guibert de Bruet Notes: svn path=/head/; revision=125594
* | Don't free ressources that haven't been allocated. This should fixLukas Ertl2004-02-081-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | the "disappearing subdisks" problem when new subdisks can't be created due to some errors. This is in fact an ugly hack, but a more elegant solution would probably require a redesign of vinum in several places. Approved by: joerg (mentor) Notes: svn path=/head/; revision=125593
* | Update the documentation for setpgrp(2) to reflect the access controlDavid Schultz2004-02-081-7/+21
| | | | | | | | | | | | | | | | | | | | checks that the code actually performs. Judging from the 4.2BSD release notes, the docs have only been out of date for 20 years. PR: 29844 Notes: svn path=/head/; revision=125592
* | Polish the work/state engine in preparation for HW-crypto support.Poul-Henning Kamp2004-02-081-64/+65
| | | | | | | | Notes: svn path=/head/; revision=125591
* | Add a missing error case return.Poul-Henning Kamp2004-02-081-0/+1
| | | | | | | | | | | | | | Problem reported by: Flemming Jacobsen <fj@batmule.dk> Notes: svn path=/head/; revision=125590
* | Document the SF_NODISKIO flag, and fix a small typo.Mike Silbersack2004-02-081-2/+10
| | | | | | | | Notes: svn path=/head/; revision=125587
* | Add the SF_NODISKIO flag to sendfile. This flag causes sendfile to beMike Silbersack2004-02-082-19/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mindful of blocking on disk I/O and instead return EBUSY when such blocking would occur. Results from the DeBox project indicate that blocking on disk I/O can slow the performance of a kqueue/poll based webserver. Using a flag such as SF_NODISKIO and throwing connections that would block to helper processes/threads helped increase performance. Currently, only the Flash webserver uses this flag, although it could probably be applied to thttpd with relative ease. Idea by: Yaoping Ruan & Vivek Pai Notes: svn path=/head/; revision=125586
* | Move m_uiotombuf from uio.h to mbuf.h, where I should have put it inMike Silbersack2004-02-082-2/+4
| | | | | | | | | | | | | | | | | | the first place. Suggested by: bde Notes: svn path=/head/; revision=125585
* | I forgot to add the NO_MODULES override for NOTESPeter Wemm2004-02-081-0/+3
| | | | | | | | Notes: svn path=/head/; revision=125584
* | Don't hold NDIS_LOCK() around call to ndis_getstate_80211() since itBill Paul2004-02-071-0/+2
| | | | | | | | | | | | | | may block on ndis_get_info(). Notes: svn path=/head/; revision=125583
* | Argh. kthread_suspend() when in P_KTHREAD context, tsleep() when not,Bill Paul2004-02-071-2/+2
| | | | | | | | | | | | | | not the other way around. Notes: svn path=/head/; revision=125582
* | Argh, unbreak "make depend" for AMD64.Ruslan Ermilov2004-02-074-6/+9
| | | | | | | | | | | | | | Reported by: kris Notes: svn path=/head/; revision=125581
* | Fix typo in comment, s/reebots/reboots/Johan Karlsson2004-02-071-1/+1
| | | | | | | | | | | | | | | | PR: 62481 Submitted by: Ulrich Spoerlein <q at uni.de> Notes: svn path=/head/; revision=125580
* | We don't need to hold Giant to create the worker kthread.Poul-Henning Kamp2004-02-071-2/+0
| | | | | | | | Notes: svn path=/head/; revision=125579
* | Fix the last and most important bit of the test case to test the samePoul-Henning Kamp2004-02-071-2/+8
| | | | | | | | | | | | | | | | | | binary as the rest of it. Add MD5 check that the md(4) device gets set up correctly. Notes: svn path=/head/; revision=125578
* | Correct an intance of mtx_pool_lock() that should have been mtx_pool_unlock().Bill Paul2004-02-071-1/+1
| | | | | | | | Notes: svn path=/head/; revision=125577