]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoUse ffs() to locate free bits in the inode and block bitmaps rather than
John Baldwin [Thu, 24 Feb 2011 22:11:36 +0000 (22:11 +0000)]
Use ffs() to locate free bits in the inode and block bitmaps rather than
loops with bit shifts.

13 years agoRecently, in upstream clang, a fix was done to add -L/usr/lib to the
Dimitry Andric [Thu, 24 Feb 2011 21:45:58 +0000 (21:45 +0000)]
Recently, in upstream clang, a fix was done to add -L/usr/lib to the
arguments passed to ld, when linking.  This was to appease configure
scripts in several ports, that grep for such a -L option in "${CC} -v"
output, to determine the startup objects passed to ld.  Note ld itself
does not need to be told about /usr/lib, since it has this path builtin
anyway.

However, if clang is built as a bootstrap tool during buildworld, it
should not use *anything* outside ${WORLDTMP} to include or link with.
The upstream fix to add -L/usr/lib breaks this assumption, and can thus
cause libraries from /usr/lib to be linked in during buildworld.

This can result in buildworld dying during linking of zinject, where it
picks up the wrong copy of libzpool.so, eventually leading to:

/usr/obj/usr/src/tmp/lib/libthr.so.3: undefined reference to `_rtld_get_stack_prot'

Fix this issue by not adding any hardcoded paths, but by looping through
the run-time library path list, which is already correctly set for the
bootstrap phase.

Reported by: datastream.freecity@gmail.com
Pointy hat to: dim

13 years agoAdd sticky.8 to the obsolete files since it had been
Remko Lodder [Thu, 24 Feb 2011 18:13:53 +0000 (18:13 +0000)]
Add sticky.8 to the obsolete files since it had been
moved to sticky.7

Submitted by: maxim and pluknet

13 years ago- Add missing xhci(4) manual page.
Hans Petter Selasky [Thu, 24 Feb 2011 18:08:23 +0000 (18:08 +0000)]
- Add missing xhci(4) manual page.
- Minor update in some USB manual pages.

MFC after: 3 days
Approved by: thompsa (mentor)

13 years agoAdd wording about the priority range and
Remko Lodder [Thu, 24 Feb 2011 16:13:33 +0000 (16:13 +0000)]
Add wording about the priority range and
mention what effect this has at certain
values.

PR: 124469
Obtained from: NetBSD nice.1 v1.14
MFC after: 1 week

13 years agoUpdate xz to release 5.0.1
Martin Matuska [Thu, 24 Feb 2011 13:42:35 +0000 (13:42 +0000)]
Update xz to release 5.0.1

MFC after: 1 week

13 years agoVendor import of xz (stripped)
Martin Matuska [Thu, 24 Feb 2011 13:18:49 +0000 (13:18 +0000)]
Vendor import of xz (stripped)
Git revision: 7232fcf96bf4bd5f9cd4fc6c93ca2912c665e004
Release: 5.0.1

13 years agoMove the sticky manual from section 8 to section
Remko Lodder [Thu, 24 Feb 2011 13:03:47 +0000 (13:03 +0000)]
Move the sticky manual from section 8 to section
7 like NetBSD has, since this is not a command
on itself.

PR: 124468
MFC after: 1 week

13 years ago- Fix typo
Pietro Cerutti [Thu, 24 Feb 2011 10:21:26 +0000 (10:21 +0000)]
- Fix typo

Approved by: davidxu

13 years agoRemove sysctl vm.max_proc_mmap used to protect from KVA space exhaustion.
Sergey Kandaurov [Thu, 24 Feb 2011 09:22:56 +0000 (09:22 +0000)]
Remove sysctl vm.max_proc_mmap used to protect from KVA space exhaustion.
As it was pointed out by Alan Cox, that no longer serves its purpose with
the modern UMA allocator compared to the old one used in 4.x days.

The removal of sysctl eliminates max_proc_mmap type overflow leading to
the broken mmap(2) seen with large amount of physical memory on arches
with factually unbound KVA space (such as amd64).  It was found that
slightly less than 256GB of physmem was enough to trigger the overflow.

Reviewed by: alc, kib
Approved by: avg (mentor)
MFC after: 2 months

13 years ago- Add support for some non-standard USB MIDI devices from Roland, by
Hans Petter Selasky [Thu, 24 Feb 2011 09:13:47 +0000 (09:13 +0000)]
- Add support for some non-standard USB MIDI devices from Roland, by
means of allowing vendor specific interface class for audio and MIDI devices.
- Add new quirks for this. The vendor and product list in OpenBSD's
dev/usb/umidi_quirks.c was used as reference.

MFC after: 14 days
Approved by: thompsa (mentor)

13 years agoThe new accounting file needs to be 644 so that unprivileged users
Doug Barton [Thu, 24 Feb 2011 06:28:48 +0000 (06:28 +0000)]
The new accounting file needs to be 644 so that unprivileged users
can use lastcomm(1)

13 years agoUse the cprd_mem field when setting the start and length for a memory
Rebecca Cran [Wed, 23 Feb 2011 21:45:28 +0000 (21:45 +0000)]
Use the cprd_mem field when setting the start and length for a memory
resource - the layout of cprd_port is identical but using cprd_mem
makes the code easier to understand.

PR: kern/118493
Submitted by: Weongyo Jeong <weongyo.jeong at gmail.com>
MFC after: 3 days

13 years agoFix the 32-bit build stage on amd64 when WITH_CTF is enabled. It seems
Dimitry Andric [Wed, 23 Feb 2011 21:17:38 +0000 (21:17 +0000)]
Fix the 32-bit build stage on amd64 when WITH_CTF is enabled.  It seems
ctfconvert will corrupt object files that are compiled with -g, if it is
not run with -g itself.

To fix it, remove -g from CFLAGS in lib/librt/Makefile.  If you need to
compile this library with debug info, use DEBUG_FLAGS=-g instead, which
will work correctly, even when using WITH_CTF.

13 years agoClean up the now unused #include statement.
Sergey Kandaurov [Wed, 23 Feb 2011 18:22:40 +0000 (18:22 +0000)]
Clean up the now unused #include statement.

Approved by: kib (mentor)
MFC after: 1 week
X-MFC with: r218972

13 years agoAlter comment to reflect change in code.
Josh Paetzel [Wed, 23 Feb 2011 17:52:26 +0000 (17:52 +0000)]
Alter comment to reflect change in code.
Try atacontrol if camcontrol fails.

Approved by: kib (mentor, implicit)

13 years agoHandle memory allocation failures in include().
Rebecca Cran [Wed, 23 Feb 2011 17:17:05 +0000 (17:17 +0000)]
Handle memory allocation failures in include().

PR: i386/85652
Submitted by: Ben Thomas <bthomas at virtualiron.com>
MFC after: 3 days

13 years agoAdd a catch-all for miscellaneous RAID volumes while seeking a better
Nathan Whitehorn [Wed, 23 Feb 2011 13:51:41 +0000 (13:51 +0000)]
Add a catch-all for miscellaneous RAID volumes while seeking a better
solution here. It would really help if CAM devices were part of newbus.

13 years agoMove the max_threads_per_proc and max_threads_hits variables to the
Konstantin Belousov [Wed, 23 Feb 2011 13:50:24 +0000 (13:50 +0000)]
Move the  max_threads_per_proc and max_threads_hits variables to the
file where they are used. Declare the kern.threads sysctl node at the
same location. Since no external use for the variables exists, make them
static.

Discussed with: dchagin
MFC after: 1 week

13 years agoRevert previous change, the existing check was correct.
John Baldwin [Wed, 23 Feb 2011 13:25:42 +0000 (13:25 +0000)]
Revert previous change, the existing check was correct.

Pointy hat to: jhb

13 years agoUse umtx_key objects to uniquely identify futexes. Private futexes in
John Baldwin [Wed, 23 Feb 2011 13:23:28 +0000 (13:23 +0000)]
Use umtx_key objects to uniquely identify futexes.  Private futexes in
different processes that happen to use the same user address in the
separate processes will now be treated as distinct futexes rather than the
same futex.  We can now honor shared futexes properly by mapping them to a
PROCESS_SHARED umtx_key.  Private futexes use THREAD_SHARED umtx_key
objects.

In conjunction with: dchagin
Reviewed by: kib
MFC after: 1 week

13 years agoExpose the umtx_key structure and API to the rest of the kernel.
John Baldwin [Wed, 23 Feb 2011 13:19:14 +0000 (13:19 +0000)]
Expose the umtx_key structure and API to the rest of the kernel.

MFC after: 3 days

13 years agoProperly handle BARs bigger than 4G. The '1' was treated as an int
John Baldwin [Wed, 23 Feb 2011 12:58:50 +0000 (12:58 +0000)]
Properly handle BARs bigger than 4G.  The '1' was treated as an int
causing the size calculation to be truncated to the size of an int
(32-bits on all current architectures).

Submitted by: Anish  akgupt3 of gmail
MFC after: 1 week

13 years agoFix off-by-one error in check against max_threads_per_proc.
John Baldwin [Wed, 23 Feb 2011 12:56:25 +0000 (12:56 +0000)]
Fix off-by-one error in check against max_threads_per_proc.

Submitted by: arundel
MFC after: 1 week

13 years agoCalculate and return the count in vmspace_swap_count as a vm_offset_t
Rebecca Cran [Wed, 23 Feb 2011 10:28:37 +0000 (10:28 +0000)]
Calculate and return the count in vmspace_swap_count as a vm_offset_t
instead of an int to avoid overflow.

While here, clean up some style(9) issues.

PR: kern/152200
Reviewed by: kib
MFC after: 2 weeks

13 years agoFix typos - remove duplicate "is".
Rebecca Cran [Wed, 23 Feb 2011 09:22:33 +0000 (09:22 +0000)]
Fix typos - remove duplicate "is".

PR: docs/154934
Submitted by: Eitan Adler <lists at eitanadler.com>
MFC after: 3 days

13 years agoRemove unnecessary controller reinitialization which resulted in
Pyun YongHyeon [Wed, 23 Feb 2011 02:40:31 +0000 (02:40 +0000)]
Remove unnecessary controller reinitialization which resulted in
link flips during alias address insertion or dhclient operation.
While I'm here remove dc_reset() in DC_ISR_BUS_ERR case. Device is
fully reinitialized again in dc_init_locked().

13 years agoUpdate how accounting log files are rotated.
Doug Barton [Tue, 22 Feb 2011 21:13:40 +0000 (21:13 +0000)]
Update how accounting log files are rotated.

The old version had a race between the time that the old file was
cp'ed to acct.0 and the time that 'sa -s' was run that prevented
the commands that occurred in the meantime from being backed up.

It's also arguable that the old version was inefficient in using
cp which can be a problem on a space-constrained system.

This version avoids both problems, albeit it's considerably more
complicated. The advantage of putting the log rotation in the rc.d
script is that it can handle the _enable and _file questions without
having to do gymnastics to discover either value in the periodic script.

As a side effect of reviewing the rc.d script I cleaned it up a bit.

13 years agoAdded patch-functions-upgrade which should fix some kernel panics
Josh Paetzel [Tue, 22 Feb 2011 19:37:12 +0000 (19:37 +0000)]
Added patch-functions-upgrade which should fix some kernel panics
doing upgrades and uninstalling linux compat ports.

Submitted by: Joerg-Christian Boehme <joerg@chaosdorf.de>
Approved by: kib (mentor, implicit)

13 years agoBetter method for grabbing disk name, dmesg may produce mangled output.
Josh Paetzel [Tue, 22 Feb 2011 19:18:56 +0000 (19:18 +0000)]
Better method for grabbing disk name, dmesg may produce mangled output.

Approved by: kib (mentor, implicit)

13 years agoMake sure to only accept and handle action frames which are for us. In
Bernhard Schmidt [Tue, 22 Feb 2011 19:05:42 +0000 (19:05 +0000)]
Make sure to only accept and handle action frames which are for us. In
promiscuous mode we might receive stuff which otherwise gets filtered
by hardware.

13 years agoXref makefs(8).
Jaakko Heinonen [Tue, 22 Feb 2011 15:31:40 +0000 (15:31 +0000)]
Xref makefs(8).

PR: 154708
Submitted by: jhs

13 years agoFix whitespace nit.
John Baldwin [Tue, 22 Feb 2011 14:58:14 +0000 (14:58 +0000)]
Fix whitespace nit.

13 years agoEliminate two dubious attempts at optimizing the implementation of a
Alan Cox [Tue, 22 Feb 2011 14:47:10 +0000 (14:47 +0000)]
Eliminate two dubious attempts at optimizing the implementation of a
file's last accessed, modified, and changed times:

TMPFS_NODE_ACCESSED and TMPFS_NODE_CHANGED should be set unconditionally
in tmpfs_remove() without regard to the number of hard links to the file.
Otherwise, after the last directory entry for a file has been removed, a
process that still has the file open could read stale values for the last
accessed and changed times with fstat(2).

Similarly, tmpfs_close() should update the time-related fields even if all
directory entries for a file have been removed.  In this case, the effect
is that the time-related fields will have values that are later than
expected.  They will correspond to the time at which fstat(2) is called.

In collaboration with: kib
MFC after: 1 week

13 years agoAdd support for optional distributions, installation of the ports tree and
Nathan Whitehorn [Tue, 22 Feb 2011 13:56:59 +0000 (13:56 +0000)]
Add support for optional distributions, installation of the ports tree and
src. Fitting all of this on a single CD along with a full system requires
changing the default compression algorithm from gzip to xz.

13 years agoMFi386: revision 218926
Yoshihiro Takahashi [Tue, 22 Feb 2011 13:52:03 +0000 (13:52 +0000)]
MFi386: revision 218926

  In sys/boot/i386/boot2/boot2.c, change the type of the 'opts' variable
  from uint16_t back to uint32_t.  The actual option bitmasks (RB_* and
  RBX_*) assume at least a 32 bit variable.

  Submitted by: rdivacky

13 years agoUse a single list to simplify future maintenance and ensure all list items are
Lawrence Stewart [Tue, 22 Feb 2011 10:09:34 +0000 (10:09 +0000)]
Use a single list to simplify future maintenance and ensure all list items are
aligned the same (no functional change at the moment as both list items are the
same number of characters).

Sponsored by: FreeBSD Foundation
MFC after: 3 months
X-MFC with: 218912

13 years agoMake code more friendly to the non-C99 compilers - don't allocate
Maxim Sobolev [Tue, 22 Feb 2011 09:11:47 +0000 (09:11 +0000)]
Make code more friendly to the non-C99 compilers - don't allocate
local variables in the `for' loop declaration. This allows trunk
newsyslog.c to be compiled on 7.x. This change should be no-op from
the functional POV.

13 years agoRegen src.conf(5) after r218941 and r218942.
Ulrich Spörlein [Tue, 22 Feb 2011 08:21:22 +0000 (08:21 +0000)]
Regen src.conf(5) after r218941 and r218942.

13 years agoThe default for FDT has changed, rename the flag/options file.
Ulrich Spörlein [Tue, 22 Feb 2011 08:20:12 +0000 (08:20 +0000)]
The default for FDT has changed, rename the flag/options file.

13 years agoFlesh out WITHOUT_GROFF support to DTRT.
Ulrich Spörlein [Tue, 22 Feb 2011 08:13:49 +0000 (08:13 +0000)]
Flesh out WITHOUT_GROFF support to DTRT.

A full featured groff is required during buildworld, so build it always
and don't rely on it being present on the host system.

vgrind(1) is tightly coupled to a roff processor and will not be
built/installed when groff is disabled. Also much of the roff'ed
documentation under share/doc will not be built/installed when
WITHOUT_GROFF is defined.

Reviewed by: ru (partial)

13 years agoTeach tools/install.sh the -d directory mode.
Ulrich Spörlein [Tue, 22 Feb 2011 08:07:17 +0000 (08:07 +0000)]
Teach tools/install.sh the -d directory mode.

Sync up with flags understood by install(1) [1], and make install(1)'s
usage output not hide the clearly documented -M flag.

PR: misc/154739 [1]
Submitted by: arundel

13 years agoFix bzero() for 64-bit.
Jayachandran C. [Tue, 22 Feb 2011 07:49:51 +0000 (07:49 +0000)]
Fix bzero() for 64-bit.

The existing implementation of bzero incorrectly clears bytes when the
start address is not word aligned. Fix it by using REG_SHI macro which
works on both 32 and 64 bit.

Submitted by: Artem Belevich (fbsdlist at src cx)

13 years ago- Fix QA issues
Martin Wilke [Tue, 22 Feb 2011 05:13:26 +0000 (05:13 +0000)]
- Fix QA issues

PR: misc/146687
Submitted by: Garrett Cooper <gcooper@FreeBSD.org>
Approved by: rwatson (mentor)

13 years ago- Remove no longer in use
Martin Wilke [Tue, 22 Feb 2011 05:10:13 +0000 (05:10 +0000)]
- Remove no longer in use

PR: kern/152354
Submitted by: vehemens <vehemens@verizon.net>
Discussion with:kib
Approved by: rwatson (mentor)

13 years agoBack out 218933 and 281934. The easy cases still worked, but some
Warner Losh [Tue, 22 Feb 2011 04:49:57 +0000 (04:49 +0000)]
Back out 218933 and 281934.  The easy cases still worked, but some
hard cases broke in worse ways than the status quo.  Back them out
until that can be resolved.

13 years agoDon't set the RTS/CTS enable bit per-scenario if the global RTS/CTS
Adrian Chadd [Tue, 22 Feb 2011 04:41:04 +0000 (04:41 +0000)]
Don't set the RTS/CTS enable bit per-scenario if the global RTS/CTS
flags aren't set.

13 years agoSelect building CLANG based on ${TARGET_ARCH} and existence of
Warner Losh [Tue, 22 Feb 2011 04:07:15 +0000 (04:07 +0000)]
Select building CLANG based on ${TARGET_ARCH} and existence of
WITH{,OUT}_CLANG.  We default to yes on some archs, no on others,
unless WITHOUT_CLANG or WITH_CLANG is defined respectively.

13 years agoTesting based on MACHINE_ARCH is problematic. Default to yes to build
Warner Losh [Tue, 22 Feb 2011 04:03:33 +0000 (04:03 +0000)]
Testing based on MACHINE_ARCH is problematic.  Default to yes to build
clang.  A separate change will fix buildworld to default to yes or no
based on the target.

13 years agoShuffle around the RTS/CTS rate/duration logic.
Adrian Chadd [Tue, 22 Feb 2011 00:37:53 +0000 (00:37 +0000)]
Shuffle around the RTS/CTS rate/duration logic.

* Turn ath_tx_calc_ctsduration() into a function that
  returns the ctsduration, or -1 for HT rates;
* add a printf() to ath_tx_calc_ctsduration() which will be
  very loud if somehow that function is called with an MCS
  rate;
* Add ath_tx_get_rtscts_rate() which returns the RTS/CTS
  rate to use for the given data rate, incl. the short
  preamble flag;
* Only call ath_tx_calc_ctsduration() for non-11n chipsets;
  11n chipsets don't require the rtscts duration to be
  calculated.

13 years ago* Don't setup the scenario if the try count is 0
Adrian Chadd [Tue, 22 Feb 2011 00:01:19 +0000 (00:01 +0000)]
* Don't setup the scenario if the try count is 0
* Comment what else is going on during rate scenario setup

13 years agoResurrect ofw_pci_if.m from r178578.
Marius Strobl [Mon, 21 Feb 2011 21:13:18 +0000 (21:13 +0000)]
Resurrect ofw_pci_if.m from r178578.

13 years agoIt is IEEE80211_SUPPORT_XXX not IEEE80211_XXX_SUPPORT.
Bernhard Schmidt [Mon, 21 Feb 2011 20:02:02 +0000 (20:02 +0000)]
It is IEEE80211_SUPPORT_XXX not IEEE80211_XXX_SUPPORT.

13 years agoAdd a new mgmt subtype "ACTION NO ACK" defined in 802.11n-2009, while here
Bernhard Schmidt [Mon, 21 Feb 2011 19:59:43 +0000 (19:59 +0000)]
Add a new mgmt subtype "ACTION NO ACK" defined in 802.11n-2009, while here
clean up parts of the *_recv_mgmt() functions.
- make sure appropriate counters are bumped and debug messages are printed
- order the unhandled subtypes by value and add a few missing ones
- fix some whitespace nits
- remove duplicate code in adhoc_recv_mgmt()
- remove a useless comment, probably left in while c&p

13 years agoIn sys/boot/i386/boot2/boot2.c, change the type of the 'opts' variable
Dimitry Andric [Mon, 21 Feb 2011 19:46:02 +0000 (19:46 +0000)]
In sys/boot/i386/boot2/boot2.c, change the type of the 'opts' variable
from uint16_t back to uint32_t.  The actual option bitmasks (RB_* and
RBX_*) assume at least a 32 bit variable.

Submitted by: rdivacky

13 years agoFix formatting of new stat sysctls; add descriptions
Adrian Chadd [Mon, 21 Feb 2011 19:22:45 +0000 (19:22 +0000)]
Fix formatting of new stat sysctls; add descriptions

13 years agoAdd a new counter which tracks frames TX'ed with HT protection.
Adrian Chadd [Mon, 21 Feb 2011 19:19:05 +0000 (19:19 +0000)]
Add a new counter which tracks frames TX'ed with HT protection.

13 years agoAdd a vocal warning to ath_hal_computetxtime() function is used for non-11n rates.
Adrian Chadd [Mon, 21 Feb 2011 18:58:58 +0000 (18:58 +0000)]
Add a vocal warning to ath_hal_computetxtime() function is used for non-11n rates.

It's used to calculate:

* the initial per-rate entries for short/long preamble ACK durations;
* packet durations for TDMA slot decisions;
* RTS/CTS protection durations;
* updating the duration field in the 802.11 frame header

This way invalid durations will generate a warning, prompting for it to be
fixed.

13 years agoMake private functions static.
Rebecca Cran [Mon, 21 Feb 2011 16:21:43 +0000 (16:21 +0000)]
Make private functions static.

PR: kern/43611
Submitted by: Matt Emmerton <matt at gsicomp.on.ca>
Reviewed by: kib
MFC after: 3 days

13 years agomdoc(7) markup.
Sergey Kandaurov [Mon, 21 Feb 2011 16:03:39 +0000 (16:03 +0000)]
mdoc(7) markup.

Approved by: avg (mentor), kib (mentor)
MFC after: 3 days

13 years agoDefault to the lowest negotiated rate for mgmt/multicast traffic in 11n mode
Adrian Chadd [Mon, 21 Feb 2011 15:49:59 +0000 (15:49 +0000)]
Default to the lowest negotiated rate for mgmt/multicast traffic in 11n mode

The current code transmits management and multicast frames at MCS 0.
What it should do is check whether the negotiated basic set is zero (and
the MCS set is not) before making this decision.

For now, simply default to the lowest negotiated rate, rather than
MCS 0. This fixes the behaviour with at least the DLINK DIR-825, which
ACKs but silently ignores block-ack (BA) response frames.

13 years agoAdd some error checking on the return values of chdir() and calloc(). The
Nathan Whitehorn [Mon, 21 Feb 2011 14:28:31 +0000 (14:28 +0000)]
Add some error checking on the return values of chdir() and calloc(). The
first might actually happen, so it displays the error message in a prettier
way.

Found by: Coverity Prevent(tm)
CID: 9121, 9122, 9123, 9124

13 years agoActually install the example Khelp module committed in r218545.
Lawrence Stewart [Mon, 21 Feb 2011 13:22:29 +0000 (13:22 +0000)]
Actually install the example Khelp module committed in r218545.

Sponsored by: FreeBSD Foundation
MFC after: 4 weeks
X-MFC with: r218545

13 years agoGet myself a brain, move the call to init_param1() before the first use in
Olivier Houchard [Mon, 21 Feb 2011 13:11:05 +0000 (13:11 +0000)]
Get myself a brain, move the call to init_param1() before the first use in
at91_machdep.c, and do it for the files I forgot the first time

Reported by: andrew
Submitted by: pluknet

13 years agoFinal commit to round out the "Five New TCP Congestion Control Algorithms for
Lawrence Stewart [Mon, 21 Feb 2011 11:56:11 +0000 (11:56 +0000)]
Final commit to round out the "Five New TCP Congestion Control Algorithms for
FreeBSD" FreeBSD Foundation funded project.

- Add new man pages for the modular congestion control, Khelp and Hhook
  frameworks (cc.4, cc.9, khelp.9 and hhook.9).

- Add new man pages for each available congestion control algorithm (cc_chd.4,
  cc_cubic.4, cc_hd.4, cc_htcp.4, cc_newreno.4 and cc_vegas.4).

- Add a new man page for the Enhanced Round Trip Time (ERTT) Khelp module
  (h_ertt.4).

- Update the TCP (tcp.4) man page to mention the TCP_CONGESTION socket option,
  cross reference to cc.4 and remove references to the retired
  "net.inet.tcp.newreno" sysctl MIB variable.

In collaboration with: David Hayes <dahayes at swin edu au> and
Grenville Armitage <garmitage at swin edu au>
Sponsored by: FreeBSD Foundation
MFC after: 3 months

13 years agoThe FD_FORM ioctl used to ignore errors from the floppy controller; now when
Rebecca Cran [Mon, 21 Feb 2011 09:56:08 +0000 (09:56 +0000)]
The FD_FORM ioctl used to ignore errors from the floppy controller; now when
it encounters an error it returns an error from the ioctl.
Ignore any errors when using the FD_FORM ioctl.

PR: kern/103862
MFC after: 3 days

13 years agoFix typos - remove duplicate "the".
Rebecca Cran [Mon, 21 Feb 2011 09:01:34 +0000 (09:01 +0000)]
Fix typos - remove duplicate "the".

PR: bin/154928
Submitted by: Eitan Adler <lists at eitanadler.com>
MFC after:  3 days

13 years agoModify the AR5416 11na rate table to use 24mb OFDM 11a for control traffic,
Adrian Chadd [Mon, 21 Feb 2011 05:10:34 +0000 (05:10 +0000)]
Modify the AR5416 11na rate table to use 24mb OFDM 11a for control traffic,
rather than MCS 0.

Using MCS0 for protecting 11a rates seems a bit silly.

13 years agoImplement setting the short preamble bit if it's needed for the current node.
Adrian Chadd [Mon, 21 Feb 2011 03:52:51 +0000 (03:52 +0000)]
Implement setting the short preamble bit if it's needed for the current node.

Short preamble rates are only for legacy rates; MCS rate codes don't have a short
preamble code like this.

13 years agoAdd opteron-sse3, athlon64-sse3 and k8-sse3 cpu types to bsd.cpu.mk.
Martin Matuska [Sun, 20 Feb 2011 22:32:21 +0000 (22:32 +0000)]
Add opteron-sse3, athlon64-sse3 and k8-sse3 cpu types to bsd.cpu.mk.
- add "sse3" to MACHINE_CPU for the new cpu types
- for i386, default to CPUTYPE=prescott for the new cpu types

PR: gnu/154906
Discussed with: kib, kan, dim
MFC after: 2 weeks

13 years agoBackport svn r124339 from gcc 4.3 and add opteron-sse3, athlon64-sse3
Martin Matuska [Sun, 20 Feb 2011 22:25:23 +0000 (22:25 +0000)]
Backport svn r124339 from gcc 4.3 and add opteron-sse3, athlon64-sse3
and k8-sse3 cpu-types for -march=/-mtune= gcc options.
These new cpu-types include the SSE3 instruction set that is supported
by all newer AMD Athlon 64 and Opteron processors.
All three cpu-types are supported by clang and all gcc versions
starting with 4.3 SVN rev 124339 (at that time GPLv2 licensed).

PR: gnu/154906
Discussed with: kib, kan, dim
Obtained from: gcc 4.3 (r124339, GPLv2 licensed)
MFC after: 2 weeks

13 years agoClang now supports profiling, so remove the part that says it doesn't
Dimitry Andric [Sun, 20 Feb 2011 21:58:07 +0000 (21:58 +0000)]
Clang now supports profiling, so remove the part that says it doesn't
from sys/conf/kern.pre.mk.

13 years agoUpgrade our copy of llvm/clang to r126079, from upstream's trunk.
Dimitry Andric [Sun, 20 Feb 2011 19:33:47 +0000 (19:33 +0000)]
Upgrade our copy of llvm/clang to r126079, from upstream's trunk.

This contains many improvements, primarily better C++ support, an
integrated assembler for x86 and support for -pg.

13 years agoAdd notes about ASCII/Hex WEP keys
Warner Losh [Sun, 20 Feb 2011 17:54:49 +0000 (17:54 +0000)]
Add notes about ASCII/Hex WEP keys

13 years agosh: Add some tests for omitting whitespace whereever possible.
Jilles Tjoelker [Sun, 20 Feb 2011 17:28:58 +0000 (17:28 +0000)]
sh: Add some tests for omitting whitespace whereever possible.

13 years agoRemove a hack made obsolete by the binutils 2.17 merge.
Nathan Whitehorn [Sun, 20 Feb 2011 16:16:42 +0000 (16:16 +0000)]
Remove a hack made obsolete by the binutils 2.17 merge.

13 years agosh: Split off some special behaviour into separate tests.
Jilles Tjoelker [Sun, 20 Feb 2011 14:18:58 +0000 (14:18 +0000)]
sh: Split off some special behaviour into separate tests.

This allows some other shells to pass the tests for basic behaviour.

13 years agoVendor import of clang trunk r126079:
Dimitry Andric [Sun, 20 Feb 2011 13:06:31 +0000 (13:06 +0000)]
Vendor import of clang trunk r126079:
http://llvm.org/svn/llvm-project/cfe/trunk@126079

13 years agoVendor import of llvm trunk r126079:
Dimitry Andric [Sun, 20 Feb 2011 12:57:14 +0000 (12:57 +0000)]
Vendor import of llvm trunk r126079:
http://llvm.org/svn/llvm-project/llvm/trunk@126079

13 years agoAdd restrict keyword to pthread_sigmask prototype and manpage.
Konstantin Belousov [Sun, 20 Feb 2011 09:52:29 +0000 (09:52 +0000)]
Add restrict keyword to pthread_sigmask prototype and manpage.

MFC after: 1 week

13 years agoDo not clobber %rdx.
Dmitry Chagin [Sun, 20 Feb 2011 07:58:30 +0000 (07:58 +0000)]
Do not clobber %rdx.
Before calling vfork() syscall the linux user-space stores the current PID
in the %rdx and restore it when the parent process will leave the kernel.

13 years agoAdd complex(3) manual page documenting our partial support for C99
Murray Stokely [Sun, 20 Feb 2011 05:29:00 +0000 (05:29 +0000)]
Add complex(3) manual page documenting our partial support for C99
complex arithmetic in libm.

Reviewed by: David Schultz <das@FreeBSD.org>
MFC after: 2 weeks

13 years agoAdd a note about AXFR of important zones being available from ICANN
Doug Barton [Sun, 20 Feb 2011 00:59:39 +0000 (00:59 +0000)]
Add a note about AXFR of important zones being available from ICANN

13 years agoAdd more udav device ID's.
Hans Petter Selasky [Sat, 19 Feb 2011 22:53:50 +0000 (22:53 +0000)]
Add more udav device ID's.

Submitted by: Rick van der Zwet <info@rickvanderzwet.nl>
MFC after: 7 days
Approved by: thompsa (mentor)

13 years agotmpfs_remove() isn't modifying the file's data, so it shouldn't set
Alan Cox [Sat, 19 Feb 2011 21:04:36 +0000 (21:04 +0000)]
tmpfs_remove() isn't modifying the file's data, so it shouldn't set
TMPFS_NODE_MODIFIED on the node.

PR: 152488
Submitted by: Anton Yuzhaninov
Reviewed by: kib
MFC after: 1 week

13 years ago- Add support for MosChip 9865 Single 1284 Printer port
Martin Wilke [Sat, 19 Feb 2011 17:38:51 +0000 (17:38 +0000)]
- Add support for MosChip 9865 Single 1284 Printer port

PR: kern/152663
Submitted by: Jonathan Chen <jonc@chen.org.nz>
Approved by: rwatson (mentor)

13 years agoDon't present the user with spurious errors when overwriting a disk with
Nathan Whitehorn [Sat, 19 Feb 2011 15:22:06 +0000 (15:22 +0000)]
Don't present the user with spurious errors when overwriting a disk with
a deleted, but uncommitted, gpart.

Reported by: brucec

13 years agoUpdate the icmp example to show allowing only the safe types.
Rebecca Cran [Sat, 19 Feb 2011 14:57:00 +0000 (14:57 +0000)]
Update the icmp example to show allowing only the safe types.

Suggested by: Tom Judge <tom at tomjudge.com>
MFC after: 3 days

13 years agoThe PC98 gpart module supports labels now.
Nathan Whitehorn [Sat, 19 Feb 2011 14:49:49 +0000 (14:49 +0000)]
The PC98 gpart module supports labels now.

13 years agoDon't restore old mount options and flags if VFS_MOUNT(9) succeeds but
Jaakko Heinonen [Sat, 19 Feb 2011 14:27:14 +0000 (14:27 +0000)]
Don't restore old mount options and flags if VFS_MOUNT(9) succeeds but
vfs_export() fails. Restoring old options and flags after successful
VFS_MOUNT(9) call may cause the file system internal state to become
inconsistent with mount options and flags. Specifically the FFS super
block fs_ronly field and the MNT_RDONLY flag may get out of sync.

PR: kern/133614
Discussed on: freebsd-hackers

13 years agosh: Do not use "local" in the test runner as POSIX and ksh93 do not have it.
Jilles Tjoelker [Sat, 19 Feb 2011 13:23:13 +0000 (13:23 +0000)]
sh: Do not use "local" in the test runner as POSIX and ksh93 do not have it.

13 years agosh: Make execution/fork1.0 work even if the basename of ${SH} is not "sh".
Jilles Tjoelker [Sat, 19 Feb 2011 13:22:18 +0000 (13:22 +0000)]
sh: Make execution/fork1.0 work even if the basename of ${SH} is not "sh".

13 years agoAdd a utility, utxrm(8).
Ed Schouten [Sat, 19 Feb 2011 11:44:04 +0000 (11:44 +0000)]
Add a utility, utxrm(8).

Most of the ports I broke when I imported utmpx, were simple management
utilities for the utmp database, allowing you to add/remove entries
manually.

Add a small tool called utxrm(8), which allows you to remove an entry
from the utmpx database by hand. This is useful when a login daemon
crashes or fails to remove the entry during shutdown.

13 years agoProperly styleify utmpx code and document error codes in man page.
Ed Schouten [Sat, 19 Feb 2011 11:31:56 +0000 (11:31 +0000)]
Properly styleify utmpx code and document error codes in man page.

Submitted by: Garrett Cooper

13 years agoAdd support to set a slice name.
Yoshihiro Takahashi [Sat, 19 Feb 2011 11:09:38 +0000 (11:09 +0000)]
Add support to set a slice name.

13 years agoImprove 256 color support.
Ed Schouten [Sat, 19 Feb 2011 11:06:00 +0000 (11:06 +0000)]
Improve 256 color support.

- Add screen-256color,
- Improve rxvt-256color to set pa and op properly.
- Add rxvt-unicode-256color as an alias to rxvt-256color.

PR: conf/152713, conf/153164
Submitted by: Alexander Verbod and Frédéric Perrin
MFC after: 2 weeks

13 years agoMFi386: revision 218744
Yoshihiro Takahashi [Sat, 19 Feb 2011 10:36:05 +0000 (10:36 +0000)]
MFi386: revision 218744

  To avoid excessive code duplication create wrapper for fill regs
  from stack frame.

13 years agoMFi386: revision 218745
Yoshihiro Takahashi [Sat, 19 Feb 2011 10:32:12 +0000 (10:32 +0000)]
MFi386: revision 218745

  Remove reading of symbols from a.out loaded files.

13 years agoAllow users to create ufs1 filesystems via the noninteractive install.cfg
Rebecca Cran [Sat, 19 Feb 2011 09:33:53 +0000 (09:33 +0000)]
Allow users to create ufs1 filesystems via the noninteractive install.cfg
system.

PR: bin/113979
MFC after: 3 days

13 years agoRemove the quotas option from the Startup Services menu.
Rebecca Cran [Sat, 19 Feb 2011 09:24:24 +0000 (09:24 +0000)]
Remove the quotas option from the Startup Services menu.
GENERIC has no support for quotas so this option has no effect.

PR: bin/123237
Submitted by: Lawrence Mayer <lawmay3 at i12.com>
MFC after: 3 days