games.git
18 years agoMerge from vendor branch GCC:
Simon Schubert [Sun, 11 Sep 2005 12:56:08 +0000 (12:56 +0000)]
Merge from vendor branch GCC:
Import stripped gcc-4.0.1 sources.

18 years agoImport stripped gcc-4.0.1 sources.
Simon Schubert [Sun, 11 Sep 2005 12:56:08 +0000 (12:56 +0000)]
Import stripped gcc-4.0.1 sources.

18 years agoRemove VAX and PDP-11 support.
Sascha Wildner [Sun, 11 Sep 2005 11:35:38 +0000 (11:35 +0000)]
Remove VAX and PDP-11 support.

18 years agoRemove Tahoe support.
Sascha Wildner [Sun, 11 Sep 2005 11:34:53 +0000 (11:34 +0000)]
Remove Tahoe support.

18 years agoRemove custom 'load' and 'unload' targets.
Sascha Wildner [Sun, 11 Sep 2005 10:52:56 +0000 (10:52 +0000)]
Remove custom 'load' and 'unload' targets.

18 years agoRemove VAX and Tahoe support.
Sascha Wildner [Sat, 10 Sep 2005 21:03:27 +0000 (21:03 +0000)]
Remove VAX and Tahoe support.

18 years agoRemove Tahoe support.
Sascha Wildner [Sat, 10 Sep 2005 21:01:20 +0000 (21:01 +0000)]
Remove Tahoe support.

18 years agoFix wrong MLINKS. isnan(3) has a man page of its own.
Sascha Wildner [Sat, 10 Sep 2005 20:17:27 +0000 (20:17 +0000)]
Fix wrong MLINKS. isnan(3) has a man page of its own.

Spotted by: corecode

18 years agoAdd stale exp10(3) and exp10f(3) man pages & cvsbug(8) to make upgrade.
Sascha Wildner [Sat, 10 Sep 2005 12:10:31 +0000 (12:10 +0000)]
Add stale exp10(3) and exp10f(3) man pages & cvsbug(8) to make upgrade.

18 years agoGet rid of the Makefile.
Jeroen Ruigrok/asmodai [Sat, 10 Sep 2005 11:58:32 +0000 (11:58 +0000)]
Get rid of the Makefile.

18 years agoUnhook cvsbug from the build.
Jeroen Ruigrok/asmodai [Sat, 10 Sep 2005 11:55:42 +0000 (11:55 +0000)]
Unhook cvsbug from the build.
Not really useful for the users and developers know how to report this stuff.

18 years agotypo fixing
Sepherosa Ziehau [Sat, 10 Sep 2005 11:51:36 +0000 (11:51 +0000)]
typo fixing

18 years agoAdd missing MLINK exp.3 -> log1pf.3 (the rest is reformatting).
Sascha Wildner [Sat, 10 Sep 2005 11:36:11 +0000 (11:36 +0000)]
Add missing MLINK exp.3 -> log1pf.3 (the rest is reformatting).

18 years agoRemove more scripts whose only purpose was to kldload modules.
Sascha Wildner [Sat, 10 Sep 2005 10:41:41 +0000 (10:41 +0000)]
Remove more scripts whose only purpose was to kldload modules.

18 years agoRemove minigzip(1) and joy(8) via 'make upgrade'.
Sascha Wildner [Sat, 10 Sep 2005 10:14:10 +0000 (10:14 +0000)]
Remove minigzip(1) and joy(8) via 'make upgrade'.

18 years agoRemove joy(8). Its sole purpose was to kldload joy.
Sascha Wildner [Sat, 10 Sep 2005 10:08:42 +0000 (10:08 +0000)]
Remove joy(8). Its sole purpose was to kldload joy.

18 years agoAdd obsolete time zone information files to upgrade target.
Sascha Wildner [Sat, 10 Sep 2005 08:38:47 +0000 (08:38 +0000)]
Add obsolete time zone information files to upgrade target.

18 years agoFix isa_wrongintr. The APIC vector was being directly assigned to a C
Matthew Dillon [Sat, 10 Sep 2005 06:48:08 +0000 (06:48 +0000)]
Fix isa_wrongintr.  The APIC vector was being directly assigned to a C
function, resulting in register corruption and other nasties.  Generate
a set of assembly functions to handle wrong-interrupt assignments.  For
now we just EOI the apic and iret.

This bug could cause an SMP box to crash on boot if a spurious IRQ #0
interrupt occurs while it is testing for 8254 interrupt delivery.

18 years agoSyntax cleanup, add a code comment, add a newline in a bootverbose
Matthew Dillon [Sat, 10 Sep 2005 06:46:05 +0000 (06:46 +0000)]
Syntax cleanup, add a code comment, add a newline in a bootverbose
message.

18 years agouse ether_crc32_be()
Sepherosa Ziehau [Fri, 9 Sep 2005 14:20:48 +0000 (14:20 +0000)]
use ether_crc32_be()

Reviewed-by: joerg
18 years agoProblem:
Sepherosa Ziehau [Fri, 9 Sep 2005 14:15:06 +0000 (14:15 +0000)]
Problem:
"... I found that it will not send any ethernet frame where the size % 64 == 0
 For instance all of the following will timeout
  ping -s 22 <host>
  ping -s 86 <host>
  ping -s 150 <host>
 etc ..."

Fix:
Use USBD_FORCE_SHORT_XFER flag when setting up transmit transfers.

Obtained-from: FreeBSD dev/usb/if_axe.c rev1.22
Reviewed-by: joerg
# The problem and fix was originally submitted to FreeBSD by
# Andew Thompson <andy at fud.org.nz>

18 years agoAdd pdfmark to the build.
Jeroen Ruigrok/asmodai [Fri, 9 Sep 2005 14:12:11 +0000 (14:12 +0000)]
Add pdfmark to the build.

18 years agoUpdate to groff 1.19.2.
Jeroen Ruigrok/asmodai [Fri, 9 Sep 2005 14:11:04 +0000 (14:11 +0000)]
Update to groff 1.19.2.

18 years agoUpdate to groff 1.19.2.
Jeroen Ruigrok/asmodai [Fri, 9 Sep 2005 14:10:38 +0000 (14:10 +0000)]
Update to groff 1.19.2.

With the following changes:

pic: The by argument in a for loop can now be negative if it is additive. For
     the multiplicative case, it must be greater than zero.

eqn: document the keywords: undef NAME, copy "FILE", space n.
eqn: document the macros: Alpha, ..., Omega, ldots, dollar.
eqn: document extended keywords: col n { ... }, lcol n { ... },
     rcol n { ... }, ccol n { ... }, pile n { ... }, lpile n { ... },
     rpile n { ... }, cpile n { ... }

grohtml: This device driver has been raised to beta stage; its set of tags
         should be stable now.
grohtml: New command line option s to set the base point size.
grohtml: New command line option S to set the split level while generating
         multiple files.

grotty: Experimental support for zero-width and double-width characters.

pdfroff: A new wrapper script contributed by Keith Marshall to easily create
         PDF documents with groff.

And some smaller changes.

18 years agoMerge from vendor branch GROFF:
Jeroen Ruigrok/asmodai [Fri, 9 Sep 2005 14:10:41 +0000 (14:10 +0000)]
Merge from vendor branch GROFF:
Update to groff 1.19.2.

With the following changes:

pic: The by argument in a for loop can now be negative if it is additive. For
     the multiplicative case, it must be greater than zero.

eqn: document the keywords: undef NAME, copy "FILE", space n.
eqn: document the macros: Alpha, ..., Omega, ldots, dollar.
eqn: document extended keywords: col n { ... }, lcol n { ... },
     rcol n { ... }, ccol n { ... }, pile n { ... }, lpile n { ... },
     rpile n { ... }, cpile n { ... }

grohtml: This device driver has been raised to beta stage; its set of tags
         should be stable now.
grohtml: New command line option s to set the base point size.
grohtml: New command line option S to set the split level while generating
         multiple files.

grotty: Experimental support for zero-width and double-width characters.

pdfroff: A new wrapper script contributed by Keith Marshall to easily create
         PDF documents with groff.

And some smaller changes.

18 years agoUpdate to groff 1.19.2.
Jeroen Ruigrok/asmodai [Fri, 9 Sep 2005 14:10:41 +0000 (14:10 +0000)]
Update to groff 1.19.2.

With the following changes:

pic: The by argument in a for loop can now be negative if it is additive. For
     the multiplicative case, it must be greater than zero.

eqn: document the keywords: undef NAME, copy "FILE", space n.
eqn: document the macros: Alpha, ..., Omega, ldots, dollar.
eqn: document extended keywords: col n { ... }, lcol n { ... },
     rcol n { ... }, ccol n { ... }, pile n { ... }, lpile n { ... },
     rpile n { ... }, cpile n { ... }

grohtml: This device driver has been raised to beta stage; its set of tags
         should be stable now.
grohtml: New command line option s to set the base point size.
grohtml: New command line option S to set the split level while generating
         multiple files.

grotty: Experimental support for zero-width and double-width characters.

pdfroff: A new wrapper script contributed by Keith Marshall to easily create
         PDF documents with groff.

And some smaller changes.

18 years agoIn axe_stop(), move axe_reset() after usbd_close_pipe().
Sepherosa Ziehau [Fri, 9 Sep 2005 13:59:27 +0000 (13:59 +0000)]
In axe_stop(), move axe_reset() after usbd_close_pipe().

usbd_set_config_no() will free `ifaces', which contains header of `pipe's.
So the `pipe' removal operation in usbd_close_pipe() will be quite dangerous
if usbd_set_config_no() has been called[here via axe_reset()]

Obtained-from: FreeBSD dev/usb/if_axe.c rev1.16
Reviewed-by: joerg
18 years agonew device:
Sepherosa Ziehau [Fri, 9 Sep 2005 13:32:45 +0000 (13:32 +0000)]
new device:
- Buffalo(MELCO) USB-Key Lan Adaptor(LUA-U20-KTX)
- System TALKS Inc. SGC-X2UL
- Sitecom's LN-029 USB 2.0 Ethernet adapter
- ethernet port in the JVC MP-PRX1 port replicator

Obtained-from: FreeBSD
Reviewed-by: joerg
18 years agoGet rid of xditview, since by default we do not have X installed, it makes
Jeroen Ruigrok/asmodai [Fri, 9 Sep 2005 12:30:47 +0000 (12:30 +0000)]
Get rid of xditview, since by default we do not have X installed, it makes
no sense having this in base.

Discussed with: swildner

18 years agoReally sort alphabetically.
Sascha Wildner [Thu, 8 Sep 2005 22:16:01 +0000 (22:16 +0000)]
Really sort alphabetically.

18 years agoAdd axe(4) driver.
Sascha Wildner [Thu, 8 Sep 2005 22:09:01 +0000 (22:09 +0000)]
Add axe(4) driver.

18 years ago[forced commit to correct commit msg]
Sascha Wildner [Thu, 8 Sep 2005 22:02:53 +0000 (22:02 +0000)]
[forced commit to correct commit msg]

Add manpage for the axe(4) driver.

Taken from: FreeBSD

18 years agoAdd manpage for the axe(4) driver.
Sascha Wildner [Thu, 8 Sep 2005 21:57:02 +0000 (21:57 +0000)]
Add manpage for the axe(4) driver.

18 years agoAdd /usr/pkg/info to info search path for pkgsrc users.
Joerg Sonnenberger [Thu, 8 Sep 2005 13:56:12 +0000 (13:56 +0000)]
Add /usr/pkg/info to info search path for pkgsrc users.

18 years agomake confuses the text file `moduli' with a binary which needs
Simon Schubert [Thu, 8 Sep 2005 13:14:30 +0000 (13:14 +0000)]
make confuses the text file `moduli' with a binary which needs
to be created from `moduli.c'.  Override this implicit rule by an
explicit do-nothing.

Suggested-by: yonetani
18 years agoAdd CVS Id to the config files so that mergemaster won't prompt to
Simon Schubert [Thu, 8 Sep 2005 13:02:20 +0000 (13:02 +0000)]
Add CVS Id to the config files so that mergemaster won't prompt to
merge for them every time, even if they didn't change.

18 years agoFix for the error
Jeroen Ruigrok/asmodai [Thu, 8 Sep 2005 11:28:39 +0000 (11:28 +0000)]
Fix for the error
bdf.ms:270: fatal error: input stack limit exceeded (probable
infinite loop)
that appears when building the xorg-docs package.
Problem reported to current-users by HIRATSUKA Kouichirou.
Fix provided by groff maintainer, Werner Lemberg.
Taken from: NetBSD

18 years agoRemove these files, we augment with mdoc.local what groff delivers us
Jeroen Ruigrok/asmodai [Thu, 8 Sep 2005 11:07:31 +0000 (11:07 +0000)]
Remove these files, we augment with mdoc.local what groff delivers us
in the stock distribution.

18 years agoCulminate all our local changes into one file:
Jeroen Ruigrok/asmodai [Thu, 8 Sep 2005 11:06:07 +0000 (11:06 +0000)]
Culminate all our local changes into one file:

Add macro identifier .Dx for DragonFly.
Add libkcore, libkinfo.
Standards names not in Groff (taken from NetBSD).
Use doc-default-operating-system instead of doc-operating-system.
Add all DragonFly's releases.
Add missing FreeBSD releases.
Add missing NetBSD releases.
Expand locale support with FR.

18 years agoUse groff 1.19.1 supplied file.
Jeroen Ruigrok/asmodai [Thu, 8 Sep 2005 11:02:26 +0000 (11:02 +0000)]
Use groff 1.19.1 supplied file.

18 years agoAdd patch to add Dx macro definition to doc-syms.
Jeroen Ruigrok/asmodai [Thu, 8 Sep 2005 10:58:16 +0000 (10:58 +0000)]
Add patch to add Dx macro definition to doc-syms.

18 years ago- set dc_softc.{dc_type, dc_flags, dc_pmode} for ADM9511, ADM9513
Sepherosa Ziehau [Thu, 8 Sep 2005 10:26:20 +0000 (10:26 +0000)]
- set dc_softc.{dc_type, dc_flags, dc_pmode} for ADM9511, ADM9513
- set dc_softc.dc_info in dc_probe(), instead of recalculating it
  in dc_attach().  move related comment to the new location.
- constify dc_devs[], dc_softc.dc_info and related stack variables

18 years agoSynchronize with FreeBSD.
Sascha Wildner [Thu, 8 Sep 2005 07:06:12 +0000 (07:06 +0000)]
Synchronize with FreeBSD.

Submitted by: Sarunas Vancevicius

18 years agoRework and expand the algorithms in JSCAN, part 6/?.
Matthew Dillon [Wed, 7 Sep 2005 19:10:09 +0000 (19:10 +0000)]
Rework and expand the algorithms in JSCAN, part 6/?.

Preliminary support for UNDO (-u) on mirrors.  We now have the ability
to roll a mirror forwards or backwards by a specific number of raw journaling
records (-c), or to roll it backwards completely.  However, only basic
remove and write UNDOs currently work, UNDOs for other transaction types
and UNDO's that start mid-transaction are untested.

18 years agoSlightly reorganize the transaction data. Instead of placing the REDO data
Matthew Dillon [Wed, 7 Sep 2005 19:04:18 +0000 (19:04 +0000)]
Slightly reorganize the transaction data.  Instead of placing the REDO data
at the top level, place it under a REDO sub-transaction.  This way we can
treat UNDO and REDO scans the same.

18 years agoAdjust pointer in function definition.
Sascha Wildner [Wed, 7 Sep 2005 07:50:16 +0000 (07:50 +0000)]
Adjust pointer in function definition.

Noticed by: Sarunas Vancevicius

18 years agoRework and expand the algorithms in JSCAN, part 5/?.
Matthew Dillon [Wed, 7 Sep 2005 07:20:23 +0000 (07:20 +0000)]
Rework and expand the algorithms in JSCAN, part 5/?.

Revamp the scanning code, cleaning up the API considerably and allowing
forward or backwards reads relative to a supplied record, which makes
scanning a lot more intuitive.

Implement the -c option to specify the number of raw records to process.
This is primarily intended for running a mirror forwards or backwards by
a certain number of records.

Implement mid-transaction recovery.  Mid-transaction recovery is needed
when a batch operation has stopped at a raw record that is in the middle
of a meta-transaction (a meta-transaction can consist of many raw records).
Stoppage can occur for many reasons, such as the batch being run while
the system is still writing out the records related to a meta-transaction,
or due to journal restarts, unexpected program termination, or command-line
limited record counts with -c.

This feature has been tested a little with -m -c 1 to iterate a mirror
forwards in time one raw record at a time across a large WRITE transaction
that covers many raw records.  It is a pre-requisite for being able to
iterate mirrors forwards and backwards in time.

18 years agofix the support for AN985 chip, which does not set the RXSTATE to STOPPED,
Sepherosa Ziehau [Wed, 7 Sep 2005 03:04:58 +0000 (03:04 +0000)]
fix the support for AN985 chip, which does not set the RXSTATE to STOPPED,
but to WAIT.
Obtained-from: FreeBSD pci/if_dc.c rev1.79

18 years agoRework and expand the algorithms in JSCAN, part 4/?.
Matthew Dillon [Wed, 7 Sep 2005 02:34:37 +0000 (02:34 +0000)]
Rework and expand the algorithms in JSCAN, part 4/?.

* Fix a bug in the handling of PAD records.  PAD records are special cased
  records in that the transaction id field may not be valid.  This occurs
  because a PAD record must be able to fill up the alignment space, which
  is only 16 bytes.  The journal_rawrecend structure winds up overlapping the
  transid of the journal_rawrecbeg structure in such cases.  We must skip
  such records.

* Fix a bug in jfile->jf_pos tracking when doing forward scans.  Since we
  supporting being able to scan forwards or reverse from any point, we
  have to properly track the file seek offset for forward scans.

Tested with /usr/obj recorded (-r) and mirrored (-m) through a buildworld.
A diff -r after the buildworld completed showed a perfect copy!  The
buildworld with both forward and reverse (undo) journaling enabled
generated 24 50MB journal files (1.2 GB of journal data).

18 years agoDocument a special case for Journaling PAD records. PAD records have to
Matthew Dillon [Tue, 6 Sep 2005 23:55:04 +0000 (23:55 +0000)]
Document a special case for Journaling PAD records.   PAD records have to
be able to fill up any dead space which, due to 16 byte alignment, can
be as little as 16 bytes.  In this case the rawrecend overlaps the transid
field of the rawrecbeg.  Thus, JREC_MINRECSIZE is actually 16, not 32.

18 years agoRework and expand the algorithms in JSCAN, part 3/?.
Matthew Dillon [Tue, 6 Sep 2005 22:33:00 +0000 (22:33 +0000)]
Rework and expand the algorithms in JSCAN, part 3/?.

* Have the debug dump print out raw record transaction id's.
* Fix a number of bugs in the prefix set code (the files were being
  strtoul'd in base 10 rather then base 16).
* Make multiple commands on the command line work (e.g. -w and -m together).
* Fix a few jseek() bugs.
* Add '-f' which operates like tail -f and allows a batch operation on e.g.
  a prefix file set to poll for more data.

Still TODO: ACK protocol, raw output (-o/-O) protocol, temporary mode for
record files (-W), and many other things.

18 years ago* Generally change NOXXX to NO_XXX, similar to work done in FreeBSD.
Matthew Dillon [Tue, 6 Sep 2005 18:55:50 +0000 (18:55 +0000)]
* Generally change NOXXX to NO_XXX, similar to work done in FreeBSD.
* Revamp the NO_XXX documentation in make.conf

Submitted-by: "Carl A. Schmidt" <carl@carlschmidt.net>
18 years agoRework and expand the algorithms in JSCAN, part 2/?.
Matthew Dillon [Tue, 6 Sep 2005 18:43:52 +0000 (18:43 +0000)]
Rework and expand the algorithms in JSCAN, part 2/?.

* Implement session tracking so multiple output commands can be independantly
  tracked.  However, currently only one output command may be specified
  (e.g. -w or -m, not both, yet)
* The session code now updates transaction id files, giving us a general
  restart capability on the userland side.
* Prefix set record mode (-w) should now work, including journal restarts.
* Running a mirror (-m) on an active prefix set should now operate properly
  in batch mode.

Many things are still not working yet.

18 years agoadd missing {} after if()
Sepherosa Ziehau [Tue, 6 Sep 2005 13:23:36 +0000 (13:23 +0000)]
add missing {} after if()
Obtained-from: FreeBSD pci/if_dc.c rev1.91

18 years agoGet rid of the old groff.
Jeroen Ruigrok/asmodai [Tue, 6 Sep 2005 12:16:49 +0000 (12:16 +0000)]
Get rid of the old groff.

18 years agoGet rid of the old texinfo.
Jeroen Ruigrok/asmodai [Tue, 6 Sep 2005 11:55:59 +0000 (11:55 +0000)]
Get rid of the old texinfo.

18 years agoAdd some words about PAM.
Joerg Sonnenberger [Tue, 6 Sep 2005 10:56:05 +0000 (10:56 +0000)]
Add some words about PAM.

Reminder: corecode

18 years agoMerge from vendor branch OPENSSH:
Joerg Sonnenberger [Tue, 6 Sep 2005 10:51:17 +0000 (10:51 +0000)]
Merge from vendor branch OPENSSH:
Welcome OpenSSH 4.2.

18 years agoWelcome OpenSSH 4.2.
Joerg Sonnenberger [Tue, 6 Sep 2005 10:51:17 +0000 (10:51 +0000)]
Welcome OpenSSH 4.2.

18 years agoWelcome OpenSSH 4.2.
Joerg Sonnenberger [Tue, 6 Sep 2005 10:51:17 +0000 (10:51 +0000)]
Welcome OpenSSH 4.2.

18 years agomergemaster -> make upgrade
Sascha Wildner [Tue, 6 Sep 2005 10:11:53 +0000 (10:11 +0000)]
mergemaster -> make upgrade

18 years ago- use pci_{get, set}_powerstate() instead of reinventing the wheel in dc_acpi()
Sepherosa Ziehau [Tue, 6 Sep 2005 08:06:13 +0000 (08:06 +0000)]
- use pci_{get, set}_powerstate() instead of reinventing the wheel in dc_acpi()
- remove unused DC_PSTATE_D?

18 years agoRework and expand the algorithms in JSCAN, part 1/2. Implement a new
Matthew Dillon [Tue, 6 Sep 2005 06:42:44 +0000 (06:42 +0000)]
Rework and expand the algorithms in JSCAN, part 1/2.  Implement a new
infrastructure in the userland jscan program to create a framework for
supporting the following:

* Pipe-throughs (without storing data in a buffering file).
* File-based buffering
* Streamed replication of journaled data.
* Sequenced output files limited to a specific size (to match against
  backup media)
* Transaction id tracking to support journal restarts and resynchronization.
  This is needed to make off-site and networked backups reliable.
* Decoupled journal operations.  e.g. (once finished) we will be able to run
  a jscan in realtime to record journal data, and another one in batch to
  take that data and use it to maintain a mirror or to send it to another
  machine in a restartable and resynchronizable manner.
* Infrastructure to be able to scan a journal forwards or backwards by
  an arbitrary number of raw records and maintain a mirror in both
  the forwards (redo) and backwards (undo) direction based on that ability.
* Infrastructure that will aid in the preferred backup methodology of
  maintaining a real time mirror and UNDO/REDO journal on a 100% full
  backup partition such that one is able to free space on the partition
  simply by removing the oldest journaling file.
* Infrastructure that will make it easier to solve the overlapping
  meta-transaction problem illustrated below:

      current synchronization point
                     V
  [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ] <= Raw records
   A      <= meta transaction A
      B        B     B B <= meta transaction B
                  C              C  C <= meta transaction C
                           D  D         <= meta transaction D
 E  E                           <= meta transaction E

  As you can see, the point at which a journal is 'broken' could
  be right smack in the middle of several meta transactions at
  once, due to the fact that meta transactions are laid out as
  their records can be generated and multiple processes could be
  modifying the filesystem at the same time.

  If we are attempting to mirror this data, only transactions A and E
  will have been completed and issued to the mirror.  If the journal
  is broken at the sychnronization point and then restarted, in
  order to pick up where we left off we have to scan existing
  journal records all the way back to the first 'B' in order to
  recover transactions B and C, then continue recording the journal
  from the synchronization point until those transactions are complete
  and can be issued to the mirror.  The difficulty here is that we
  have to carefully track exactly what needs to be synchronized.
  In recovering transaction 'B' and 'C' we do not want to reissue
  transaction E, for example, which had already been completed prior to
  the break.

  The problem exists in both the forwards and reverse direction, and
  we need to be able to go in both directions to control the 'snapshot'
  view the mirror is presenting to us.

NOTE: this is just part 1/2.  This code and the new options are
NON WORKING at the moment.

18 years agoremove nonexistent kernel tunable parameters' statments.
Sepherosa Ziehau [Tue, 6 Sep 2005 02:34:20 +0000 (02:34 +0000)]
remove nonexistent kernel tunable parameters' statments.

18 years agoDocument the dscheck(9) function and explain how it affects the slice-
Hiten Pandya [Tue, 6 Sep 2005 01:21:26 +0000 (01:21 +0000)]
Document the dscheck(9) function and explain how it affects the slice-
and driver-relative block numbers, bio->bio_blkno and bio->bio_pblkno
respectively.

The latter is modified by the said function after doing various checks
on available information, such as disklabels, etc, while the former is
provided by the VFS.

Explain how said function re-transforms the block number fields when
LABEL support is enabled in the VN driver via vnconfig(8).

18 years agoTake back last commit. It's about normal vs. context diff, not
Sascha Wildner [Tue, 6 Sep 2005 00:43:16 +0000 (00:43 +0000)]
Take back last commit. It's about normal vs. context diff, not
context vs. unified (as i was wrongly assuming). Apologies.

18 years agoRemove false statement. Rejected hunks will come out in whatever format
Sascha Wildner [Tue, 6 Sep 2005 00:20:09 +0000 (00:20 +0000)]
Remove false statement. Rejected hunks will come out in whatever format
the original patch was in. OpenBSD seems to have missed that.

18 years agoAdd gcc40 build hooks. Gcc40 isn't built per default, you will have to
Simon Schubert [Mon, 5 Sep 2005 15:36:34 +0000 (15:36 +0000)]
Add gcc40 build hooks.  Gcc40 isn't built per default, you will have to
enable it by adding WANT_GCC40=yes to make.conf.

18 years agoFreeBSD -> DragonFly
Sascha Wildner [Mon, 5 Sep 2005 04:52:13 +0000 (04:52 +0000)]
FreeBSD -> DragonFly

18 years agoRemove old wtmp conversion tool.
Sascha Wildner [Mon, 5 Sep 2005 04:50:43 +0000 (04:50 +0000)]
Remove old wtmp conversion tool.

18 years ago* Constify and initialize potentially uninitialized variable.
Sascha Wildner [Mon, 5 Sep 2005 04:22:07 +0000 (04:22 +0000)]
* Constify and initialize potentially uninitialized variable.

* Remove unnecessary casts to caddr_t.

* Remove extra newline at top of function body.

* Bump WARNS to 6.

18 years agoCleanup:
Sascha Wildner [Mon, 5 Sep 2005 04:02:43 +0000 (04:02 +0000)]
Cleanup:

* Remove unnecessary casts to void and caddr_t.

* Remove hack to suppress GCC warnings (there aren't any warnings,
  anyway).

* Remove double CVS tags.

* Remove extra newline at top of function bodies.

18 years ago* Remove parameter names in function declarations.
Sascha Wildner [Mon, 5 Sep 2005 02:43:10 +0000 (02:43 +0000)]
* Remove parameter names in function declarations.

* Remove unnecessary void and caddr_t casts.

18 years agoK&R style function declarations -> ANSI C style.
Sascha Wildner [Sun, 4 Sep 2005 23:19:12 +0000 (23:19 +0000)]
K&R style function declarations -> ANSI C style.

Submitted by: Sarunas Vancevicius <svan@redbrick.dcu.ie>

18 years agoFix loader.rc path.
Sascha Wildner [Sun, 4 Sep 2005 12:20:46 +0000 (12:20 +0000)]
Fix loader.rc path.

18 years agoAvoid panic by not using linker_* API in the early stage of
YONETANI Tomokazu [Sun, 4 Sep 2005 06:58:24 +0000 (06:58 +0000)]
Avoid panic by not using linker_* API in the early stage of
boot process, during which namei_zone is not initialized yet
but linker_* API relies on it indirectly by calling nlookup_init().

18 years ago1.101 Update code comments.
Matthew Dillon [Sun, 4 Sep 2005 05:16:59 +0000 (05:16 +0000)]
1.101   Update code comments.

1.100   Update code comments.

1.99    DEFERRED
1.98    DEFERRED

1.97    Timeout while polling is in ms not ticks.  [This should be
        computationally equivalent to the code that was there before, but
        is far simpler].

1.96    DEFERRED - Abort race.  It is unclear whether an xfer can be
                   aborted multiple times.

1.95    DEFERRED (interrupt fixes that may still be buggy)
1.94    DEFERRED (interrupt fixes that may still be buggy)
1.93    DEFERRED (interrupt fixes that may still be buggy)
1.92    DEFERRED (interrupt fixes that may still be buggy)

1.91    NOT APPLICABLE (whitespace cleanup)

1.90    WILL NOT BE APPLIED - This rev tries to setup some sort of
        memory reserve but doesn't really solve any problems.  A
        reserve is useless if it is not operated as a circular
        resource-limited pipeline.

1.89    Don't error out if the number of companion controllers is wrong, just
        complain and go ahead.

18 years agoMerge the following revs from NetBSD (in an attempt to bring new material
Matthew Dillon [Sun, 4 Sep 2005 04:46:12 +0000 (04:46 +0000)]
Merge the following revs from NetBSD (in an attempt to bring new material
in in a more piecemeal fashion):

1.105   NOT APPLICABLE TO DRAGONFLY.  This rev moved interrupt enablement
to near the end of the init.  DragonFly already goes even further
and moves interrupt enablement into the PCI module.

1.104   Constification and variable naming cleanup.

1.103   Make sure all physical addresses are filled in the qTD even when we have
        a page offset.

1.102   Make sure to honor the USBD_FORCE_SHORT_XFER flag and generate an empty
        transfer when necessary.

18 years agoRevert the very last commit to ehci.c (1.12). It was locking the system
Matthew Dillon [Sun, 4 Sep 2005 04:27:57 +0000 (04:27 +0000)]
Revert the very last commit to ehci.c (1.12).  It was locking the system
up on boot.  The other portions of the Jeroen's patch set remain intact.

18 years agoCleanup the module build and conditionalize a goto label.
Matthew Dillon [Sun, 4 Sep 2005 04:06:28 +0000 (04:06 +0000)]
Cleanup the module build and conditionalize a goto label.

18 years agotcpd.h:
Sepherosa Ziehau [Sun, 4 Sep 2005 01:53:07 +0000 (01:53 +0000)]
tcpd.h:
- properly declare functions
  Based-on: NetBSD lib/libwarp/tcpd.h rev1.2
- wrap declarations inside __{BEGIN, END}_DECLS
  Obtained-from: NetBSD lib/libwrap/tcpd.h rev1.11

scaffold.c:
- remove dummy rfc931() definition, which conflits its declaration in tcpd.h
  and is not necessary at all
  Based-on: NetBSD usr.sbin/tcpchk/scaffold.c rev1.2

18 years agoGive the kernel a native NFS mount rpc capability for mounting NFS roots by
Matthew Dillon [Sun, 4 Sep 2005 01:29:00 +0000 (01:29 +0000)]
Give the kernel a native NFS mount rpc capability for mounting NFS roots by
splitting off the mount rpc code from the BOOTP code.  The loader is no
longer required to pass the nfs root mount file handle to the kernel.

Pure tftp-based loaders with no knowledge of NFS can now pass a NFS root
mount path to the kernel without having to pass a resolved NFS file handle.
This change allows kernels booted from tftp loaders to have an NFS root
without having to specify BOOTP (which sometimes doesn't work properly when
done from both the loader and from the kernel).

18 years agoCompile up both the NFS and the TFTP version of the PXE loader and
Matthew Dillon [Sat, 3 Sep 2005 23:52:53 +0000 (23:52 +0000)]
Compile up both the NFS and the TFTP version of the PXE loader and
make both available in /boot.  The NFS version obtains all loader-level data
(including the kernel binary) from the diskless root mount.  The TFTP version
obtains all loader-level data (including the kernel binary) via TFTP.

Do not pass a bogus NFS handle to the kernel (it was previously passing an
all-zero's handle for the TFTP version).

Note that current kernels will not be able to do a NFS root mount from the
tftp version of the loader unless they have BOOTP support compiled in,
because the tftp version of the loader is not able to resolve and pass a
NFS file handle to the kernel.

18 years agoRemove old #if 0'd sections of code, add a few comments, and report a bit
Matthew Dillon [Sat, 3 Sep 2005 23:43:59 +0000 (23:43 +0000)]
Remove old #if 0'd sections of code, add a few comments, and report a bit
more information when mounting an NFS root.

18 years agoPrint out a little more information on the PXE boot configuration.
Matthew Dillon [Sat, 3 Sep 2005 22:16:24 +0000 (22:16 +0000)]
Print out a little more information on the PXE boot configuration.

18 years agoAdd a missing crit_exit(), fixing a panic. Attempt to continue with the
Matthew Dillon [Sat, 3 Sep 2005 17:56:24 +0000 (17:56 +0000)]
Add a missing crit_exit(), fixing a panic.  Attempt to continue with the
mount even if we cannot add the default routeo (since the NFS server might
be on the LAN).  Print out useful information on the console such as the
interface chosen and the mount point.

Reported-by: Scott Ullrich <geekgod@geekgod.com> (critical section panic)
18 years agoAdd strnvis, which is orthogonal to strvisx by bounding dst, not src.
Joerg Sonnenberger [Sat, 3 Sep 2005 16:25:42 +0000 (16:25 +0000)]
Add strnvis, which is orthogonal to strvisx by bounding dst, not src.

Inspired-by: OpenBSD
18 years agoSync with FreeBSD HEAD.
Joerg Sonnenberger [Sat, 3 Sep 2005 15:29:02 +0000 (15:29 +0000)]
Sync with FreeBSD HEAD.

18 years agoGC openssh-3.9
Joerg Sonnenberger [Sat, 3 Sep 2005 15:09:49 +0000 (15:09 +0000)]
GC openssh-3.9

18 years agoUpdate __DragonFly_version as well. Don't let this slip, please.
Joerg Sonnenberger [Sat, 3 Sep 2005 12:16:14 +0000 (12:16 +0000)]
Update __DragonFly_version as well. Don't let this slip, please.

18 years agoAdd a stopgap to get a proper osversion and osrelease on -Preview.
Simon Schubert [Sat, 3 Sep 2005 11:45:01 +0000 (11:45 +0000)]
Add a stopgap to get a proper osversion and osrelease on -Preview.

We should de-hack this file and put the main version number in one place.

18 years agoMake sure the vnode is unlocked across a dev_dclose() call, otherwise a
Matthew Dillon [Sat, 3 Sep 2005 08:01:32 +0000 (08:01 +0000)]
Make sure the vnode is unlocked across a dev_dclose() call, otherwise a
stuck tty can deadlock the filesystem (e.g. if you try to ls -la /dev).

VOP_CLOSE() may or may not be called with the vnode locked, so keep track
of it.

18 years ago1) merge almost identical cs_{isa, pccard}_attach() into cs_attach()
Sepherosa Ziehau [Fri, 2 Sep 2005 12:51:00 +0000 (12:51 +0000)]
1) merge almost identical cs_{isa, pccard}_attach() into cs_attach()
2) staticize csintr()
3) add cs_detach()
4) in cs_attach()
   - move ifmedia_init() to the beginning of cs_attach(), so that
     ifmedia_removeall() can be called safely if cs_attach() fails
   - add KASSERT to make sure either I/O port or I/O memory is set up before
     entering cs_attach()
   - set up intr in the last step of cs_attach()
   - remove unnecessary NULL check after malloc(), since M_WAITOK flag is
     used here
   - use newly added cs_detach() as error handling routine
   - use `#if 0' to comment out code, instead of fixing them in the comment.
     this makes the code easy to read as well as the comment

18 years agoin cs_isa_probe()
Sepherosa Ziehau [Fri, 2 Sep 2005 09:43:01 +0000 (09:43 +0000)]
in cs_isa_probe()
clean up code path by remove unnecessary `error' check and `goto'

18 years ago- printf("%s: str", if_xname) ==> if_printf/device_printf
Sepherosa Ziehau [Fri, 2 Sep 2005 08:14:36 +0000 (08:14 +0000)]
- printf("%s: str", if_xname) ==> if_printf/device_printf
- remove unused macro CS_NAME

18 years agoNow that the C language has a "void *", use it instead of caddr_t.
Jeffrey Hsu [Fri, 2 Sep 2005 07:16:58 +0000 (07:16 +0000)]
Now that the C language has a "void *", use it instead of caddr_t.

18 years agoK&R style function removal. Update functions to ANSI style. Also a few
Liam J. Foy [Thu, 1 Sep 2005 22:45:35 +0000 (22:45 +0000)]
K&R style function removal.  Update functions to ANSI style. Also a few
minor cleans.

Submitted by: Peter Avalos

18 years agoZap unused variable!
Liam J. Foy [Thu, 1 Sep 2005 22:19:26 +0000 (22:19 +0000)]
Zap unused variable!

Obtained from: FreeBSD

18 years agoUpdate to groff 1.19.1.
Jeroen Ruigrok/asmodai [Thu, 1 Sep 2005 20:47:14 +0000 (20:47 +0000)]
Update to groff 1.19.1.
This synchronises us with FreeBSD up till 1.19 (Ids adjusted accordingly).

Big help fixing PATCHES behaviour: joerg

18 years agoRemove pointless -? flag.
Sascha Wildner [Thu, 1 Sep 2005 19:08:38 +0000 (19:08 +0000)]
Remove pointless -? flag.