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
Sepherosa Ziehau [Sun, 17 Apr 2011 08:24:53 +0000 (16:24 +0800)]
acpi: FACS is already loaded, don't load it manually again
Sepherosa Ziehau [Sun, 17 Apr 2011 08:08:37 +0000 (16:08 +0800)]
acpi: Enable ACPI reset by default
- Enable ACPI reset if FADT has this feature bit set
- During ACPI reset, use AcpiReset() instead of rolling our own
Obtained-from: FreeBSD (r213755 jkim@freebsd.org)
Sepherosa Ziehau [Sun, 17 Apr 2011 07:21:55 +0000 (15:21 +0800)]
acpi/pstate: Add tunable to allow BIOS whacking start/max FID/VID
This tunable is set to 1 (stringent check) by default.
DragonFly-issue: http://bugs.dragonflybsd.org/issue2025
Sepherosa Ziehau [Sun, 17 Apr 2011 07:00:54 +0000 (15:00 +0800)]
powerd: Wait hw.acpi.cpu.px_dom* sysctl to be created by kernel
Since hw.acpi.cpu.px_dom* creation is queued into ACPI taskqueue
and ACPI taskqueue is shared across various ACPI modules, any delay
in other modules may cause hw.acpi.cpu.px_dom* to be created at
quite a later time (e.g. cmbat module's task could take quite a lot
of time).
Sepherosa Ziehau [Sun, 17 Apr 2011 05:00:17 +0000 (13:00 +0800)]
acpi: Enable GPE for button and lid, if they have _PRW object
For devices which has _PRW object, AcpiSetupGpeForWake() will be called,
however, AcpiSetupGpeForWake() will disable GPE, which causes devices
like button and lid to stop function if they have _PRW object. So for
button and lid, we explicitly enable GPE if they have _PRW object.
Reported-by: y0netan1@
Sepherosa Ziehau [Sun, 17 Apr 2011 04:39:19 +0000 (12:39 +0800)]
acpi: Skip \_SB_ and \_TZ_ only for devices.
Obtained-from: FreeBSD (r214765 jkim@freebsd.org)
Adjust a comment to clarify why \_SB_ and \_TZ_ are defined as device
type in ACPICA. Reshuffle the code a bit to make sure this kludge only
applies to these two specical cases and to make it cleaner.
Sepherosa Ziehau [Sun, 17 Apr 2011 04:12:17 +0000 (12:12 +0800)]
acpi: Restore old AcpiWalkNamespace semantic
Noticed-by: y0netan1@
Peter Avalos [Sat, 16 Apr 2011 21:51:32 +0000 (11:51 -1000)]
Sh: Add test for getting length of string in double-quotes.
Peter Avalos [Sat, 16 Apr 2011 21:48:06 +0000 (11:48 -1000)]
sh: Add test for obscure and ambiguous ${#?}.
Obtained-from: FreeBSD
Peter Avalos [Sat, 16 Apr 2011 21:46:25 +0000 (11:46 -1000)]
sh: Add test for expanding of quoted positional parameters in case.
Peter Avalos [Sat, 16 Apr 2011 21:40:50 +0000 (11:40 -1000)]
sh: Add some tests for ${#parameter}.
Obtained-from: FreeBSD
Peter Avalos [Sat, 16 Apr 2011 21:36:09 +0000 (11:36 -1000)]
sh: Add some tests for omitting whitespace.
Obtained-from: FreeBSD
Peter Avalos [Sat, 16 Apr 2011 21:33:04 +0000 (11:33 -1000)]
sh: Split off some special behavior into separate regress tests.
Obtained-from: FreeBSD
Peter Avalos [Sat, 16 Apr 2011 21:21:02 +0000 (11:21 -1000)]
sh(1): Describe subshell environment, command substitution better
POSIX does not require the shell to fork for a subshell environment, and
we use that possibility in various ways (command substitutions with a
single command and most subshells that are the final command of a shell
process). Therefore do not tie subshells to forking in the man page.
Also, fix some sentences with excessive semicolons.
Obtained-from: FreeBSD
Peter Avalos [Sat, 16 Apr 2011 21:17:03 +0000 (11:17 -1000)]
sh: Fix some parameter expansion variants ${#...}.
These already worked: $# ${#} ${##} ${#-} ${#?}
These now work as well: ${#+word} ${#-word} ${##word} ${#%word}
There is an ambiguity in the standard with ${#?}: it could be the length of
$? or it could be $# giving an error in the (impossible) case that it is not
set. We continue to use the former interpretation as it seems more useful.
Obtained-from: FreeBSD
Peter Avalos [Sat, 16 Apr 2011 21:10:07 +0000 (11:10 -1000)]
sh: Reduce diffs to FreeBSD in the arith code.
Obtained-from: FreeBSD
Sascha Wildner [Sat, 16 Apr 2011 20:29:19 +0000 (22:29 +0200)]
ctags(1): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Sat, 16 Apr 2011 20:22:24 +0000 (22:22 +0200)]
talk(1): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Sat, 16 Apr 2011 20:22:08 +0000 (22:22 +0200)]
usbhidctl(1): Raise WARNS to 6 and fix warnings.
Sepherosa Ziehau [Sat, 16 Apr 2011 16:58:34 +0000 (00:58 +0800)]
acpi/ec: Bring in more GPE fixes from FreeBSD head (acpi_ec.c r216965)
Sepherosa Ziehau [Sat, 16 Apr 2011 15:12:05 +0000 (23:12 +0800)]
acpi: Sync ec with FreeBSD 8
Sascha Wildner [Sat, 16 Apr 2011 08:54:07 +0000 (10:54 +0200)]
mount/umount: Small whitespace fix in the usage().
YONETANI Tomokazu [Sat, 16 Apr 2011 08:02:49 +0000 (17:02 +0900)]
mount, umount: Implement the '-F' option to specify an alternate fstab file.
This also fixes jail_${jail}_fstab option in /etc/rc.d/jail .
Taken-from: FreeBSD (r113220 by mdodd@freebsd.org)
Matthew Dillon [Fri, 15 Apr 2011 17:58:32 +0000 (10:58 -0700)]
kernel - Fix apparent timing race in early usb keyboard polling code
* Fix an apparent timing race where a USB command does not complete
prior to the poll issued with the command. Perform another poll
in a loop to deal with it.
* Problem appears to occur w/ohci's early poll prior to ehci attachment.
Reported-by: Antonio Huete Jimenez <ahuete.devel@gmail.com>
Sascha Wildner [Fri, 15 Apr 2011 15:39:40 +0000 (17:39 +0200)]
asf(8): Fix module path.