dragonfly.git
11 years agoFix typo in comment.
Sascha Wildner [Fri, 6 Oct 2006 13:08:45 +0000 (13:08 +0000)]
Fix typo in comment.

11 years ago1) Document the new statistics report settings.
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.

11 years agoAdd Marc's monthly statistics script to DragonFly's base dist. These
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>
11 years agoDo not temporarily set signals to SIG_IGN when polling whether the parent
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>
11 years agoFix a bug where mmap()ing a revoked descriptor caused a kernel panic on a
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>
11 years agoFix pathnames for gcc41
Simon Schubert [Wed, 4 Oct 2006 13:18:57 +0000 (13:18 +0000)]
Fix pathnames for gcc41

Reminded-by: sephe
11 years agoBorrow the code from test/pcpu/cpustat.c to display per-cpu load average on SMP machines.
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.

11 years agoUse .Dx
Sascha Wildner [Tue, 3 Oct 2006 10:21:40 +0000 (10:21 +0000)]
Use .Dx

11 years agoRemove obsolete disk size check.
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>
11 years agoNO_PKGTOOLS doesn't exist anymore
Simon Schubert [Mon, 2 Oct 2006 19:30:19 +0000 (19:30 +0000)]
NO_PKGTOOLS doesn't exist anymore

11 years agoUnhook the old ports tools from the build
Simon Schubert [Mon, 2 Oct 2006 19:15:25 +0000 (19:15 +0000)]
Unhook the old ports tools from the build

11 years agoMake xlint work with gcc3+
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

11 years agoRegen.
Sascha Wildner [Sun, 1 Oct 2006 18:38:55 +0000 (18:38 +0000)]
Regen.

Hart:    2006-09-04 (version 612)
Boemler: 2006-10-01

11 years agoFix name collision on C++.
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>
11 years agoCombine two allocations into one.
Jeffrey Hsu [Sun, 1 Oct 2006 03:09:14 +0000 (03:09 +0000)]
Combine two allocations into one.

11 years agoFix redefinition of M_IPMADDR malloc type.
Sascha Wildner [Sat, 30 Sep 2006 22:38:21 +0000 (22:38 +0000)]
Fix redefinition of M_IPMADDR malloc type.

11 years agoRemove unneccessary MALLOC_DECLARE (declared static in kern_exit.c).
Sascha Wildner [Sat, 30 Sep 2006 22:14:31 +0000 (22:14 +0000)]
Remove unneccessary MALLOC_DECLARE (declared static in kern_exit.c).

11 years agoDe-staticize (previously declared extern).
Sascha Wildner [Sat, 30 Sep 2006 22:06:04 +0000 (22:06 +0000)]
De-staticize (previously declared extern).

11 years agoAdd missing header for struct pcb.
Sascha Wildner [Sat, 30 Sep 2006 21:28:43 +0000 (21:28 +0000)]
Add missing header for struct pcb.

11 years agoRearrange stuff a bit to satisfy GCC 4.1.
Sascha Wildner [Sat, 30 Sep 2006 21:23:28 +0000 (21:23 +0000)]
Rearrange stuff a bit to satisfy GCC 4.1.

11 years agoRemove wrong redeclarations.
Sascha Wildner [Sat, 30 Sep 2006 21:10:19 +0000 (21:10 +0000)]
Remove wrong redeclarations.

11 years agoAvoid casts as lvalues.
Sascha Wildner [Sat, 30 Sep 2006 20:23:05 +0000 (20:23 +0000)]
Avoid casts as lvalues.

Taken-from: FreeBSD

11 years agoRemove incorrect extern declarations for stuff that is already
Sascha Wildner [Sat, 30 Sep 2006 20:03:44 +0000 (20:03 +0000)]
Remove incorrect extern declarations for stuff that is already
declared static.

11 years agoGCC 4.1 also needs memset() in a freestanding environment.
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
11 years agoMark the static abi tag variable used, so gcc41 doesn't optimize it away
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.
11 years agoFix typo.
Sascha Wildner [Sat, 30 Sep 2006 16:32:38 +0000 (16:32 +0000)]
Fix typo.

11 years agoAlways zero out vpp, like the nresolve compat code expects
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
11 years agoFix smb panic, td might be NULL
Simon Schubert [Sat, 30 Sep 2006 00:18:25 +0000 (00:18 +0000)]
Fix smb panic, td might be NULL

Reported-by: Rumcic
11 years agoDelete unused bind version.
Victor Balada Diaz [Fri, 29 Sep 2006 16:50:07 +0000 (16:50 +0000)]
Delete unused bind version.

11 years agoUnbreak world build by including a now required header
Simon Schubert [Fri, 29 Sep 2006 06:35:03 +0000 (06:35 +0000)]
Unbreak world build by including a now required header

11 years agoWe're guaranteed m_pkthdr.fw_flags is already zero on allocation.
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.

11 years agoExplicitly mark places in the IPv6 code that require a contiguous buffer.
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.

11 years agoFix most compiler warnings. The last warnings at WARNS6 will need to be
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.

11 years agoUpdate README.DELETED
Simon Schubert [Thu, 28 Sep 2006 18:50:30 +0000 (18:50 +0000)]
Update README.DELETED

11 years agoMerge from vendor branch OPENSSH:
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

11 years agoImport 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

11 years agoUpdate build infrastructure for openssh-4.4p1
Simon Schubert [Thu, 28 Sep 2006 18:42:50 +0000 (18:42 +0000)]
Update build infrastructure for openssh-4.4p1

11 years agoUpdate our READMEs
Simon Schubert [Thu, 28 Sep 2006 18:41:32 +0000 (18:41 +0000)]
Update our READMEs

11 years agoImport stripped down sources of OpenSSH-4.4p1
Simon Schubert [Thu, 28 Sep 2006 18:38:21 +0000 (18:38 +0000)]
Import stripped down sources of OpenSSH-4.4p1

11 years agoMerge from vendor branch OPENSSH:
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

11 years agoUpdate strtonum(3) to the latest OpenBSD version, which uses long long's
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
11 years agoThe "is_eof" commit made this WARNS 3.
Peter Avalos [Thu, 28 Sep 2006 04:24:05 +0000 (04:24 +0000)]
The "is_eof" commit made this WARNS 3.

11 years agoFix compiler warnings by creating a new macro "is_eof" that does the PEOF
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.

11 years agoRemove WARNS since it's in ../Makefile.inc.
Peter Avalos [Thu, 28 Sep 2006 03:46:03 +0000 (03:46 +0000)]
Remove WARNS since it's in ../Makefile.inc.

11 years agoGrammer fixes taken from OpenBSD.
Peter Avalos [Wed, 27 Sep 2006 21:58:08 +0000 (21:58 +0000)]
Grammer fixes taken from OpenBSD.

11 years agoRemove crufty build options that are not relevant.
Peter Avalos [Wed, 27 Sep 2006 19:18:00 +0000 (19:18 +0000)]
Remove crufty build options that are not relevant.

11 years agoWelcome the build infrastructure for gcc41
Simon Schubert [Wed, 27 Sep 2006 12:10:35 +0000 (12:10 +0000)]
Welcome the build infrastructure for gcc41

11 years agoAdd our READMEs
Simon Schubert [Wed, 27 Sep 2006 10:27:33 +0000 (10:27 +0000)]
Add our READMEs

11 years agoMerge from vendor branch GCC:
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

11 years agoImport 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

11 years agoRun trimdir in a subshell so that our cwd doesn't change under us
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

11 years agoFollow up to kern_conf.c 1.16. We can't just ignore the ops comparison, it
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.

11 years agoFix a bug in the device intercept code used by /dev/console. The
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>
11 years agoFix an off-by-one error. Track #1 is index 0 in the TOC buffer.
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>
11 years agoAlways warn about identical target and source. Nevertheless, don't treat
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.

11 years agoDon't unlink the target if the source and target are the same file. Instead,
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.

11 years agoTry to clean up any remaining filesystem references when rebooting. Clean
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.

11 years agoMake bsdtar our default tar. GNU tar is still installed as gtar, and can
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

11 years agoWhitespace adjustment.
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

11 years agoFix a compile error when DDB is not defined. db_print_backtrace() is
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>
11 years agoRemove some unnecessary -r options and use csh for man page removal.
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.

11 years agoM_WRITABLE() is not applicable to DFLY since if*mp is from the driver
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
11 years agoUpgrade to bind-9.3.2-P1. Delete unused cat files for dnssec-makekeyset
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
11 years agoRecent dev_t work confused sysctl. Adjust the reported type to udev_t
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>
11 years agoRemove unused function.
Sascha Wildner [Thu, 21 Sep 2006 11:49:22 +0000 (11:49 +0000)]
Remove unused function.

Submitted-by: Trevor Kendall <trevorjkendall@gmail.com>
11 years agoTypo in commented out line.
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>
11 years agoAdd an option that causes cpdup to skip CHR or BLK devices. This option
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.

11 years agoFix a bug in the script softlink code. The softlinks were not being
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.

11 years agoMerge from vendor branch BIND:
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

11 years agoAdd 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

11 years agoUpgrade bind to bind-9.3.2-P1. This tools are no longer used.
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.

11 years agoUpgrade bind to bind-9.3.2-P1
Victor Balada Diaz [Wed, 20 Sep 2006 21:48:39 +0000 (21:48 +0000)]
Upgrade bind to bind-9.3.2-P1

11 years agoImport of 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

11 years agoMerge from vendor branch BIND:
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

11 years agoAs of the recent libarchive upgrade, archive_read_open_file() and
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.

11 years agoCheck that namecache references to the mount point are no longer present
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.

11 years agoRemove the last bits of code that stored mount point linkages in vnodes.
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>

11 years ago1:1 Userland threading stage 2.9/4:
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

11 years agoSet f_ncp in the struct file unconditionally. Previously we only set it
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.

11 years agoDisallow writes to filesystems mounted read-only via NULLFS. In this case
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>
11 years agoRemove old version of bsdtar and libarchive.
Peter Avalos [Mon, 18 Sep 2006 03:09:39 +0000 (03:09 +0000)]
Remove old version of bsdtar and libarchive.

11 years agoUpgrade libarchive and bsdtar to 1.3.1.
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.

11 years agoAdd comment saying this is used by both libarchive and bsdtar.
Peter Avalos [Mon, 18 Sep 2006 01:29:38 +0000 (01:29 +0000)]
Add comment saying this is used by both libarchive and bsdtar.

11 years agoAdd our READMEs to the import.
Peter Avalos [Mon, 18 Sep 2006 01:22:12 +0000 (01:22 +0000)]
Add our READMEs to the import.

11 years agoMerge from vendor branch LIBARCHIVE:
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

11 years agoImport 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

11 years agoMove an assertion in the bridge code so it only gets hit if the bridge
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.

11 years agoMake some adjustments to low level madvise/mcontrol/mmap support code to
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.

11 years agoMake some adjustments to low level madvise/mcontrol/mmap support code to
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.

11 years agonullfs_subr doesn't exist anymore.
Joerg Sonnenberger [Sun, 17 Sep 2006 15:37:48 +0000 (15:37 +0000)]
nullfs_subr doesn't exist anymore.

11 years agoCommit a comprehensive file describing how to do incremental backups along
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.

11 years agoSync with FreeBSD.
Peter Avalos [Sat, 16 Sep 2006 19:18:06 +0000 (19:18 +0000)]
Sync with FreeBSD.

Submitted By:  Trevor Kendall <trevorjkendall@gmail.com>

11 years agoFix ng_mppc module building.
Sascha Wildner [Sat, 16 Sep 2006 18:39:13 +0000 (18:39 +0000)]
Fix ng_mppc module building.

11 years agoWARNS6 cleanup
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>

11 years agoAdd a README file with some helpful porting hints. I'd rather do this in
Matthew Dillon [Sat, 16 Sep 2006 18:24:37 +0000 (18:24 +0000)]
Add a README file with some helpful porting hints.  I'd rather do this in
the master repository then maintain it out of band.

11 years agoBump the version number reported by cpdup from 1.06 to 1.07
Matthew Dillon [Sat, 16 Sep 2006 18:18:05 +0000 (18:18 +0000)]
Bump the version number reported by cpdup from 1.06 to 1.07

11 years agoFix a bug when '-f -H' is used and the target already exists. cpdup was
Matthew Dillon [Sat, 16 Sep 2006 16:47:29 +0000 (16:47 +0000)]
Fix a bug when '-f -H' is used and the target already exists.  cpdup was
copying the file in that case instead of hardlinking.

11 years agonfe_jref() wrongly uses atomic_subtract_int() instead of atomic_add_int(),
Sepherosa Ziehau [Sat, 16 Sep 2006 06:37:11 +0000 (06:37 +0000)]
nfe_jref() wrongly uses atomic_subtract_int() instead of atomic_add_int(),
because of I "copy & paste"ed it from nfe_jfree()

11 years agoFix a bug in sendmsg() and two compatibility versions of sendmsg().
Matthew Dillon [Sat, 16 Sep 2006 03:37:15 +0000 (03:37 +0000)]
Fix a bug in sendmsg() and two compatibility versions of sendmsg().
iovec_free() should not be called when iovec_copyin() fails.

Reported-by: Ilja van Sprundel
Found-using: A trivial system call fuzzer

11 years agoFix a bug in sysctl()'s handling of user data. You can't wire 0 bytes
Matthew Dillon [Sat, 16 Sep 2006 03:32:44 +0000 (03:32 +0000)]
Fix a bug in sysctl()'s handling of user data.  You can't wire 0 bytes
without blowing up vm_map_wire().

Reported-by: Ilja van Sprundel
Found-using: A trivial system call fuzzer