summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change some headers such that lang/gcc* ports no longer patch them.tijl2012-02-143-5/+5
| | | | | | | The lang/gcc* ports patch headers where they think something is non-standard. These patched headers override the system headers which means you have to rebuild these ports whenever you do installworld to make sure they contain the latest changes.
* Cleanup of xlocale:theraven2012-02-1428-299/+805
| | | | | | | | | | | | | | | | - Address performance regressions encountered by das@ by caching per-thread data in TLS where available. - Add a __NO_TLS flag to cdefs.h to indicate where not available. - Reorganise the xlocale.h definitions into xlocale/*.h so that they can be included from multiple places. - Export the POSIX2008 subset of xlocale when POSIX2008 says it should be exported, independently of whether xlocale.h is included. - Fix the bug where programs using ctype functions always assumed ASCII unless recompiled. - Fix some style(9) violations. Reviewed by: brooks (mentor) Approved by: dim (mentor)
* Fix a bug where the wrong protocol overhead was used. This can leadtuexen2012-02-141-25/+62
| | | | | | | | | to a deadlock of an association when an IPv6 socket was used to communcate with IPv4 and an ICMPv4 fragmentation needed message was received. While there, simplify the code a bit. MFC after: 3 days.
* Replace PRIdMAX with "jd" in a printf call. Cast the corresponding value totijl2012-02-141-5/+2
| | | | intmax_t instead of uintmax_t, because the original type is off_t.
* Fix various issues with the NFS and RPC related scripts:dougb2012-02-1416-149/+82
| | | | | | | | | | | | | | | | | | | 1. Add new functionality to the force_depend method to incorporate the tests for whether the service is enabled and/or already running. 2. Add a new option to bypass checking only that the service is enabled at boot time, and always check if it is running. 3. Use this new functionality to greatly simplify the rc.d scripts that use force_depend. 4. Add a force_depend for statd in lockd 5. Remove the check that either nfs_server or nfs_client is _enable'd from statd and lockd. This was always overkill, and prevented using the {one|force}start options, as well as stop'ing on the command line. 6. The yp* scripts had some of their arguments in various weird orders. Bring them into line with the model. 7. If mountd fails to create /var/db/mountdtab, err out. Ideas, suggestions, and/or review from delphij and jilles. Pointy hats are completely my responsibility however.
* readlink len-1kevlo2012-02-141-1/+1
|
* properly sort dev/oce entriesluigi2012-02-141-6/+6
|
* Remove unnecessary castkevlo2012-02-142-5/+5
|
* Restore message in man page on VFS timestamp precision.ed2012-02-141-1/+11
| | | | Requested by: bde, jhb
* Do not handle MOD_SHUTDOWN equally to MOD_UNLOAD in sound kernel module.mav2012-02-141-1/+2
| | | | | | | | | MOD_SHUTDOWN is not an end of existence, and there is a life after it. In particular, code previously called on MOD_SHUTDOWN grabbed lock and deallocated unit numbering. That caused infinite wait loop if snd_uaudio tried to destroy its PCM device after that point. MFC after: 3 days
* Disable jail support in ifconfig when either building a rescuermh2012-02-143-3/+16
| | | | | | | image or MK_JAIL knob has been set to "no". Reviewed by: bz Approved by: adrian (mentor)
* Add a rudimentary test to run through all the available counters on agnn2012-02-141-0/+79
| | | | | | | | system and then execute a program with pmcstat in counting mode. The program will verify that all counters fire and that the code neither panics the system nor locks it up. This should be considered a first pass conformance test for new sets of counters being added to hwpmc(4).
* wctob() returns EOF and not WEOF.delphij2012-02-141-2/+2
| | | | | Noticed by: Zhihao Yuan <lichray gmail com> MFC after: 1 week
* For RTL8168/8111D controller, make sure to wake PHY from power downyongari2012-02-141-1/+6
| | | | mode. Otherwise, PHY access times out under certain conditions.
* - As it turns out, MSI-X is broken for at least LSI SAS1068E when passedmarius2012-02-141-10/+11
| | | | | | | | | | | | | | | | | | through by VMware so blacklist their PCI-PCI bridge for MSI/MSI-X here. Note that besides currently there not being a quirk type that disables MSI-X only and there's no evidence that MSI doesn't work with the VMware pass-through, it's really questionable whether MSI generally works in that setup as VMware only mention three know working devices [1, p. 4]. Also not that this quirk entry currently doesn't affect the devices emulated by VMware in any way as these don't claim support MSI/MSI-X to begin with. [2] While at it, make the PCI quirk table const and static. - Remove some duplicated empty lines. - Use DEVMETHOD_END. PR: 163812, http://forums.freebsd.org/showthread.php?t=27899 [2] Reviewed by: jhb MFC after: 3 days
* Enable TLS support for ARM toolchaingonzo2012-02-141-2/+0
| | | | Reviewed by: cognet
* Add thread-local storage support for arm:gonzo2012-02-142-4/+5
| | | | | - Switch to Variant I TCB layout - Use function from rtld for TCB allocation/deallocation
* Add thread-local storage support for ARM to rtld-elfgonzo2012-02-143-11/+83
| | | | | Reviewed by: cognet Obtained from: NetBSD
* Add ARM relocations types used for thread-local storagegonzo2012-02-141-0/+4
| | | | Reviewed by: cognet
* Add __aeabi_read_tp function required for thread-local storagegonzo2012-02-142-1/+43
| | | | Reviewed by: cognet
* Minor cleanup and added missing svn keywords.brueffer2012-02-131-5/+7
|
* Use if_maddr_*lock() routines to lock the per-interface multicastjhb2012-02-131-2/+2
| | | | address list rather than manipulating the lock directly.
* - use struct ifnet as explicit type of the argument to theluigi2012-02-137-96/+212
| | | | | | | | | | txsync() and rxsync() callbacks, removing some variables made useless by this change; - add generic lock and irq handling routines. These can be useful in case there are no driver locks that we can reuse; - add a few macros to reduce differences with the Linux version.
* Use the non-sleeping variang of t4_wr_mbox in code that can be callednp2012-02-131-1/+1
| | | | | | with locks held. MFC after: 1 day
* Add a sysctl to report the firmware build number.emaste2012-02-131-0/+9
| | | | | | | Some older firmware versions have issues that can be worked around by avoiding certain operations. Add a sysctl dev.aac.#.firmware_build to make it easy for scripts or userland tools to detect the firmware version.
* Fix write(1) to support wide characters.glebius2012-02-132-28/+17
| | | | | Submitted by: amdmi3 PR: bin/164317
* No need to optimise for a node with no hooks, my braino.glebius2012-02-131-5/+2
|
* Polish diff against upstream.ed2012-02-1313-54/+50
| | | | | | | | | | - Revert unneeded whitespace changes. - Revert modifications to loginrec.c, as the upstream version already does the right thing. - Fix indentation and whitespace of local changes. Approved by: des MFC after: 1 month
* Add missed EOL when die() was converted to use rtld_fdputstr() insteadkib2012-02-131-0/+1
| | | | | | | | of errx(). Reported by: amdmi3 PR: bin/165075 MFC after: 3 days
* Correct the 802.11s mesh configuration structure and related tidbits.adrian2012-02-132-20/+53
| | | | | | | | | | | | | | | | | | | | | | | | * Change the mesh IE size to be IEEE80211_MESH_CONF_SZ rather than the size of the structure; * conf_cap is now a uint8_t rather than a uint16_t (uint16_t in D3.0, uint8_t in the amendment spec); * Update mesh config capability bits - earlier bits were from draft X, current is amendment spec; * Update the following to be an enum rather than #define and added a VENDOR entry too from the amendment spec; IEEE80211_MESHCONF_PATH_* IEEE80211_MESHCONF_METRIC_* IEEE80211_MESHCONF_CC_* IEEE80211_MESHCONF_SYNC_* IEEE80211_MESHCONF_AUTH_* * Kept IEEE80211_MESHCONF_FORM_* and IEEE80211_MESHCONF_CAP_* as defines because they are defined in a way that we need to mask in/out information; * In IEEE80211_MESHCONF_CAP_* IEEE80211_MESHCONF_CAP_TBTTA is removed and 0x80 is made reserved as defined in the amendment spec. Submitted by: monthadar@gmail.com Reviewed by: rpaulo
* Re-generate /etc/devd/usb.confhselasky2012-02-131-6/+15
| | | | MFC after: 1 day
* Fix panic after "WARNING - ATA_IDENTIFY taskqueue timeout"emaste2012-02-131-0/+1
| | | | | | | | | | | | | | | | | | | | When performing a firmware upgrade via atacontrol[1] the subsequent command may time out producing the error message above. When this happens the callout could still be active, and the system would then panic due to a destroyed semaphore. Instead, ensure that the callout is done first, via callout_drain. Note that this fix applies to the "old" ata(4) and so isn't applicable to the default configuration in HEAD. It is still applicable to stable/8. [1] http://lists.freebsd.org/pipermail/freebsd-current/2012-January/031122.html Submitted by: Nima Misaghian Reviewed by: rstone, attilio, mav Obtained from: SVOS MFC after: 3 days
* Missing conditions in checking whether an inode has been written.mckusick2012-02-131-0/+3
| | | | | Found and tested by: Peter Holm MFC after: 2 weeks (to 9 only)
* Attempt to address some potential vap->iv_bss race conditions.adrian2012-02-131-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are unfortunately a number of situations where vap->iv_bss is changed or freed by some code in net80211. Because multiple threads can concurrently be doing work (and the vap->iv_bss access isn't at all done behind any kind of lock), it's quite possible that: * a change will occur in one thread - eg, by a call through ieee80211_sta_join1(); * a state change occurs in another thread - eg an RX is scheduled in the ath tasklet and it calls ieee80211_input_mimo_all(), which does dereference vap->iv_bss; * these two executing concurrently, causing things to explode. Another instance is ath_beacon_alloc() which takes an ieee80211_node *. It's called with the vap->iv_bss node from ath_newstate(). If the node has changed in the meantime (say it's been freed elsewhere) the reference that it grabbed _before_ refcounting it may be stale. I would _prefer_ that these sorts of things were serialised somewhere but that may be a bit much to ask. Instead, the best we can (currently) hope is that the underlying bss node is still (somewhat) valid. There is a related PR (kern/164382) described by the first case above. That should be fixed by properly serialising the RX path and reset path so an RX can't occur at the same time as the vap free/shutdown path. This is inspired by some related fixes in r212127. PR: kern/165060
* Prevent periodic scripts that run longer than the expected period frombrooks2012-02-121-64/+95
| | | | | | | | | | | starting up before the previous script finishes. This prevents an infinite number of them from piling up and slowing a system down. Since all the refactoring to make this happen required churning the indenting of most of this file, make the indentation more consistent. Reviewed by: simon MFC after: 1 week
* Fix a typo.rmh2012-02-121-1/+1
| | | | | | Approved by: kib (mentor) Reported by: lwhsu, Niclas Zeising <zeising@daemonic.se> MFC after: 5 days
* Globally replace u_int*_t from (non-contributed) man pages.ed2012-02-1256-345/+345
| | | | | | | | | | | The reasoning behind this, is that if we are consistent in our documentation about the uint*_t stuff, people will be less tempted to write new code that uses the non-standard types. I am not going to bump the man page dates, as these changes can be considered style nits. The meaning of the man pages is unaffected. MFC after: 1 month
* start watchdogd before most of other daemons/serversavg2012-02-122-2/+2
| | | | | | | | | The main benefit is that watchdogd would shutdown after most of other daemons/servers and thus, for example, would remedy a system hang caused by unlucky X server shutdown. Reviewed by: dougb (earlier version) MFC after: 2 weeks
* Move WITHOUT_SOURCELESS_* files to sys/conf/ in order to avoid "universe"rmh2012-02-126-58/+0
| | | | | | | target processing them as if they were standalone kernel config files. Approved by: kib (mentor) MFC after: 5 days
* newvers.sh: unbreak git/git-svn supportavg2012-02-121-4/+8
| | | | MFC after: 2 weeks
* Avoid using BEFORE in the utx rc script.ed2012-02-122-2/+1
| | | | Requested by: dougb
* Include target names in diagnostic output.fjoe2012-02-122-68/+75
| | | | Submitted by: Garrett Cooper
* - Use fixed-width integer types.fjoe2012-02-122-21/+21
| | | | | | | | - Prefer to use C99 stdint types. This fixes ng_cisco on 64-bit architectures. MFC after: 1 week
* And of course, I forgot to add -a to the usage.ed2012-02-111-1/+1
|
* Attempt to implement who -a.ed2012-02-112-22/+16
| | | | | | According to POSIX, -a is equal to -bdlprtTu. It seems this is not true in practice, as -b normally restricts the output to BOOT_TIME entries and all implementations that I know of don't.
* sh: Make 'hash' return 1 if at least one utility is not found.jilles2012-02-112-8/+18
| | | | Reported by: lme
* Move utmpx handling out of init(8).ed2012-02-115-42/+25
| | | | | | | | | | | | | | | | | This has the following advantages: - During boot, the BOOT_TIME record is now written right after the file systems become writable, but before users are allowed to log in. This means that they can't cause `hidden logins' by logging in right before init(8) kicks in. - The pututxline(3) function may potentially block on file locking, though this is very rare to occur. By placing it in an rc script, the user can still kill it with ^C if needed. - Most importantly: jails don't use init(8). This means that a force reboot of a system running jails will leave stale entries in the accounting database of the jails individually.
* MFp4 204292:bz2012-02-111-0/+12
| | | | | | | | | | Ignore the NAT_T extension types so we can at least dump the SADB from the in-base libipsec/setkey without error when NAT_T support is present in the kernel, though not printing the additional information yet. However in case there is no NAT_T support in kernel still consider them to be an error. MFC after: 8 weeks
* Replace utxrm(8) by utx(8).ed2012-02-118-33/+103
| | | | | | | | | | At first, I added a utility called utxrm(8) to remove stale entries from the user accounting database. It seems there are cases in which we need to perform different operations on the database as well. Simply rename utxrm(8) to utx(8) and place the old code under the "rm" command. In addition to "rm", this tool supports "boot" and "shutdown", which are going to be used by an rc-script which I am going to commit separately.
* Close a race due to dropping of the map lock between creating map entrykib2012-02-113-10/+11
| | | | | | | | | for a shared mapping and marking the entry for inheritance. Other thread might execute vmspace_fork() in between (e.g. by fork(2)), resulting in the mapping becoming private. Noted and reviewed by: alc MFC after: 1 week
OpenPOWER on IntegriCloud