dragonfly.git
11 years agoAdjust files for libarchive-3.1.2 import.
Peter Avalos [Tue, 19 Feb 2013 18:26:30 +0000 (10:26 -0800)]
Adjust files for libarchive-3.1.2 import.

11 years agoMerge branch 'vendor/LIBARCHIVE'
Peter Avalos [Tue, 19 Feb 2013 18:35:19 +0000 (10:35 -0800)]
Merge branch 'vendor/LIBARCHIVE'

11 years agopatch(1): Fix typo.
Sascha Wildner [Tue, 19 Feb 2013 17:51:31 +0000 (18:51 +0100)]
patch(1): Fix typo.

11 years agopatch(1): When -C is specified, do not claim to have saved rejects.
Sascha Wildner [Tue, 19 Feb 2013 17:49:16 +0000 (18:49 +0100)]
patch(1): When -C is specified, do not claim to have saved rejects.

Submitted-by: Loganaden Velvindron
Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2359>

11 years agobce: Reimplement polling in non-compat mode
Sepherosa Ziehau [Tue, 19 Feb 2013 13:12:04 +0000 (21:12 +0800)]
bce: Reimplement polling in non-compat mode

Take advantage of the independent TX/RX serializers.

11 years agobce: Split TX/RX serializer
Sepherosa Ziehau [Tue, 19 Feb 2013 09:01:50 +0000 (17:01 +0800)]
bce: Split TX/RX serializer

11 years agobce: Defer interrupt allocation until the TX/RX rings are allocated
Sepherosa Ziehau [Tue, 19 Feb 2013 04:57:05 +0000 (12:57 +0800)]
bce: Defer interrupt allocation until the TX/RX rings are allocated

This will be required for implementing MSI-X at least.

11 years agobce: Regroup function declaration
Sepherosa Ziehau [Tue, 19 Feb 2013 04:21:34 +0000 (12:21 +0800)]
bce: Regroup function declaration

11 years agobce: Fix supported devices list in comment
Sepherosa Ziehau [Tue, 19 Feb 2013 04:12:13 +0000 (12:12 +0800)]
bce: Fix supported devices list in comment

11 years agobce: Put RX related fields into bce_rx_ring
Sepherosa Ziehau [Tue, 19 Feb 2013 03:16:37 +0000 (11:16 +0800)]
bce: Put RX related fields into bce_rx_ring

11 years agokernel - Fix a race and enable the VM read shortcut feature by default
Matthew Dillon [Mon, 18 Feb 2013 20:08:29 +0000 (12:08 -0800)]
kernel - Fix a race and enable the VM read shortcut feature by default

* Fix a lookup/access race.  No known cases hit the race but decided
  it needed to be fixed for safety.

  Instead of looking up and holding the VM page we know try to busy it,
  and only access the content if we are able to do so non-blocking.
  This costs a bit more in overhead but handles the page more properly.

  /usr/obj/usr/src
  time tar cf /dev/null .

  0.734u 5.781s 0:06.51 100.0%    24+66k 0+0io 0pf+0w (shorcut disabled)
  0.664u 2.382s 0:03.05 99.6%     24+66k 0+0io 0pf+0w (shorcut enabled)

* Default vm.read_shortcut_enable to 1.  The feature is now enabled by
  default.

* The feature has been in the tree a while default disabled and needs wider
  use, so it is being enabled by default.  The feature is only useful on
  64-bit systems (i.e. so the DMAP can be used).  It allows the buffer
  cache and the VM page mapping code to be completely bypassed in situations
  where the file data is available in the VM page cache.

11 years agorc.d/addswap: Load the vn(4) module if not already present.
Sascha Wildner [Mon, 18 Feb 2013 18:25:50 +0000 (19:25 +0100)]
rc.d/addswap: Load the vn(4) module if not already present.

Reported-by: lentferj
11 years agokernel - Fix rare race in namecache
Matthew Dillon [Mon, 18 Feb 2013 17:50:22 +0000 (09:50 -0800)]
kernel - Fix rare race in namecache

* Fix a rare race in _cache_cleanneg() where the ncp being cleaned up is
  resolved during the moment between where _cache_cleanneg() accesses it
  prior to locking and removing it.

* _cache_cleanneg() needed to re-check that the ncp was still on the
  negative cache list.

Reported-by: marino
11 years agocsu: Fix .eh_frame_hdr errors seen on i386
John Marino [Mon, 18 Feb 2013 00:15:59 +0000 (01:15 +0100)]
csu: Fix .eh_frame_hdr errors seen on i386

The libcsu object files should have been generated with
-fno-asynchronous-unwind-tables.  The crtbegin*, crtend* objects,
specific to a compiler, were generated with this flag on both platforms
as seen in the vendor build.  This commit builds libcsu with the same
cflags on both platforms, and it allows the error frame header to get
built successfully.

This has been seen on i386 for a while, and later bug #2511 hit upon
it outside of the world build.

11 years agobuild - Do not use cp -a
Samuel J. Greear [Sun, 17 Feb 2013 23:40:21 +0000 (16:40 -0700)]
build - Do not use cp -a

* The -a option to cp was added in November, unbreak installworld for those
  running a world built prior to November 2012.

11 years agobuild: implement automatic world backups
John Marino [Sun, 17 Feb 2013 20:14:48 +0000 (21:14 +0100)]
build: implement automatic world backups

The directives DAYS_BACKUP and NO_BACKUP have been removed.
The "backupworld" target will save important directories to the WORLD_BACKUP
directory just as before, and it is restored with the "restoreworld" target.

Additionally, every time the "installworld" target is executed, the same
directories will be automatically backed up at the location of
${MAKEOBJDIRPREFIX}/world_backup .  These directories could be restored
with the new make target "restoreworld-auto".

The WORLD_BACKUP location default is now /var/backups/world_backup .
The directory /usr/lib has been added to the backup list.
The more useless errors seen with a broken world have been removed, these
came in with bmake.

11 years agobuild: Remove installworld backup check
John Marino [Sun, 17 Feb 2013 19:16:53 +0000 (20:16 +0100)]
build: Remove installworld backup check

Dillon wants to rework backup functionality.
1. Remove any check that can halt installworld
2. Backup world automatically and store it in /usr/obj/world_binaries
3. Keep manual backup commands, they still it WORLD_BACKUP as before
4. Get rid of days check

This commit accomplished step 1.

11 years agobce: Put TX related fields into bce_tx_ring
Sepherosa Ziehau [Sun, 17 Feb 2013 13:15:39 +0000 (21:15 +0800)]
bce: Put TX related fields into bce_tx_ring

11 years agovkernel - Allow setting MAC addresses from within the command line.
Antonio Huete Jimenez [Sun, 17 Feb 2013 11:41:45 +0000 (12:41 +0100)]
vkernel - Allow setting MAC addresses from within the command line.

  In order to be able to specify the MAC address we want to
  use for every interface within the vkernel, an extra argument
  has been added to the -I option.

  Example:
   ./kernel -r root.img -m 256m -I auto=aa:bb:cc:dd:ee:ff

11 years agobuild: add "make backupworld" and "make restoreworld" functionality
John Marino [Sun, 17 Feb 2013 11:05:18 +0000 (12:05 +0100)]
build: add "make backupworld" and "make restoreworld" functionality

Three new make.conf parameters have been defined:
  * WORLD_BACKUP - location to store backed up world binaries
                   default = /var/backups/world_binaries
  * DAYS_BACKUP  - The number of days since the last backup that must pass
                   before "make installworld" fails with an error
                   default = 28
  * NO_BACKUP    - defining this will prevent backup checks.

The build functionality has been changed.  Prior to "make installworld",
the makefile will check to see if system binaries have been previously
backed up.  If they haven't, "make installworld" will fail to execute
explaining that the system should be backed up.  If a previous backup
does exist, but it's older than the specified number of days, "make
installworld" will fail explaining the backup needs to be refreshed.

Passing NO_BACKUP through the command line or make.conf will inhibit
these checks.

While here, define WORLD_CCVER, LDVER, WORLD_LDVER, WORLD_BINUTILSVER
in make.conf man page too.

11 years agobce: Factor out bce_xmit()
Sepherosa Ziehau [Sun, 17 Feb 2013 11:07:06 +0000 (19:07 +0800)]
bce: Factor out bce_xmit()

11 years agoImport libarchive-3.1.2.
Peter Avalos [Sun, 17 Feb 2013 10:25:30 +0000 (02:25 -0800)]
Import libarchive-3.1.2.

-Add basic archive read and write filter support for lrzip.
-Implement function used to seek within data blocks.
-Add support for lzop.
-Introduce uuencode filter.
-Introduce b64encode filter.
-Add support for grzip compression.
-Add support for writing v7 tar format.
-Implement functions to manually set the format and filters used.

11 years agoicmp: Disable icmplim_output by default
Sepherosa Ziehau [Sun, 17 Feb 2013 08:18:39 +0000 (16:18 +0800)]
icmp: Disable icmplim_output by default

It spams the console a pretty lot.

11 years agoif: Add compat mode for ifnet stats so that 3rd party apps can work
Sepherosa Ziehau [Sun, 17 Feb 2013 08:00:36 +0000 (16:00 +0800)]
if: Add compat mode for ifnet stats so that 3rd party apps can work

If ifnet stats compat mode is enabled, the per-CPU ifnet stats will
be collected into ifnet old stats location in the if slow timer.

Sysctl node net.link.stats_compat is used to control whether the
ifnet stats compat mode should be enabled or not; it is _not_ enabled
by default.

11 years agokernel/vinum: Fix userland fallout from my -Wundef kernel fixes.
Sascha Wildner [Sun, 17 Feb 2013 00:23:47 +0000 (01:23 +0100)]
kernel/vinum: Fix userland fallout from my -Wundef kernel fixes.

This file is used in userland too, so make the inclusion of opt_vinum.h
kernel specific (as is the code that uses its VINUMDEBUG).

Reported-by: Max Herrgard <herrgard@gmail.com>
11 years agokernel: Move some externs under INET too.
Sascha Wildner [Sat, 16 Feb 2013 18:42:33 +0000 (19:42 +0100)]
kernel: Move some externs under INET too.

11 years agokernel: A few small fixes to make a minimal kernel config compile.
Sascha Wildner [Sat, 16 Feb 2013 18:32:38 +0000 (19:32 +0100)]
kernel: A few small fixes to make a minimal kernel config compile.

It is solely for my build testing purposes:

platform        pc64
machine         x86_64
machine_arch    x86_64
ident           MINI
cpu             HAMMER_CPU

* Put two INET specific functions in uipc_socket.c under #ifdef INET.

* Compile in isa_intr.c only when isa is specified in the config.

* Move PCI specific include under #if 0 too in mp_clock.c

* In nexus.c, compile in PCI specific parts only when pci is
  specified in the config.

11 years agoccdconfig(8): When ccd can't be kldloaded, explain a possible reason.
Sascha Wildner [Sat, 16 Feb 2013 16:49:01 +0000 (17:49 +0100)]
ccdconfig(8): When ccd can't be kldloaded, explain a possible reason.

If /etc/ccd.conf is present, /etc/rc.d/ccd will run ccdconfig in the
early boot when only root is mounted read-only. On HAMMER systems (or
any other system where /boot isn't part of the root partition) it can
not automatically load ccd.ko at this point. This was different on
UFS where /boot was usually not separate.

So in case it fails, give the user a better message that explains the
options he has.

Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2439>
Reported-by: Christer Solskogen
11 years agomfi(4): Add D_MPSAFE to the disk flags.
Sascha Wildner [Sat, 16 Feb 2013 15:27:28 +0000 (16:27 +0100)]
mfi(4): Add D_MPSAFE to the disk flags.

When porting it, I didn't know that this is indicated by the _absence_
of DISKFLAG_NEEDSGIANT.

Tested-by: ftigeot
11 years agokernel: Fix various -Wundef warnings.
Sascha Wildner [Sat, 16 Feb 2013 13:28:22 +0000 (14:28 +0100)]
kernel: Fix various -Wundef warnings.

11 years agokernel/sound: Use pci_{get,set}_powerstate(). Fixes -Wundef.
Sascha Wildner [Sat, 16 Feb 2013 13:20:41 +0000 (14:20 +0100)]
kernel/sound: Use pci_{get,set}_powerstate(). Fixes -Wundef.

11 years agobnx: Support 5717 C0, which is almost same as 5720 A0
Sepherosa Ziehau [Sat, 16 Feb 2013 13:02:01 +0000 (21:02 +0800)]
bnx: Support 5717 C0, which is almost same as 5720 A0

Obtained-from: tg3

11 years agopcidevs: regen
Sepherosa Ziehau [Sat, 16 Feb 2013 12:46:29 +0000 (20:46 +0800)]
pcidevs: regen

11 years agopcidevs: Add PCi device ID for Broadcom 5717C
Sepherosa Ziehau [Sat, 16 Feb 2013 12:45:57 +0000 (20:45 +0800)]
pcidevs: Add PCi device ID for Broadcom 5717C

11 years agokernel/nmdm: Comment variables which are only used in commented code.
Sascha Wildner [Sat, 16 Feb 2013 12:49:15 +0000 (13:49 +0100)]
kernel/nmdm: Comment variables which are only used in commented code.

11 years agokernel/drm: Put two variables under #if 0 for future use (see comment).
Sascha Wildner [Sat, 16 Feb 2013 12:44:37 +0000 (13:44 +0100)]
kernel/drm: Put two variables under #if 0 for future use (see comment).

11 years agokernel: Remove some unused variables.
Sascha Wildner [Sat, 16 Feb 2013 12:42:04 +0000 (13:42 +0100)]
kernel: Remove some unused variables.

11 years agokernel: Handle some variables only used in debug output.
Sascha Wildner [Sat, 16 Feb 2013 11:32:10 +0000 (12:32 +0100)]
kernel: Handle some variables only used in debug output.

11 years agobsd.cpu.gcc47.mk: Add default cpu extensions
John Marino [Sat, 16 Feb 2013 12:48:47 +0000 (13:48 +0100)]
bsd.cpu.gcc47.mk: Add default cpu extensions

For the normal case, a standard MACHINE_CPU is supposed to be defined, but
that wasn't happening.  Copy code from bsd.cpu.gcc44.mk to fix dports
looking at MACHINE_CPU variable value.

11 years agobce: Remove debug stuffs
Sepherosa Ziehau [Sat, 16 Feb 2013 11:12:36 +0000 (19:12 +0800)]
bce: Remove debug stuffs

opt_bce.h is still kept, which will be needed for multiple RX/TX queues
debugging options.

11 years agotws(4): Fix a typo in a debug message.
Sascha Wildner [Sat, 16 Feb 2013 11:23:19 +0000 (12:23 +0100)]
tws(4): Fix a typo in a debug message.

11 years agojme: Avoid using magic number for TX register writing aggregation
Sepherosa Ziehau [Sat, 16 Feb 2013 10:45:37 +0000 (18:45 +0800)]
jme: Avoid using magic number for TX register writing aggregation

11 years agobce: Make TX register writing aggregation tunable
Sepherosa Ziehau [Sat, 16 Feb 2013 10:39:35 +0000 (18:39 +0800)]
bce: Make TX register writing aggregation tunable

11 years agobnx: Avoid using magic number for TX register writing aggregation
Sepherosa Ziehau [Sat, 16 Feb 2013 10:37:48 +0000 (18:37 +0800)]
bnx: Avoid using magic number for TX register writing aggregation

11 years agobge: Avoid using magic number for TX register writing aggregation
Sepherosa Ziehau [Sat, 16 Feb 2013 10:36:16 +0000 (18:36 +0800)]
bge: Avoid using magic number for TX register writing aggregation

11 years agokernel: Use __debugvar for stack variables used only by assertion
Sepherosa Ziehau [Sat, 16 Feb 2013 10:29:16 +0000 (18:29 +0800)]
kernel: Use __debugvar for stack variables used only by assertion

11 years agoem/emx: Avoid using magic number for TX register writing aggregation
Sepherosa Ziehau [Sat, 16 Feb 2013 10:01:00 +0000 (18:01 +0800)]
em/emx: Avoid using magic number for TX register writing aggregation

11 years agoigb: Fix comment
Sepherosa Ziehau [Sat, 16 Feb 2013 09:58:56 +0000 (17:58 +0800)]
igb: Fix comment

11 years agoigb: Remove unused macros
Sepherosa Ziehau [Sat, 16 Feb 2013 09:54:16 +0000 (17:54 +0800)]
igb: Remove unused macros

11 years agomtree: Remove /usr/libdata/lint. Must've overlooked it.
Sascha Wildner [Sat, 16 Feb 2013 09:22:45 +0000 (10:22 +0100)]
mtree: Remove /usr/libdata/lint. Must've overlooked it.

11 years agoccd.4: Break line after sentence.
Sascha Wildner [Wed, 13 Feb 2013 23:11:55 +0000 (00:11 +0100)]
ccd.4: Break line after sentence.

11 years agoccd.4: Add a conventional synopsis and remove config info in the text.
Sascha Wildner [Fri, 15 Feb 2013 17:13:32 +0000 (18:13 +0100)]
ccd.4: Add a conventional synopsis and remove config info in the text.

11 years agomtree: Add back a directory which I removed by mistake.
Sascha Wildner [Fri, 15 Feb 2013 16:49:47 +0000 (17:49 +0100)]
mtree: Add back a directory which I removed by mistake.

11 years agonetstat: Make "netstat -w" aware of new ifnet stats location
Sepherosa Ziehau [Fri, 15 Feb 2013 09:18:20 +0000 (17:18 +0800)]
netstat: Make "netstat -w" aware of new ifnet stats location

11 years agoif: Per-cpu ifnet/ifaddr statistics, step 3/3
Sepherosa Ziehau [Fri, 15 Feb 2013 08:15:47 +0000 (16:15 +0800)]
if: Per-cpu ifnet/ifaddr statistics, step 3/3

Make ifnet stats per-cpu.  The per-cpu stats are stored in cache aligned
ifdata_pcpu struct.

- if_mib code is adjusted, so callers of the IFMIB_IFDATA sysctl will not
  aware of the ifnet per-cpu stats, e.g. systat -if
- User space programs that directly access ifnet.if_data are modified to
  aware of the new location of the ifnet stats, e.g. netstat -in

11 years agoif: Per-cpu ifnet/ifaddr statistics, step 2/3
Sepherosa Ziehau [Fri, 15 Feb 2013 06:06:32 +0000 (14:06 +0800)]
if: Per-cpu ifnet/ifaddr statistics, step 2/3

Make ifaddr stats per-cpu.  The per-cpu stats are embedded into
ifaddr_container, which already carries per-cpu data for ifaddr.

11 years agoif: Per-cpu ifnet/ifaddr statistics, step 1/3
Sepherosa Ziehau [Wed, 13 Feb 2013 06:00:14 +0000 (14:00 +0800)]
if: Per-cpu ifnet/ifaddr statistics, step 1/3

Wrap ifnet/ifaddr stats updating, setting and extraction into macros;
ease upcoming changes.

11 years agotzsetup: Sync with FreeBSD.
Peter Avalos [Thu, 14 Feb 2013 18:23:09 +0000 (10:23 -0800)]
tzsetup: Sync with FreeBSD.

Primarily this is an update for the new libdialog, but while I'm here:

- Add a menu entry for UTC in the main menu.
- Add support for chrooted installs.
- Add examples to the man-page.
- Instead of having to know which timezone was picked last time, you
now can run "tzsetup -r" which will reinstall the last choice. This
data is recorded in /var/db/zoneinfo.
- Add a new options (-s) that, when specified, skips the question about
adjusting the clock to UTC. That avoids to write on /etc/wall_cmos_clock
which is useful in some cases (example: host user in a jail).
- Remove paths.h and embed it in the source.
- Fix style(9) issues.

Obtained-from:   FreeBSD

11 years agoDrag libdialog into the 21st century.
Peter Avalos [Thu, 14 Feb 2013 18:39:52 +0000 (10:39 -0800)]
Drag libdialog into the 21st century.

This updates libdialog and dialog's build to use contrib/dialog.
This also breaks buildworld since tzsetup needs to be ported over (see
next commit).

11 years agoAdd a README.DRAGONFLY for contrib/dialog.
Peter Avalos [Tue, 12 Feb 2013 06:02:54 +0000 (22:02 -0800)]
Add a README.DRAGONFLY for contrib/dialog.

11 years agodialog: Add README.DELETED.
Peter Avalos [Sun, 10 Feb 2013 13:24:49 +0000 (05:24 -0800)]
dialog: Add README.DELETED.

11 years agoImport dialog-1.2-20121230.
Peter Avalos [Sun, 10 Feb 2013 12:24:43 +0000 (04:24 -0800)]
Import dialog-1.2-20121230.

11 years agoUpdate locale and i18n files.
Sascha Wildner [Thu, 14 Feb 2013 10:29:42 +0000 (11:29 +0100)]
Update locale and i18n files.

This fixes <http://bugs.dragonflybsd.org/issues/2462> and at the same
fixes the "Couldn't read shell's output for..." warnings we were
getting with bmake in share/i18n/esdb.

Reported-by: marino
Taken-from:  FreeBSD, NetBSD

11 years agobsd.libnames.mk: Add LIBNCURSESW.
Peter Avalos [Tue, 12 Feb 2013 05:10:48 +0000 (21:10 -0800)]
bsd.libnames.mk: Add LIBNCURSESW.

11 years agoUpdate files for OpenSSL-1.0.1e import.
Peter Avalos [Wed, 13 Feb 2013 17:25:31 +0000 (09:25 -0800)]
Update files for OpenSSL-1.0.1e import.

11 years agoMerge branch 'vendor/OPENSSL'
Peter Avalos [Wed, 13 Feb 2013 17:19:10 +0000 (09:19 -0800)]
Merge branch 'vendor/OPENSSL'

11 years agoImport OpenSSL-1.0.1e.
Peter Avalos [Wed, 13 Feb 2013 17:15:43 +0000 (09:15 -0800)]
Import OpenSSL-1.0.1e.

o Corrected fix for CVE-2013-0169.

11 years agotap: Define TAP_MANUALMAKE; unbreak building
Sepherosa Ziehau [Wed, 13 Feb 2013 13:11:47 +0000 (21:11 +0800)]
tap: Define TAP_MANUALMAKE; unbreak building

11 years agobridge: Disable TSO on member interface
Sepherosa Ziehau [Wed, 13 Feb 2013 05:44:54 +0000 (13:44 +0800)]
bridge: Disable TSO on member interface

Report-by: dillon@
11 years agolibssl - Fix bug in libssl
Matthew Dillon [Wed, 13 Feb 2013 00:15:12 +0000 (16:15 -0800)]
libssl - Fix bug in libssl

* Fix a bug that was causing openssl's TLS code to assert.

* I believe the bug is already fixed in the openssl git master, but
  it isn't fixed in our sources (until now).

* Patch acquired from:

  fetch "http://git.openssl.org/gitweb/?p=openssl.git;a=patch;h=32cc247"

11 years agokernel - Do not auto-destroy tap interfaces which are manually created
Matthew Dillon [Wed, 13 Feb 2013 00:11:08 +0000 (16:11 -0800)]
kernel - Do not auto-destroy tap interfaces which are manually created

* When a tap interface is created via 'ifconfig tapN create' it
  will no longer be automatically destroyed on the last close.

* Previously could occur for tap units 4 or larger.

* Fixes unexpected ripouts of manually created interfaces, which
  can be particularly bad when the interface is used in a PF rule.

11 years agotip(1): Remove the clearing of the schg flag of cu(1) during installation.
Sascha Wildner [Tue, 12 Feb 2013 21:41:39 +0000 (22:41 +0100)]
tip(1): Remove the clearing of the schg flag of cu(1) during installation.

A long, long time ago (until 2004), when cu(1) was still a separate
program, its schg flag was set after installation, so it had to be
cleared on the installed cu before installing the new one over it.

In 0f3db4ffe, we removed cu(1) as a separate program and made it a
link to tip(1). In this commit, the setting of schg was commented
out but the clearing part had to be kept (for upgrading).

We can now remove the clearing of the flag as well, because we can
safely assume that since September 2004, all schg flags of cu(1)s
out there have been cleared (i.e., all systems that would ever want
to upgrade to master have a world newer than 0f3db4ffe).

11 years agokernel/callout: Remove some unused old code.
Sascha Wildner [Tue, 12 Feb 2013 21:36:45 +0000 (22:36 +0100)]
kernel/callout: Remove some unused old code.

Noticed-by: ftigeot
11 years agoifaddr: Cache align ifaddr_container
Sepherosa Ziehau [Tue, 12 Feb 2013 13:26:45 +0000 (21:26 +0800)]
ifaddr: Cache align ifaddr_container

ifaddr_container is per-cpu data struct; cache aligning it avoid possible
cache pollution

11 years agolibdialog: Increase MAX_LEN to 4096 (bug 2480)
John Marino [Mon, 11 Feb 2013 17:02:07 +0000 (18:02 +0100)]
libdialog: Increase MAX_LEN to 4096 (bug 2480)

While we are waiting for new libdialog, improve the ancient one so that
it at least doesn't core dump when used (e.g. ghostscript9 in dports)

11 years agomake upgrade: Remove another manpage (an MLINK) which has changed name.
Sascha Wildner [Mon, 11 Feb 2013 11:19:49 +0000 (12:19 +0100)]
make upgrade: Remove another manpage (an MLINK) which has changed name.

11 years agobsd.cpu.mk: Set gcc47 as default
John Marino [Mon, 11 Feb 2013 08:00:13 +0000 (09:00 +0100)]
bsd.cpu.mk: Set gcc47 as default

Yet another place the default compiler is defined and needs updating.

11 years agoFix our tree for -Wmissing-include-dirs.
Sascha Wildner [Mon, 11 Feb 2013 02:58:16 +0000 (03:58 +0100)]
Fix our tree for -Wmissing-include-dirs.

11 years agoacpi.4: Document that HPET is enabled by default.
Sascha Wildner [Sun, 10 Feb 2013 22:22:49 +0000 (23:22 +0100)]
acpi.4: Document that HPET is enabled by default.

Comment out the section about debug.acpi.enabled because currently
there are no ACPI devices/features that are off by default and have
to be enabled.

11 years agokernel: Nuke ISA sound card support.
Sascha Wildner [Sun, 10 Feb 2013 21:05:25 +0000 (22:05 +0100)]
kernel: Nuke ISA sound card support.

This removes the following modules:

snd_ad1816.ko
snd_ess.ko
snd_mss.ko
snd_sb8.ko
snd_sb16.ko
snd_sbc.ko

11 years agolibcsu: Assign environment when environ is NULL
John Marino [Sun, 10 Feb 2013 11:32:58 +0000 (12:32 +0100)]
libcsu: Assign environment when environ is NULL

Preloaded libraries can change the environment.  The current logic will
unconditionally reassign the environment, undoing any previous
customization.  This change preserves the previous customization.

Taken-from: FreeBSD SVN 245133 (07 Jan 2013)

11 years agoUpdate files for OpenSSL-1.0.1d import.
Peter Avalos [Sun, 10 Feb 2013 10:04:14 +0000 (02:04 -0800)]
Update files for OpenSSL-1.0.1d import.

11 years agoMerge branch 'vendor/OPENSSL'
Peter Avalos [Sun, 10 Feb 2013 09:34:31 +0000 (01:34 -0800)]
Merge branch 'vendor/OPENSSL'

11 years agoImport OpenSSL-1.0.1d.
Peter Avalos [Sun, 10 Feb 2013 09:23:52 +0000 (01:23 -0800)]
Import OpenSSL-1.0.1d.

      o Fix renegotiation in TLS 1.1, 1.2 by using the correct TLS version.
      o Fix OCSP bad key DoS attack CVE-2013-0166
      o Fix for SSL/TLS/DTLS CBC plaintext recovery attack CVE-2013-0169
      o Fix for TLS AESNI record handling flaw CVE-2012-2686

11 years agokernel: Properly lock dounmount()
François Tigeot [Wed, 6 Feb 2013 08:11:04 +0000 (09:11 +0100)]
kernel: Properly lock dounmount()

* dounmount() wasn't properly locked, make it grab the mntvnode_token

* It is necessary to synchronize against insmntque() clearing the vnode
  linkage

* This commit fixes issue #2506

Thanks to vsrinivas for directions

11 years agopf: Fix set-but-unused gcc47 warning
Sepherosa Ziehau [Sat, 9 Feb 2013 05:19:32 +0000 (13:19 +0800)]
pf: Fix set-but-unused gcc47 warning

11 years agoip6/mroute: Partly fix set-but-unused gcc47 warning
Sepherosa Ziehau [Sat, 9 Feb 2013 03:44:33 +0000 (11:44 +0800)]
ip6/mroute: Partly fix set-but-unused gcc47 warning

11 years agowlan: Partly fix set-but-unused gcc47 warning
Sepherosa Ziehau [Sat, 9 Feb 2013 02:48:08 +0000 (10:48 +0800)]
wlan: Partly fix set-but-unused gcc47 warning

11 years agoacpica: Fix set-but-unused gcc47 warning
Sepherosa Ziehau [Sat, 9 Feb 2013 02:29:00 +0000 (10:29 +0800)]
acpica: Fix set-but-unused gcc47 warning

11 years agoath: Partly fix set-but-unused gcc47 warning
Sepherosa Ziehau [Sat, 9 Feb 2013 02:12:46 +0000 (10:12 +0800)]
ath: Partly fix set-but-unused gcc47 warning

11 years agoiwn: Fix set-but-unused gcc47 warning
Sepherosa Ziehau [Sat, 9 Feb 2013 01:34:03 +0000 (09:34 +0800)]
iwn: Fix set-but-unused gcc47 warning

11 years agoral: Fix set-but-unused gcc47 warning
Sepherosa Ziehau [Sat, 9 Feb 2013 01:31:30 +0000 (09:31 +0800)]
ral: Fix set-but-unused gcc47 warning

11 years agosln: Fix set-but-unused gcc47 warning
Sepherosa Ziehau [Sat, 9 Feb 2013 01:30:05 +0000 (09:30 +0800)]
sln: Fix set-but-unused gcc47 warning

11 years agokernel/firewire: Remove #ifdef __DragonFly__ jungle.
Sascha Wildner [Fri, 8 Feb 2013 18:34:36 +0000 (19:34 +0100)]
kernel/firewire: Remove #ifdef __DragonFly__ jungle.

11 years agokernel/virtio: Constify some struct members to silence warnings.
Sascha Wildner [Fri, 8 Feb 2013 17:59:09 +0000 (18:59 +0100)]
kernel/virtio: Constify some struct members to silence warnings.

11 years agokernel/virtio: Remove some unneeded inclusions of <sys/cdefs.h>.
Sascha Wildner [Fri, 8 Feb 2013 17:45:03 +0000 (18:45 +0100)]
kernel/virtio: Remove some unneeded inclusions of <sys/cdefs.h>.

11 years agokernel/virtio: Remove some unused variables.
Sascha Wildner [Fri, 8 Feb 2013 17:43:08 +0000 (18:43 +0100)]
kernel/virtio: Remove some unused variables.

11 years agoRevert "Revert "i386/files: isa/clock.c is clean enough to compile w/ -Werror""
Sascha Wildner [Fri, 8 Feb 2013 17:21:45 +0000 (18:21 +0100)]
Revert "Revert "i386/files: isa/clock.c is clean enough to compile w/ -Werror""

This reverts commit 9b40fbdac1da8214991bb70ab4767862203f2375.

Now that we no longer have gcc41, it compiles without warnings on both of
our compilers.

11 years agotip(1): Fix some -Wmissing-parameter-type warnings.
Sascha Wildner [Fri, 8 Feb 2013 17:14:31 +0000 (18:14 +0100)]
tip(1): Fix some -Wmissing-parameter-type warnings.

It still needs more cleanup.

11 years agomxge: Fix set-but-unused gcc47 warning
Sepherosa Ziehau [Fri, 8 Feb 2013 14:18:44 +0000 (22:18 +0800)]
mxge: Fix set-but-unused gcc47 warning