John Marino [Sat, 30 Apr 2011 19:58:06 +0000 (21:58 +0200)]
Merge branch 'vendor/DIFFUTILS'
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
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.
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
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.
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.
John Marino [Sat, 30 Apr 2011 00:55:58 +0000 (02:55 +0200)]
Merge branch 'vendor/GCC44'
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
Sascha Wildner [Fri, 29 Apr 2011 21:51:55 +0000 (23:51 +0200)]
Add an nsclpcsio(4) manual page (from OpenBSD).
Sascha Wildner [Fri, 29 Apr 2011 09:03:17 +0000 (11:03 +0200)]
bsd-family-tree: Sync with FreeBSD.
Sascha Wildner [Fri, 29 Apr 2011 06:23:47 +0000 (08:23 +0200)]
dm(4): Fix a typo in the code.
John Marino [Fri, 29 Apr 2011 04:53:44 +0000 (06:53 +0200)]
dlvsym manpage: cleanup
Sascha Wildner [Fri, 29 Apr 2011 04:35:45 +0000 (06:35 +0200)]
dlerror.3: Oops, fix wrong change I did.
Sascha Wildner [Fri, 29 Apr 2011 02:27:17 +0000 (04:27 +0200)]
sysv_msg: Fix a typo in the code.
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
Sascha Wildner [Fri, 29 Apr 2011 01:10:05 +0000 (03:10 +0200)]
dl*(3) manpages: Some cleanup.
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>
Sascha Wildner [Thu, 28 Apr 2011 23:54:12 +0000 (01:54 +0200)]
ng_pppoe(4): Fix a typo in the code.
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
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.
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:
dlvsym
dl_iterate_phdr
_rtld_addr_phdr
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.
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
<http://leaf.dragonflybsd.org/mailarchive/commits/2011-04/msg00216.html>
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.
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.
Peter Avalos [Thu, 28 Apr 2011 00:17:05 +0000 (14:17 -1000)]
Use ${LN} from <sys.mk> in gdtoa's Makefile.
Peter Avalos [Wed, 27 Apr 2011 23:56:08 +0000 (13:56 -1000)]
Remove unneeded diff to gdtoa vendor source.
Peter Avalos [Wed, 27 Apr 2011 23:51:21 +0000 (13:51 -1000)]
Merge branch 'vendor/GDTOA'
Peter Avalos [Wed, 27 Apr 2011 23:49:59 +0000 (13:49 -1000)]
Peter Avalos [Wed, 27 Apr 2011 23:28:41 +0000 (13:28 -1000)]
Update config.h for file-5.06 import.
Peter Avalos [Wed, 27 Apr 2011 23:28:26 +0000 (13:28 -1000)]
Merge branch 'vendor/FILE'
John Marino [Tue, 26 Apr 2011 21:57:16 +0000 (23:57 +0200)]
sort: Remove GNU sort from base
John Marino [Tue, 26 Apr 2011 21:54:56 +0000 (23:54 +0200)]
sort: Replace GNU sort with NetBSD sort
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.
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.
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
Sepherosa Ziehau [Sun, 24 Apr 2011 12:05:54 +0000 (20:05 +0800)]
i386/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
Sepherosa Ziehau [Sun, 24 Apr 2011 11:53:36 +0000 (19:53 +0800)]
i386/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
Sepherosa Ziehau [Sat, 23 Apr 2011 11:59:48 +0000 (19:59 +0800)]
x86_64: isa/clock.c is clean enough to enable -Werror
Sepherosa Ziehau [Sat, 23 Apr 2011 12:04:06 +0000 (20:04 +0800)]
i386: 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
Sepherosa Ziehau [Sat, 23 Apr 2011 10:59:37 +0000 (18:59 +0800)]
pci/compat: Remove old IOAPIC code
Sepherosa Ziehau [Sat, 23 Apr 2011 04:06:02 +0000 (12:06 +0800)]
i386: Remove old IOAPIC code
Sepherosa Ziehau [Sat, 23 Apr 2011 03:07:10 +0000 (11:07 +0800)]
x86_64: Remove old IOAPIC 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.
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.
John Marino [Tue, 26 Apr 2011 20:47:20 +0000 (22:47 +0200)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
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.
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.
John Marino [Tue, 26 Apr 2011 18:24:21 +0000 (20:24 +0200)]
Grep: Add DragonFly README files
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.
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.
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.
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.
John Marino [Tue, 26 Apr 2011 17:49:26 +0000 (19:49 +0200)]
Merge branch 'vendor/GREP'
John Marino [Tue, 26 Apr 2011 17:48:38 +0000 (19:48 +0200)]
Import grep-2.7
Sascha Wildner [Tue, 26 Apr 2011 15:58:57 +0000 (17:58 +0200)]
malloc.3: Add emalloc(3) reference.
Sascha Wildner [Tue, 26 Apr 2011 15:38:48 +0000 (17:38 +0200)]
efun.3: Sort sections according to mdoc(7).
Sascha Wildner [Tue, 26 Apr 2011 15:36:34 +0000 (17:36 +0200)]
libutil: Add MLINKS for the new e* functions.
Sascha Wildner [Tue, 26 Apr 2011 15:32:26 +0000 (17:32 +0200)]
libutil: Rearrange a bit in the Makefile.
Venkatesh Srinivas [Tue, 26 Apr 2011 12:18:54 +0000 (05:18 -0700)]
libutil -- Import error functions from NetBSD.
Sepherosa Ziehau [Tue, 26 Apr 2011 09:29:22 +0000 (17:29 +0800)]
test from machine crawl
Sascha Wildner [Sun, 24 Apr 2011 09:33:10 +0000 (11:33 +0200)]
kernel/x86_64: SC520 was 32 bit, so not needed here.
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.
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
words.
Sascha Wildner [Mon, 25 Apr 2011 07:43:22 +0000 (09:43 +0200)]
kernel: Remove some redundant .PATH targets.
Sascha Wildner [Mon, 25 Apr 2011 07:16:30 +0000 (09:16 +0200)]
kernel: Remove some i386 code from x86_64.
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.
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
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
padlock(4)).
In the middle run, we probably need some kmalloc() flavor that can do
alignment.
In-discussion-with: alexh
Sascha Wildner [Fri, 22 Apr 2011 09:10:57 +0000 (11:10 +0200)]
pf(4): Fix compilation without INET6.
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
ioctls.
* For the moment comment out a panic condition dealing with an
abort sent from an interrupt context.
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.
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
refcount_release_wakeup().
Sascha Wildner [Thu, 21 Apr 2011 16:11:29 +0000 (18:11 +0200)]
binutils220: Fix a copy/paste error.
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.
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.
Matthew Dillon [Thu, 21 Apr 2011 04:22:18 +0000 (21:22 -0700)]
kernel - Add mtrr support for x86-64
Taken-From: FreeBSD
Sascha Wildner [Wed, 20 Apr 2011 16:29:27 +0000 (18:29 +0200)]
Set the DragonFly version to 2.11 for 2.11.
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.
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
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
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
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).
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.
Thomas Nikolajsen [Tue, 19 Apr 2011 22:18:20 +0000 (00:18 +0200)]
hammer.8: 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
Thomas Nikolajsen [Tue, 19 Apr 2011 22:10:50 +0000 (00:10 +0200)]
nrelease - index.html: fix stale links
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
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.
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>
Sepherosa Ziehau [Tue, 19 Apr 2011 06:26:48 +0000 (14:26 +0800)]
acpi: Reduce log verbosity
Sepherosa Ziehau [Tue, 19 Apr 2011 06:21:10 +0000 (14:21 +0800)]
test from machine bugg
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.
Sascha Wildner [Sun, 17 Apr 2011 22:04:54 +0000 (00:04 +0200)]
editline(3): Use getpwnam_r() and getpwuid_r() and raise WARNS to 6.
Sascha Wildner [Sun, 17 Apr 2011 21:36:29 +0000 (23:36 +0200)]
kbdcontrol(1): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Sun, 17 Apr 2011 21:13:54 +0000 (23:13 +0200)]
vknetd(8): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Sun, 17 Apr 2011 11:50:00 +0000 (13:50 +0200)]
installer/LiveCD: Do no longer set kern.emergency_intr_enable to 1.
In-discussion-with: sephe
Sepherosa Ziehau [Sun, 17 Apr 2011 10:58:26 +0000 (18:58 +0800)]
acpi/pcib: If bus does not present, give other bus drivers chance
- Call acpi_DeviceIsPresent() during probing, so that if bus does not
present other bus drivers could have chance to take over the bus.
- In acpi_pcib_attach(), assert that bus is present, since the presence
of the bus is checked during probing.
Reported-by: swildner@
Sepherosa Ziehau [Sun, 17 Apr 2011 08:56:31 +0000 (16:56 +0800)]
ioapic/abi; Reduce log verbosity