]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoAlign all comments in config files on same column. This consistency
Warner Losh [Sun, 16 Mar 2014 15:22:52 +0000 (15:22 +0000)]
Align all comments in config files on same column. This consistency
helps when bits and pieces of GENERIC from i386 or amd64 are cut and
pasted into other architecture's config files (which in the case of
ARM had gotten rather akimbo).

10 years agoMake all the comments '# ' and align to same column. This fixes the
Warner Losh [Sun, 16 Mar 2014 15:22:46 +0000 (15:22 +0000)]
Make all the comments '# ' and align to same column. This fixes the
rampently incosnsitent usage which made cut and paste from one file
to another look ugly.

10 years agofind: When performing -quit, finish pending -exec ... + command lines.
Jilles Tjoelker [Sun, 16 Mar 2014 14:42:58 +0000 (14:42 +0000)]
find: When performing -quit, finish pending -exec ... + command lines.

This avoids unexpected partial processing when a find command uses both
-quit and -exec ... +.

GNU find does the same.

MFC after: 1 week

10 years agoRemove an extra 1 in an #if line
Andrew Turner [Sun, 16 Mar 2014 14:21:09 +0000 (14:21 +0000)]
Remove an extra 1 in an #if line

Reported by: ian@

10 years agoFix the spelling of function.
Andrew Turner [Sun, 16 Mar 2014 14:19:46 +0000 (14:19 +0000)]
Fix the spelling of function.

Reported by: ian@

10 years agoFix statically-linked build (WITHOUT_DYNAMICROOT).
Jilles Tjoelker [Sun, 16 Mar 2014 13:43:06 +0000 (13:43 +0000)]
Fix statically-linked build (WITHOUT_DYNAMICROOT).

10 years agoAdd an optimised version of the float and double helper functions. These
Andrew Turner [Sun, 16 Mar 2014 13:16:30 +0000 (13:16 +0000)]
Add an optimised version of the float and double helper functions. These
are only used on armv6 when the vfp unit is detected. They will also be
available for the upcoming armv6hf platform, however while not used by
default there will need to be defined for any software that calls them
directly.

10 years agoThough there currently isn't a way to insert new media into an ATAPI
Tycho Nightingale [Sun, 16 Mar 2014 12:33:40 +0000 (12:33 +0000)]
Though there currently isn't a way to insert new media into an ATAPI
drive, at least pretend to support Asynchronous Notification (AN) to
avoid a guest needlessly polling for it.

Approved by: grehan (co-mentor)

10 years ago* Provide information in error causes in ASCII instead of
Michael Tuexen [Sun, 16 Mar 2014 12:32:16 +0000 (12:32 +0000)]
* Provide information in error causes in ASCII instead of
  proprietary binary format.
* Add support for a diagnostic information error cause.
  The code is sysctlable and the default is 0, which
  means it is not sent.

This is joint work with rrs@.

MFC after: 1 week

10 years agoSupport the bootloader's single 16-bit 'outw' access to the Divisor
Tycho Nightingale [Sun, 16 Mar 2014 12:31:28 +0000 (12:31 +0000)]
Support the bootloader's single 16-bit 'outw' access to the Divisor
Latch MSB and LSB registers.

Approved by: neel (co-mentor)

10 years agoBump __FreeBSD_version to reflect capability.h -> capsicum.h change.
Robert Watson [Sun, 16 Mar 2014 11:06:05 +0000 (11:06 +0000)]
Bump __FreeBSD_version to reflect capability.h -> capsicum.h change.

MFC after: 3 weeks

10 years agoUpdate most userspace consumers of capability.h to use capsicum.h instead.
Robert Watson [Sun, 16 Mar 2014 11:04:44 +0000 (11:04 +0000)]
Update most userspace consumers of capability.h to use capsicum.h instead.

auditdistd is not updated as I will make the change upstream and then do a
vendor import sometime in the next week or two.

MFC after: 3 weeks

10 years agoUpdate kernel inclusions of capability.h to use capsicum.h instead; some
Robert Watson [Sun, 16 Mar 2014 10:55:57 +0000 (10:55 +0000)]
Update kernel inclusions of capability.h to use capsicum.h instead; some
further refinement is required as some device drivers intended to be
portable over FreeBSD versions rely on __FreeBSD_version to decide whether
to include capability.h.

MFC after: 3 weeks

10 years agoRename capability.h to capsicum.h: the original name conflicts with the
Robert Watson [Sun, 16 Mar 2014 10:49:16 +0000 (10:49 +0000)]
Rename capability.h to capsicum.h: the original name conflicts with the
draft POSIX.1e capability.h used on some systems (e.g., Linux).  On
FreeBSD, leave a wrapper header so that current code continues to compile.

We will eventually want to deprecate the old header as the presence of a
capability.h may be confusing some configure scripts.

Suggested by: David Drysdale <drysdale at google.com>
Discussed on: cl-capsicum-discuss
MFC after: 3 weeks

10 years agoOnly build the vfp/softfp switching code on armv6 as we don't support vfp
Andrew Turner [Sun, 16 Mar 2014 09:40:05 +0000 (09:40 +0000)]
Only build the vfp/softfp switching code on armv6 as we don't support vfp
on anything earlier than this. This should fix the armeb and arm builds
when using gcc.

10 years agoBuild fenv-vfp.c with the softfp float abi. Without this gcc generates an
Andrew Turner [Sun, 16 Mar 2014 09:38:43 +0000 (09:38 +0000)]
Build fenv-vfp.c with the softfp float abi. Without this gcc generates an
incorrect assembly file that doesn't allow for vfp instructions.

10 years agoThe AR71xx has APB interrupts in the MISC registers from 0-7, later
Adrian Chadd [Sun, 16 Mar 2014 08:39:46 +0000 (08:39 +0000)]
The AR71xx has APB interrupts in the MISC registers from 0-7, later
chips have more.

So for now, let's allow more.  We should teach the apb code to just
reject interrupts that lie outside what the chip can do at runtime.

10 years ago* Handle the three other timer interrupts for now, from the AR724x
Adrian Chadd [Sun, 16 Mar 2014 08:38:31 +0000 (08:38 +0000)]
* Handle the three other timer interrupts for now, from the AR724x
  later.  If the interrupts are ACKed even if they're not masked, we get
  the interrupts again later.  Grr.

* The AR724x and later chips want the interrupt bits cleared by writing the
  relevant bit to it, NOT by writing all but the current interrupt to it.

Tested:

* AR9344, DB120 reference board

TODO:

* Test ar724x and later chips to ensure no regressions have occured.

10 years agoMigrate most of tools/regression/usr.bin/ to the new tests layout.
Julio Merino [Sun, 16 Mar 2014 08:04:06 +0000 (08:04 +0000)]
Migrate most of tools/regression/usr.bin/ to the new tests layout.

I'm starting with the easy cases.  The leftovers need to be looked at a
bit more closely.

Note that this change _does_ modify the code of the old tests.  This is
required in order to allow the code to locate the data files in the
source directory instead of the current directory, because Kyua
automatically changes the latter to a temporary directory.

Also note that at least one test is known to be broken here.  Actually,
the test is not really broken: it's marked as a TODO but unfortunately
Kyua's TAP parser currently does not understand that.  Will have to be
fixed separately.

10 years agoMigrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout.
Julio Merino [Sun, 16 Mar 2014 04:09:22 +0000 (04:09 +0000)]
Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout.

This change was originally going to only migrate the usr.sbin tests but, as
it turns out, the usr.sbin/sa/ tests require files from usr.bin/lastcomm/
so it's better to just also migrate the latter at the same time.  The other
usr.bin tests will be moved separately.

To make these tests work within the test suite, some of them have required
changes to prevent modifying the source directory and instead just rely on
the current directory for file manipulation.

10 years agoHandle the case where both arge0 and arge1 MAC addresses are available via
Adrian Chadd [Sun, 16 Mar 2014 02:41:47 +0000 (02:41 +0000)]
Handle the case where both arge0 and arge1 MAC addresses are available via
'eeprommac'.

The existing driver would just make arge units past 0 take the primary
MAC and increment it by the unit number, without correct address wrapping.
That has to be fixed at a later date.

Tested:

* Atheros DB120 reference obard

10 years ago* Add ethernet MAC configuration from the EEPROM for arge0/arge1
Adrian Chadd [Sun, 16 Mar 2014 02:34:33 +0000 (02:34 +0000)]
* Add ethernet MAC configuration from the EEPROM for arge0/arge1
* The AR9344 switch has 5 ports in use, not four.

Tested:

* DB120 reference board

10 years agoAdd Makefile missed in r263220.
Julio Merino [Sun, 16 Mar 2014 02:32:44 +0000 (02:32 +0000)]
Add Makefile missed in r263220.

10 years agoChange etcupdate tests to return 1 on test failures.
Julio Merino [Sun, 16 Mar 2014 02:27:27 +0000 (02:27 +0000)]
Change etcupdate tests to return 1 on test failures.

This is a prerequisite for hooking these tests into the test suite.  And,
fortunately, all tests seem to pass!

10 years agoMigrate tools/regression/sbin/ to the new tests layout.
Julio Merino [Sun, 16 Mar 2014 02:07:08 +0000 (02:07 +0000)]
Migrate tools/regression/sbin/ to the new tests layout.

Pretty much all that this change does is shuffles the code around and hooks
it into the regular build.  The code of the old tests has not changed.

10 years agoI clearly didn't test the modules... add sha256c.c to the various
John-Mark Gurney [Sun, 16 Mar 2014 01:55:30 +0000 (01:55 +0000)]
I clearly didn't test the modules...  add sha256c.c to the various
modules that included sha2.c...

10 years agoreplace the kernel's version w/ cperciva's implementation... In all
John-Mark Gurney [Sun, 16 Mar 2014 01:43:23 +0000 (01:43 +0000)]
replace the kernel's version w/ cperciva's implementation...  In all
my tests, it is faster ~20%, even on an old IXP425 533MHz it is ~45%
faster...  This is partly due to loop unrolling, so the code size does
significantly increase...  I do plan on committing a version that
rolls up the loops again for smaller code size for embedded systems
where size is more important than absolute performance (it'll save ~6k
code)...

The kernel implementation is now shared w/ userland's libcrypt and
libmd...

We drop support for sha256 from sha2.c, so now sha2.c only contains
sha384 and sha512...

Reviewed by: secteam@

10 years agoDocument support for TAP-compliant Perl test programs.
Julio Merino [Sun, 16 Mar 2014 01:22:23 +0000 (01:22 +0000)]
Document support for TAP-compliant Perl test programs.

10 years agoXref pthread_cancel...
John-Mark Gurney [Sun, 16 Mar 2014 01:17:09 +0000 (01:17 +0000)]
Xref pthread_cancel...

bump Dd, _exit was still dated 1996!  yes, it has been modified a few
times since then...

MFC after: 1 week

10 years agocopy these files from lib/libmd in preperation for moving these files
John-Mark Gurney [Sun, 16 Mar 2014 00:57:26 +0000 (00:57 +0000)]
copy these files from lib/libmd in preperation for moving these files
into the kernel...

10 years agochange td_retval into a union w/ off_t, with defines to mask the
John-Mark Gurney [Sun, 16 Mar 2014 00:53:40 +0000 (00:53 +0000)]
change td_retval into a union w/ off_t, with defines to mask the
change...  This eliminates a cast, and also forces td_retval
(often 2 32-bit registers) to be aligned so that off_t's can be
stored there on arches with strict alignment requirements like
armeb (AVILA)...  On i386, this doesn't change alignment, and on
amd64 it doesn't either, as register_t is already 64bits...

This will also prevent future breakage due to people adding additional
fields to the struct...

This gets AVILA booting a bit farther...

Reviewed by: bde

10 years agoFix a race wherein the source of an interrupt vector is wrongly
Tycho Nightingale [Sat, 15 Mar 2014 23:09:34 +0000 (23:09 +0000)]
Fix a race wherein the source of an interrupt vector is wrongly
attributed if an ExtINT arrives during interrupt injection.

Also, fix a spurious interrupt if the PIC tries to raise an interrupt
before the outstanding one is accepted.

Finally, improve the PIC interrupt latency when another interrupt is
raised immediately after the outstanding one is accepted by creating a
vmexit rather than waiting for one to occur by happenstance.

Approved by: neel (co-mentor)

10 years agoOn armv6 access both the softfloat and, when available, the vfp to get and
Andrew Turner [Sat, 15 Mar 2014 21:58:07 +0000 (21:58 +0000)]
On armv6 access both the softfloat and, when available, the vfp to get and
set the floating-point environment.

10 years agoFix wandboard to include tmpfs, mbr and bsd labels.
Warner Losh [Sat, 15 Mar 2014 16:59:57 +0000 (16:59 +0000)]
Fix wandboard to include tmpfs, mbr and bsd labels.

PR: 187606
Submitted by: Takanori Sawada

10 years agosh: Allow kill %job on jobs started without job control.
Jilles Tjoelker [Sat, 15 Mar 2014 14:58:48 +0000 (14:58 +0000)]
sh: Allow kill %job on jobs started without job control.

When killing a %job started without job control, kill all processes in it.
As with process groups and zombies, if any process in the job can be killed
or has already terminated, the command is successful.

This also fixes occasional failures of the builtins/kill1.0 test.

10 years agoAdd some documentation for bsd.test.mk.
Julio Merino [Sat, 15 Mar 2014 09:27:59 +0000 (09:27 +0000)]
Add some documentation for bsd.test.mk.

10 years agoGarbage collect long time obsoleted (or never used) stuff from routing API.
Gleb Smirnoff [Sat, 15 Mar 2014 06:49:32 +0000 (06:49 +0000)]
Garbage collect long time obsoleted (or never used) stuff from routing API.

10 years agoBe a little more verbose in service's error message
Eitan Adler [Sat, 15 Mar 2014 02:26:46 +0000 (02:26 +0000)]
Be a little more verbose in service's error message

PR: bin/187118
Submitted by: culot

10 years agoUse the system queue.h instead of bundling its own.
Eitan Adler [Sat, 15 Mar 2014 01:20:42 +0000 (01:20 +0000)]
Use the system queue.h instead of bundling its own.

PR: bin/187067
Submitted by: lulf

10 years agoRevert a small portion of r263198 left over from local testing: don't
Robert Watson [Sat, 15 Mar 2014 00:59:23 +0000 (00:59 +0000)]
Revert a small portion of r263198 left over from local testing: don't
enable PCB groups and RSS by default [yet].

10 years agoFix cut-and-paste error message.
Warner Losh [Sat, 15 Mar 2014 00:58:08 +0000 (00:58 +0000)]
Fix cut-and-paste error message.

10 years agoSeveral years after initial development, merge prototype support for
Robert Watson [Sat, 15 Mar 2014 00:57:50 +0000 (00:57 +0000)]
Several years after initial development, merge prototype support for
linking NIC Receive Side Scaling (RSS) to the network stack's
connection-group implementation.  This prototype (and derived patches)
are in use at Juniper and several other FreeBSD-using companies, so
despite some reservations about its maturity, merge the patch to the
base tree so that it can be iteratively refined in collaboration rather
than maintained as a set of gradually diverging patch sets.

(1) Merge a software implementation of the Toeplitz hash specified in
    RSS implemented by David Malone.  This is used to allow suitable
    pcbgroup placement of connections before the first packet is
    received from the NIC.  Software hashing is generally avoided,
    however, due to high cost of the hash on general-purpose CPUs.

(2) In in_rss.c, maintain authoritative versions of RSS state intended
    to be pushed to each NIC, including keying material, hash
    algorithm/ configuration, and buckets.  Provide software-facing
    interfaces to hash 2- and 4-tuples for IPv4 and IPv6 using both
    the RSS standardised Toeplitz and a 'naive' variation with a hash
    efficient in software but with poor distribution properties.
    Implement rss_m2cpuid()to be used by netisr and other load
    balancing code to look up the CPU on which an mbuf should be
    processed.

(3) In the Ethernet link layer, allow netisr distribution using RSS as
    a source of policy as an alternative to source ordering; continue
    to default to direct dispatch (i.e., don't try and requeue packets
    for processing on the 'right' CPU if they arrive in a directly
    dispatchable context).

(4) Allow RSS to control tuning of connection groups in order to align
    groups with RSS buckets.  If a packet arrives on a protocol using
    connection groups, and contains a suitable hardware-generated
    hash, use that hash value to select the connection group for pcb
    lookup for both IPv4 and IPv6.  If no hardware-generated Toeplitz
    hash is available, we fall back on regular PCB lookup risking
    contention rather than pay the cost of Toeplitz in software --
    this is a less scalable but, at my last measurement, faster
    approach.  As core counts go up, we may want to revise this
    strategy despite CPU overhead.

Where device drivers suitably configure NICs, and connection groups /
RSS are enabled, this should avoid both lock and line contention during
connection lookup for TCP.  This commit does not modify any device
drivers to tune device RSS configuration to the global RSS
configuration; patches are in circulation to do this for at least
Chelsio T3 and Intel 1G/10G drivers.  Currently, the KPI for device
drivers is not particularly robust, nor aware of more advanced features
such as runtime reconfiguration/rebalancing.  This will hopefully prove
a useful starting point for refinement.

No MFC is scheduled as we will first want to nail down a more mature
and maintainable KPI/KBI for device drivers.

Sponsored by:   Juniper Networks (original work)
Sponsored by:   EMC/Isilon (patch update and merge)

10 years agoDon't dump entries that were modified during the time the KTR buffer was being
Neel Natu [Fri, 14 Mar 2014 22:07:08 +0000 (22:07 +0000)]
Don't dump entries that were modified during the time the KTR buffer was being
copied to userspace. Failing to do this would result in entries at the bottom
of the ktrdump output to be more recent than entries at the top.

With this change the timestamps are monotonically decreasing going from the
top to the bottom of the ktrdump output.

10 years agosh: Add some consts.
Jilles Tjoelker [Fri, 14 Mar 2014 21:45:37 +0000 (21:45 +0000)]
sh: Add some consts.

10 years agoFix an issue with ktrdump(8) where it would not print all entries in the
Neel Natu [Fri, 14 Mar 2014 21:35:16 +0000 (21:35 +0000)]
Fix an issue with ktrdump(8) where it would not print all entries in the
KTR buffer.

This happens when 'i' tries to wrap around from 0 to 'entries - 1'. Since 'i'
is a signed integer the modulo operation actually returns a negative number.

Fix this by computing the next index to use "by hand" instead of relying
on the modulo operator.

10 years agoRemove TARGET_BIG_ENDIAN. It's no longer relevant.
Warner Losh [Fri, 14 Mar 2014 21:18:41 +0000 (21:18 +0000)]
Remove TARGET_BIG_ENDIAN. It's no longer relevant.

10 years agoRely on default UFS type (though this is unlikely to change).
Warner Losh [Fri, 14 Mar 2014 21:13:58 +0000 (21:13 +0000)]
Rely on default UFS type (though this is unlikely to change).

Submitted by: eadler

10 years agolibusb: add libusb_log_level enum
Eitan Adler [Fri, 14 Mar 2014 20:54:15 +0000 (20:54 +0000)]
libusb: add libusb_log_level enum

This is documented on http://libusb.sourceforge.net/api-1.0/group__lib.html

10 years agoBe more explicit about setting SRCCONF to /dev/null (plus allow it to
Warner Losh [Fri, 14 Mar 2014 20:20:36 +0000 (20:20 +0000)]
Be more explicit about setting SRCCONF to /dev/null (plus allow it to
be overridden).

PR: 160443
Submitted by: Garrett Cooper

10 years agoNanoBSD has a utility shell script called save_cfg which helps keep
Warner Losh [Fri, 14 Mar 2014 20:20:32 +0000 (20:20 +0000)]
NanoBSD has a utility shell script called save_cfg which helps keep
/cfg updated with the modified configuration files in /etc. I have
written an improved version with the following features:

* Recurses directories.
* Only requires file arguments the first time the file/directory is
* added to /cfg.
* Handles file deletions.

PR: 145962, 157533
Submitted by: Aragon Gouveia and Alex Bakhtin

10 years agoWhen NANO_IMAGE_MBRONLY is set, and we're backing via swap, only copy
Warner Losh [Fri, 14 Mar 2014 19:46:32 +0000 (19:46 +0000)]
When NANO_IMAGE_MBRONLY is set, and we're backing via swap, only copy
the MBR.

PR: 136889
Submitted by: Aragon Gouveia

10 years agoPrint an error message when we exit out early.
Warner Losh [Fri, 14 Mar 2014 19:46:18 +0000 (19:46 +0000)]
Print an error message when we exit out early.

PR: 136889
Submitted by: Aragon Gouveia

10 years agoWith the more generous footprints today, it makes little sense to use
Warner Losh [Fri, 14 Mar 2014 19:45:40 +0000 (19:45 +0000)]
With the more generous footprints today, it makes little sense to use
UFS1 by default any more. Switch to UFS2.

10 years agoMake pcengines config files compile again.
Warner Losh [Fri, 14 Mar 2014 19:45:32 +0000 (19:45 +0000)]
Make pcengines config files compile again.

10 years agoFix build with spaces in names.
Warner Losh [Fri, 14 Mar 2014 19:45:26 +0000 (19:45 +0000)]
Fix build with spaces in names.

PR: 162736

10 years agoUse the existence of module metadata to indicate framebuffer presence
Ed Maste [Fri, 14 Mar 2014 19:37:37 +0000 (19:37 +0000)]
Use the existence of module metadata to indicate framebuffer presence

10 years agoFix ASSUME_ALWAYS_YES not being parsed properly from config after UCL conversion.
Bryan Drewery [Fri, 14 Mar 2014 17:37:38 +0000 (17:37 +0000)]
Fix ASSUME_ALWAYS_YES not being parsed properly from config after UCL conversion.

Sponsored by: EMC / Isilon Storage Division
MFC after: 1 week

10 years agoFix ABI from /usr/local/etc/pkg.conf not being respected.
Bryan Drewery [Fri, 14 Mar 2014 17:20:45 +0000 (17:20 +0000)]
Fix ABI from /usr/local/etc/pkg.conf not being respected.

Regression from r259266.

Sponsored by: EMC / Isilon Storage Division
MFC after: 1 week

10 years agoAnother miss from r263140.
Gleb Smirnoff [Fri, 14 Mar 2014 17:20:23 +0000 (17:20 +0000)]
Another miss from r263140.

10 years agoA miss from r263140.
Gleb Smirnoff [Fri, 14 Mar 2014 17:18:21 +0000 (17:18 +0000)]
A miss from r263140.

10 years agoAdd missing FALLTHROUGH comment in tmpfs_dir_getdents for looking up '.' and
Bryan Drewery [Fri, 14 Mar 2014 13:58:02 +0000 (13:58 +0000)]
Add missing FALLTHROUGH comment in tmpfs_dir_getdents for looking up '.' and
'..'.

Reviewed by: Russell Cattelan
Sponsored by: EMC / Isilon Storage Division
MFC after: 2 weeks

10 years agoRename cnt to maxcookies and change its use as the condition for when to
Bryan Drewery [Fri, 14 Mar 2014 13:55:48 +0000 (13:55 +0000)]
Rename cnt to maxcookies and change its use as the condition for when to
lookup cookies to be less obscure.

No functional change.

Since r245115, cnt has not really been needed in tmpfs_dir_getdents().  Keep
it for the MPASS() for now though.

Sponsored by: EMC / Isilon Storage Division
MFC after: 2 weeks

10 years agoRemove unnecessary svn:executable property from source file.
Julio Merino [Fri, 14 Mar 2014 12:55:06 +0000 (12:55 +0000)]
Remove unnecessary svn:executable property from source file.

The atf cp_test.sh sample file should have never been marked executable in
the first place because this file needs to be "built" first before being
usable.

10 years agoMove FreeBSD Test Suite-specific code to a suite.test.mk file.
Julio Merino [Fri, 14 Mar 2014 12:52:55 +0000 (12:52 +0000)]
Move FreeBSD Test Suite-specific code to a suite.test.mk file.

The new suite.test.mk file contains all the logic needed to install test
programs under /usr/tests/ and to support Kyua as the run-time engine.
This file is included by default by bsd.test.mk so Makefiles do not need
to care about its existence.

Specific Makefiles can define NOT_FOR_TEST_SUITE to indicate that whatever
test programs they are building are not supposed to be installed under
/usr/tests/ nor run by Kyua.  (The effect of passing this setting is that
suite.test.mk is simply not included.)

NOT_FOR_TEST_SUITE should never be used by Makefiles in the base system.
This functionality is provided so that third-parties can hook in their
own test code, with different semantics, if they wish.  This was asked
for by sjg@.

10 years agoAdd support for AMD Family 16h (Kabini) sensor devices.
Christian Brueffer [Fri, 14 Mar 2014 12:15:28 +0000 (12:15 +0000)]
Add support for AMD Family 16h (Kabini) sensor devices.

PR: 186587
Submitted by: David Rufino <david.rufino at gmail.com>
MFC after: 2 weeks

10 years agoAdd placeholders for IPX/SPX and AppleTalk priveledges, to avoid
Gleb Smirnoff [Fri, 14 Mar 2014 11:45:19 +0000 (11:45 +0000)]
Add placeholders for IPX/SPX and AppleTalk priveledges, to avoid
number clashes with any future constants.

Suggested by: rwatson

10 years agoMake bsd.test.mk the only public mk fragment for the building of tests.
Julio Merino [Fri, 14 Mar 2014 08:56:19 +0000 (08:56 +0000)]
Make bsd.test.mk the only public mk fragment for the building of tests.

Change {atf,plain,tap}.test.mk to be internal implementation details of
bsd.test.mk.  Makefiles that build tests should now only include bsd.test.mk
and declaratively specify what they want to build, without worrying about
the internal implementation of the mk files.

The reason for this change is to permit building test programs of different
interfaces from a single directory, which is something I had a need for
while porting tests over from src/tools/regression/.

Additionally, this change makes it possible to perform some other requested
changes to bsd.test.mk in an easier manner.  Coming soon.

10 years agoRemove lukemftpd. It was disconnected from the build in 2009.
Dag-Erling Smørgrav [Fri, 14 Mar 2014 08:43:56 +0000 (08:43 +0000)]
Remove lukemftpd.  It was disconnected from the build in 2009.

MFC after: 3 days

10 years agoWorkaround for USB MIDI adapters which use non-supported values of
Hans Petter Selasky [Fri, 14 Mar 2014 08:42:30 +0000 (08:42 +0000)]
Workaround for USB MIDI adapters which use non-supported values of
wMaxPacketSize for BULK endpoints.

MFC after: 1 week

10 years agoAdd support for more sample rates to USB audio driver.
Hans Petter Selasky [Fri, 14 Mar 2014 07:11:33 +0000 (07:11 +0000)]
Add support for more sample rates to USB audio driver.

Submitted by: Shunsuke Suganuma <3226388001@jcom.home.ne.jp>
PR: usb/171254
MFC after: 1 week

10 years agoReset the bit of the R92C_MCUFWDL associated with checksum report
Kevin Lo [Fri, 14 Mar 2014 06:38:22 +0000 (06:38 +0000)]
Reset the bit of the R92C_MCUFWDL associated with checksum report
before loading firmware page.  It may fix this problem:
"urtwn0: timeout waiting for checksum report"

10 years agoSimilar to r246614, fix panic on removing urtwn(4). It happens because
Kevin Lo [Fri, 14 Mar 2014 06:37:08 +0000 (06:37 +0000)]
Similar to r246614, fix panic on removing urtwn(4).  It happens because
nodes are freed after the adapter is gone.

10 years agoRemove AppleTalk support.
Gleb Smirnoff [Fri, 14 Mar 2014 06:29:43 +0000 (06:29 +0000)]
Remove AppleTalk support.

AppleTalk was a network transport protocol for Apple Macintosh devices
in 80s and then 90s. Starting with Mac OS X in 2000 the AppleTalk was
a legacy protocol and primary networking protocol is TCP/IP. The last
Mac OS X release to support AppleTalk happened in 2009. The same year
routing equipment vendors (namely Cisco) end their support.

Thus, AppleTalk won't be supported in FreeBSD 11.0-RELEASE.

10 years agoRewrite usermgmt -- hooking it into the scripting system with dispatch
Devin Teske [Fri, 14 Mar 2014 03:42:05 +0000 (03:42 +0000)]
Rewrite usermgmt -- hooking it into the scripting system with dispatch
commands addUser, deleteUser, and editUser. Getting rid of the awkward-
to-use `userinput' bolt-on which Ron and I talked about rewriting.

10 years agoAdd protection against input containing single-quotes (e.g., i18n-users).
Devin Teske [Fri, 14 Mar 2014 03:37:08 +0000 (03:37 +0000)]
Add protection against input containing single-quotes (e.g., i18n-users).

10 years agoFor non-interactive scripts, forgot to check we were given an argument
Devin Teske [Fri, 14 Mar 2014 03:34:43 +0000 (03:34 +0000)]
For non-interactive scripts, forgot to check we were given an argument
before proceeding.

10 years agoFix a bug preventing errors from pw(8) from filtering up to a dialog.
Devin Teske [Fri, 14 Mar 2014 03:33:03 +0000 (03:33 +0000)]
Fix a bug preventing errors from pw(8) from filtering up to a dialog.
Programs running as rvalue to pipe cannot access current namespace.

10 years agoReduce the sleep cycle when using dialog(1) to 1-second.
Devin Teske [Fri, 14 Mar 2014 03:28:21 +0000 (03:28 +0000)]
Reduce the sleep cycle when using dialog(1) to 1-second.

10 years agoFix comments and whitespace.
Devin Teske [Fri, 14 Mar 2014 03:25:33 +0000 (03:25 +0000)]
Fix comments and whitespace.

10 years agoFix a code-typo that prevented auto-sizing of the dialog.
Devin Teske [Fri, 14 Mar 2014 03:15:02 +0000 (03:15 +0000)]
Fix a code-typo that prevented auto-sizing of the dialog.

10 years agoRemove directory which should not have been re-added.
Eitan Adler [Fri, 14 Mar 2014 03:12:41 +0000 (03:12 +0000)]
Remove directory which should not have been re-added.

10 years agomultiple: Remove 3rd clause from BSD license where approved by the
Eitan Adler [Fri, 14 Mar 2014 03:07:51 +0000 (03:07 +0000)]
multiple: Remove 3rd clause from BSD license where approved by the
regents and renumber.

This patch skips files in contrib/ and crypto/

Acked by: imp
Discussed with: emaste

10 years agoPoint hat! Fix a broken f_isinteger().
Devin Teske [Fri, 14 Mar 2014 03:00:02 +0000 (03:00 +0000)]
Point hat! Fix a broken f_isinteger().

10 years agoRemove IPX support.
Gleb Smirnoff [Fri, 14 Mar 2014 02:58:48 +0000 (02:58 +0000)]
Remove IPX support.

IPX was a network transport protocol in Novell's NetWare network operating
system from late 80s and then 90s. The NetWare itself switched to TCP/IP
as default transport in 1998. Later, in this century the Novell Open
Enterprise Server became successor of Novell NetWare. The last release
that claimed to still support IPX was OES 2 in 2007. Routing equipment
vendors (e.g. Cisco) discontinued support for IPX in 2011.

Thus, IPX won't be supported in FreeBSD 11.0-RELEASE.

10 years agoRemove useless NULL string '' in compound strings. Look very closely.
Devin Teske [Fri, 14 Mar 2014 02:56:49 +0000 (02:56 +0000)]
Remove useless NULL string '' in compound strings. Look very closely.

10 years agoSet nokeyword property on some files which don't already have it. This will allow...
Eitan Adler [Fri, 14 Mar 2014 02:53:36 +0000 (02:53 +0000)]
Set nokeyword property on some files which don't already have it.  This will allow my next commit.

10 years agoFix future namespace issues for functions taking $var_to_set -- functions
Devin Teske [Fri, 14 Mar 2014 02:50:32 +0000 (02:50 +0000)]
Fix future namespace issues for functions taking $var_to_set -- functions
taking a variable to set need to make sure they protect their locals; if
$var_to_set positional argument coincides with a local the expected call
to `setvar' will fail to reach outside of the function's namespace. When
such collisions are experienced (as I did in the rewrite of usermgmt) the
solution is to append a full or abbreviated version of the function name
to the local (ultimately eliminating collisions). This is rarely needed
and only occurs when you have a lot of like-named functions that pass
very similar $var_to_set positional arguments to each other (such as-is
the case with an expansive library such as `dialog.subr').

10 years agoUpdate copyright.
Devin Teske [Fri, 14 Mar 2014 02:40:52 +0000 (02:40 +0000)]
Update copyright.

10 years agoComments.
Devin Teske [Fri, 14 Mar 2014 02:39:42 +0000 (02:39 +0000)]
Comments.

10 years agoAdd debug statement just before attempting to exec a module.
Devin Teske [Fri, 14 Mar 2014 02:38:56 +0000 (02:38 +0000)]
Add debug statement just before attempting to exec a module.

10 years agoRemove indexfile from debug statement as it is already logged by
Devin Teske [Fri, 14 Mar 2014 02:37:39 +0000 (02:37 +0000)]
Remove indexfile from debug statement as it is already logged by
f_index_menusel_command() used just-prior to this debug statement.
Also, log the arguments being passed to the resword.

10 years agoCleanup redundant logic and add some comments to help explain how
Bryan Drewery [Fri, 14 Mar 2014 02:10:30 +0000 (02:10 +0000)]
Cleanup redundant logic and add some comments to help explain how
it works in lieu of potentially less clear code.

Sponsored by: EMC / Isilon Storage Division
Discussed with: Russell Cattelan

10 years agoFix -o size less than PAGE_SIZE resulting in SIZE_MAX being used.
Bryan Drewery [Fri, 14 Mar 2014 01:43:55 +0000 (01:43 +0000)]
Fix -o size less than PAGE_SIZE resulting in SIZE_MAX being used.

Discussed with: kib
MFC after: 2 weeks

10 years agoCombine similar code from vprintf(9) and log(9).
Bryan Drewery [Fri, 14 Mar 2014 01:17:11 +0000 (01:17 +0000)]
Combine similar code from vprintf(9) and log(9).

MFC after: 2 weeks

10 years agoFix an uninitialized variable error I perpetrated when splitting some
Ian Lepore [Fri, 14 Mar 2014 00:49:02 +0000 (00:49 +0000)]
Fix an uninitialized variable error I perpetrated when splitting some
code into a separate function.  Pass the missing value from main() to
the probe_disks() function.

10 years agoHide a few messages under bootverbose.
Xin LI [Fri, 14 Mar 2014 00:47:46 +0000 (00:47 +0000)]
Hide a few messages under bootverbose.

Reviewed by: Abhishek Gupta
MFC after: 2 weeks

10 years agoRe-format the license to conform to our BSD license template as much
Christian Brueffer [Thu, 13 Mar 2014 23:31:05 +0000 (23:31 +0000)]
Re-format the license to conform to our BSD license template as much
as possible.  This does not change the wording in any way.

Remove the 3rd clause ("advertising clause") of the BSD license as
permitted by the University of Berkeley on July 22, 1999.  While the
clause itself mentions Lawrence Berkeley Laboratory, UCB is the sole
copyright holder of this file.

Reviewed by: imp, emaste, eadler
MFC after: 2 weeks

10 years agoPull in r201021 from upstream libc++ trunk:
Dimitry Andric [Thu, 13 Mar 2014 23:09:48 +0000 (23:09 +0000)]
Pull in r201021 from upstream libc++ trunk:

  Fix for PR18735 - self-assignment for map/multimap gives incorrect
  results in C++03

(Please note: that is an LLVM PR identifier, not a FreeBSD one.)

Reported by: rakuco
MFC after: 3 days

10 years agoReport ZVOL block size as GEOM stripesize.
Alexander Motin [Thu, 13 Mar 2014 19:26:26 +0000 (19:26 +0000)]
Report ZVOL block size as GEOM stripesize.

MFC after: 2 weeks

10 years agoConnect 64-bit boot ficl to the build
Ed Maste [Thu, 13 Mar 2014 19:26:23 +0000 (19:26 +0000)]
Connect 64-bit boot ficl to the build

It is not yet used, but this will ensure it doesn't get broken.

Sponsored by: The FreeBSD Foundation