summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* The iconv in libc did two things - implement the standard APIs, the GNUpeter2013-08-1312-42/+122
| | | | | | | | | | | | | | | | | | | | | | | | extensions and also tried to be link time compatible with ports libiconv. This splits that functionality and enables the parts that shouldn't interfere with the port by default. WITH_ICONV (now on by default) - adds iconv.h, iconv_open(3) etc. WITH_LIBICONV_COMPAT (off by default) adds the libiconv_open etc API, linker symbols and even a stub libiconv.so.3 that are good enough to be able to 'pkg delete -f libiconv' on a running system and reasonably expect it to work. I have tortured many machines over the last few days to try and reduce the possibilities of foot-shooting as much as I can. I've successfully recompiled to enable and disable the libiconv_compat modes, ports that use libiconv alongside system iconv etc. If you don't enable the WITH_LIBICONV_COMPAT switch, they don't share symbol space. This is an extension of behavior on other system. iconv(3) is a standard libc interface and libiconv port expects to be able to run alongside it on systems that have it. Bumped osreldate.
* Oops, wrong constant at r254269.mav2013-08-131-1/+1
|
* Fix reasonable but safe Clang warnings.mav2013-08-131-2/+6
|
* FreeBSD's DTrace implementation has a few problems with respect to handlingmarkj2013-08-139-487/+362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | probes declared in a kernel module when that module is unloaded. In particular, * Unloading a module with active SDT probes will cause a panic. [1] * A module's (FBT/SDT) probes aren't destroyed when the module is unloaded; trying to use them after the fact will generally cause a panic. This change fixes both problems by porting the DTrace module load/unload handlers from illumos and registering them with the corresponding EVENTHANDLER(9) handlers. This allows the DTrace framework to destroy all probes defined in a module when that module is unloaded, and to prevent a module unload from proceeding if some of its probes are active. The latter problem has already been fixed for FBT probes by checking lf->nenabled in kern_kldunload(), but moving the check into the DTrace framework generalizes it to all kernel providers and also fixes a race in the current implementation (since a probe may be activated between the check and the call to linker_file_unload()). Additionally, the SDT implementation has been reworked to define SDT providers/probes/argtypes in linker sets rather than using SYSINIT/SYSUNINIT to create and destroy SDT probes when a module is loaded or unloaded. This simplifies things quite a bit since it means that pretty much all of the SDT code can live in sdt.ko, and since it becomes easier to integrate SDT with the DTrace framework. Furthermore, this allows FreeBSD to be quite flexible in that SDT providers spanning multiple modules can be created on the fly when a module is loaded; at the moment it looks like illumos' SDT implementation requires all SDT probes to be statically defined in a single kernel table. PR: 166927, 166926, 166928 Reported by: davide [1] Reviewed by: avg, trociny (earlier version) MFC after: 1 month
* Remove some unused fields from struct linker_file. They were added inmarkj2013-08-132-6/+0
| | | | | | | r172862 for use by the DTrace SDT framework but don't seem to have ever been used. MFC after: 2 weeks
* Add event handlers for module load and unload events. The load handlers aremarkj2013-08-133-3/+22
| | | | | | | | | called after the module has been loaded, and the unload handlers are called before the module is unloaded. Moreover, the module unload handlers may return an error to prevent the unload from proceeding. Reviewed by: avg MFC after: 2 weeks
* Make sure bootonly.iso for -BETAs and -RCs use the releases/gjb2013-08-131-1/+1
| | | | | | | | directory on the FTP mirrors to fetch distributions, since these are always pushed to releases/ during the release cycle. MFC after: 3 days X-MFC-To: stable/9, releng/9.2
* Alter the mq_start routine to do a TRYLOCK and call to the locked routinejfv2013-08-131-1/+7
| | | | | | rather than just queueing. The former code was an attempt at getting UDP performance up, but there have been customer reports of problems with it, so the ixgbe approach seems the best solution for now.
* Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCIscottl2013-08-1263-522/+110
| | | | | | | | | | | | | | | | | command register. The lazy BAR allocation code in FreeBSD sometimes disables this bit when it detects a range conflict, and will re-enable it on demand when a driver allocates the BAR. Thus, the bit is no longer a reliable indication of capability, and should not be checked. This results in the elimination of a lot of code from drivers, and also gives the opportunity to simplify a lot of drivers to use a helper API to set the busmaster enable bit. This changes fixes some recent reports of disk controllers and their associated drives/enclosures disappearing during boot. Submitted by: jhb Reviewed by: jfv, marius, achadd, achim MFC after: 1 day
* Improve the MSIX setup code in the drivers, thanks to Marius forjfv2013-08-124-13/+33
| | | | | | | | the changes. Make sure that pci_alloc_msix() does give us the vectors we need and fall back to MSI when it doesn't, also release any that were allocated when insufficient. MFC after: 3 days
* Blank m_nextpkt before passing it up.adrian2013-08-121-0/+1
|
* Add read-only support for extents in ext2fs.pfg2013-08-1213-32/+565
| | | | | | | | | | | | | | | | | | | | | | | | | | Basic support for extents was implemented by Zheng Liu as part of his Google Summer of Code in 2010. This support is read-only at this time. In addition to extents we also support the huge_file extension for read-only purposes. This works nicely with the additional support for birthtime/nanosec timestamps and dir_index that have been added lately. The implementation may not work for all ext4 filesystems as it doesn't support some features that are being enabled by default on recent linux like flex_bg. Nevertheless, the feature should be very useful for migration or simple access in filesystems that have been converted from ext2/3 or don't use incompatible features. Special thanks to Zheng Liu for his dedication and continued work to support ext2 in FreeBSD. Submitted by: Zheng Liu (lz@) Reviewed by: Mike Ma, Christoph Mallon (previous version) Sponsored by: Google Inc. MFC after: 3 weeks
* Make check for unknown login class actually work. Previously, using the ↵trasz2013-08-121-0/+2
| | | | | | | "-c" option with login class not defined in login.conf(5) would silently fail, resulting in using the default login class.
* Add brace missing in r254253.mav2013-08-121-1/+1
|
* r253460 accidentally some moderately expensive debugging code, evenscottl2013-08-121-0/+4
| | | | | | | | when debugging isn't enabled. Work around this. Submitted by: mav Obtained from: Netflix MFC after: 3 days
* Fix the formatting of the error message.ed2013-08-121-2/+2
| | | | | The G_MIRROR_DEBUG() macro already appends a newline. Also, most of the log messages emitted by gmirror start with an uppercase letter.
* Temporarily revert sendmail 8.14.7 change to getipnodebyname() flags togshapiro2013-08-121-0/+4
| | | | | | | | prevent problems between the resolver and Microsoft DNS servers with AAAA lookups. The upstream open source project will work on a more permanent fix for the next release. Issue noted by Pavel Timofeev. MFC after: 3 days
* Make the features a 64-bit value instead of 32-bit.tuexen2013-08-124-35/+34
| | | | | | | | This will allow an easier integration of the support for NDATA. While there, do also some minor cleanups. Obtained from: rrs@ MFC after: 2 weeks
* It seems the pre-commit checker doesn't detect illegal character sets. Fix.peter2013-08-120-0/+0
|
* Give up on using iconv to convert to UTF-8 at build time. I don't see anypeter2013-08-1210-50/+2783
| | | | | practical way to make iconv(1) as a build tool. Instead pre-convert. This gives us UTF-8 nvi catalogs even on systems without iconv enabled.
* - Try to fix build of 32-bit compatibility USB support for FreeBSD andhselasky2013-08-124-24/+32
| | | | | | | | | | | Linux targets without breaking the existing IOCTL API. - Remove some not-needed header file inclusions. - Wrap a long line. MFC after: 1 week Reported by: Damjan Jovanovic <damjan.jov@gmail.com>
* Fix some signed comparison compile warnings.hselasky2013-08-123-5/+5
|
* Correct an EHCI register write.hselasky2013-08-121-1/+1
| | | | | MFC after: 1 week Reported by: aseem.jolly@gmail.com
* Add optional support for default override of standard setup; but only ifdteske2013-08-121-3/+35
| | | | | corresponding functions are provided. If override function does not exist, boot remains unmodified. This patch should not result in any changes.
* When flushing packets from the powersave queue, make sure thatadrian2013-08-121-0/+1
| | | | | m_nextpkt is NULL before passing it up to the parent transmit method.
* Add a missing break.adrian2013-08-121-0/+1
|
* fnmatch(): Add test for r254091 (pattern with single backslash).jilles2013-08-111-0/+4
| | | | | | | | This test cannot be converted to an sh(1) test because the syntax would be invalid. PR: 181129 MFC after: 1 week
* Don't build the UTF-8 version of the catalogs without iconv enabled.peter2013-08-111-8/+7
| | | | Pointy-hat to: peter (don't do things at 4am!)
* Only allocate 2 bounce pages for maps that can only use them for buffers thatcognet2013-08-111-1/+6
| | | | are unaligned on cache lines boundary, as we will never need more.
* Correct the recovery logic in vm_page_alloc_contig:attilio2013-08-111-4/+2
| | | | | | | | | | | what is really needed on this code snipped is that all the pages that are already fully inserted gets fully freed, while for the others the object removal itself might be skipped, hence the object might be set to NULL. Sponsored by: EMC / Isilon storage division Reported by: alc, kib Reviewed by: alc
* Don't install a ru_SU.KOI8-R symlink, 'make delete-old' will just removepeter2013-08-111-1/+0
| | | | it again.
* Update nvi-1.79 to 2.1.1-4334a8297fpeter2013-08-11269-30408/+13000
| | | | | | | | | | | | | | | | | | | | | | | | This is the gsoc-2011 project to clean up and backport multibyte support from other nvi forks in a form we can use. USE_WIDECHAR is on unless building for the rescue crunchgen. This should allow editing in the native locale encoding. USE_ICONV depends on make.conf having 'WITH_ICONV=YES' for now. This adds the ability to do things like edit a KOI8-R file while having $LANG set to (say) en_US.UTF-8. iconv is used to transcode the characters for display. Other points: * It uses gencat and catopen/etc instead of homegrown msg catalog stuff. * A lot of stuff has been trimmed out, eg: the perl and tcl bindings which we could never use in base anyway. * It uses ncursesw when in widechar mode. This could be interesting. GSoC info: http://www.google-melange.com/gsoc/proposal/review/google/gsoc2011/zy/1 Repo at: https://github.com/lichray/nvi2 Obtained from: Zhihao Yuan <lichray@gmail.com>
* - Update the wrapper script to 'release.sh', as used by the FreeBSDgjb2013-08-111-71/+230
| | | | | | | | | | | | | | | | | | | | | | Release Engineering Team as of 9.2-RELEASE. - Document that a cross-build release is possible by setting the TARGET and TARGET_ARCH variables. - Include an example of using release.sh with and without the optional configuration file. - Document the supported release.sh configuration file variables. - Update the 'cdrom' target output file to disc1.iso. - Update the 'memstick' target output file to memstick.img. - Add attributions for the last major updates to this manual page. - Fix some mdoc(7) style nits: - Sentences should begin on a new line - Use .Pq to enclose full lines in parenthesis
* Add FreeBSD 9.2 to mdoc.local.gjb2013-08-111-0/+1
|
* db/hash: Use O_CLOEXEC instead of separate fcntl() call.jilles2013-08-111-2/+1
| | | | | | In particular, a hash db is used by getpwnam() and getpwuid(). MFC after: 1 week
* wait: Make sure WIFSIGNALED(s) is false if WIFCONTINUED(s) is true.jilles2013-08-111-1/+1
|
* Use realpath(1) to determine the location of the newvers.sh script,gjb2013-08-111-2/+2
| | | | | | | since the current working directory might not be what is expected, causing svn{,lite}version to fail to find ${0} (itself). Submitted by: Dan Mack
* In su(1), fix option ordering and clarify that the login class specifiedtrasz2013-08-111-5/+7
| | | | | | must be defined in login.conf. MFC after: 1 month
* Use device_printf().rpaulo2013-08-111-3/+4
|
* Use the correct structure size when flipping the BT coex state machine.adrian2013-08-111-1/+1
| | | | | | | | This showed up when doing some basic testing on the Intel 6230. Tested: * Intel 6230, STA mode
* Prepare for the PAN (personal area network) support for iwn(4).adrian2013-08-112-60/+164
| | | | | | | | | | | | | | | * Break out the single, static RX context into a pointer, and .. * .. extend it to two RX contexts - a default and a PAN context. Whilst here, add a few extra fields in preparation for further iwn(4) work. Tested: * Intel 4965, STA mode - same level of stability * Intel 5100, STA mode - no change Submitted by: Cedric Gross <cg@gross.info>
* Add firmware for the Intel 2030 and variants.adrian2013-08-113-1/+24911
| | | | | Submitted by: Cedric GROSS <cg@gross.info> Obtained from: Linux, Intel
* Remove a now-unused firmware.adrian2013-08-111-7833/+0
|
* Update the 6000g2a image.adrian2013-08-112-1/+30189
| | | | Obtained from: Linux, Intel
* fasttrap_fork(): unlock the processes before removing the tracepoints.rpaulo2013-08-111-0/+8
| | | | | | | | In the future, we'll need to come up with new proc_*() functions that accept locked processes. For now, this prevents postgresql + DTrace from crashing the system. MFC after: 1 month
* Load the dtraceall module if /dev/dtrace/dtrace doesn't exist.rpaulo2013-08-101-1/+11
| | | | MFC after: 3 days
* Add in missing m_free()'s during error conditions.adrian2013-08-101-0/+6
|
* The r254167 moved initialization of the sleepqueues before the witnesskib2013-08-101-1/+1
| | | | | | | | | | | | is operational. init_sleepqueues() initializes 256 mutexes, which, due to witness still being cold, started to overflow the pending_locks array. As stated in the reported panic message, increase WITNESS_PENDLIST from 768 to 1024, which provides space for additional 256 locks. Reported by: many Tested by: rakuco, bdrewery
* ParseGetLine: don't treat a zero byte as end of buffer if P_end says it isn't.sjg2013-08-102-1/+11
| | | | | Consume up to next newline, and issue a parse warning. If no newline found before P_end, carry on as before.
* Match malloc(9) calls with free(9), not contigfree(9). Also removekib2013-08-101-4/+2
| | | | | | | | unneeded checks for NULL, free(9) can handle NULL pointers on its own, and the regions were allocated with M_WAITOK flag as well. Reported and tested by: Larry Rosenman <ler@lerctr.org> MFC after: 1 week
OpenPOWER on IntegriCloud