9 years agoMerge branch 'vendor/LESS'
Peter Avalos [Sat, 30 Apr 2011 21:59:07 +0000 (11:59 -1000)]
Merge branch 'vendor/LESS'

9 years agoImport less-443.
Peter Avalos [Sat, 30 Apr 2011 21:49:52 +0000 (11:49 -1000)]
Import less-443.

* Change search behavior such that when a search is given an explicit
  pattern, the entire displayed screen is included in the search and
  not just the portion after the target line.

* Add -A option to change search behavior to the old way: only
  the portion of the screen after the target line is searched.

* Add %F formatting to prompt strings, replaced by the last component
  of the input file.

* Control-G while editing a command exits the command.

* Less now exits with status 2 if control-C is pressed and -K is in effect.

* Fix "ungetc overflow" when passing long commands via the -p option.

* Fix bug in using line filtering via the & command
  in combination with -i and -I.

* Fix bug in handling negative arguments to the -j option.

* Fix bug in handling %t in prompt strings.

* Improve handling of long option names.

* Improve percentage calculation for very large files.

9 years agokernel: Fix some printf format warnings on x86_64.
Sascha Wildner [Sat, 30 Apr 2011 20:57:06 +0000 (22:57 +0200)]
kernel: Fix some printf format warnings on x86_64.

9 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
John Marino [Sat, 30 Apr 2011 20:38:01 +0000 (22:38 +0200)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

9 years agoThis is a complete overhaul in the diffutils makefile system. The
John Marino [Sat, 30 Apr 2011 14:05:09 +0000 (16:05 +0200)]
This is a complete overhaul in the diffutils makefile system.  The
directories gnu/usr.bin/diff3 and gnu/usr.bin/sdiff have been removed
as a result.  Those directories also used the deprecated patch approach.

Like grep before it, diffutils uses its own regex library.  The
previous version used gnuregex.

The README.DELETED was woefully out of date.  It is hoped this overhaul
will make future diffutils upgrades easier.

 Noteworthy changes in release 2.9 (2010-02-11) [stable]

** New features

  New diff option --suppress-blank-empty.

  Bring back support for `diff -NUM', where NUM is a number,
  even when conforming to POSIX 1003.1-2001.  This change reverts to
  the behavior of GNU diff 2.7 and earlier.  This is a change only
  when conforming to POSIX 1003.1-2001; there is no effect when
  conforming to older POSIX versions.

  This change is in response to decisions taken in the January 2005
  Austin Group standardization meeting.  For more details, please see
  "Utility Syntax Guidelines" in the Minutes of the January 2005
  Meeting <http://www.opengroup.org/austin/docs/austin_239.html>.

  sdiff now understands '1' and '2' as synonyms for 'l' and 'r'.

** Changes in behavior

  sdiff and diff3 now invoke diff, not $(bindir)/diff

** Administrivia

  New discussion and bug-reporting address: bug-diffutils@gnu.org

  updated gnulib support

 Noteworthy changes in release 3.0 (2010-05-03) [stable]

** Bug fixes

  diff once again prints the required "\ No newline at end of file" line
  when at least one input lacks a newline-at-EOF and the final hunk plus
  context-length aligns exactly with the end of the newline-lacking file.
  [bug introduced between 2.8.7 and 2.9]

** Changes in behavior

  In context-style diffs, diff prints a portion of a preceding "function"
  line for each hunk, with --show-function-line=RE (-F) or
  --show-c-function (-p).  Now, it trims leading blanks from such lines
  before extracting a prefix.  This is useful especially when a function
  line is so far indented that the name itself would be truncated or not
  included in the limited-width substring that diff appends.

  diff once again reports a difference with the diagnostic
  "Binary files A and B differ" when at least one of the files
  appears to be binary.  From 2.8.4 through diffutils-2.9, it printed
  "Files A and B differ".

9 years agomxge(4): Fix a compilation warning on x86_64 (inlining a function failed).
Sascha Wildner [Sat, 30 Apr 2011 20:09:24 +0000 (22:09 +0200)]
mxge(4): Fix a compilation warning on x86_64 (inlining a function failed).

Add a comment explaining how and why.

In-discussion-with: aggelos

9 years agoMerge branch 'vendor/DIFFUTILS'
John Marino [Sat, 30 Apr 2011 19:58:06 +0000 (21:58 +0200)]
Merge branch 'vendor/DIFFUTILS'

9 years agoUpgrade diffutils from 2.8.7 to 3.0 on the vendor branch
John Marino [Sat, 30 Apr 2011 11:56:40 +0000 (13:56 +0200)]
Upgrade diffutils from 2.8.7 to 3.0 on the vendor branch

9 years agokernel: Make the COMPAT_OLDISA kernel option i386 only.
Sascha Wildner [Sat, 30 Apr 2011 18:34:56 +0000 (20:34 +0200)]
kernel: Make the COMPAT_OLDISA kernel option i386 only.

It is not used in x86_64.

9 years agokernel/x86_64: Separate some i386 only drivers better.
Sascha Wildner [Sat, 30 Apr 2011 12:30:17 +0000 (14:30 +0200)]
kernel/x86_64: Separate some i386 only drivers better.

The following drivers are listed in sys/platform/pc32/conf/files only,
so remove anything that has to do with them from x86_64.

asc ctx cy dgb el gp gsc labpc le rc rdp spigot stl stli tw wt

9 years agogcc44: remove my copyright from dragonfly-unwind.h
John Marino [Sat, 30 Apr 2011 01:09:58 +0000 (03:09 +0200)]
gcc44: remove my copyright from dragonfly-unwind.h

This file was copied from the gnat-aux repository and I didn't notice that
it contained my copyright before committing.

9 years agoGCC: Upgrade to 4.4.6; improved exception handling
John Marino [Fri, 29 Apr 2011 21:04:59 +0000 (23:04 +0200)]
GCC: Upgrade to 4.4.6; improved exception handling

In addition to 70 bug fixes provided by GNU, this version handles
exceptions through the new rtld, which is important to C++.  This
compiler also now incorporates MD_UNWIND_SUPPORT from gnat-aux, but
it's not clear if C++ utilizes this frame unwinding or not yet.

9 years agoMerge branch 'vendor/GCC44'
John Marino [Sat, 30 Apr 2011 00:55:58 +0000 (02:55 +0200)]
Merge branch 'vendor/GCC44'

9 years agoUpgrade GCC from 4.4.5 to 4.4.6 on the vendor branch
John Marino [Fri, 29 Apr 2011 14:17:27 +0000 (16:17 +0200)]
Upgrade GCC from 4.4.5 to 4.4.6 on the vendor branch

9 years agoAdd an nsclpcsio(4) manual page (from OpenBSD).
Sascha Wildner [Fri, 29 Apr 2011 21:51:55 +0000 (23:51 +0200)]
Add an nsclpcsio(4) manual page (from OpenBSD).

9 years agobsd-family-tree: Sync with FreeBSD.
Sascha Wildner [Fri, 29 Apr 2011 09:03:17 +0000 (11:03 +0200)]
bsd-family-tree: Sync with FreeBSD.

9 years agodm(4): Fix a typo in the code.
Sascha Wildner [Fri, 29 Apr 2011 06:23:47 +0000 (08:23 +0200)]
dm(4): Fix a typo in the code.

9 years agodlvsym manpage: cleanup
John Marino [Fri, 29 Apr 2011 04:53:44 +0000 (06:53 +0200)]
dlvsym manpage: cleanup

9 years agodlerror.3: Oops, fix wrong change I did.
Sascha Wildner [Fri, 29 Apr 2011 04:35:45 +0000 (06:35 +0200)]
dlerror.3: Oops, fix wrong change I did.

9 years agosysv_msg: Fix a typo in the code.
Sascha Wildner [Fri, 29 Apr 2011 02:27:17 +0000 (04:27 +0200)]
sysv_msg: Fix a typo in the code.

9 years agolibutil: Create a <util.h> symlink.
Sascha Wildner [Fri, 29 Apr 2011 01:32:53 +0000 (03:32 +0200)]
libutil: Create a <util.h> symlink.

As stuff from NetBSD goes into our libutil, pkgsrc starts detecting that
and assumes we have a <util.h> header, too. But ours is named <libutil.h>
due to FreeBSD heritage.

In an attempt to make life easier and not have to patch packages for this
every time, symlink <util.h> to <libutil.h> for now.

However, it could well be that other packages test for the existence of
<util.h> and (upon finding it) assume we have some NetBSD function in
libutil which we don't have. But we'll see.

As-proposed-by: y0netan1
9 years agodl*(3) manpages: Some cleanup.
Sascha Wildner [Fri, 29 Apr 2011 01:10:05 +0000 (03:10 +0200)]
dl*(3) manpages: Some cleanup.

9 years agompt(4): Sync with FreeBSD.
Sascha Wildner [Thu, 28 Apr 2011 23:54:29 +0000 (01:54 +0200)]
mpt(4): Sync with FreeBSD.

This fixes issues which were observed with the LSI SAS 3081E-R card.

Reported-and-tested-by: <ftigeot@wolfpond.org>
9 years agong_pppoe(4): Fix a typo in the code.
Sascha Wildner [Thu, 28 Apr 2011 23:54:12 +0000 (01:54 +0200)]
ng_pppoe(4): Fix a typo in the code.

9 years agokernel/npx: Fix ambiguous inline assembly.
Sascha Wildner [Thu, 28 Apr 2011 23:53:54 +0000 (01:53 +0200)]
kernel/npx: Fix ambiguous inline assembly.

GNU as converts fld to flds, while clang errors about the missing suffix.

Taken-from: FreeBSD

9 years agokernel: Implement ELF auxinfo entry type AT_EXECPATH
John Marino [Sat, 23 Apr 2011 19:44:10 +0000 (21:44 +0200)]
kernel: Implement ELF auxinfo entry type AT_EXECPATH

Refer to issue 2005.
The new RTLD can optionally use AT_EXECPATH for some of its new
functionality such as libmap.conf and dynamic token expansion.
In the absence of this kernel support, RTLD has a fallback
mechanism that works most of the time, but using it takes a
performance hit.

This patch was tested for some time by various people prior to
the 2.10 branch being created.

9 years agortld-elf: Sync with FreeBSD
John Marino [Wed, 13 Apr 2011 19:20:44 +0000 (21:20 +0200)]
rtld-elf: Sync with FreeBSD

The DragonFly run-time linker receives its first upgrade since TLS was
added.  Highlights include improvements to dl functionality:

improved dlfunct

Improved security for dangerous LD environment variables were added.
Several bugs were fixed.
libmap.conf functionality was added.
utrace/ktrace support added.
Improved atexit and cxa_atexit finalization.
ELF symbol versioning using gnu semantics.
ldd and kdump improvments
significant man page updates
dynamic token expansion functionlity added.
new locking mechanism
Support for env var LD_ELF_HINTS_PATH
Support for RTLD_NODELETE and RTLD_NOLOAD flags for dlopen
dlfunc moved from libc to rtld

The next GCC upgrade will take advantage of this rtld upgrade in order
to improve exception handling.  DragonFly has never used the shared
libgcc_s which has impeded (or broke?) C++ exception handling.

This commit syncs rtld-elf to the FreeBSD cerca 16 DEC 2010.  However,
bug fixes between then and 25 March 2011 have been included, but major
functionality changes from the ELF Filter support on 25 DEC 2010 onwards
has been excluded.

9 years agogrep: Delete redundant headers
John Marino [Thu, 28 Apr 2011 05:54:40 +0000 (07:54 +0200)]
grep: Delete redundant headers

It was believed that all the headers deleted in this commit were generated
by the vendor makefile.  The commit message
highlighted that they were actually part of the source tarball.  The
various makefiles have been altered to look for those instead, and
duplicate headers such as config.h, configmake.h, and arg-nonnull.h were
consolidated as well.

9 years agokernel -- vm_object locking: Add vm_object hold to per-object page cleaning.
Venkatesh Srinivas [Thu, 28 Apr 2011 05:49:53 +0000 (22:49 -0700)]
kernel -- vm_object locking: Add vm_object hold to per-object page cleaning.

9 years agoUse ${LN} from <sys.mk> in gdtoa's Makefile.
Peter Avalos [Thu, 28 Apr 2011 00:17:05 +0000 (14:17 -1000)]
Use ${LN} from <sys.mk> in gdtoa's Makefile.

9 years agoRemove unneeded diff to gdtoa vendor source.
Peter Avalos [Wed, 27 Apr 2011 23:56:08 +0000 (13:56 -1000)]
Remove unneeded diff to gdtoa vendor source.

9 years agoMerge branch 'vendor/GDTOA'
Peter Avalos [Wed, 27 Apr 2011 23:51:21 +0000 (13:51 -1000)]
Merge branch 'vendor/GDTOA'

9 years agoImport gdtoa-20110321. avalon/vendor/GDTOA
Peter Avalos [Wed, 27 Apr 2011 23:49:59 +0000 (13:49 -1000)]
Import gdtoa-20110321.

9 years agoUpdate config.h for file-5.06 import.
Peter Avalos [Wed, 27 Apr 2011 23:28:41 +0000 (13:28 -1000)]
Update config.h for file-5.06 import.

9 years agoMerge branch 'vendor/FILE'
Peter Avalos [Wed, 27 Apr 2011 23:28:26 +0000 (13:28 -1000)]
Merge branch 'vendor/FILE'

9 years agosort: Remove GNU sort from base
John Marino [Tue, 26 Apr 2011 21:57:16 +0000 (23:57 +0200)]
sort: Remove GNU sort from base

9 years agosort: Replace GNU sort with NetBSD sort
John Marino [Tue, 26 Apr 2011 21:54:56 +0000 (23:54 +0200)]
sort: Replace GNU sort with NetBSD sort

9 years agosort: modifications needed for DragonFly
John Marino [Tue, 26 Apr 2011 21:48:08 +0000 (23:48 +0200)]
sort: modifications needed for DragonFly

Minor modications are needed to get NetBSD's sort to build on DragonFly
without error.  The emalloc and erealloc functions are actually now
supported on DragonFly within libutil, but they can't be used because
sort is one of the bootstrap tools.  During the bootstrap, libutil is
not available, so the original malloc and realloc function have been
used along with err() to simulate these error-checking functions without
requiring libutil.

9 years agosort: Import NetBSD sort to usr.bin/sort
John Marino [Tue, 26 Apr 2011 21:24:14 +0000 (23:24 +0200)]
sort: Import NetBSD sort to usr.bin/sort

Bring in NetBSD's unmodified version of the sort program.

9 years agoImport file-5.06.
Peter Avalos [Wed, 27 Apr 2011 23:01:23 +0000 (13:01 -1000)]
Import file-5.06.

* fixes broken troff files
* add cdf_ctime() that prints a meaningful error when time cannot
  be converted.
* fix CDF bounds checking
* add lrzip support
* Improve file.man
* fix binary tests on magic entries with masks
* Eliminate MAXPATHLEN and use dynamic allocation
* Fix cdf string buffer setting

9 years agoi386/mp_machdep.c: Remove unused code
Sepherosa Ziehau [Sun, 24 Apr 2011 12:05:54 +0000 (20:05 +0800)]
i386/mp_machdep.c: Remove unused code

9 years agox86_64/mp_machdep.c: Remove unused code
Sepherosa Ziehau [Sun, 24 Apr 2011 11:55:23 +0000 (19:55 +0800)]
x86_64/mp_machdep.c: Remove unused code

9 years agoi386/mpapic.c: Remove unused code
Sepherosa Ziehau [Sun, 24 Apr 2011 11:53:36 +0000 (19:53 +0800)]
i386/mpapic.c: Remove unused code

9 years agox86_64/mpapic.c: Remove unused code
Sepherosa Ziehau [Sun, 24 Apr 2011 11:38:59 +0000 (19:38 +0800)]
x86_64/mpapic.c: Remove unused code

9 years agox86_64: isa/clock.c is clean enough to enable -Werror
Sepherosa Ziehau [Sat, 23 Apr 2011 11:59:48 +0000 (19:59 +0800)]
x86_64: isa/clock.c is clean enough to enable -Werror

9 years agoi386: Remove more old IOAPIC code
Sepherosa Ziehau [Sat, 23 Apr 2011 12:04:06 +0000 (20:04 +0800)]
i386: Remove more old IOAPIC code

9 years agox86_64: Remove more old IOAPIC code
Sepherosa Ziehau [Sat, 23 Apr 2011 10:59:59 +0000 (18:59 +0800)]
x86_64: Remove more old IOAPIC code

9 years agopci/compat: Remove old IOAPIC code
Sepherosa Ziehau [Sat, 23 Apr 2011 10:59:37 +0000 (18:59 +0800)]
pci/compat: Remove old IOAPIC code

9 years agoi386: Remove old IOAPIC code
Sepherosa Ziehau [Sat, 23 Apr 2011 04:06:02 +0000 (12:06 +0800)]
i386: Remove old IOAPIC code

9 years agox86_64: Remove old IOAPIC code
Sepherosa Ziehau [Sat, 23 Apr 2011 03:07:10 +0000 (11:07 +0800)]
x86_64: Remove old IOAPIC code

9 years agoAF_UNIX: Hold a reference of the unp_conn before executing blocking code
Sepherosa Ziehau [Wed, 27 Apr 2011 07:10:03 +0000 (15:10 +0800)]
AF_UNIX: Hold a reference of the unp_conn before executing blocking code

Since unp_token will be automaticly released upon execution of blocking
code, close of unp_conn could race any code paths that references unp_conn
after executing blocking code.  To fix these races, we simply increment
the reference count of the unp_conn before executig any possibly blocking
code and release the reference count of unp_conn, which may release unp_conn
itself.  This _currently_ does not suffer 0-ref race, since unp_token is
always being held.

9 years agoAF_UNIX: Allocate pcb using M_WAITOK|M_NULLOK instead of M_NOWAIT
Sepherosa Ziehau [Wed, 27 Apr 2011 05:48:48 +0000 (13:48 +0800)]
AF_UNIX: Allocate pcb using M_WAITOK|M_NULLOK instead of M_NOWAIT

So the allocation will not fail mysteriously while the system will not
panic if the system is really out of memory.

9 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
John Marino [Tue, 26 Apr 2011 20:47:20 +0000 (22:47 +0200)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

9 years agorcorder: unbreak world
John Marino [Tue, 26 Apr 2011 20:30:54 +0000 (22:30 +0200)]
rcorder: unbreak world

The recent update to libutil clashed with the roll-your-own functions of
rcorder, breaking world.  This removes those rolled functions and uses
standard system headers.

9 years agoGrep: Replace grep-2.4d with grep-2.7
John Marino [Tue, 26 Apr 2011 18:49:24 +0000 (20:49 +0200)]
Grep: Replace grep-2.4d with grep-2.7

This is the first significant update of grep in DragonFly's existance.
Other BSDs have removed or will remove GNU Grep in favor of BSD Grep, but
GNU Grep is still the best performer.

9 years agoGrep: Add DragonFly README files
John Marino [Tue, 26 Apr 2011 18:24:21 +0000 (20:24 +0200)]
Grep: Add DragonFly README files

9 years agoGrep: Second modification to man page
John Marino [Tue, 26 Apr 2011 18:19:18 +0000 (20:19 +0200)]
Grep: Second modification to man page

The reference to zgrep was removed because gnu grep no longer builds the
z-variants of grep, egrep, and fgrep.  The "note" was removed because it's
just ridiculous and unprofessional.

9 years agoGrep: Reintroducing local modification: --only-files option
John Marino [Sun, 24 Apr 2011 15:50:32 +0000 (17:50 +0200)]
Grep: Reintroducing local modification: --only-files option

The previous version of grep was enhanced with a DragonFly-only custom
option --only-files.  This modification adds this customization to
grep 2.7 as well.

9 years agoGrep: Reintroducing local modification for HAMMER
John Marino [Sun, 24 Apr 2011 14:58:42 +0000 (16:58 +0200)]
Grep: Reintroducing local modification for HAMMER

This reintroduces the fix by Matthias Schmidt for the previous version of
grep.  The unmodified Grep 2.7 still displays the same directory errors as
Grep 2.4d.

9 years agoGrep: Add pregenerated files
John Marino [Tue, 26 Apr 2011 18:03:08 +0000 (20:03 +0200)]
Grep: Add pregenerated files

The grep man page has been pregenerated rather than creating it during the
make process.

9 years agoMerge branch 'vendor/GREP'
John Marino [Tue, 26 Apr 2011 17:49:26 +0000 (19:49 +0200)]
Merge branch 'vendor/GREP'

9 years agoImport grep-2.7
John Marino [Tue, 26 Apr 2011 17:48:38 +0000 (19:48 +0200)]
Import grep-2.7

9 years agomalloc.3: Add emalloc(3) reference.
Sascha Wildner [Tue, 26 Apr 2011 15:58:57 +0000 (17:58 +0200)]
malloc.3: Add emalloc(3) reference.

9 years agoefun.3: Sort sections according to mdoc(7).
Sascha Wildner [Tue, 26 Apr 2011 15:38:48 +0000 (17:38 +0200)]
efun.3: Sort sections according to mdoc(7).

9 years agolibutil: Add MLINKS for the new e* functions.
Sascha Wildner [Tue, 26 Apr 2011 15:36:34 +0000 (17:36 +0200)]
libutil: Add MLINKS for the new e* functions.

9 years agolibutil: Rearrange a bit in the Makefile.
Sascha Wildner [Tue, 26 Apr 2011 15:32:26 +0000 (17:32 +0200)]
libutil: Rearrange a bit in the Makefile.

9 years agolibutil -- Import error functions from NetBSD.
Venkatesh Srinivas [Tue, 26 Apr 2011 12:18:54 +0000 (05:18 -0700)]
libutil -- Import error functions from NetBSD.

9 years agotest from machine crawl
Sepherosa Ziehau [Tue, 26 Apr 2011 09:29:22 +0000 (17:29 +0800)]
test from machine crawl

9 years agokernel/x86_64: SC520 was 32 bit, so not needed here.
Sascha Wildner [Sun, 24 Apr 2011 09:33:10 +0000 (11:33 +0200)]
kernel/x86_64: SC520 was 32 bit, so not needed here.

9 years agokernel - Try to reduce 'busy buffers problems' during halt/reboot
Matthew Dillon [Mon, 25 Apr 2011 18:43:52 +0000 (11:43 -0700)]
kernel - Try to reduce 'busy buffers problems' during halt/reboot

* Ignore busy buffers related to TMPFS in pass 1, and busy buffers related
  to TMPFS, NFS, SMBFS, and MFS in the final check.

9 years agoSync zoneinfo database with tzdata2011g from elsie.nci.nih.gov
Sascha Wildner [Mon, 25 Apr 2011 17:16:06 +0000 (19:16 +0200)]
Sync zoneinfo database with tzdata2011g from elsie.nci.nih.gov

africa:         8.30 -> 8.31
europe:         8.28 -> 8.32
southamerica:   8.47 -> 8.49

* africa: Egypt's interim cabinet decided to cancel daylight
    saving time.

* europe: Eliminate some doubled words.

* southamerica: As a trial, the Falkland Islands will remain on
    summer time throughout 2011. Also eliminate some doubled

9 years agokernel: Remove some redundant .PATH targets.
Sascha Wildner [Mon, 25 Apr 2011 07:43:22 +0000 (09:43 +0200)]
kernel: Remove some redundant .PATH targets.

9 years agokernel: Remove some i386 code from x86_64.
Sascha Wildner [Mon, 25 Apr 2011 07:16:30 +0000 (09:16 +0200)]
kernel: Remove some i386 code from x86_64.

9 years agoaesni(4): Sync with FreeBSD.
Sascha Wildner [Sat, 23 Apr 2011 12:53:26 +0000 (14:53 +0200)]
aesni(4): Sync with FreeBSD.

* Add support for CRYPTO_AES_XTS.

* Fix some bugs in aeskeys_*.S and aesni_wrap.c

* Add support for CRD_F_KEY_EXPLICIT flag.

* Remove DEBUG sections.

* Simplify code a bit.

9 years agoinstaller: For bootblocks, only offer the disk that was installed to.
Sascha Wildner [Sat, 23 Apr 2011 10:51:20 +0000 (12:51 +0200)]
installer: For bootblocks, only offer the disk that was installed to.

In the "Disk Utilities" menu, we still offer all disks.

Requested-by: dillon
9 years agoaesni(4): Avoid panicking when kmalloc() returns an unaligned pointer.
Sascha Wildner [Sat, 23 Apr 2011 08:56:05 +0000 (10:56 +0200)]
aesni(4): Avoid panicking when kmalloc() returns an unaligned pointer.

Instead, align it ourselves and keep the original address for kfree().
This is a bit hacky but not too hacky (and it is done the same way in

In the middle run, we probably need some kmalloc() flavor that can do

In-discussion-with: alexh

9 years agopf(4): Fix compilation without INET6.
Sascha Wildner [Fri, 22 Apr 2011 09:10:57 +0000 (11:10 +0200)]
pf(4): Fix compilation without INET6.

9 years agokernel - enable carrier/modem-status for usb serial devices (/dev/ucomX)
Matthew Dillon [Fri, 22 Apr 2011 04:43:59 +0000 (21:43 -0700)]
kernel - enable carrier/modem-status for usb serial devices (/dev/ucomX)

* Fix an incorrect return code from umodem which was preventing
  ucom from processing TIOCMGET and other related modem control

* For the moment comment out a panic condition dealing with an
  abort sent from an interrupt context.

9 years agokernel -- Slight changes to refcount_wait/_wakeup.
Venkatesh Srinivas [Thu, 21 Apr 2011 20:46:39 +0000 (13:46 -0700)]
kernel -- Slight changes to refcount_wait/_wakeup.

* Pass waitstring into refcount_wait.

* Record long waits in kernel log.

9 years agokernel - Add refcount_release_wakeup() and refcount_wait()
Matthew Dillon [Thu, 21 Apr 2011 19:02:58 +0000 (12:02 -0700)]
kernel - Add refcount_release_wakeup() and refcount_wait()

* refcount_release_wakeup() releases a reference count and wakes up
  any waiters on the 1->0 transition.

* refcount_wait() waits for the last reference to go away.  When using
  this function all release operations on the field must use

9 years agobinutils220: Fix a copy/paste error.
Sascha Wildner [Thu, 21 Apr 2011 16:11:29 +0000 (18:11 +0200)]
binutils220: Fix a copy/paste error.

9 years agoftpd - Remove the use of GLOB_LIMIT
Matthew Dillon [Thu, 21 Apr 2011 11:11:09 +0000 (04:11 -0700)]
ftpd - Remove the use of GLOB_LIMIT

* The problem with this flag is that it currently arbitrarily limits
  stat and other operations and completely breaks anonymous ftp on
  directories with large numbers of files (like packages/All).

  Remove its use for now.

9 years agokernel - Fix a rare nfsnode destruction race
Matthew Dillon [Thu, 21 Apr 2011 09:23:49 +0000 (02:23 -0700)]
kernel - Fix a rare nfsnode destruction race

* Clear np->n_vnode atomically (w/ the token held) when removing a
  node from the hash table.  The field was previously not being
  cleared at all which could race the nfsnhash lookup code despite
  the vnode interlock and check the lookup code was performing.

* Remove unnecessary tokens around the remaining nfsnode freeing code
  in the reclaim path.

9 years agokernel - Add mtrr support for x86-64
Matthew Dillon [Thu, 21 Apr 2011 04:22:18 +0000 (21:22 -0700)]
kernel - Add mtrr support for x86-64

Taken-From: FreeBSD

9 years agoSet the DragonFly version to 2.11 for 2.11.
Sascha Wildner [Wed, 20 Apr 2011 16:29:27 +0000 (18:29 +0200)]
Set the DragonFly version to 2.11 for 2.11.

9 years agokernel - Fix panic when unloading a module on x86-64
Matthew Dillon [Wed, 20 Apr 2011 05:57:02 +0000 (22:57 -0700)]
kernel - Fix panic when unloading a module on x86-64

* Fix a vm_object ref count panic during a module unload,
  including unloads which occur after failed loads.

9 years agorelease - pkgsrc-2011Q1 is the standard pkgsrc branch now
Matthew Dillon [Wed, 20 Apr 2011 03:03:36 +0000 (20:03 -0700)]
release - pkgsrc-2011Q1 is the standard pkgsrc branch now

* Adjust default pkgsrc branch to 2011Q1

9 years agorelease - remove xchat from gui build
Matthew Dillon [Wed, 20 Apr 2011 03:01:48 +0000 (20:01 -0700)]
release - remove xchat from gui build

* xchat has build problems, remove it

9 years agorelease - Branch 2.10 (set up new master for 2.11) v2.11.0
Matthew Dillon [Wed, 20 Apr 2011 02:57:52 +0000 (19:57 -0700)]
release - Branch 2.10 (set up new master for 2.11)

* Edit sys/sys/param.h, sys/conf/newvers.sh

9 years agokernel - Add kqueue support to ulpt for CUPS printing
Matthew Dillon [Wed, 20 Apr 2011 00:26:30 +0000 (17:26 -0700)]
kernel - Add kqueue support to ulpt for CUPS printing

* Adjust the ulpt driver to add kqueue support (reporting always write-ready).
  Otherwise CUPS will stall indefinitely on a usb printer device.

* NOTE: For CUPS operation /dev/ulpt* must be chgrp'd lp and modes 664,
by adding this to your /etc/devfs.conf:

perm ulpt* root:lp 664

(group 'lp' is added by the CUPS package).

9 years agonewfs_hammer: update checks on undosize and fssize minimum
Thomas Nikolajsen [Tue, 19 Apr 2011 22:20:32 +0000 (00:20 +0200)]
newfs_hammer: update checks on undosize and fssize minimum

Unless -f options given undosize must be at least 500MB
and fssize at least 10GB (50GB recommended).

Also fix a few extra spaces.

9 years agohammer.8: improve general description and markup
Thomas Nikolajsen [Tue, 19 Apr 2011 22:18:20 +0000 (00:18 +0200)]
hammer.8: improve general description and markup

9 years agohammer.5: add info on dedup and improve general description and markup
Thomas Nikolajsen [Tue, 19 Apr 2011 22:14:56 +0000 (00:14 +0200)]
hammer.5: add info on dedup and improve general description and markup

9 years agonrelease - index.html: fix stale links
Thomas Nikolajsen [Tue, 19 Apr 2011 22:10:50 +0000 (00:10 +0200)]
nrelease - index.html: fix stale links

9 years agonrelease - update README w/ HAMMER instructions etc
Thomas Nikolajsen [Tue, 19 Apr 2011 22:02:30 +0000 (00:02 +0200)]
nrelease - update README w/ HAMMER instructions etc

 - Add instructions on manual HAMMER install
 - Default USB disk name is 'da8'
 - SILI disks uses 'da' name, default 'da0'
 - EHCI (USB 2.0) is enabled by default

9 years agohammer - Fix version output
Antonio Huete Jimenez [Tue, 19 Apr 2011 18:58:07 +0000 (20:58 +0200)]
hammer - Fix version output

Do not try to display WIP version if there isn't one.

9 years agobitstring.h -- Correct bit_fls and bit_nsearch
Venkatesh Srinivas [Tue, 19 Apr 2011 10:36:43 +0000 (03:36 -0700)]
bitstring.h -- Correct bit_fls and bit_nsearch

bit_nsearch was searching for one-too-many bits and was walking the whole set.

Submitted-by: Luis Useche <useche@gmail.com>
9 years agoacpi: Reduce log verbosity
Sepherosa Ziehau [Tue, 19 Apr 2011 06:26:48 +0000 (14:26 +0800)]
acpi: Reduce log verbosity

9 years agotest from machine bugg
Sepherosa Ziehau [Tue, 19 Apr 2011 06:21:10 +0000 (14:21 +0800)]
test from machine bugg

9 years agoAdd a final newline to the last file that didn't have one.
Sascha Wildner [Sun, 17 Apr 2011 23:24:41 +0000 (01:24 +0200)]
Add a final newline to the last file that didn't have one.