dragonfly.git
2 years agotools: Add netblast
Sepherosa Ziehau [Sat, 26 May 2012 15:05:01 +0000 (23:05 +0800)]
tools: Add netblast

Obtained-from: FreeBSD

2 years agoacpi: strupr() isn't used anywhere, so remove it.
Sascha Wildner [Sat, 26 May 2012 11:40:43 +0000 (13:40 +0200)]
acpi: strupr() isn't used anywhere, so remove it.

2 years agondis.4: Comment out an unneeded sentence.
Sascha Wildner [Sat, 26 May 2012 08:21:02 +0000 (10:21 +0200)]
ndis.4: Comment out an unneeded sentence.

It is supported on all platforms we have.

2 years agoMerge branch 'master' of /repository/git/dragonfly
Venkatesh Srinivas [Sat, 26 May 2012 03:15:00 +0000 (20:15 -0700)]
Merge branch 'master' of /repository/git/dragonfly

2 years agokernel: Remove the inclusion of opt_ddb.h from where it is unnecessary.
Sascha Wildner [Fri, 25 May 2012 21:28:33 +0000 (23:28 +0200)]
kernel: Remove the inclusion of opt_ddb.h from where it is unnecessary.

None of these files uses DDB, DDB_UNATTENDED or GDB_REMOTE_CHAT (which
is what opt_ddb.h defines).

2 years agolibc -- dmalloc: Call malloc_init as-needed, rather than via ctor (#2)
Venkatesh Srinivas [Fri, 25 May 2012 19:43:58 +0000 (12:43 -0700)]
libc -- dmalloc: Call malloc_init as-needed, rather than via ctor (#2)

This commit is a second revision of
e12d3396c777165504d60d2a1408dcd7cb63660d; for details, see the original
commit message.

That commit was reverted quickly, as it broke pthreads; this revision
does not suffer from that problem, as it preserves the __constructor
logic for malloc_init.

Reverts: 4018c6eddd57f4abf9134690cbfa46c9d7103558 (Revert libc ...)
Reported-by: marino@
Closes-bug: 2305

2 years agoRemove some useless casts of NULL to another pointer type.
Sascha Wildner [Fri, 25 May 2012 18:07:33 +0000 (20:07 +0200)]
Remove some useless casts of NULL to another pointer type.

2 years agopci: Print PCIe memory mapped accessing information a little bit earlier
Sepherosa Ziehau [Fri, 25 May 2012 08:28:55 +0000 (16:28 +0800)]
pci: Print PCIe memory mapped accessing information a little bit earlier

2 years agotcp: Enable RFC3517bis by default
Sepherosa Ziehau [Fri, 25 May 2012 07:38:50 +0000 (15:38 +0800)]
tcp: Enable RFC3517bis by default

2 years agotcp: Function renaming
Sepherosa Ziehau [Fri, 25 May 2012 07:23:59 +0000 (15:23 +0800)]
tcp: Function renaming

tcp_recv_dupack() probably is better than tcp_fast_recovery(), which does
more the fast recovery.

2 years agotcp/sack: Fix off-by-one bug when updating rescue SACK information
Sepherosa Ziehau [Fri, 25 May 2012 06:18:18 +0000 (14:18 +0800)]
tcp/sack: Fix off-by-one bug when updating rescue SACK information

2 years agotcp/sack: Force out more segments allowed by "pipe" during fast recovery
Sepherosa Ziehau [Thu, 24 May 2012 08:09:57 +0000 (16:09 +0800)]
tcp/sack: Force out more segments allowed by "pipe" during fast recovery

If some segments are cumulatively acked or SACKed, and HighRxt equals
snd_una, one segment (new or retransmit) will be forced out even if cwnd
and pipe don't allow it.  When large amount of segments are lost, i.e.
computed pipe could be large, this avoids unnecessary retransmit timeout
and could perform as good as NewReno.

Sysctl node net.inet.tcp.force_sackrxt could be tuned to burst out several
retransmits, default is 1 (should be good enough).  Set this sysctl to 0,
SACK based fast recovery will obey the computed pipe.

Several unnecessary retransmit timeout graph as described above:
http://leaf.dragonflybsd.org/~sephe/no_force_sack_rexmt2_15.xpl (starts @15s)
http://leaf.dragonflybsd.org/~sephe/no_force_sack_rexmt_54.xpl (starts @54s)

2 years agotcp/sack: Use RFC3517bis IsLost(snd_una) as fallback of early retransmit
Sepherosa Ziehau [Thu, 24 May 2012 05:35:36 +0000 (13:35 +0800)]
tcp/sack: Use RFC3517bis IsLost(snd_una) as fallback of early retransmit

Since we are less certain about whether is segment is lost or not when
using IsLost(snd_una), we do not send out other unSACKed segments except
the first unSACKed segment under this condition.  Sending out other
unSACKed segments could be too aggressive here; just wait for another
ACK to tick out more unSACKed segments.

2 years agokernel: Remove some bogus casts to the own type (FINAL).
Sascha Wildner [Thu, 24 May 2012 18:16:10 +0000 (20:16 +0200)]
kernel: Remove some bogus casts to the own type (FINAL).

2 years agokernel: Remove some bogus casts to the own type.
Sascha Wildner [Thu, 24 May 2012 17:26:08 +0000 (19:26 +0200)]
kernel: Remove some bogus casts to the own type.

2 years agokernel: Remove some bogus casts to the own type.
Sascha Wildner [Thu, 24 May 2012 17:19:30 +0000 (19:19 +0200)]
kernel: Remove some bogus casts to the own type.

2 years agokernel: Remove some bogus casts to the own type.
Sascha Wildner [Thu, 24 May 2012 08:35:00 +0000 (10:35 +0200)]
kernel: Remove some bogus casts to the own type.

2 years agotcp/sack: Fix the condition that SACK rescue retransmit can't be done
Sepherosa Ziehau [Wed, 23 May 2012 09:38:30 +0000 (17:38 +0800)]
tcp/sack: Fix the condition that SACK rescue retransmit can't be done

If we have nothing left above the HighRxt, the first unSACKed segment
will be used as the SACK rescue retransmit.

2 years agotcp: Indentation
Sepherosa Ziehau [Wed, 23 May 2012 09:37:39 +0000 (17:37 +0800)]
tcp: Indentation

2 years agokernel -- CLFLUSH support
Venkatesh Srinivas [Thu, 24 May 2012 02:15:25 +0000 (19:15 -0700)]
kernel -- CLFLUSH support

* Introduce a kernel variable, 'vmm_guest', signifying whether the
  kernel is running in a virtual environment, such as KVM. This is
  set based on the CPUID2.VMM flag on kernels and set automatically
  on virtual kernels.

* Introduce wrappers for CLFLUSH instructions.

* Provide tunable, hw.clflush_enable, to autoenable CLFLUSH on h/w (-1)
  disable always (0), or enable always (1).

Closes-bug: 2363
Reviewed-by: ftigeot@
From: David Shao, FreeBSD

2 years agokernel: Remove some bogus casts to the own type.
Sascha Wildner [Wed, 23 May 2012 20:42:46 +0000 (22:42 +0200)]
kernel: Remove some bogus casts to the own type.

2 years agokernel: Remove some bogus casts to the own type.
Sascha Wildner [Wed, 23 May 2012 19:30:05 +0000 (21:30 +0200)]
kernel: Remove some bogus casts to the own type.

2 years agokernel/linux: Fix a wrong cast (introduced in e54488bb).
Sascha Wildner [Wed, 23 May 2012 19:28:32 +0000 (21:28 +0200)]
kernel/linux: Fix a wrong cast (introduced in e54488bb).

2 years agokernel: Remove some bogus casts to the own type.
Sascha Wildner [Wed, 23 May 2012 16:36:44 +0000 (18:36 +0200)]
kernel: Remove some bogus casts to the own type.

2 years agokernel: Remove some bogus casts to the own type.
Sascha Wildner [Wed, 23 May 2012 16:01:25 +0000 (18:01 +0200)]
kernel: Remove some bogus casts to the own type.

2 years agotcp: Simplify "extended limited transmit" logic a little bit
Sepherosa Ziehau [Wed, 23 May 2012 05:44:52 +0000 (13:44 +0800)]
tcp: Simplify "extended limited transmit" logic a little bit

Don't follow the RFC4653 or RFC3517bis's "extended limited transmit"
description verbatimly; increase cwnd once and let tcp_output() do
the job.

2 years agotcp: Optimize SACK scoreboard records consolidation a little bit
Sepherosa Ziehau [Wed, 23 May 2012 03:14:02 +0000 (11:14 +0800)]
tcp: Optimize SACK scoreboard records consolidation a little bit

If the SACK block and SACK scoreboard record are matched exactly,
SACK scoreboard records consolidation is not needed at all.

2 years agoRevert "libc -- dmalloc: Call malloc_init as-needed, rather than via cc constructor."
Sascha Wildner [Tue, 22 May 2012 13:02:01 +0000 (15:02 +0200)]
Revert "libc -- dmalloc: Call malloc_init as-needed, rather than via cc constructor."

This reverts commit e12d3396c777165504d60d2a1408dcd7cb63660d.

2 years agoacpica: Unbreak LINT/LINT64 building
Sepherosa Ziehau [Tue, 22 May 2012 08:10:21 +0000 (16:10 +0800)]
acpica: Unbreak LINT/LINT64 building

2 years agoacpi/timer: Fix return value
Sepherosa Ziehau [Tue, 22 May 2012 07:55:45 +0000 (15:55 +0800)]
acpi/timer: Fix return value

2 years agoacpidb: regenerate osunixxf.c.patch
Magliano Andrea [Fri, 11 May 2012 13:59:11 +0000 (15:59 +0200)]
acpidb: regenerate osunixxf.c.patch

someone please take care of dfly header, if necessary;
i applied the patch by hand and pulled in a git diff

2 years agoacpidb: add missing evglock.c to Makefile
Magliano Andrea [Fri, 11 May 2012 13:58:52 +0000 (15:58 +0200)]
acpidb: add missing evglock.c to Makefile

2 years agoFix iasl compilation
Magliano Andrea [Fri, 11 May 2012 08:42:56 +0000 (10:42 +0200)]
Fix iasl compilation

basically sync with svn://svn.freebsd.org/base/head@220663

2 years agoSome files overlooked on first commit...
Magliano Andrea [Fri, 11 May 2012 08:19:52 +0000 (10:19 +0200)]
Some files overlooked on first commit...

2 years agoRevert previous commit (wrong tentative)
Magliano Andrea [Fri, 11 May 2012 07:19:24 +0000 (09:19 +0200)]
Revert previous commit (wrong tentative)

and do like svn://svn.freebsd.org/base/head@220663
it doesn't seem possible with bsd Makefile infrastructure
to set source target specific flags

2 years agoFirst import (compiles, seems to run correctly)
Magliano Andrea [Fri, 11 May 2012 06:12:10 +0000 (08:12 +0200)]
First import (compiles, seems to run correctly)

Taken from FreeBSD r222544:218590 (patch applied),
not from acpica repository.

One problem shown (no more reproducible, skew build?):
in bootverbose mode 'domain0 misses processors, should be 2, got 1'
sysctl shows hw.acpi.cpu0 only, other cpus are missing;
seems an error in evaluating C009 Method in aml code...

TODO:

* iasl compiler Makefile has to be reworked because of specific
  YASL flags for new files dtparser.[yl]

* 'EVENTHANDLER_INVOKE(power_suspend)' to be integrated in acpi.c

* atomic_load_acq_64 isn't implemented (used in acpi_hpet.c)

* sc->tc.tc_quality isn't available; to be investigated

* acpi_timer_test() improved implementation not integrated

* ACPI_CAP_SMP_C3_NATIVE and CPI_CAP_PX_HW_COORD in acpivar.h
  left out, as FreeBSD don't use it either

2 years agoigb: Add to x86_64 and i386 GENERIC
Sepherosa Ziehau [Mon, 21 May 2012 08:58:31 +0000 (16:58 +0800)]
igb: Add to x86_64 and i386 GENERIC

2 years agoLINT: Add igb(4)
Sepherosa Ziehau [Mon, 21 May 2012 08:35:02 +0000 (16:35 +0800)]
LINT: Add igb(4)

2 years agolibc -- dmalloc: Call malloc_init as-needed, rather than via cc constructor.
Venkatesh Srinivas [Sun, 20 May 2012 14:10:56 +0000 (07:10 -0700)]
libc -- dmalloc: Call malloc_init as-needed, rather than via cc constructor.

dmalloc requires its own _nmalloc_thr_init be called before it can service
allocations. Applications with preinit arrays were able to call malloc before
constructors ran, which caused them to crash on uninitialized allocator state.

The change uses a flag to test for allocator init state. It is also careful
to not allow _nmalloc_thr_init to be called recursively from within pthread
initialization (slglobal.masked).

Reported-by: marino@
Closes-bug: 2305

2 years agonetif: Remove no longer used e1000 layout
Sepherosa Ziehau [Sun, 20 May 2012 13:52:01 +0000 (21:52 +0800)]
netif: Remove no longer used e1000 layout

2 years agoigb: Import Intel igb-2.2.3
Sepherosa Ziehau [Wed, 25 Apr 2012 12:42:40 +0000 (20:42 +0800)]
igb: Import Intel igb-2.2.3

Local changes
- Laundry the code
- Rewrite busdma related code
- Rewrite RX path
- Enable hardware TX IP chesksum

Integration w/ DragonFly's RSS and TX path optimization will be
conducted in the repository.

Tested-with: 82576 82575EB

2 years agoig_hal: Merge Intel igb-2.2.3 HAL w/ em-7.2.4 HAL
Sepherosa Ziehau [Thu, 19 Apr 2012 14:11:00 +0000 (22:11 +0800)]
ig_hal: Merge Intel igb-2.2.3 HAL w/ em-7.2.4 HAL

2 years agoe1000: Unhook from building, prepare for the new igb
Sepherosa Ziehau [Thu, 19 Apr 2012 13:57:50 +0000 (21:57 +0800)]
e1000: Unhook from building, prepare for the new igb

2 years agokernel/devfs: Remove the unused devfs Makefile.
Sascha Wildner [Sun, 20 May 2012 02:47:11 +0000 (04:47 +0200)]
kernel/devfs: Remove the unused devfs Makefile.

2 years agokernel -- tmpfs: Convert tmpfs inode counter to per-mount field
Venkatesh Srinivas [Sat, 19 May 2012 03:33:56 +0000 (20:33 -0700)]
kernel -- tmpfs: Convert tmpfs inode counter to per-mount field

tmpfs used a global counter under a spinlock to set inode numbers. This
should be a per-mount field, protected by the mount lock.

2 years agoamr(4): Some fixes.
Sascha Wildner [Fri, 18 May 2012 23:57:25 +0000 (01:57 +0200)]
amr(4): Some fixes.

* Bring in some small updates from FreeBSD.

* Add MODULE_VERSION.

* Make the interrupt handler MPSAFE. This was a porting oversight by me.

2 years agoFix some typos in manual pages.
Sascha Wildner [Fri, 18 May 2012 18:10:50 +0000 (20:10 +0200)]
Fix some typos in manual pages.

2 years agobsd-family-tree: Sync with FreeBSD.
Sascha Wildner [Fri, 18 May 2012 16:53:28 +0000 (18:53 +0200)]
bsd-family-tree: Sync with FreeBSD.

2 years agobuiltin.1: Bring in some enhancements from FreeBSD.
Sascha Wildner [Fri, 18 May 2012 11:16:32 +0000 (13:16 +0200)]
builtin.1: Bring in some enhancements from FreeBSD.

It is modeled after what they did but based on what we actually have in
our shells' source.

* Use "No**" to mark commands which exist externally but are implemented
  as a script executing the builtin.

* Some further explanations and mdoc fixes.

2 years agobuiltin.1: Add two more built-in commands.
Sascha Wildner [Fri, 18 May 2012 11:05:09 +0000 (13:05 +0200)]
builtin.1: Add two more built-in commands.

2 years agotcp: Implement RFC4653 Non-Congestion Robustness (NCR)
Sepherosa Ziehau [Fri, 18 May 2012 07:29:39 +0000 (15:29 +0800)]
tcp: Implement RFC4653 Non-Congestion Robustness (NCR)

It is enabled by default and can be disabled using sysctl node:
net.inet.tcp.ncr

As far as I have tested on heavily reordered network path, this
algorithm does avoid most of the spurious fast retransmits.  While
on the normal network path, the fast retransmits stil could be
triggered properly.

2 years agotcp: Improve RFC3517bis support
Sepherosa Ziehau [Fri, 18 May 2012 02:33:21 +0000 (10:33 +0800)]
tcp: Improve RFC3517bis support

- Factor out tcp_fast_recovery()
- Delay fast retransmit or fast recovery for duplicated ACK which
  carries data or updates receiving window, so that
  o  The segments sent by fast retransmit/recovery could carry
     proper ack sequence and SACK information.
  o  Receiving window could get updated, so more new data could be
     injected into the network by the fast recovery.

2 years agokernel: Remove some bogus casts to the own type.
Sascha Wildner [Thu, 17 May 2012 23:52:22 +0000 (01:52 +0200)]
kernel: Remove some bogus casts to the own type.

2 years agobuiltin.1: Sync with what we have.
Sascha Wildner [Thu, 17 May 2012 23:03:10 +0000 (01:03 +0200)]
builtin.1: Sync with what we have.

2 years agoshare/man/man1/Makefile: One MLINK per line.
Sascha Wildner [Thu, 17 May 2012 21:48:20 +0000 (23:48 +0200)]
share/man/man1/Makefile: One MLINK per line.

2 years agoexamples/rconfig: Some fixes to our installation scripts.
Sascha Wildner [Thu, 17 May 2012 20:17:53 +0000 (22:17 +0200)]
examples/rconfig: Some fixes to our installation scripts.

* Allow the script to be run in a netbooted scenario, too.

* Raise the default size of the root partition to 768M (like the
  installer's default).

* While here, add some comments and whitespace.

Submitted-by: Joachim de Groot <jdegroot@web.de>
2 years agovkernel: Fix compilation with profiling support.
Sascha Wildner [Thu, 17 May 2012 14:17:22 +0000 (16:17 +0200)]
vkernel: Fix compilation with profiling support.

The vkernel is a special userland program in the regard that its Makefile
is generated by config(8), which is kind of tailored to the real kernel.

So first of all, we have to modify config(8) to detect it's a vkernel we
want to build and in this case it should not define GPROF which otherwise
activates the real kernel's profiling bits.

Then, modify libkern's mcount.c to skip kernel specific parts too.

Then, modify the vkernels' Makefiles to take into account ${PROF} (and
while we're here, ${DEBUG} too) which are set by the surrounding Makefile
which is generated by config(8).

The vkernel is now (from profiling point of view) treated like any other
userland program.

Last but not least, add some documentation about building a vkernel with
profiling support to vkernel's manpage.

To build with profiling, simply add CONFIGARGS=-p to the buildkernel
command line. It will need the config(8) program to be in /usr/obj's
btools dir, so either a buildworld with this commit needs to be done,
or config can be installed manually to /usr/sbin and nativekernel can
be used.

Tested-by: tuxillo
2 years agotcp: Ignore TCP_NOPUSH socketopt by default
Sepherosa Ziehau [Thu, 17 May 2012 09:58:41 +0000 (17:58 +0800)]
tcp: Ignore TCP_NOPUSH socketopt by default

For ill optimized programs which misuses this sockopt will cause
unpredicted length of network stalling, if the total sending size
is not TCP sending segment size aligned.

sysctl node net.inet.tcp.disable_nopush controls whether TCP_NOPUSH
will take effect or not

I am not going to fight agaist the stupid programs in the wild.

DragonFly-bug: http://bugs.dragonflybsd.org/issues/2368

This is actually _not_ a bug on our side.

2 years agokernel/profiling: Fix a kprintf format.
Sascha Wildner [Thu, 17 May 2012 08:41:29 +0000 (10:41 +0200)]
kernel/profiling: Fix a kprintf format.

2 years agotcp: Make PAWS robust against segments reordering
Sepherosa Ziehau [Wed, 16 May 2012 08:53:37 +0000 (16:53 +0800)]
tcp: Make PAWS robust against segments reordering

This tends to prevent valid new segments from being dropped by the
reordered segments sent by the fast retransmission algorithm on the
sending side, i.e. the fast retransmitted segment w/ larger timestamp
arrives earlier than the previously sent new segments w/ smaller
timestamp, which causes the valid new segments being dropped.

2 years agotest/debug/fdpassing: Correct a typo.
Sascha Wildner [Wed, 16 May 2012 20:06:47 +0000 (22:06 +0200)]
test/debug/fdpassing: Correct a typo.

2 years agotcp: Use TAILQ for segments reassemble queue
Sepherosa Ziehau [Wed, 16 May 2012 01:15:28 +0000 (09:15 +0800)]
tcp: Use TAILQ for segments reassemble queue

So the last segment of the reassemble queue could be peeked w/ minimal cost

2 years agokgdb: Add TUI mode as an option
John Marino [Tue, 15 May 2012 21:50:11 +0000 (23:50 +0200)]
kgdb: Add TUI mode as an option

Now that -tui mode is fixed for gdb, let's allow kgdb to use it.  This
commit adds the -t (--tui-mode) option to kgdb to allow debugging core
files with gdb's Text User Interface terminal interface.

The -q (--quiet) option had to set when --tui-mode option is set due
to the initial verbosity destroying the curses window otherwise.

2 years agogdb: Fix gdb -tui mode
John Marino [Tue, 15 May 2012 20:56:24 +0000 (22:56 +0200)]
gdb: Fix gdb -tui mode

The gdbtui (aka gdb -tui) mode has been nonfunctional for a long time
due to the replacement of readline with libedit.  After speaking with
Cristos Zoulas, it was confirmed that libedit can't support gdbtui now
and is not envisioned to support it in the future.

The tui mode is fixed by building the readline library internally and
linking against that instead of libedit.

The README files were updated to reflected additional imported sources
for readline and the removal of libedit-caused local modications to
tui-io.c file.

2 years agoMerge branch 'vendor/GDB'
John Marino [Tue, 15 May 2012 22:29:55 +0000 (00:29 +0200)]
Merge branch 'vendor/GDB'

2 years agogdb vendor branch: Bring in additional source files
John Marino [Tue, 15 May 2012 19:15:22 +0000 (21:15 +0200)]
gdb vendor branch: Bring in additional source files

The tui mode of gdb will not function when the readline library is
replaced with libedit.  Bring in readline sources to build gdb
properly.  The readline library will be used internally to gdb only.

2 years agopci: Update several bits for PCI Express 2.0
Sepherosa Ziehau [Tue, 15 May 2012 05:48:54 +0000 (13:48 +0800)]
pci: Update several bits for PCI Express 2.0

2 years agopci: Support PCI Express Configuration Space memory-mapped access mechanism
Sepherosa Ziehau [Mon, 14 May 2012 09:13:17 +0000 (17:13 +0800)]
pci: Support PCI Express Configuration Space memory-mapped access mechanism

Also remove the outdated type 2 Configuration Space access mechanism;
it should never been seen on platforms w/ AMD64 capable CPUs.

Obtained-from: FreeBSD

2 years agopci: Introduce PCIE_REGMAX
Sepherosa Ziehau [Tue, 15 May 2012 04:58:20 +0000 (12:58 +0800)]
pci: Introduce PCIE_REGMAX

Obtained-from: FreeBSD

2 years agoUnbreak world (tic)
John Marino [Mon, 14 May 2012 16:11:51 +0000 (18:11 +0200)]
Unbreak world (tic)

The tic utility should be built with the ncursesw library, but that one
is not available on any system with more than 2 days since the last
build.  On those systems, the world will break pretty quickly.

The Makefile was updated to use the available ncurses library.  After
the release of DragonFly 3.2, the makefile on the master branch can
be updated to take the wide version of the ncurses library since we
only guarantee upwards compatibility for one release.

2 years agotic(1): Add man page for new tic utility
John Marino [Mon, 14 May 2012 13:57:57 +0000 (15:57 +0200)]
tic(1): Add man page for new tic utility

2 years agoterminfo: Add terminfo database creation to world build
John Marino [Mon, 14 May 2012 09:50:56 +0000 (11:50 +0200)]
terminfo: Add terminfo database creation to world build

1) add tic to bootstrap tools
2) pre-populate /usr/share/terminal subdirectories
3) Add share/terminfo subdir to share Makefile

2 years agoAdd share/terminfo: This constructs terminfo database
John Marino [Mon, 14 May 2012 09:44:45 +0000 (11:44 +0200)]
Add share/terminfo: This constructs terminfo database

This is not tied into buildworld yet, it requires /usr/bin/tic to be
set up as a bootstrap tool first.

2 years agoAdd /usr.bin/tic: terminfo entry-description compiler
John Marino [Mon, 14 May 2012 08:38:29 +0000 (10:38 +0200)]
Add /usr.bin/tic: terminfo entry-description compiler

The tic program is required to create the terminfo database.

2 years agoncurses: move USE_GETCAP, update README files
John Marino [Mon, 14 May 2012 07:38:53 +0000 (09:38 +0200)]
ncurses: move USE_GETCAP, update README files

The ncurses headers were generated with additional configuration switches
documented on README.DRAGONFLY.  One outcome is the USE_GETCAP should
be in the configuration header rather than in the Makefile, so that
was updated.

New files were imported to support building the terminfo database, and
the path for that will be /usr/share/terminfo.  Accordingly, the man
page and configuration header have been updated.

2 years agoMerge branch 'vendor/NCURSES'
John Marino [Mon, 14 May 2012 10:24:19 +0000 (12:24 +0200)]
Merge branch 'vendor/NCURSES'

2 years agoncurses vendor branch: Bring in additional source files vendor/NCURSES
John Marino [Mon, 14 May 2012 07:20:26 +0000 (09:20 +0200)]
ncurses vendor branch: Bring in additional source files

In order to support the building of the terminfo database, additional
source files from the ncurses 5.9 tarball are needed.

2 years agoiwn: Add Intel(R) Centrino Wireless-N 100
Sepherosa Ziehau [Mon, 14 May 2012 08:26:24 +0000 (16:26 +0800)]
iwn: Add Intel(R) Centrino Wireless-N 100

Submitted-by: Francis GUDIN
DragonFly-bug: http://bugs.dragonflybsd.org/issues/2366

2 years agoUpdate files for OpenSSL-1.0.1c import.
Peter Avalos [Sun, 13 May 2012 19:55:08 +0000 (12:55 -0700)]
Update files for OpenSSL-1.0.1c import.

2 years agoMerge branch 'vendor/OPENSSL'
Peter Avalos [Sun, 13 May 2012 19:52:19 +0000 (12:52 -0700)]
Merge branch 'vendor/OPENSSL'

2 years agoImport OpenSSL-1.0.1c.
Peter Avalos [Sun, 13 May 2012 19:47:02 +0000 (12:47 -0700)]
Import OpenSSL-1.0.1c.

  o Fix TLS/DTLS record length checking bug CVE-2012-2333

2 years agoarcmsr(4): Disable MSI support on the 1880 models.
Sascha Wildner [Sun, 13 May 2012 13:40:53 +0000 (15:40 +0200)]
arcmsr(4): Disable MSI support on the 1880 models.

There is definitely MSI related breakage here (resulting in ccb
command timeout issues). It was verified with an ARC-1880i that
was kindly provided by ftigeot.

On the other hand, my ARC-1210 works like a charm using MSI.

Reported-by: ftigeot
2 years agoncurses: Add wide-character support
John Marino [Sun, 13 May 2012 10:09:32 +0000 (12:09 +0200)]
ncurses: Add wide-character support

The man pages already indicated wide-character support, but the
libraries weren't properly implemented.  Also removed unneeded
libmytinfo.  It was an alias for libncurses and four makefiles
referenced both.

2 years agotermcap: Adjust for new ncurses
John Marino [Sun, 13 May 2012 00:33:41 +0000 (02:33 +0200)]
termcap: Adjust for new ncurses

The new ncurses 5.9 library is emitting warnings during the scanning of some of the terminal
entries, which require updates to silence.

Terminal entry updates provided by:
jaydg
ftigeot

2 years agoncurses: Block warning about "older tic versions"
John Marino [Sun, 13 May 2012 00:20:20 +0000 (02:20 +0200)]
ncurses: Block warning about "older tic versions"

The /etc/termcap file should have a space between the last "|" character and the alias per
format rules.  ncurses can still interpret the alias of the termcap entries correctly, but by
default will emit the warning, "older tic versions may treat the description field as an alias"
whenver it encounters such an entry (e.g. the common cons25).

Rather than update hundreds of entries, just silence the warning.  This is what FreeBSD does.

2 years ago/usr/Makefile: Adjust for our sys-src archive now coming bzip2'd.
Sascha Wildner [Sat, 12 May 2012 22:52:58 +0000 (00:52 +0200)]
/usr/Makefile: Adjust for our sys-src archive now coming bzip2'd.

Reported-by: Francis Gudin <fgudin@nerim.net>
2 years agore(4): Add support for the 8105E found in the Acer Aspire One D257.
Sascha Wildner [Sat, 12 May 2012 22:29:53 +0000 (00:29 +0200)]
re(4): Add support for the 8105E found in the Acer Aspire One D257.

Submitted-by: Francis Gudin <fgudin@nerim.net>
2 years agoncurses: Fix ncurses-caused segfault
John Marino [Sat, 12 May 2012 22:29:14 +0000 (00:29 +0200)]
ncurses: Fix ncurses-caused segfault

2 years agoncurses: Fix bad paths, convert 3X to 3 on man pages
John Marino [Sat, 12 May 2012 20:35:20 +0000 (22:35 +0200)]
ncurses: Fix bad paths, convert 3X to 3 on man pages

2 years agomount_ufs.8: Change manpage title and name.
Sascha Wildner [Sat, 12 May 2012 18:51:46 +0000 (20:51 +0200)]
mount_ufs.8: Change manpage title and name.

2 years agotermcap: Sync with FreeBSD
John Marino [Sat, 12 May 2012 15:20:54 +0000 (17:20 +0200)]
termcap: Sync with FreeBSD

FreeBSD removed map3270 7 years ago...
The last termcap sync was 3 DEC 2008

2 years agolibgmp: Update from version 5.0.2 to 5.0.5
John Marino [Sat, 12 May 2012 08:18:42 +0000 (10:18 +0200)]
libgmp: Update from version 5.0.2 to 5.0.5

===============================
 CHANGES SINCE PREVIOUS UPDATE
===============================
Changes between GMP version 5.0.2 and 5.0.3
[BUGS FIXED]
* A few minor bugs related to portability fixed.
* A slight timing leak of the powm_sec functions have been sealed.
  (This leak could possibly be used to extract the most significant
  few bits of the exponent.  "Few" here means at most 10.)
* The mpz_nextprime function now runs a safer number of pseudo-random
  prime tests.
* A bug in division code possibly causing incorrect computation was
  fixed.
[SPEEDUPS]
* None, except indirectly through recognition of new CPUs, and through
  better tuning parameters.
[FEATURES]
* New CPUs recognised.
* IBM S/390 are now supported in both 31/32-bit and 64-bit mode.  (We
  have not been able to fully test this on any multilib machine, since
  IBM expired our guest account a few days before our release.)

Changes between GMP version 5.0.3 and 5.0.4
[BUGS FIXED]
* Thresholds in mpn_powm_sec for both fat and non-fat builds are now
  used safely, plugging a one-word buffer overrun introduced in the
  5.0.3 release (for non-fat) and a multi-word buffer overrun that
  existed since 5.0 (for fat).  (We have not been able to provoke malign
  stack smashing in any of the ~100 configurations explored by the GMP
  nightly builds, but the bug should be assumed to be exploitable.)
* Two bugs in multiplication code causing incorrect computation with
  extremely low probability have been fixed.
* A bug in the test suite causing buffer overruns during "make check",
  sometimes leading to subsequent malloc crashes, has been fixed.
* Two bugs in the gcd code have been fixed.  They could lead to incorrect
  results, but for uniformly distributed random operands, the likelihood
  for that is infinitesimally small.  (There was also a third bug, but
  that was an incorrect ASSERT, which furthermore was not enabled by
  default.)
* A bug affecting 32-bit PowerPC division has been fixed.  The bug caused
  miscomputation for certain divisors in the range 2^32 ... 2^64-1
  (about 1 in 2^30 of these).
[SPEEDUPS]
* None, except indirectly through recognition of new CPUs, and through
  better tuning parameters.
[FEATURES]
* Some more tests added to the self-check suite.
* The AMD "Bulldozer" CPU is now recognised.

Changes between GMP version 5.0.4 and 5.0.5
[BUGS FIXED]
* A bug causing AMD 11h processors to be treated like AMD 10h has been
  fixed.  The 11h processors do not correctly handle all 10h (aka K10)
  instructions, and GMP's use of these instructions results in major
  miscomputations (not as one would have hoped CPU traps of some
  'illegal instruction' sort).
* A bug affecting recent Intel Sandy Bridge CPUs resulting in
  configuration failures has been fixed,
[FEATURES]
* A couple of tests added to the self-check suite.

2 years agogmplib: Update README files after vendor branch merge
John Marino [Sat, 12 May 2012 07:23:52 +0000 (09:23 +0200)]
gmplib: Update README files after vendor branch merge

2 years agoMerge branch 'vendor/GMP'
John Marino [Sat, 12 May 2012 10:57:51 +0000 (12:57 +0200)]
Merge branch 'vendor/GMP'

2 years agoUpgrade GMP from 5.0.2 to 5.0.5 on the vendor branch vendor/GMP
John Marino [Sat, 12 May 2012 07:22:30 +0000 (09:22 +0200)]
Upgrade GMP from 5.0.2 to 5.0.5 on the vendor branch

2 years agoelf_common.h: Define EM_ALPHA
John Marino [Sat, 12 May 2012 09:47:14 +0000 (11:47 +0200)]
elf_common.h: Define EM_ALPHA

This commit restores the EM_ALPHA definition that was added on
13 DEC 2011 and later removed during the partial sync with
binutils 2.22 elf headers.

It is required for building OpenJDK.

2 years agolibncurses: Upgrade from version 5.7 to 5.9
John Marino [Fri, 11 May 2012 20:39:40 +0000 (22:39 +0200)]
libncurses: Upgrade from version 5.7 to 5.9

For 1100 lines of changes since the release of version 5.7, see
/usr/src/contrib/ncurses/NEWS

2 years agoncurses: Restore DragonFly README files
John Marino [Fri, 11 May 2012 21:23:05 +0000 (23:23 +0200)]
ncurses: Restore DragonFly README files

These two README files were placed on the vendor branch, and were
removed during the last source update.  The replacement README
files are being placed on the master branch.

2 years agoMerge branch 'vendor/NCURSES'
John Marino [Fri, 11 May 2012 21:22:28 +0000 (23:22 +0200)]
Merge branch 'vendor/NCURSES'

2 years agoUpdate ncurses from version 5.7 to 5.9 on vendor branch
John Marino [Fri, 11 May 2012 17:17:25 +0000 (19:17 +0200)]
Update ncurses from version 5.7 to 5.9 on vendor branch