summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* add management part of address selection policy described inume2003-10-305-0/+227
| | | | | | RFC3484. Obtained from: KAME
* Use (char *)NULL to terminated to argument list for execl().harti2003-10-301-1/+1
| | | | | Without this cast the compiler cannot know that it has to convert the null pointer constant NULL to a null pointer.
* Use (char *)NULL to terminate the argument list for execlp().harti2003-10-301-1/+1
| | | | | Without this cast the compiler cannot know that it has to convert the null pointer constant NULL to a null pointer.
* Add support for the VIA 8237 (both PATA and SATA part).sos2003-10-302-80/+104
| | | | Cleanup the SATA support a bit now we are here anyways.
* Add '#' to the characters VIS_GLOB encodes. This fixes a bug in mtree.phk2003-10-302-2/+3
|
* Update test-case to also fail on filenames containing '#'phk2003-10-301-0/+17
|
* Remove MD bits for unsupported architectures.tjr2003-10-3012-1238/+1
|
* Use vis(3) to encode/decode the target for symlinks.phk2003-10-302-10/+13
| | | | Make vis(3) decode errors fatal for both symlink targets and fienames.
* Add another test-script for mtree(8): Check symlinks with space in them.phk2003-10-301-0/+40
|
* Add regression tests for sgetrune() and sputrune().tjr2003-10-303-1/+269
|
* Fix bug in mtree(8)'s create mode where files or directories with hadphk2003-10-301-1/+1
| | | | | | | | names containing glob(3) expressions would appear verbatim in the output. If such an mtree file were used by mtree in update mode, wrong things would happen.
* Add a test script which Mtree fails.phk2003-10-301-0/+51
|
* Reinvent the used-flag for external mbufs. This and the on-card flagharti2003-10-303-19/+56
| | | | | | | | are now in the header of the external buffer itself which allows us to manipulate them in the free routine without having to lock the softc structure or the free list. To get space for these flags the chunk number is reduced to 8 bit which amounts to a maximum of 256 chunks per allocated page. This restriction is now enforced by a CTASSERT.
* Add a new flag to vis(3): VIS_GLOB which encodes the glob(3) magicphk2003-10-303-2/+8
| | | | characters '*', '?' and '['.
* - Synchronize access to the swdevt's sw_blist with sw_dev_mtx.alc2003-10-301-20/+20
| | | | - Remove several instances of GIANT_REQUIRED.
* In check.c:trhodes2003-10-302-5/+2
| | | | | Avoid shadowing declarations. Avoid compairing signed and unsigned types.
* - Synchronize access to swdevhd using sw_dev_mtx.alc2003-10-301-7/+7
| | | | | - Use swp_sizecheck() rather than assignment to swap_pager_full in swaponsomething().
* Remove a few unused variables.trhodes2003-10-301-3/+2
|
* MFi386: rev 1.451 (jhb): call pmap_kremove() rather than duplicate itpeter2003-10-301-5/+2
|
* MFi386: trap.c rev 1.259: fetch thread mailbox address in page fault trappeter2003-10-301-0/+2
|
* Try to fetch thread mailbox address in page fault trap, so when threaddavidxu2003-10-302-1/+5
| | | | | blocks in page fault hanlder, and upcall thread can be scheduled. It is useful if process is doing lots of mmap based I/O.
* Oops, forgot to save these in the editor. Add CTASSERTS for signal andpeter2003-10-301-0/+10
| | | | context related things.
* Add CTASSERT()'s to check that the sizes of our replicas of the 32 bitpeter2003-10-303-5/+26
| | | | | | | | | | structures come out the right size. Fix the ones that broke. stat32 had some missing fields from the end and statfs32 was broken due to the strange definition of MNAMELEN (which is dependent on sizeof(long)) I'm not sure if this fixes any actual problems or not.
* avoid recursive lock panic by unlocking before calling rtrequest;sam2003-10-291-1/+2
| | | | | | | | this is consistent with other places but will be replaced shortly by a "proper fix" Supported by: FreeBSD Foundation Pain felt by: Jiri Mikulas
* correct LOR by using a local variable to hold resultsam2003-10-291-3/+5
| | | | | | instead of holding a lock while calling out of view Supported by: FreeBSD Foundation
* Don't attempt to destroy the driver mutex when it hasn't yetdeischen2003-10-291-1/+1
| | | | | | been created. This has been sitting in my local tree for far too long; I can't believe noone else has come across this yet.
* style(9): sort functions.trhodes2003-10-291-8/+8
|
* Properly prototype C function usage().trhodes2003-10-291-1/+3
| | | | Sync usage() with the manual page: s/file/snapshot_name/g.
* Fix a panic that occurs when resuming. For some reason, sc->cur_scp isnjl2003-10-292-0/+7
| | | | | | NULL. Submitted by: Andrew Thompson <andy@fud.org.nz>
* Basic PAM authentication support.ru2003-10-292-0/+56
|
* Disclaim ownership of pppd/chat. It is vendor code, but has been badlypeter2003-10-292-5/+5
| | | | neglected here.
* Potential fix for races shutting down callouts when unloadingsam2003-10-291-2/+6
| | | | | | | | | | the module. Previously we grabbed the mutex used by the callouts, then stopped the callout with callout_stop, but if the callout was already active and blocked by the mutex then it would continue later and reference the mutex after it was destroyed. Instead stop the callout first then lock. Supported by: FreeBSD Foundation
* o add locking to protect routing table refcnt manipulationssam2003-10-291-16/+18
| | | | | | | | | | o add some more debugging help for figuring out why folks are getting complaints about releasing routing table entries with a zero refcnt o fix comment that talked about spl's o remove duplicate define of DUMMYNET_DEBUG Supported by: FreeBSD Foundation
* Always queue looped back packets (rather than potentially usingsam2003-10-291-1/+1
| | | | | | | direct dispatch) to avoid extensive kernel stack usage and to avoid directly re-entering the network stack. The latter causes locking problems when, for example, a complete TCP handshake` happens w/o a context switch.
* mark interrupt handlers MPSAFEsam2003-10-293-3/+3
|
* Add a temporary mechanism to disble INTR_MPSAFE from network interfacesam2003-10-291-0/+13
| | | | | drivers. This is prepatory to running more parts of the network system w/o Giant.
* Add a newline even if IAPC_BOOT_ARCH == 0.njl2003-10-291-1/+2
|
* When removing trailing slashes, don't remove the first characteriedowse2003-10-291-3/+3
| | | | | of the name if it is '/'. Also fix a comparison between signed and unsigned quantities (pointed out by trhodes).
* Bump WARNS level and add a '?' to WARNS=.trhodes2003-10-291-1/+1
|
* Remove redundant declaration of the perror() function, it's provided by stdio.h.trhodes2003-10-292-2/+0
| | | | Don't define DKTYPENAMES without using it.
* Removed mostly-dead code for setting switchtime after the idle loopbde2003-10-292-11/+2
| | | | | | | | | | | | | | | | | | | | | | clobbers this variable. Long ago, when the idle loop wasn't in a process, it set switchtime.tv_sec to zero to indicate that the time needs to be read after the idle loop finishes. The special case for this isn't needed now that there is an idle process (for each CPU). The time is read in the normal way when the idle process is switched away from. The seconds component of the time is only zero for the first second after the uptime is set, and the mostly-dead code was only executed during this time. (This was slightly broken by using uptimes instead of times relative to the Epoch -- in the original version the seconds component of the time was only 0 for the first second after the Epoch.) In mi_switch(), moved the setting of switchticks to just after the first (and now only) setting of switchtime. This setting used to be delayed since a late setting was needed for the idle case and an early setting was not needed. Now the early setting is needed so that fork_exit() doesn't need to set either switchtime or switchticks. Removed now-completely-rotted comment attached to this. Most of the code described by the comment had already moved to sched_switch().
* Allow sending of more than one raw cell from a single mbuf. Only theharti2003-10-291-8/+11
| | | | | | | | | | | | very first cell in the mbuf should have a cell header word (of which everything except the payload type and the CLP bit is ignored). All other cells should be 48 byte and get the same header as the first cell. This fixes a problem with sending more than 120000 raw cells/sec through an HE155. The card seems to need 2 cell times to DMA the transmit buffer ready queue entry and the transmit buffer descriptor so at 1/3 the link rate the transmit buffer ready queue starts to fill up. Even with this patch it's obviously impossible to send raw cells at link rate.
* Remove a superfluous ) from the previous commit. This was obviouslyharti2003-10-291-1/+1
| | | | a result of the current solar storm.
* Make the maximum number of pages for external mbufs configurable inharti2003-10-294-4/+13
| | | | | | | the kernel environment and accessible as a RO sysctl. Explain that the HE155 will not work in 64-bit/66MHz slots, but may work in 64-bit/33MHz slots.
* add ECN support in layer-3.ume2003-10-2910-54/+186
| | | | | | | | | - implement the tunnel egress rule in ip_ecn_egress() in ip_ecn.c. make ip{,6}_ecn_egress() return integer to tell the caller that this packet should be dropped. - handle ECN at fragment reassembly in ip_input.c and frag6.c. Obtained from: KAME
* Implement gdb_solib_create_inferior_hook().simokawa2003-10-291-1/+7
| | | | | | | | This function is used for autoloading kld module symbols for remote kgdb. We still need a patch(*) for src/contrib/gdb/gdb/solib-svr4.c to enable this function. (*) http://people.freebsd.org/~simokawa/gdb/patch-solib-svr4.c
* Removed sched_nest variable in sched_switch(). Context switches alwaysbde2003-10-293-7/+1
| | | | | | | | | | | | | | | | | begin with sched_lock held but not recursed, so this variable was always 0. Removed fixup of sched_lock.mtx_recurse after context switches in sched_switch(). Context switches always end with this variable in the same state that it began in, so there is no need to fix it up. Only sched_lock.mtx_lock really needs a fixup. Replaced fixup of sched_lock.mtx_recurse in fork_exit() by an assertion that sched_lock is owned and not recursed after it is fixed up. This assertion much match the one in mi_switch(), and if sched_lock were recursed then a non-null fixup of sched_lock.mtx_recurse would probably be needed again, unlike in sched_switch(), since fork_exit() doesn't return to its caller in the normal way.
* Make the value of the HATM_DEBUG symbol the default for the debuggingharti2003-10-293-13/+15
| | | | flags. Introduce a new debugging flag to dump received packets.
* Inline a function that was called only in one place directly into that place.harti2003-10-292-72/+72
| | | | | | Correct a bug when the number of pages for external mbufs was very large. In this case the page number could overflow into the large buffer flag. Make this more unlikley by move that flag further away.
* Alphabetical order for ACPI options broken by adding ACPI_NO_RESET_VIDEO.iwasaki2003-10-292-2/+5
| | | | | | Add short comment about ACPI_NO_RESET_VIDEO into NOTES. Pointed-out by: njl
OpenPOWER on IntegriCloud