summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Style cleanup: make this look more like a 21st-century shell scriptwollman2010-11-011-25/+23
| | | | | | | and not something out of the early 1980s. Make sure all error messages go to stderr, not stdout. Since there's error-handling code to handle empty SEARCHPATHS and FILESYSTEMS, use the initialization form that allows this error to be diagnosed. (hat tip: jilles@)
* jilles@ pointed out that using ${PRUNEDIRS:=".zfs"} in updatedb.shwollman2010-11-011-1/+1
| | | | | | | | made it impossible to override PRUNEDIRS to make it empty. Use the non-colon form to only set PRUNEDIRS if it is completely unset. (For parallelism, the other configuration defaults here could be done the same way, but that could be more obviously accomplished by disabling updatedb in periodic.conf, so leave them alone for now.)
* Use integer for size of cpuset, as it won't be bigger than INT_MAX,davidxu2010-11-012-9/+4
| | | | | | This is requested by bge. Also move the sysctl into file kern_cpuset.c, because it should always be there, it is independent of thread scheduler.
* Add a security nit to recent copyin/out changes: map the user segmentnwhitehorn2010-10-311-0/+6
| | | | | | no-execute in case of exploitable kernel bugs. MFC after: 1 week
* sh(1): Correct synopsis and make precise how $0 is set.jilles2010-10-311-4/+24
| | | | | | In particular, the extra argument to set $0 with -c was not documented. MFC after: 1 week
* Turn a panic into a printf so IFM_ETH_MASTER on !IFM_1000_T is complainedmarius2010-10-311-1/+1
| | | | | | | about but otherwise ignored. When allowing the master to be set manually via ifconfig(8) by adding the former to IFM_SUBTYPE_ETHERNET_OPTION_DESCRIPTIONS (as it should be) it seems to be unfavorable that a machine can be made to panic with a simple ifconfig(8) invocation.
* Next-to-leading-order perturbation of synchronization operations fornwhitehorn2010-10-313-5/+5
| | | | | switching the user segment register. All races should now be closed and a minimum of pipelines flushes be required to close them.
* Try to make the style consistent (including regarding NetBSD bits not yetmarius2010-10-311-44/+39
| | | | merged) and adhere style(9).
* Make a comment reflect reality.marius2010-10-311-1/+1
|
* Fix typo and grammar nituqs2010-10-311-2/+2
| | | | | Submitted by: arundel MFC after: 7 days (or when the bikeshed has abated)
* Add a driver for the Apple Uninorth AGP host bridge found in all PowerPCnwhitehorn2010-10-319-12/+338
| | | | Macintoshes with an AGP bus.
* Add some missing parentheses so that moea_bat_mapped() actually works.nwhitehorn2010-10-311-1/+1
| | | | | Submitted by: alc MFC after: 3 days
* sh: Reindent evaltree().jilles2010-10-311-76/+76
|
* sh: Use iteration instead of recursion to evaluate semicolon lists.jilles2010-10-312-15/+27
| | | | | This reduces CPU and memory usage when executing long lists (such as long functions).
* Fix callout_tickstofirst() behavior after signed integer ticks overflow.mav2010-10-311-2/+1
| | | | | | | This should fix callout precision drop to 1/4s after 25 days of uptime with HZ = 1000. Submitted by: Taku YAMAMOTO <taku@tackymt.homeip.net>
* Elaborate some more on the non-security implications of using -Puqs2010-10-311-6/+15
| | | | | Submitted by: delphij Discussion at: svn-src-all
* Update to 9.6-ESV-R2, the latest from ISC.dougb2010-10-3174-10723/+3925
| | | | | | This version contains bug fixes that are relevant to any caching/resolving name server; as well as DNSSEC-related fixes.
* Prep for the 9.6-ESV-R2 updatedougb2010-10-312-5/+22
|
* Rename BUS_SPACE_IO and BUS_SPACE_MEM defines to BUS_SPACE_TAG_IO andnyan2010-10-312-10/+10
| | | | BUS_SPACE_TAG_MEM respectively to avoid conflict with nexus.c.
* Make it possible to exclude directories by name no matter where theywollman2010-10-312-1/+13
| | | | | | | are in the filesystem from the locate database. By default, exclude ".zfs" directories, as users who who have set snapdir=visible and are taking frequent snapshots most likely do not want the snapshots included in the locate database.
* Add another safety belt to pmap_demote_DMAP().alc2010-10-301-1/+1
|
* Allow access to the HT I/O port space on the IBM CPC9X5 northbridge chips.nwhitehorn2010-10-301-1/+22
| | | | MFC after: 2 weeks
* Restructure the way the copyin/copyout segment is stored to prevent anwhitehorn2010-10-3012-41/+60
| | | | | | | | | | | | | | | | | concurrency bug. Since all SLB/SR entries were invalidated during an exception, a decrementer exception could cause the user segment to be invalidated during a copyin()/copyout() without a thread switch that would cause it to be restored from the PCB, potentially causing the operation to continue on invalid memory. This is now handled by explicit restoration of segment 12 from the PCB on 32-bit systems and a check in the Data Segment Exception handler on 64-bit. While here, cause copyin()/copyout() to check whether the requested user segment is already installed, saving some pipeline flushes, and fix the synchronization primitives around the mtsr and slbmte instructions to prevent accessing stale segments. MFC after: 2 weeks
* Correct a bug in r213893; within a PHY driver MIIF_PHYPRIVn should be usedmarius2010-10-301-1/+1
| | | | instead of MIIF_MACPRIVn. This didn't make a functional difference though.
* Announce both IPsec and UDP Encap (NAT-T) if available forbz2010-10-301-0/+5
| | | | | | | | | | feature_present(3) checks. This will help to run-time detect and conditionally handle specific optionas of either feature in user space (i.e. in libipsec). Descriptions read by: rwatson MFC after: 2 weeks
* Correct some format strings used by sysctls.alc2010-10-302-3/+3
| | | | MFC after: 1 week
* Don't demote in pmap_demote_DMAP() if the specified length is zero.alc2010-10-301-0/+5
|
* When the make target is 'install', don't descend into the clangrpaulo2010-10-301-3/+5
| | | | | libraries subdirectories since there's nothing to do there. This saves us quite a few seconds off installworld, esp. if the disk I/O is slow.
* Actually remove the HAVE_CAST_H define this time.dim2010-10-301-1/+1
|
* Regenerate our usr.sbin/tcpdump/tcpdump/config.h for tcpdump 4.1.1, anddim2010-10-302-54/+41
| | | | remove unused HAVE_RC5_H and HAVE_CAST_H defines from CFLAGS.
* Remove sysctl debug.ncnegfactor, it is renamed to vfs.ncnegfactor.kib2010-10-301-2/+0
| | | | MFC: do not
* Don't bother to enable ASPM L1 to save more power. Even though I amyongari2010-10-301-1/+1
| | | | | | | | | | not able to trigger the issue with sample boards, some users seems to suffer from freeze/lockup when system is booted without UTP cable plugged in. I'm not sure whether this is BIOS issue or controller bug. This change fixes AR8132 lockup issue seen on EEE PC. Reported by: kmoore Tested by: kmoore
* Regenerate our lib/libpcap/config.h for libpcap 1.1.1.dim2010-10-291-26/+56
|
* sh: Tweak some string constants to reduce code size.jilles2010-10-294-5/+5
| | | | | * Reduce some needless differences. * Shorten some error messages that should not happen.
* Add a ${.CURDIR} reference to the previous commit.rpaulo2010-10-291-1/+1
| | | | Submitted by: dim
* Use pcap's bpf header, not our own copy of it.rpaulo2010-10-291-2/+0
|
* sh: Reject function names ending in one of !%*+-=?@}~jilles2010-10-291-1/+5
| | | | | | | | | These do something else in ksh: name=(...) is an array or compound variable assignment and the others are extended patterns. This is the last patch of the ones tested in the exp run. Exp-run done by: pav (with some other sh(1) changes)
* Force include ../../libpcap/config.h since privsep.c groks pcap'srpaulo2010-10-291-0/+2
| | | | internals.
* sh: Detect various additional errors in the parser.jilles2010-10-292-3/+7
| | | | | | | | | | | | | Apart from detecting breakage earlier or at all, this also fixes a segfault in the testsuite. The "handling" of the breakage left an invalid internal representation in some cases. Examples: echo a; do echo b echo `) echo a` echo `date; do do do` Exp-run done by: pav (with some other sh(1) changes)
* Add print-ipnet.crpaulo2010-10-291-1/+1
| | | | Submitted by: dim
* add pcap-common.c.rpaulo2010-10-291-1/+1
| | | | Submitted by: dim
* - When resetting pm_active and pm_context of a pmap in pmap_pinit() wemarius2010-10-291-4/+7
| | | | | | | need locking as otherwise we may race against the other parts of the MD code which expects a consistent state of these. While at it move the resetting of the pmap before entering it in the TSB. - Spell a 0 as TLB_CTX_KERNEL.
* Partially revert r203829; as it turns out what the PowerPC OFW loader didmarius2010-10-291-4/+4
| | | | | | | | was incorrect as further down the road cons_probe() calls malloc() so the former can't be called before init_heap() has succeed. Instead just exit to the firmware in case init_heap() fails like OF_init() does when hitting a problem as we're then likely running in a very broken environment where hardly anything can be trusted to work.
* sh: Error out on various specials/keywords in the wrong place in backticks.jilles2010-10-291-16/+16
| | | | | | | | Example: echo `date)` Exp-run done by: pav (with some other sh(1) changes) Obtained from: NetBSD (Christos Zoulas, NetBSD PR 11317)
* sh: Fix some issues with CTL* bytes and ${var#pat}.jilles2010-10-292-14/+35
| | | | | | | | | | | | | | subevalvar() incorrectly assumed that CTLESC bytes were present iff the expansion was quoted. However, they are present iff various processing such as word splitting is to be done later on. Example: v=@$e@$e@$e@ y="${v##*"$e"}" echo "$y" failed if $e contained the magic CTLESC byte. Exp-run done by: pav (with some other sh(1) changes)
* Remove support for creating the 'machine' symlink as well as creating thejhb2010-10-291-27/+0
| | | | | | | | | extra MACHINE_ARCH symlink for certain platforms (such as pc98). The support for creating these symlinks was added to sys/conf/kern.post.mk in changeset 152964. The intention of that commit was to remove this code from config(8), but config(8) was never updated. Approved by: imp
* Fix uninitialized variable.trasz2010-10-291-1/+1
| | | | | Found with: Coverity Prevent(tm) CID: 8632
* Remove more unused files.rpaulo2010-10-295-590/+0
|
* Remove unused files.rpaulo2010-10-2948-8225/+0
|
* Update for libpcap-1.1.1.rpaulo2010-10-291-1/+1
|
OpenPOWER on IntegriCloud