Peter Avalos [Sun, 8 Oct 2006 14:06:20 +0000 (14:06 +0000)]
Merge from vendor branch LESS:
Import of less version 394
Peter Avalos [Sun, 8 Oct 2006 14:06:20 +0000 (14:06 +0000)]
Import of less version 394
Simon Schubert [Sun, 8 Oct 2006 09:12:32 +0000 (09:12 +0000)]
Add missing parentheses to fix a segmentation fault that is easily
reproducable with `jot -s " " 400 1 | column -t'. The bug was present
in the the original CSRG 'column -t' added in 1989.
Obtained-from: FreeBSD/iedowse
Submitted-by: Xin LI <delphij@delphij.net>
Sascha Wildner [Sun, 8 Oct 2006 08:56:37 +0000 (08:56 +0000)]
Sync zoneinfo database with tzdata2006m from elsie.
Theory: 7.19 -> 8.1
africa: 7.40 -> 8.5
antarctica: 7.30 -> 8.2
asia: 7.90 -> 8.7
australasia: 7.78 -> 8.3
backward: 7.30 -> 8.2
etcetera: 7.12 -> 8.1
europe: 7.96 -> 8.5
factory: 7.3 -> 8.1
leapseconds: 7.20 -> 8.1
northamerica: 7.87 -> 8.8
southamerica: 7.66 -> 8.4
systemv: 7.5 -> 8.1
yearistype.sh: 7.8 -> 8.2
zone.tab: 1.32 -> 8.4
Sepherosa Ziehau [Sat, 7 Oct 2006 02:57:30 +0000 (02:57 +0000)]
Serializer is already held before calling rl_watchdog().
Reported-by: swildner@
Joerg Sonnenberger [Fri, 6 Oct 2006 13:40:40 +0000 (13:40 +0000)]
Ensure that exit_group actually returns a sane value, not some random
bytes from the stack. Fixes Linux ldconfig.
MFC: After 3 days.
Sascha Wildner [Fri, 6 Oct 2006 13:08:45 +0000 (13:08 +0000)]
Fix typo in comment.
Sascha Wildner [Thu, 5 Oct 2006 04:04:31 +0000 (04:04 +0000)]
1) Document the new statistics report settings.
2) Sync the manpage and default periodic.conf with the current
state of affairs.
Matthew Dillon [Wed, 4 Oct 2006 21:39:23 +0000 (21:39 +0000)]
Add Marc's monthly statistics script to DragonFly's base dist. These
scripts report basic non-identifying OS info to a BSD community site on
the internet.
These scripts are DISABLED by default. To enable, add the following
lines to your /etc/periodic.conf file:
monthly_statistics_enable="YES"
monthly_statistics_report_devices="YES"
Submitted-by: "Marc G. Fournier" <scrappy@freebsd.org>
Matthew Dillon [Wed, 4 Oct 2006 20:13:53 +0000 (20:13 +0000)]
Do not temporarily set signals to SIG_IGN when polling whether the parent
set them up as ignored signals or not. This can result in ^C not being
properly recognized for a short period of time.
Reported-by: Victor Balada Diaz <victor@bsdes.net>
Matthew Dillon [Wed, 4 Oct 2006 18:28:32 +0000 (18:28 +0000)]
Fix a bug where mmap()ing a revoked descriptor caused a kernel panic on a
NULL pointer.
Reported-by: walt <wa1ter@myrealbox.com>
Simon Schubert [Wed, 4 Oct 2006 13:18:57 +0000 (13:18 +0000)]
Fix pathnames for gcc41
Reminded-by: sephe
YONETANI Tomokazu [Tue, 3 Oct 2006 12:20:11 +0000 (12:20 +0000)]
Borrow the code from test/pcpu/cpustat.c to display per-cpu load average on SMP machines.
Sascha Wildner [Tue, 3 Oct 2006 10:21:40 +0000 (10:21 +0000)]
Use .Dx
Sascha Wildner [Tue, 3 Oct 2006 01:32:41 +0000 (01:32 +0000)]
Remove obsolete disk size check.
Pointed-out-by: joerg
Tested-by: Bryan Berch <dfbsd@winbeam.com>
Simon Schubert [Mon, 2 Oct 2006 19:30:19 +0000 (19:30 +0000)]
NO_PKGTOOLS doesn't exist anymore
Simon Schubert [Mon, 2 Oct 2006 19:15:25 +0000 (19:15 +0000)]
Unhook the old ports tools from the build
Simon Schubert [Mon, 2 Oct 2006 13:26:40 +0000 (13:26 +0000)]
Make xlint work with gcc3+
Submited-by: Bill Marquette <bill.marquette@gmail.com>
Fixes: issue277
Sascha Wildner [Sun, 1 Oct 2006 18:38:55 +0000 (18:38 +0000)]
Regen.
Hart: 2006-09-04 (version 612)
Boemler: 2006-10-01
Victor Balada Diaz [Sun, 1 Oct 2006 12:09:29 +0000 (12:09 +0000)]
Fix name collision on C++.
Submitted-By: Pavlin Radoslavov <pavlin@icir.org>
Jeffrey Hsu [Sun, 1 Oct 2006 03:09:14 +0000 (03:09 +0000)]
Combine two allocations into one.
Sascha Wildner [Sat, 30 Sep 2006 22:38:21 +0000 (22:38 +0000)]
Fix redefinition of M_IPMADDR malloc type.
Sascha Wildner [Sat, 30 Sep 2006 22:14:31 +0000 (22:14 +0000)]
Remove unneccessary MALLOC_DECLARE (declared static in kern_exit.c).
Sascha Wildner [Sat, 30 Sep 2006 22:06:04 +0000 (22:06 +0000)]
De-staticize (previously declared extern).
Sascha Wildner [Sat, 30 Sep 2006 21:28:43 +0000 (21:28 +0000)]
Add missing header for struct pcb.
Sascha Wildner [Sat, 30 Sep 2006 21:23:28 +0000 (21:23 +0000)]
Rearrange stuff a bit to satisfy GCC 4.1.
Sascha Wildner [Sat, 30 Sep 2006 21:10:19 +0000 (21:10 +0000)]
Remove wrong redeclarations.
Sascha Wildner [Sat, 30 Sep 2006 20:23:05 +0000 (20:23 +0000)]
Avoid casts as lvalues.
Taken-from: FreeBSD
Sascha Wildner [Sat, 30 Sep 2006 20:03:44 +0000 (20:03 +0000)]
Remove incorrect extern declarations for stuff that is already
declared static.
Sascha Wildner [Sat, 30 Sep 2006 19:25:13 +0000 (19:25 +0000)]
GCC 4.1 also needs memset() in a freestanding environment.
Submitted-by: corecode
Simon Schubert [Sat, 30 Sep 2006 18:07:04 +0000 (18:07 +0000)]
Mark the static abi tag variable used, so gcc41 doesn't optimize it away
Reported-by: swildner et al.
Sascha Wildner [Sat, 30 Sep 2006 16:32:38 +0000 (16:32 +0000)]
Fix typo.
Simon Schubert [Sat, 30 Sep 2006 00:20:27 +0000 (00:20 +0000)]
Always zero out vpp, like the nresolve compat code expects
Reported-by: Rumcic
Simon Schubert [Sat, 30 Sep 2006 00:18:25 +0000 (00:18 +0000)]
Fix smb panic, td might be NULL
Reported-by: Rumcic
Victor Balada Diaz [Fri, 29 Sep 2006 16:50:07 +0000 (16:50 +0000)]
Delete unused bind version.
Simon Schubert [Fri, 29 Sep 2006 06:35:03 +0000 (06:35 +0000)]
Unbreak world build by including a now required header
Jeffrey Hsu [Fri, 29 Sep 2006 04:16:39 +0000 (04:16 +0000)]
We're guaranteed m_pkthdr.fw_flags is already zero on allocation.
Jeffrey Hsu [Fri, 29 Sep 2006 03:37:04 +0000 (03:37 +0000)]
Explicitly mark places in the IPv6 code that require a contiguous buffer.
Clear up confusion with inequalities and missing frees in error cases.
Combine two separate memory allocations into one single allocation
from the object cache.
Peter Avalos [Thu, 28 Sep 2006 22:29:44 +0000 (22:29 +0000)]
Fix most compiler warnings. The last warnings at WARNS6 will need to be
fixed in usr.bin/printf.
Remove nested externs.
Rename local variables shadowing globals.
Some changes taken from NetBSD.
Simon Schubert [Thu, 28 Sep 2006 18:50:30 +0000 (18:50 +0000)]
Update README.DELETED
Simon Schubert [Thu, 28 Sep 2006 18:49:49 +0000 (18:49 +0000)]
Merge from vendor branch OPENSSH:
Import erroneously removed header from OpenSSH-4.4p1
Simon Schubert [Thu, 28 Sep 2006 18:49:49 +0000 (18:49 +0000)]
Import erroneously removed header from OpenSSH-4.4p1
Simon Schubert [Thu, 28 Sep 2006 18:42:50 +0000 (18:42 +0000)]
Update build infrastructure for openssh-4.4p1
Simon Schubert [Thu, 28 Sep 2006 18:41:32 +0000 (18:41 +0000)]
Update our READMEs
Simon Schubert [Thu, 28 Sep 2006 18:38:21 +0000 (18:38 +0000)]
Import stripped down sources of OpenSSH-4.4p1
Simon Schubert [Thu, 28 Sep 2006 18:38:21 +0000 (18:38 +0000)]
Merge from vendor branch OPENSSH:
Import stripped down sources of OpenSSH-4.4p1
Simon Schubert [Thu, 28 Sep 2006 17:20:45 +0000 (17:20 +0000)]
Update strtonum(3) to the latest OpenBSD version, which uses long long's
instead of unsigned long long's.
Noticed-by: OpenSSH openbsd-portable regression test suite
Peter Avalos [Thu, 28 Sep 2006 04:24:05 +0000 (04:24 +0000)]
The "is_eof" commit made this WARNS 3.
Peter Avalos [Thu, 28 Sep 2006 04:19:40 +0000 (04:19 +0000)]
Fix compiler warnings by creating a new macro "is_eof" that does the PEOF
comparison, and don't use it if the character comes from a string. Taken
from FreeBSD.
Peter Avalos [Thu, 28 Sep 2006 03:46:03 +0000 (03:46 +0000)]
Remove WARNS since it's in ../Makefile.inc.
Peter Avalos [Wed, 27 Sep 2006 21:58:08 +0000 (21:58 +0000)]
Grammer fixes taken from OpenBSD.
Peter Avalos [Wed, 27 Sep 2006 19:18:00 +0000 (19:18 +0000)]
Remove crufty build options that are not relevant.
Simon Schubert [Wed, 27 Sep 2006 12:10:35 +0000 (12:10 +0000)]
Welcome the build infrastructure for gcc41
Simon Schubert [Wed, 27 Sep 2006 10:27:33 +0000 (10:27 +0000)]
Add our READMEs
Simon Schubert [Wed, 27 Sep 2006 10:25:53 +0000 (10:25 +0000)]
Merge from vendor branch GCC:
Import a stripped down version of gcc-4.1.1
Simon Schubert [Wed, 27 Sep 2006 10:25:53 +0000 (10:25 +0000)]
Import a stripped down version of gcc-4.1.1
Simon Schubert [Wed, 27 Sep 2006 10:24:15 +0000 (10:24 +0000)]
Run trimdir in a subshell so that our cwd doesn't change under us
Matthew Dillon [Tue, 26 Sep 2006 18:57:14 +0000 (18:57 +0000)]
Follow up to kern_conf.c 1.16. We can't just ignore the ops comparison, it
is needed to keep user-invisible devices user-invisible. Add a flag so
hashdev() knows when it can ignore the comparison and when it can't ignore
the comparison.
Matthew Dillon [Tue, 26 Sep 2006 18:15:28 +0000 (18:15 +0000)]
Fix a bug in the device intercept code used by /dev/console. The
bug caused device opens on the underlying device to create a new
device instead of using the console intercept, causing make_dev
warnings and preventing getty from operating properly on the console.
Reported-by: "Frank W. Josellis" <frank@dynamical-systems.org>
Matthew Dillon [Tue, 26 Sep 2006 17:32:09 +0000 (17:32 +0000)]
Fix an off-by-one error. Track #1 is index 0 in the TOC buffer.
Submitted-by: "Ben Woolley" <tautolog@gmail.com>
Simon Schubert [Mon, 25 Sep 2006 09:27:21 +0000 (09:27 +0000)]
Always warn about identical target and source. Nevertheless, don't treat
it as a failure when -f is specified.
Simon Schubert [Sun, 24 Sep 2006 21:28:13 +0000 (21:28 +0000)]
Don't unlink the target if the source and target are the same file. Instead,
complain unless -f is given.
Add a comment about the inverted nomenclature within the source
wrt target and source.
Matthew Dillon [Sun, 24 Sep 2006 19:43:55 +0000 (19:43 +0000)]
Try to clean up any remaining filesystem references when rebooting. Clean
up references made by the process calling reboot(), the proc0 template,
the init process, and by the VFS subsystem.
Peter Avalos [Sat, 23 Sep 2006 20:31:45 +0000 (20:31 +0000)]
Make bsdtar our default tar. GNU tar is still installed as gtar, and can
be "tar" by using WITH_GTAR in make.conf.
Discussed on: users
Sepherosa Ziehau [Sat, 23 Sep 2006 01:59:16 +0000 (01:59 +0000)]
Whitespace adjustment.
Add two device ids:
- Intel Pro/100 VE Network Connection card
- NIC found on ICH7 based systems
Submitted-by: Rauf Kuliyev <rauf@kuliyev.com>
Obtained-from: FreeBSD
Matthew Dillon [Fri, 22 Sep 2006 16:47:09 +0000 (16:47 +0000)]
Fix a compile error when DDB is not defined. db_print_backtrace() is
only available if DDB is defined.
Reported-by: "Rauf Kuliyev" <rauf@kuliyev.com>, Petr Janda <elekktretterr@exemail.com.au>
Sascha Wildner [Fri, 22 Sep 2006 09:46:48 +0000 (09:46 +0000)]
Remove some unnecessary -r options and use csh for man page removal.
Scott Ullrich [Fri, 22 Sep 2006 01:18:14 +0000 (01:18 +0000)]
M_WRITABLE() is not applicable to DFLY since if*mp is from the driver
which supports jumbo frames.
Pointed-out-by: Sepherosa Ziehau
Victor Balada Diaz [Thu, 21 Sep 2006 20:56:50 +0000 (20:56 +0000)]
Upgrade to bind-9.3.2-P1. Delete unused cat files for dnssec-makekeyset
and dnssec-signkey.
Suggested-By: Sascha Wildner
Matthew Dillon [Thu, 21 Sep 2006 16:16:09 +0000 (16:16 +0000)]
Recent dev_t work confused sysctl. Adjust the reported type to udev_t
and make sysctl recognize it.
Reported-by: "Frank W. Josellis" <frank@dynamical-systems.org>
Sascha Wildner [Thu, 21 Sep 2006 11:49:22 +0000 (11:49 +0000)]
Remove unused function.
Submitted-by: Trevor Kendall <trevorjkendall@gmail.com>
YONETANI Tomokazu [Thu, 21 Sep 2006 05:18:24 +0000 (05:18 +0000)]
Typo in commented out line.
Revealed-by: Haidut <haidut at gmail.com>
Matthew Dillon [Thu, 21 Sep 2006 04:09:28 +0000 (04:09 +0000)]
Add an option that causes cpdup to skip CHR or BLK devices. This option
would typically be needed if using cpdup across a network to a non-BSD box
which does not support the creation of device nodes.
Matthew Dillon [Thu, 21 Sep 2006 00:18:13 +0000 (00:18 +0000)]
Fix a bug in the script softlink code. The softlinks were not being
properly updated because 'ln -sf' creates a softlink in the directory pointed
to by the existing softlink rather then replacing the existing softlink.
Victor Balada Diaz [Wed, 20 Sep 2006 22:16:11 +0000 (22:16 +0000)]
Merge from vendor branch BIND:
Add updated README files based on our previous version
Victor Balada Diaz [Wed, 20 Sep 2006 22:16:11 +0000 (22:16 +0000)]
Add updated README files based on our previous version
Victor Balada Diaz [Wed, 20 Sep 2006 21:56:00 +0000 (21:56 +0000)]
Upgrade bind to bind-9.3.2-P1. This tools are no longer used.
Victor Balada Diaz [Wed, 20 Sep 2006 21:48:39 +0000 (21:48 +0000)]
Upgrade bind to bind-9.3.2-P1
Victor Balada Diaz [Wed, 20 Sep 2006 21:28:53 +0000 (21:28 +0000)]
Import of bind-9.3.2-P1
Victor Balada Diaz [Wed, 20 Sep 2006 21:28:53 +0000 (21:28 +0000)]
Merge from vendor branch BIND:
Import of bind-9.3.2-P1
Sascha Wildner [Wed, 20 Sep 2006 16:51:33 +0000 (16:51 +0000)]
As of the recent libarchive upgrade, archive_read_open_file() and
archive_write_open_file() have become deprecated. Therefore, remove
the old MLINKS.
Matthew Dillon [Tue, 19 Sep 2006 18:17:46 +0000 (18:17 +0000)]
Check that namecache references to the mount point are no longer present
before unmounting a filesystem. Forced unmounts ignore the check but will
print a warning.
This patch is primarily designed to prevent nullfs partitions from being
unmounted while processes are still present within them. The normal vnode
check does not work for nullfs mounts since nullfs mounts do not hold any
vnodes of their own.
Note that this will cause a warning to be reported for the root filesystem
when rebooting.
Matthew Dillon [Tue, 19 Sep 2006 16:06:17 +0000 (16:06 +0000)]
Remove the last bits of code that stored mount point linkages in vnodes.
Mount point linkages are now ENTIRELY a function of the namecache topology,
made possible by DragonFly's advanced namecache.
This fixes a number of problems with NULLFS and adds two major features to
our NULLFS mounting capabilities.
NULLFS mounting paths NO LONGER NEED TO BE DISTINCT. For example, you
can now safely do things like 'mount_null -o ro / /fubar/jail1' without
creating a recursion and you can now create SUB-MOUNTS within nullfs
mounts, such as 'mount_null -o ro /usr /fubar/jail1/usr', without creating
problems in the original master partitions.
The result is that NULLFS can now be used to glue arbitrary pieces of
filesystems together using a mixture of read-only and read-write NULLFS
mounts for situations where localhost NFS mounts had to be used before.
Jail or chroot construction is now utterly trivial.
With-input-from: Joerg Sonnenberger <joerg@britannica.bec.de>
Simon Schubert [Tue, 19 Sep 2006 11:47:36 +0000 (11:47 +0000)]
1:1 Userland threading stage 2.9/4:
Push out p_thread a little bit more
Matthew Dillon [Mon, 18 Sep 2006 18:19:35 +0000 (18:19 +0000)]
Set f_ncp in the struct file unconditionally. Previously we only set it
when opening directories. This allows the f*() system calls such as
fchmod() to check the actual mount point instead of the aliased mount
point (in the case of a NULLFS mount). Also, the fstat program will
properly report the path for descriptors opened via nullfs mounts.
Add code to all f*() system calls such as fchmod() to check f_ncp
in order to detect read-only nullfs mounts.
Matthew Dillon [Mon, 18 Sep 2006 17:42:28 +0000 (17:42 +0000)]
Disallow writes to filesystems mounted read-only via NULLFS. In this case
the ncp->nc_mount in the namecache must be checked since the vnode's
mount point is the actual filesystem and not the NULLFS mount.
Reported-by: Joerg Sonnenberger <joerg@britannica.bec.de>
Peter Avalos [Mon, 18 Sep 2006 03:09:39 +0000 (03:09 +0000)]
Remove old version of bsdtar and libarchive.
Peter Avalos [Mon, 18 Sep 2006 01:47:10 +0000 (01:47 +0000)]
Upgrade libarchive and bsdtar to 1.3.1.
libarchive Makefile changes inspired by FreeBSD.
Peter Avalos [Mon, 18 Sep 2006 01:29:38 +0000 (01:29 +0000)]
Add comment saying this is used by both libarchive and bsdtar.
Peter Avalos [Mon, 18 Sep 2006 01:22:12 +0000 (01:22 +0000)]
Add our READMEs to the import.
Peter Avalos [Mon, 18 Sep 2006 01:05:12 +0000 (01:05 +0000)]
Merge from vendor branch LIBARCHIVE:
Import of libarchive and bsdtar 1.3.1
Peter Avalos [Mon, 18 Sep 2006 01:05:12 +0000 (01:05 +0000)]
Import of libarchive and bsdtar 1.3.1
Matthew Dillon [Sun, 17 Sep 2006 21:10:18 +0000 (21:10 +0000)]
Move an assertion in the bridge code so it only gets hit if the bridge
code is actually enabled for an interface.
Matthew Dillon [Sun, 17 Sep 2006 21:09:40 +0000 (21:09 +0000)]
Make some adjustments to low level madvise/mcontrol/mmap support code to
accomodate vmspace_*() calls.
Reformulate the new vmspace_*() calls so they operate similarly to the
MAP_VPAGETABLE and mcontrol() calls. This also makes vmspace's more
'programmable' in the sense that it will be possible to mix virtual
pagetable mmap()ings with other mmap()ing in a vmspace.
Fill in the code for all the new vmspace_*() calls except for
vmspace_ctl(). NOTE: vmspace calls are effectively disabled unless
vm.vkernel_enable is turned on, just like MAP_VPAGETABLE.
Renumber the new mcontrol() and vmspace_*() calls and regenerate.
Matthew Dillon [Sun, 17 Sep 2006 21:07:32 +0000 (21:07 +0000)]
Make some adjustments to low level madvise/mcontrol/mmap support code to
accomodate vmspace_*() calls.
Reformulate the new vmspace_*() calls so they operate similarly to the
MAP_VPAGETABLE and mcontrol() calls. This also makes vmspace's more
'programmable' in the sense that it will be possible to mix virtual
pagetable mmap()ings with other mmap()ing in a vmspace.
Fill in the code for all the new vmspace_*() calls except for
vmspace_ctl(). NOTE: vmspace calls are effectively disabled unless
vm.vkernel_enable is turned on, just like MAP_VPAGETABLE.
Renumber the new mcontrol() and vmspace_*() calls and regenerate.
Joerg Sonnenberger [Sun, 17 Sep 2006 15:37:48 +0000 (15:37 +0000)]
nullfs_subr doesn't exist anymore.
Matthew Dillon [Sat, 16 Sep 2006 21:57:10 +0000 (21:57 +0000)]
Commit a comprehensive file describing how to do incremental backups along
with some example scripts.
Peter Avalos [Sat, 16 Sep 2006 19:18:06 +0000 (19:18 +0000)]
Sync with FreeBSD.
Submitted By: Trevor Kendall <trevorjkendall@gmail.com>
Sascha Wildner [Sat, 16 Sep 2006 18:39:13 +0000 (18:39 +0000)]
Fix ng_mppc module building.
Peter Avalos [Sat, 16 Sep 2006 18:38:00 +0000 (18:38 +0000)]
WARNS6 cleanup
style(9) cleanups
Use sysexits
Sync calendar files with FreeBSD
Submitted by: Trevor Kendall <trevorjkendall@gmail.com>