dragonfly.git
20 years agoMerge from FreeBSD:
Jeffrey Hsu [Sat, 27 Dec 2003 05:13:32 +0000 (05:13 +0000)]
Merge from FreeBSD:

alc         2003/12/26 13:54:45 PST

  FreeBSD src repository

  Modified files:
    sys/vm               vm_map.c
  Log:
  Minor correction to revision 1.258: Use the proc pointer that is passed to
  vm_map_growstack() in the RLIMIT_VMEM check rather than curthread.

  Revision  Changes    Path
  1.324     +1 -2      src/sys/vm/vm_map.c

20 years ago* Add the pst(4) driver to the GENERIC kernel build.
David Rhodus [Sat, 27 Dec 2003 03:17:21 +0000 (03:17 +0000)]
* Add the pst(4) driver to the GENERIC kernel build.
Should be helpful if someone is trying to install
DragonFly on a Promise controller card.

20 years ago* Cleanup compiler warnings and other style cleaning while here.
David Rhodus [Sat, 27 Dec 2003 03:12:56 +0000 (03:12 +0000)]
* Cleanup compiler warnings and other style cleaning while here.

20 years ago* Add the POSIX.1-2001 header file <cpio.h>
David Rhodus [Sat, 27 Dec 2003 02:17:01 +0000 (02:17 +0000)]
* Add the POSIX.1-2001 header file <cpio.h>
The cpio archive values.

20 years agoPatch to make the P4S8X run in ATA100 mode. This is a compromise, since
Matthew Dillon [Thu, 25 Dec 2003 07:16:35 +0000 (07:16 +0000)]
Patch to make the P4S8X run in ATA100 mode.  This is a compromise, since
both the mainboard and the hard drive support ATA133 mode, but there doesn't
seem to be much difference between ATA100 and ATA133 even on FreeBSD-current.

Submitted-by: YONETANI Tomokazu <qhwt@les.ath.cx>
20 years ago* Sync Changes over from FreeBSD
David Rhodus [Tue, 23 Dec 2003 20:07:43 +0000 (20:07 +0000)]
* Sync Changes over from FreeBSD

20 years agoMerge from FreeBSD rev 1.43 (original commit made by tjr@FreeBSD.org).
Jeffrey Hsu [Mon, 22 Dec 2003 17:41:08 +0000 (17:41 +0000)]
Merge from FreeBSD rev 1.43 (original commit made by tjr@FreeBSD.org).
Widen local variable "oldsize" to 64 bits to match the 64-bit "n_size"
field in struct smbnode.

20 years ago* Update Sendmail to version 8.12.10
David Rhodus [Mon, 22 Dec 2003 04:04:24 +0000 (04:04 +0000)]
* Update Sendmail to version 8.12.10

20 years ago * Fix typo: becuase -> because
Eirik Nygaard [Sun, 21 Dec 2003 12:34:08 +0000 (12:34 +0000)]
 * Fix typo: becuase -> because

20 years agoMerge from FreeBSD:
Jeffrey Hsu [Sun, 21 Dec 2003 06:31:59 +0000 (06:31 +0000)]
Merge from FreeBSD:

revision 1.177
date: 2003/12/21 06:03:40;  author: alc;  state: Exp;  lines: +1 -1
 - Correct an error in mincore(2) that has existed since its introduction:
   mincore(2) should check that the page is valid, not just allocated.
   Otherwise, it can return a false positive for a page that is not yet
   resident because it is being read from disk.

20 years agoMinor syntax cleanup.
Matthew Dillon [Sat, 20 Dec 2003 05:58:30 +0000 (05:58 +0000)]
Minor syntax cleanup.

20 years agoFix a syscall separation bug in recvfrom() which sometimes dereferenced
Matthew Dillon [Sat, 20 Dec 2003 05:53:59 +0000 (05:53 +0000)]
Fix a syscall separation bug in recvfrom() which sometimes dereferenced
a NULL pointer.

20 years agoUSER_LDT is now required by a number of packages as well as our upcoming
Matthew Dillon [Sat, 20 Dec 2003 05:52:27 +0000 (05:52 +0000)]
USER_LDT is now required by a number of packages as well as our upcoming
user threads support.  Make it non-optional.

USER_LDT breaks SysV emulated sysarch(... SVR4_SYSARCH_DSCR) support.
For now just #if 0 out the support (which is what FreeBSD-5.x does).

Submitted-by: Craig Dooley <craig@xlnx-x.net>
20 years agoFix a memory leak that occurs when an attempt is made to checkpoint
Matthew Dillon [Sat, 20 Dec 2003 04:07:03 +0000 (04:07 +0000)]
Fix a memory leak that occurs when an attempt is made to checkpoint
an suid/sgid program.

Reported-by: Ted Unangst <tedu@zeitbombe.org>
20 years ago* Try and match README guideline better.
David Rhodus [Thu, 18 Dec 2003 19:46:09 +0000 (19:46 +0000)]
* Try and match README guideline better.

20 years ago* GBK locale directories
David Rhodus [Thu, 18 Dec 2003 19:27:05 +0000 (19:27 +0000)]
* GBK locale directories

Obtained from: FreeBSD

20 years ago* Add GB18030 directories.
David Rhodus [Thu, 18 Dec 2003 19:25:14 +0000 (19:25 +0000)]
* Add GB18030 directories.

20 years ago* Print out a warning if /dev/null doesn't exist.
David Rhodus [Thu, 18 Dec 2003 04:12:38 +0000 (04:12 +0000)]
* Print out a warning if /dev/null doesn't exist.

Commented on by: Matt Dillon

20 years agoSupport multicast on the Marvell Yukon Chipset. The GMAC on the Yukon
Matthew Dillon [Wed, 17 Dec 2003 22:18:24 +0000 (22:18 +0000)]
Support multicast on the Marvell Yukon Chipset.  The GMAC on the Yukon
uses a different hash algorithm then the XMAC on the Genesis.  GMAC
algorithm snarfed from Linux.

Submitted-by: Jung-uk Kim <jkim@niksun.com>
Patch-Written-by: Keith Mitchell <kmitch@guru.org>
20 years agoImprove device identification strings.
Hiten Pandya [Tue, 16 Dec 2003 18:32:58 +0000 (18:32 +0000)]
Improve device identification strings.

Obtained from: FreeBSD

20 years ago * Let mergemaster look for make.conf in the correct path.
Eirik Nygaard [Tue, 16 Dec 2003 15:03:51 +0000 (15:03 +0000)]
 * Let mergemaster look for make.conf in the correct path.

Submitted-by: Erik Paulsen Skaalerud <erik@pentadon.com>
20 years agoMake savecore return RC_CONFIGURED unconditionally.
Matthew Dillon [Sun, 14 Dec 2003 19:13:15 +0000 (19:13 +0000)]
Make savecore return RC_CONFIGURED unconditionally.

Make the swap code return RC_CONFIGURED and also add a sysctl check
to determine if the kernel supports swapping.

Submitted-by: Peter Kadau <peter.kadau@tuebingen.mpg.de>
20 years agouse the proper $RC_ variable when returning irrelevancy.
Matthew Dillon [Sat, 13 Dec 2003 03:02:20 +0000 (03:02 +0000)]
use the proper $RC_ variable when returning irrelevancy.

20 years agoAdd an 'enable' and 'disable' target to rcrun, and add softlink shortcuts
Matthew Dillon [Sat, 13 Dec 2003 02:49:09 +0000 (02:49 +0000)]
Add an 'enable' and 'disable' target to rcrun, and add softlink shortcuts
for 'rcenable' and 'rcdisable'.  These functions will modify rcrun-generated
entries in /etc/rc.conf.  They will not delete any manual entries in rc.conf
even if the manual entry is being overriden.

Add additional states to the varsym vars and make rc.subr and rcrun aware
of them.  The states are now:

    running failed disabled irrelevant configured stopped

20 years agoMinor grammatical fix.
Matthew Dillon [Fri, 12 Dec 2003 19:50:07 +0000 (19:50 +0000)]
Minor grammatical fix.

Submitted-by: Dave Leimbach <leimySPAM2k@mac.com>
20 years agoAdd another special return code, 3, which means 'subsystem is not
Matthew Dillon [Fri, 12 Dec 2003 19:49:04 +0000 (19:49 +0000)]
Add another special return code, 3, which means 'subsystem is not
relevant' and make dhclient use it when no dhcp interfaces are specified.
At the moment the varsym is set to 'running' until the rcrun script can
be cleaned up to support another state.

20 years ago * Indentation cleanup
Eirik Nygaard [Fri, 12 Dec 2003 16:03:48 +0000 (16:03 +0000)]
 * Indentation cleanup

20 years agoBe smarter about services which are in a disabled state. If the
Matthew Dillon [Fri, 12 Dec 2003 00:14:28 +0000 (00:14 +0000)]
Be smarter about services which are in a disabled state.  If the
service is disabled, first try to run the RCNG script.  If it is still
disabled report the fact (the user needs to use rcforce to run a disabled
service).

20 years agoMake a distinction between disabled entries and running entries. Do not
Matthew Dillon [Fri, 12 Dec 2003 00:00:10 +0000 (00:00 +0000)]
Make a distinction between disabled entries and running entries.  Do not
start disabled services.  Still TODO: add 'enable' and 'disable' commands
which modify /etc/rc.conf!

20 years agoOops, forgot the rc.subr update
Matthew Dillon [Thu, 11 Dec 2003 23:56:42 +0000 (23:56 +0000)]
Oops, forgot the rc.subr update

20 years agoAdd /sbin/rcrun and symlinks rcstart, rcstop, rcrestart, rcvar, rclist,
Matthew Dillon [Thu, 11 Dec 2003 23:56:05 +0000 (23:56 +0000)]
Add /sbin/rcrun and symlinks rcstart, rcstop, rcrestart, rcvar, rclist,
rcforce, and rcfast.

20 years agoAdjust rc.subr to generate system-wide varsyms tracking RCNG operations.
Matthew Dillon [Thu, 11 Dec 2003 23:28:41 +0000 (23:28 +0000)]
Adjust rc.subr to generate system-wide varsyms tracking RCNG operations.
This will allow us to support run-time dependancy management.

Have dummy rc files (that exist just to specify dependancies) call a dummy
command routine which will set the appropriate varsym variables representing
the keywords they provide.

20 years agoAdd a -p option to rcorder which generates the PROVIDE keywords for the
Matthew Dillon [Thu, 11 Dec 2003 22:08:31 +0000 (22:08 +0000)]
Add a -p option to rcorder which generates the PROVIDE keywords for the
specified files.

Change the -o option to rcorder to take a keyword rather then a filename.
It then generates an ordered set of RC files to run to achieve activation
of the keyword.

20 years agoAdd the -o file option to rcorder. This will cause rcorder to generate
Matthew Dillon [Thu, 11 Dec 2003 20:50:21 +0000 (20:50 +0000)]
Add the -o file option to rcorder.  This will cause rcorder to generate
the dependancy list required to execute a particular file.

20 years agoDo not print out error messages in quiet mode to make shell scriptiong
Matthew Dillon [Thu, 11 Dec 2003 20:33:49 +0000 (20:33 +0000)]
Do not print out error messages in quiet mode to make shell scriptiong
with varsym easier.

20 years agoPull the sf_buf routines and structures out into its own files in
Jeffrey Hsu [Wed, 10 Dec 2003 23:48:07 +0000 (23:48 +0000)]
Pull the sf_buf routines and structures out into its own files in
anticipation of wider future use.

Requested and reviewed by: dillon

20 years agoMore cleanups to make ports work better.
Matthew Dillon [Wed, 10 Dec 2003 22:41:20 +0000 (22:41 +0000)]
More cleanups to make ports work better.

20 years agoAdd -fstack-protector support for the kernel.
Matthew Dillon [Wed, 10 Dec 2003 22:27:27 +0000 (22:27 +0000)]
Add -fstack-protector support for the kernel.

    http://www.trl.ibm.com/projects/security/ssp/

Submitted-by: Ryan Dooley <dooleyr@missouri.edu>
20 years agoThis patch improves the performance of sendfile(2). It adds a hash
Jeffrey Hsu [Wed, 10 Dec 2003 22:26:19 +0000 (22:26 +0000)]
This patch improves the performance of sendfile(2).  It adds a hash
table of active sf_buf mappings to ensure there is exactly one
(ref-counted) sf_buf for each vm_page.  This saves on the number
of sf_bufs used when sendfile(2) sends the same file over and over
again to multiple connections simultaneously.  It also does lazy
updates on the hw page table when a sf_buf ref count goes to zero,
placing them on a freelist instead, in effect, making sf_bufs a
cache of virtual-to-physical translations with LRU replacement on
the inactive sf_bufs.  Finally, it does a wakeup_one() instead of
a broadcast wakeup() when a free sf_buf becomes available.

This patch roughly corresponds to FreeBSD revs 1.219 and 1.220 of
sys/i386/i386/vm_machdep.c:

  revision 1.219
  date: 2003/11/17 18:22:24;  author: alc;  state: Exp;  lines: +48 -26
  Change the i386's sf_buf implementation so that it never allocates
  more than one sf_buf for one vm_page.  To accomplish this, we add
  a global hash table mapping vm_pages to sf_bufs and a reference
  count to each sf_buf.  (This is similar to the patches for RELENG_4
  at http://www.cs.princeton.edu/~yruan/debox/.)

  For the uninitiated, an sf_buf is nothing more than a kernel virtual
  address that is used for temporary virtual-to-physical mappings by
  sendfile(2) and zero-copy sockets.  As such, there is no reason for
  one vm_page to have several sf_bufs mapping it.  In fact, using more
  than one sf_buf for a single vm_page increases the likelihood that
  sendfile(2) blocks, hurting throughput.
  (See http://www.cs.princeton.edu/~yruan/debox/.)

  revision 1.220
  date: 2003/12/07 22:49:25;  author: alc;  state: Exp;  lines: +10 -9
  Don't remove the virtual-to-physical mapping when an sf_buf is freed.
  Instead, allow the mapping to persist, but add the sf_buf to a free list.
  If a later sendfile(2) or zero-copy send resends the same physical page,
  perhaps with the same or different contents, then the mapping overhead is
  avoided and the sf_buf is simply removed from the free list.

  In other words, the i386 sf_buf implementation now behaves as a cache of
  virtual-to-physical translations using an LRU replacement policy on
  inactive sf_bufs.  This is similar in concept to a part of
  http://www.cs.princeton.edu/~yruan/debox/ patch, but much simpler in
  implementation.  Note: none of this is required on alpha, amd64, or ia64.
  They now use their direct virtual-to-physical mapping to avoid any
  emphemeral mapping overheads in their sf_buf implementations.

Reviewed by: dillon

20 years agoAdd -fstack-protector and -fno-stack-protector support to GCC. Note
Matthew Dillon [Wed, 10 Dec 2003 22:25:08 +0000 (22:25 +0000)]
Add -fstack-protector and -fno-stack-protector support to GCC.  Note
that the default is set to no protection (what it was before).  See:

    http://www.trl.ibm.com/projects/security/ssp/

Submitted-by: Ryan Dooley <dooleyr@missouri.edu>
20 years agoAdd libc support for propolice. See:
Matthew Dillon [Wed, 10 Dec 2003 22:15:36 +0000 (22:15 +0000)]
Add libc support for propolice.  See:

    http://www.trl.ibm.com/projects/security/ssp/

Submitted-by: Ryan Dooley <dooleyr@missouri.edu>
20 years agoAdd strlcpy and strlcat to libkern
Matthew Dillon [Wed, 10 Dec 2003 00:29:26 +0000 (00:29 +0000)]
Add strlcpy and strlcat to libkern

20 years ago* Add a part of the AGP update that was missed.
David Rhodus [Tue, 9 Dec 2003 23:43:36 +0000 (23:43 +0000)]
* Add a part of the AGP update that was missed.
This also fixes the kernel compile.

20 years agoThis patch adds a bunch of stuff from FreeBSD5. It consistantly makes
Matthew Dillon [Tue, 9 Dec 2003 19:40:56 +0000 (19:40 +0000)]
This patch adds a bunch of stuff from FreeBSD5.  It consistantly makes
vendor specific drivers depend on agp, consistantly checks the gart size
!= 0, changes agp_generic_enable to the FreeBSD5 function, initializing
the device as v2 or v3 accordingly, syncs up agpio.h, and adds a couple
PCI Ids from FreeBSD5.

Submitted-by: Craig Dooley <cd5697@albany.edu>
20 years ago * Merge fixes from libc to libcr.
Eirik Nygaard [Mon, 8 Dec 2003 13:56:36 +0000 (13:56 +0000)]
 * Merge fixes from libc to libcr.

20 years agoPCI compat cleanup, part 1. This brings in the LNC and VX drivers
Matthew Dillon [Sun, 7 Dec 2003 19:23:40 +0000 (19:23 +0000)]
PCI compat cleanup, part 1.  This brings in the LNC and VX drivers
from FreeBSD-5.  They are not the newest versions, just new enough to
use newbus, not the PCI compat code.

Submitted-by: Joerg Sonnenberger <joerg@britannica.bec.de>
20 years agoConvert alpm to use the devmethod code.
Matthew Dillon [Sun, 7 Dec 2003 18:22:09 +0000 (18:22 +0000)]
Convert alpm to use the devmethod code.

Submitted-by: Joerg Sonnenberger <joerg@britannica.bec.de>
20 years agoThread testing code for libcaps.
Matthew Dillon [Sun, 7 Dec 2003 04:26:41 +0000 (04:26 +0000)]
Thread testing code for libcaps.

20 years agoMajor update to libcaps. Implement support for virtual cpus using
Matthew Dillon [Sun, 7 Dec 2003 04:21:54 +0000 (04:21 +0000)]
Major update to libcaps.  Implement support for virtual cpus using
rfork_thread() and implement IPIs, per-virtual-cpu globaldata areas,
and per-virtual-cpu LWKT scheduling.

20 years agoAdd additional functionality to the upcall support to allow us to wait for
Matthew Dillon [Sun, 7 Dec 2003 04:20:40 +0000 (04:20 +0000)]
Add additional functionality to the upcall support to allow us to wait for
an upcall instead of spin.

Also fix a bug in the trap code.  %gs faults have to be handled in nested
interrupts because %gs is not saved and restored.  It is also possible that
%fs may have to be handled the same way, but I am not sure yet.

20 years agoAdjust a comment.
Matthew Dillon [Sun, 7 Dec 2003 02:14:20 +0000 (02:14 +0000)]
Adjust a comment.

20 years agoModify the upcall code to access the critical count via the current thread
Matthew Dillon [Sun, 7 Dec 2003 01:17:53 +0000 (01:17 +0000)]
Modify the upcall code to access the critical count via the current thread
rather then embedding the critical count in the upcall structure.

20 years agoMinor cleanups to sysport. Use ms_msgsize in the sendsys() call.
Matthew Dillon [Sat, 6 Dec 2003 20:11:44 +0000 (20:11 +0000)]
Minor cleanups to sysport.  Use ms_msgsize in the sendsys() call.

Submitted-by: Galen Sampson <galen_sampson@yahoo.com>
20 years ago* Remove a few extra $FreeBSD$ tags
David Rhodus [Sat, 6 Dec 2003 03:11:36 +0000 (03:11 +0000)]
* Remove a few extra $FreeBSD$ tags
* Fix a few mis-spellings

20 years agoMajor libcaps work to support userland threading. Stage 1/2.
Matthew Dillon [Thu, 4 Dec 2003 22:06:22 +0000 (22:06 +0000)]
Major libcaps work to support userland threading.  Stage 1/2.
Hook the system's upcall mechanism into the globaldata structure
and hook up the LWKT thread switching primitives.  Integrate the
mp_lock code from DragonFly into libcaps to serve as a master lock
for userland threading as well (it turns out that the BGL support in
DragonFly could be trivially ported to the userland threading code).

Still todo: hook up critical section handling, deal with FP regs,
hook up rfork support for multiple virtual cpu's via the upcall mechanism,
and testing of same.

Work by: Galen Sampson <galen_sampson@yahoo.com> and
 Matthew Dillon <dillon@backplane.com>

20 years agoAugment the upcall system calls to support a priority mechanism rather then
Matthew Dillon [Thu, 4 Dec 2003 20:35:09 +0000 (20:35 +0000)]
Augment the upcall system calls to support a priority mechanism rather then
just a pending mechanism.  When dispatching or polling for an upcall the
data field is used to supply a priority which will be compared against
the userland crit_count.

20 years agoGeneral cleanups as part of the libcaps userland threading work.
Matthew Dillon [Thu, 4 Dec 2003 20:09:33 +0000 (20:09 +0000)]
General cleanups as part of the libcaps userland threading work.

20 years agoAs part of the libcaps threading work a number of routines in lwkt_thread.c
Matthew Dillon [Thu, 4 Dec 2003 00:12:40 +0000 (00:12 +0000)]
As part of the libcaps threading work a number of routines in lwkt_thread.c
are going to be separately implemented for userland.  #ifdef _KERNEL out
the routines.

Submitted-by: Galen Sampson <galen_sampson@yahoo.com>
20 years agoAdd chmod 1777 for /tmp and make other minor adjustments.
Matthew Dillon [Thu, 4 Dec 2003 00:01:14 +0000 (00:01 +0000)]
Add chmod 1777 for /tmp and make other minor adjustments.

Suggested-by: Peter Kadau <peter.kadau@tuebingen.mpg.de>
20 years agoAdd additional information on cvsup'ing various sources.
Matthew Dillon [Tue, 2 Dec 2003 20:19:39 +0000 (20:19 +0000)]
Add additional information on cvsup'ing various sources.

Suggested-by: David Rhodus <drhodus@catpa.com>
20 years ago* Might help if we built gbk.c and gb18030.c
David Rhodus [Tue, 2 Dec 2003 15:08:38 +0000 (15:08 +0000)]
* Might help if we built gbk.c and gb18030.c

20 years ago * Remove unused #includes.
Eirik Nygaard [Tue, 2 Dec 2003 14:56:28 +0000 (14:56 +0000)]
 * Remove unused #includes.

Obtained from: FreeBSD

20 years agoComment PFIL_HOOKS since it should not be needed in GENERIC.
Jeroen Ruigrok/asmodai [Tue, 2 Dec 2003 12:35:52 +0000 (12:35 +0000)]
Comment PFIL_HOOKS since it should not be needed in GENERIC.
Leave it in so that people know it is needed for packet filters.

20 years agoAdd the packet filtering files.
Jeroen Ruigrok/asmodai [Tue, 2 Dec 2003 09:18:17 +0000 (09:18 +0000)]
Add the packet filtering files.

20 years agoAdd PFIL_HOOKS functionality. This allows us to plug in many firewalling
Jeroen Ruigrok/asmodai [Tue, 2 Dec 2003 08:00:22 +0000 (08:00 +0000)]
Add PFIL_HOOKS functionality.  This allows us to plug in many firewalling
architectures by using/having generic hooks in the networking code.

20 years ago* Sync comment with code's reality.
David Rhodus [Mon, 1 Dec 2003 23:50:20 +0000 (23:50 +0000)]
* Sync comment with code's reality.

Obtained from: FreeBSD

20 years ago* Fix problem where initgroups would silently truncate groups with
David Rhodus [Mon, 1 Dec 2003 23:46:20 +0000 (23:46 +0000)]
*   Fix problem where initgroups would silently truncate groups with
  more than NGROUP elements without providing the opportunity to
setgroups to fail and correctly return error and set errno.

Obtained from: FreeBSD

20 years ago* Add GBK encoding support.
David Rhodus [Mon, 1 Dec 2003 23:38:23 +0000 (23:38 +0000)]
* Add GBK encoding support.

Obtained from: FreeBSD

20 years ago* Add support for gb18030 encoding.
David Rhodus [Mon, 1 Dec 2003 23:29:25 +0000 (23:29 +0000)]
* Add support for gb18030 encoding.

Obtained from: FreeBSD

20 years agoAfter testing the manual installation instructions on a real box make some
Matthew Dillon [Mon, 1 Dec 2003 23:19:16 +0000 (23:19 +0000)]
After testing the manual installation instructions on a real box make some
minor documentation changes and fix a bug (missing cpdup for /usr).

20 years ago* Allow a return of 0 from __sys_write() to exit the loop in libc_r's
David Rhodus [Mon, 1 Dec 2003 23:17:08 +0000 (23:17 +0000)]
* Allow a return of 0 from __sys_write() to exit the loop in libc_r's
        wrapped version of write().

Obtained from: FreeBSD

20 years ago* Document the fact that send(2) can return EPIPE (like when a
David Rhodus [Mon, 1 Dec 2003 23:02:22 +0000 (23:02 +0000)]
* Document the fact that send(2) can return EPIPE (like when a
socket is not connected).

Obtained from: FreeBSD

20 years ago* don't fclose() a bogus FILE *.
David Rhodus [Mon, 1 Dec 2003 22:58:44 +0000 (22:58 +0000)]
* don't fclose() a bogus FILE *.

Obtained from: FreeBSD

20 years ago* Attempt to save the last dregs of emacs users' sanity by saving the
David Rhodus [Mon, 1 Dec 2003 22:56:22 +0000 (22:56 +0000)]
* Attempt to save the last dregs of emacs users' sanity by saving the
   contents of the PR when an interrupt is received during the editor
   session.  This stops the use of ^G from deleting a filled PR from
   underneath the user.

Obtained from: The FreeBSD project

20 years agoAdd a README file, rc.conf, and example fstab. Disable a number of system
Matthew Dillon [Mon, 1 Dec 2003 21:14:03 +0000 (21:14 +0000)]
Add a README file, rc.conf, and example fstab.  Disable a number of system
gizmos in the rc.conf that don't make sense for a CD boot, like syslog
and cron.

20 years agoUse mkiso -R instead of -r in order to properly record file modes. In
Matthew Dillon [Mon, 1 Dec 2003 20:12:39 +0000 (20:12 +0000)]
Use mkiso -R instead of -r in order to properly record file modes.  In
particular, the file modes associated with devices.

20 years agoAdd nreleae back in. It's a dummy target designed only to ensure that
Matthew Dillon [Mon, 1 Dec 2003 19:32:56 +0000 (19:32 +0000)]
Add nreleae back in.  It's a dummy target designed only to ensure that
the proper obj dir infrastructure is created so the nrelease Makefile's
can use ${.OBJDIR}.

Adjust the nrelease Makefile's to perform port checks only when actually
building the release.

20 years agoTemporary disable the ports checks.. the Makefile has to be runnable from
Matthew Dillon [Mon, 1 Dec 2003 19:12:25 +0000 (19:12 +0000)]
Temporary disable the ports checks.. the Makefile has to be runnable from
buildworld in order to create the obj dir infrastructure only (not to actually
build a release).

20 years ago* buildworld doesn't need to look at nrelease.
David Rhodus [Mon, 1 Dec 2003 17:07:26 +0000 (17:07 +0000)]
* buildworld doesn't need to look at nrelease.
This was requiring things like mkisofs and cvsup to
complete a basic buildworld.

20 years agoFix a minor bug... install cvsup and mkisofs in the correct
Matthew Dillon [Mon, 1 Dec 2003 10:10:22 +0000 (10:10 +0000)]
Fix a minor bug... install cvsup and mkisofs in the correct
directory.

20 years agoIntroduce /usr/src/nrelease which begins to implement the new 'live CD'
Matthew Dillon [Mon, 1 Dec 2003 09:59:46 +0000 (09:59 +0000)]
Introduce /usr/src/nrelease which begins to implement the new 'live CD'
ISO builder idea.  This initial commit is capable of creating bootable
ISO images which contain a complete working distribution but will boot
into a login prompt (login as root) rather then sysinstall or a
sysinstall-like utility.  Development is ongoing.  Critical subdirectories
are remounted as MFS so most normal commands, including vi, should work just
fine.

20 years agoAdd forgotten newline in debug output.
Jeroen Ruigrok/asmodai [Mon, 1 Dec 2003 09:29:11 +0000 (09:29 +0000)]
Add forgotten newline in debug output.

Synchs with FreeBSD's 1.7.

20 years agoGet rid off FreeBSD mirrors and add our own three (in Germany, Ireland, and
Jeroen Ruigrok/asmodai [Mon, 1 Dec 2003 09:02:10 +0000 (09:02 +0000)]
Get rid off FreeBSD mirrors and add our own three (in Germany, Ireland, and
Japan).

20 years agoWhen attempting to open a file path do not treat a file that appears as a
Matthew Dillon [Mon, 1 Dec 2003 08:52:20 +0000 (08:52 +0000)]
When attempting to open a file path do not treat a file that appears as a
path element as a directory.  This can lockup the boot code.

20 years agoDo not require -i0 when -o is used.
Matthew Dillon [Mon, 1 Dec 2003 06:07:16 +0000 (06:07 +0000)]
Do not require -i0 when -o is used.

20 years agoAdd a missing PRELE() when the mfs_mount kernel process exits. Because
Matthew Dillon [Mon, 1 Dec 2003 04:38:26 +0000 (04:38 +0000)]
Add a missing PRELE() when the mfs_mount kernel process exits.  Because
DragonFly does not teardown zombie processes while p_lock is non-zero this
prevented such processes from being reaped and deadlocked the init process.

20 years agoDocumentat mount_mfs -C
Matthew Dillon [Mon, 1 Dec 2003 04:36:57 +0000 (04:36 +0000)]
Documentat mount_mfs -C

20 years agoAdd the -C option to mount_mfs. This option will automatically copy the
Matthew Dillon [Mon, 1 Dec 2003 04:35:39 +0000 (04:35 +0000)]
Add the -C option to mount_mfs.  This option will automatically copy the
underlying filesystem into the MFS mount being created over it.  It does
this by loading the directory and file structure into memory, creating the
MFS mount, then storing the directory and file structure back into the MFS
mount.

This will be used when booting from read-only media to generate an 'easy'
read-write template.  For example:

    mount_mfs -s 16384 -C swap /var

Softlinks, devices, regular files, directories, and hardlinks are maintained.
Fifos and sockets are not copied.

20 years agoAdd cpdup to /bin (not /usr/bin), so we can start using it during boot
Matthew Dillon [Mon, 1 Dec 2003 02:20:14 +0000 (02:20 +0000)]
Add cpdup to /bin (not /usr/bin), so we can start using it during boot
to simplify things like diskless booting.

20 years agoAdd the MPIPE subsystem. This subsystem is used for 'pipelining' fixed-size
Matthew Dillon [Sun, 30 Nov 2003 20:14:18 +0000 (20:14 +0000)]
Add the MPIPE subsystem.  This subsystem is used for 'pipelining' fixed-size
allocations.  Pipelining is used to avoid lack-of-resource deadlocks by
still allowing resource allocations to 'block' by guarenteeing that an
already in-progress operation will soon free memory that will be immediately
used to satisfy the blocked resource.

Adjust the ATAold code to use the new mechanism and remove the code that
tried to back-off into PIO mode when resources were lacking.

20 years ago* s/FreeBSD/DragonFly at the boot2 prompt.
David Rhodus [Sun, 30 Nov 2003 17:04:35 +0000 (17:04 +0000)]
* s/FreeBSD/DragonFly at the boot2 prompt.

20 years ago* Prevent leakage of wired pages by setting start_entry
David Rhodus [Sat, 29 Nov 2003 18:56:22 +0000 (18:56 +0000)]
* Prevent leakage of wired pages by setting start_entry
during vm_map_wire().

20 years ago* Add quirk for LEXAR 256MB JUMPDRIVE
David Rhodus [Sat, 29 Nov 2003 15:23:33 +0000 (15:23 +0000)]
* Add quirk for LEXAR 256MB JUMPDRIVE

20 years agoFix bug in last commit (missing ..)
Matthew Dillon [Fri, 28 Nov 2003 19:32:41 +0000 (19:32 +0000)]
Fix bug in last commit (missing ..)

Submitted-by: YONETANI Tomokazu <qhwt@myrealbox.com>
20 years agoFix a DOS in rfork(). Disallow kernel-only flags.
Matthew Dillon [Thu, 27 Nov 2003 19:57:37 +0000 (19:57 +0000)]
Fix a DOS in rfork().  Disallow kernel-only flags.

Taken-from: FreeBSD-4.x kern_fork.c 1.72.2.16 and unistd.h 1.22.2.3

20 years agoCleanup POSIX real-time so the kernel compiles without the P1003_1B
Matthew Dillon [Thu, 27 Nov 2003 19:11:17 +0000 (19:11 +0000)]
Cleanup POSIX real-time so the kernel compiles without the P1003_1B
option.

Submitted-by: Joerg Sonnenberger <joerg@britannica.bec.de>
20 years agoAdd support for the ICH 4 mobile chipset.
Jeroen Ruigrok/asmodai [Wed, 26 Nov 2003 14:24:46 +0000 (14:24 +0000)]
Add support for the ICH 4 mobile chipset.

20 years agoTemporary hack out release.9, which creates the floppies.
Jeroen Ruigrok/asmodai [Wed, 26 Nov 2003 07:49:57 +0000 (07:49 +0000)]
Temporary hack out release.9, which creates the floppies.

20 years agoGet rid off the POSIX real-time extensions as well as the System V IPC and
Jeroen Ruigrok/asmodai [Tue, 25 Nov 2003 18:04:48 +0000 (18:04 +0000)]
Get rid off the POSIX real-time extensions as well as the System V IPC and
slip support.

20 years ago#include cleanups for lwkt_msgport.c and lwkt_thread.c... the committed
Matthew Dillon [Mon, 24 Nov 2003 23:56:07 +0000 (23:56 +0000)]
#include cleanups for lwkt_msgport.c and lwkt_thread.c... the committed
library name is libcaps, not liblwkt.