summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix build without `options ATA_CAM`, broken by r241144.mav2012-10-031-0/+4
|
* Correct detection of a superblock.gber2012-10-031-8/+7
| | | | Obtained from: Smartcom Bulgaria AD
* Reimplement pmap_qremove() using the new TLB invalidation function foralc2012-10-031-7/+11
| | | | efficiently invalidating address ranges.
* Tidy up a bit:alc2012-10-031-37/+25
| | | | | | | | | | | | Update some of the comments. In particular, use "sleep" in preference to "block" where appropriate. Eliminate some unnecessary casts. Make a few whitespace changes for consistency. Reviewed by: kib MFC after: 3 days
* Optimize prev. commit for speed.ache2012-10-031-3/+7
| | | | | | | | | 1) Don't iterate the loop from the environment array beginning each time, iterate it under the last place we deactivate instead. 2) Call __rebuild_environ() not on each iteration but once, only at the end of whole loop (of course, only in case if something is changed). MFC after: 1 week
* rpc: convert all uid and gid variables of the type uid_t and gid_t.pfg2012-10-031-5/+5
| | | | | | | | | | | | | | As part of the previous commit, uses of xdr_int() were replaced with xdr_u_int(). This has undesired effects as the second argument doesn't match exactly uid_t or gid_t. It also breaks assumptions in the size of the provided types. To work around those issues we revert back to the use of xdr_int() but provide proper casting so the behaviour doesn't change. While here fix a style issue in the affected lines. Reported by: bde
* Import sysutils/sysrc from the ports tree (current version 5.1). Importingdteske2012-10-035-2/+924
| | | | | | | | | | disconnected under the WITH_BSDCONFIG flag (a good idea since this version of sysrc(8) indeed requires the `sysrc.subr' module installed by bsdconfig(8)). Multiple reasons sysrc should not simply continue to live in ports. The most important being that it is tightly coupled with the base. Approved by: adrian (co-mentor)
* Merge bmake-20120831 from vendor/NetBSD/bmake/dist.marcel2012-10-03120-0/+55801
|\ | | | | | | Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg
| * "Tag" the 20120831 Portable BSD make import.marcel2012-09-11120-0/+55801
| |
| * Remove bad tag.marcel2012-09-11120-54382/+0
| |
| * Import the 20120831 release of the "Portable" BSD make tool (from NetBSD).marcel2012-09-118-14/+1433
| | | | | | | | Submitted by: Simon Gerraty <sjg@juniper.net>
| * "Tag" the 20120831 Portable BSD make import.marcel2012-09-11120-0/+54382
| |
| * Script used to commit r238152 / r238153.obrien2012-07-061-2/+18
| |
| * "Tag" the 20120704 Portable BSD make import.obrien2012-07-06120-0/+54382
| |
| * Import the 20120704 release of the "Portable" BSD make tool (from NetBSD).obrien2012-07-065-18/+43
| | | | | | | | Submitted by: Simon Gerraty <sjg@juniper.net>
| * "Tag" the r237578 Portable BSD make 20-June-2012 import.obrien2012-06-25120-0/+54357
| |
| * Import the 20-June-2012 release of the "Portable" BSD make tool (from NetBSD).obrien2012-06-2522-122/+230
| | | | | | | | Submitted by: sjg@juniper.net
| * "Tag" the r236769 Portable BSD make 6-May-2012 import.obrien2012-06-08119-0/+54249
| |
| * Import the 6-May-2012 release of the "Portable" BSD make tool (from NetBSD).obrien2012-06-08120-0/+54339
| | | | Submitted by: sjg@juniper.net
* Add casts to unbreak the i386 PAE build for the mps(4) driver.ken2012-10-021-2/+2
| | | | | MFC after: 3 days Prompted by: Garrett Cooper
* Implement SATA revision (speed) control for legacy SATA controller formav2012-10-024-6/+35
| | | | | | | both boot (via loader tunables) and run-time (via `camcontrol negotiate`). Tested to work at least on NVIDIA MCP55 chipset. H/w provided by: glebius
* libtirpc: be sure to free cl_netid and cl_tppfg2012-10-022-0/+8
| | | | | | | | | | | | | When creating a client with clnt_tli_create, it uses strdup to copy strings for these fields if nconf is passed in. clnt_dg_destroy frees these strings already. Make sure clnt_vc_destroy frees them in the same way. This change matches the reference (OpenSolaris) implementation. Tested by: David Wolfskill Obtained from: Bull GNU/Linux NFSv4 Project (libtirpc) MFC after: 2 weeks
* Fix __rpc_getconfippfg2012-10-021-2/+4
| | | | | | | | | | | | | | __rpc_getconfip is supposed to return the first netconf entry supporting tcp or udp, respectively. The code will currently return the *last* entry, plus it will leak memory when there is more than one such entry. This change matches the reference (OpenSolaris) implementation. Tested by: David Wolfskill Obtained from: Bull GNU/linux NFSv4 Project (libtirpc) MFC after: 1 week
* RPC: Convert all uid and gid variables of the type uid_t and gid_t.pfg2012-10-027-24/+20
| | | | | | | | This matches what upstream (OpenSolaris) does. Tested by: David Wolfskill Obtained from: Bull GNU/Linux NFSv4 project (libtirpc) MFC after: 3 days
* Fix spelling of the function name in two assertion messages.wollman2012-10-021-2/+2
|
* Update UPDATING with the ABI change for net80211.adrian2012-10-021-0/+5
|
* Migrate the power-save functions to be overridable VAP methods.adrian2012-10-028-11/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | This turns ieee80211_node_pwrsave(), ieee80211_sta_pwrsave() and ieee80211_recv_pspoll() into methods. The intent is to let drivers override these and tie into the power save management pathway. For ath(4), this is the beginning of forcing a node software queue to stop and start as needed, as well as supporting "leaking" single frames from the software queue to the hardware. Right now, ieee80211_recv_pspoll() will attempt to transmit a single frame to the hardware (whether it be a data frame on the power-save queue or a NULL data frame) but the driver may have hardware/software queued frames queued up. This initial work is an attempt at providing the hooks required to implement correct behaviour. Allowing ieee80211_node_pwrsave() to be overridden allows the ath(4) driver to pause and unpause the entire software queue for a given node. It doesn't make sense to transmit anything whilst the node is asleep. Please note that there are other corner cases to correctly handle - specifically, setting the MORE data bit correctly on frames to a station, as well as keeping the TIM updated. Those particular issues can be addressed later.
* Using putenv() and later direct pointer contents modification it is possibeache2012-10-021-1/+3
| | | | | | | | | | | | to craft environment variables with similar names like that: a=1 a=2 ... unsetenv("a") should remove them all to make later getenv("a") impossible. Fix it to do so (this is GNU autoconf test #3 failure too). PR: 172273 MFC after: 1 week
* Fix alignment related warnings reported by gcceadler2012-10-022-29/+17
| | | | | | | | | | Switch from old style arguments to modern C remove WARNS as a result tested with "make universe" Approved by: cperciva MFC after: 1 week
* To reduce volume of pfsync traffic:glebius2012-10-021-4/+8
| | | | | - Scan request update queue to prevent doubles. - Do not push undersized daragram in pfsync_update_request().
* Rename the module for 'device enc' to "if_enc" to avoid conflicting withjhb2012-10-021-2/+2
| | | | | | | | | the CAM "enc" peripheral (part of ses(4)). Previously the two modules used the same name, so only one was included in a linked kernel causing enc0 to not be created if you added IPSEC to GENERIC. The new module name follows the pattern of other network interfaces (e.g. "if_loop"). MFC after: 1 week
* There is a complex race in in_pcblookup_hash() and in_pcblookup_group().glebius2012-10-022-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both functions need to obtain lock on the found PCB, and they can't do classic inter-lock with the PCB hash lock, due to lock order reversal. To keep the PCB stable, these functions put a reference on it and after PCB lock is acquired drop it. If the reference was the last one, this means we've raced with in_pcbfree() and the PCB is no longer valid. This approach works okay only if we are acquiring writer-lock on the PCB. In case of reader-lock, the following scenario can happen: - 2 threads locate pcb, and do in_pcbref() on it. - These 2 threads drop the inp hash lock. - Another thread comes to delete pcb via in_pcbfree(), it obtains hash lock, does in_pcbremlists(), drops hash lock, and runs in_pcbrele_wlocked(), which doesn't free the pcb due to two references on it. Then it unlocks the pcb. - 2 aforementioned threads acquire reader lock on the pcb and run in_pcbrele_rlocked(). One gets 1 from in_pcbrele_rlocked() and continues, second gets 0 and considers pcb freed, returns. - The thread that got 1 continutes working with detached pcb, which later leads to panic in the underlying protocol level. To plumb that problem an additional INPCB flag introduced - INP_FREED. We check for that flag in the in_pcbrele_rlocked() and if it is set, we pretend that that was the last reference. Discussed with: rwatson, jhb Reported by: Vladimir Medvedkin <medved rambler-co.ru>
* Style.hselasky2012-10-021-1/+1
| | | | MFC after: 1 week
* Remove unused field.hselasky2012-10-021-4/+0
| | | | MFC after: 1 week
* mdoc: point to an existing cross reference.pluknet2012-10-021-1/+1
|
* Fix build with LOG_FILE undefined and DEBUGGING disabled.pluknet2012-10-021-0/+2
|
* Fix build with DEBUGGING disabled.pluknet2012-10-021-0/+4
|
* Introduce a new TLB invalidation function for efficiently invalidatingalc2012-10-023-9/+129
| | | | | | address ranges, and use this function in pmap_remove(). Tested by: jchandra
* Provide a generic way to disable devices at boot timeeadler2012-10-021-0/+7
| | | | | | | | PR: kern/119202 Requested by: peterj Reviewed by: sbruno, jhb Approved by: cperciva MFC after: 1 week
* Implement the Sun/GNU extension of using a defaulteadler2012-10-022-2/+13
| | | | | | | | prefix when no arguments are supplied. Reviewed by: jilles Approved by: cperciva MFC after: 1 week
* add SG state typeeadler2012-10-021-0/+2
| | | | | | | PR: bin/171664 Submitted by: Jan Beich jbeich@tormail.org Approved by: cperciva MFC after: 1 week
* Correct the tip about finding all the directories on the systemeadler2012-10-021-4/+9
| | | | | | | | Add a tip about clearing the screen. Make things more consistent by removing quotes around 'make search' Approved by: cperciva MFC after: 3 days
* Indicate (loudly) that ports csup is going away.eadler2012-10-011-6/+13
| | | | | | | While here clarify some other portions. Approved by: cperciva (implicit) MFC after: 3 days
* Add the mps(4) driver to the i386 GENERIC config file. LSI has tested itken2012-10-011-0/+1
| | | | | | | on i386 and verified that it works. Submitted by: Harald Schmalzbauer, John Baldwin, Kashyap Desai MFC after: 3 days
* Do not treat empty name as an uid 0bapt2012-10-011-1/+2
| | | | Reported by: Robert Bonomi <bonomi@mail.r-bonomi.com>
* Remove useless atoi(3), previous strspn(3) makes sure that a_name->val is abapt2012-10-011-2/+1
| | | | | | | | | number. This also allow pw user show to work as expected. PR: bin/172112 Submitted by: "Ilya A. Arkhipov" <rum1cro@yandex.ru> MFC after: 1 month
* Support kernel options from ubldr.kientzle2012-10-011-0/+1
|
* Attila Bogar and Herbert Poeckl both reported similar problemsrmacklem2012-10-011-3/+4
| | | | | | | | | | | | | | w.r.t. a Linux NFS client doing a krb5 NFS mount against the FreeBSD server. We determined this was a Linux bug: http://www.spinics.net/lists/linux-nfs/msg32466.html, however the mount failed to work, because the Destroy operation with a bogus encrypted checksum destroyed the authenticator handle. This patch changes the rpcsec_gss code so that it doesn't Destroy the authenticator handle for this case and, as such, the Linux mount will work. Tested by: Attila Bogar and Herbert Poeckl MFC after: 2 weeks
* - Rename .sgml files to .xml to track the recent doc changesgabor2012-10-01236-471/+476
| | | | MFC after: 1 day
* Add the UPDATING note about padlock rng support requiring the config change.kib2012-10-011-0/+8
| | | | | Requested by: Dewayne Geraghty <dewayne.geraghty@heuristicsystems.com.au> MFC after: 3 days
OpenPOWER on IntegriCloud