dragonfly.git
18 years agoFix one last nit: compare the result of strlcpy() only to see if it is
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 14:00:14 +0000 (14:00 +0000)]
Fix one last nit: compare the result of strlcpy() only to see if it is
bigger than MAXPATHLEN.  strlcpy() NUL-terminates the destination string
and thus we are allowed to be equal in length to MAXPATHLEN's value.

18 years agoMove the Ids down to where they should be.
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 13:36:11 +0000 (13:36 +0000)]
Move the Ids down to where they should be.

18 years agoUpdate FreeBSD Id and synchronise with FreeBSD:
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 13:33:52 +0000 (13:33 +0000)]
Update FreeBSD Id and synchronise with FreeBSD:

Reduce libc.so's memory footprint by lazily allocating memory used internally
by basename() and dirname().

18 years agoFix long standing logic bug in basename() introduced in 1.4.
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 13:21:13 +0000 (13:21 +0000)]
Fix long standing logic bug in basename() introduced in 1.4.

We do not want to copy MAXPATHLEN/sizeof(bname) with strlcpy() since that will
happily copy ANY trailing slash, negating the entire pointer arithmatic of
endp and startp above.
Instead, reinstate endp - startp as size parameter to the copy function.
However, normally where a + 1 would be needed to solve the outcome, we now need
+ 2 due to strlcpy() only copying *size - 1*.

18 years agoSynchronise with FreeBSD:
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 11:57:33 +0000 (11:57 +0000)]
Synchronise with FreeBSD:

Reduce libc.so's memory footprint by lazily allocating memory used internally
by basename() and dirname().

Furthermore:

Drop sizeof(bname) and replace with MAXPATHLEN since that is what it boils
down to.

18 years agoSynchronise with FreeBSD v1.65:
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 11:43:47 +0000 (11:43 +0000)]
Synchronise with FreeBSD v1.65:

Use FALLTHROUGH instead of some hand-rolled alternative.
This allows us to use lint.

18 years agoMake sure err() does not use a NULL format string, this way we at least
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 11:40:09 +0000 (11:40 +0000)]
Make sure err() does not use a NULL format string, this way we at least
know what part is failing.

Synchronises with FreeBSD, apparently GCC can complain about it.

18 years agoSynchronise with FreeBSD:
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 11:36:08 +0000 (11:36 +0000)]
Synchronise with FreeBSD:

make printlink()'s FTSENT parameter const, it doesn't get modified at all
during the function call, reflect that.

Use the unit_t typedef for the unitp array.

Use u_int for unit_sz as other unsigned integers do.

Cast ilogb()'s return value to u_int to match unit_sz (ilogb() returns an int).

Cast UNIT_MAX to u_int because enum types are int.

18 years agoUpdate FreeBSD Id.
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 11:32:19 +0000 (11:32 +0000)]
Update FreeBSD Id.

18 years agols.1: Add y to SYNOPSIS line.
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 11:31:08 +0000 (11:31 +0000)]
ls.1: Add y to SYNOPSIS line.

util.c: Update FreeBSD Id and add y to the usage printing.

18 years agoUse warnx() instead of home-rolled fprintf() constructions.
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 11:07:38 +0000 (11:07 +0000)]
Use warnx() instead of home-rolled fprintf() constructions.
Update FreeBSD Id.

18 years agoMake len size_t, since strlen() returns a size_t, case i to size_t later
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 10:47:59 +0000 (10:47 +0000)]
Make len size_t, since strlen() returns a size_t, case i to size_t later
on to silence a comparison warning.

18 years agoGet rid of the third clause from the UCB license.
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 10:39:35 +0000 (10:39 +0000)]
Get rid of the third clause from the UCB license.

18 years agoMove the termwidth declaration over to extern.h, where is make more sense
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 10:37:50 +0000 (10:37 +0000)]
Move the termwidth declaration over to extern.h, where is make more sense
grouped with the other terminal declarations.
Also synchronises the source with FreeBSD.

18 years agoSynchronise with FreeBSD:
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 10:12:55 +0000 (10:12 +0000)]
Synchronise with FreeBSD:

v1.15: Ensure that suffix matches occur on character boundaries.

18 years agoNo need to prototype main().
Jeroen Ruigrok/asmodai [Sun, 18 Sep 2005 09:45:26 +0000 (09:45 +0000)]
No need to prototype main().

18 years agoUsing the ACPI idle hook while shutting down ACPI during a halt or reboot
Matthew Dillon [Sat, 17 Sep 2005 23:53:47 +0000 (23:53 +0000)]
Using the ACPI idle hook while shutting down ACPI during a halt or reboot
can panic the system.  Restore the original idle hook before initiating the
ACPI shutdown.

Reported-by: =?ISO-8859-2?Q?Toma=BE_Bor=B9tnar?= <tomaz.borstnar@amis.net>
18 years agoToo many windhills in the third party software world to fight them all.
Joerg Sonnenberger [Sat, 17 Sep 2005 14:39:44 +0000 (14:39 +0000)]
Too many windhills in the third party software world to fight them all.
Maybe programmers learn once not to mess with namespaces, but capitulate
for now and prefix the ctype masks with _CTYPEMASK.

18 years agoChange shell.c API to reduce usage of global commandShell.
Max Okumoto [Sat, 17 Sep 2005 11:07:23 +0000 (11:07 +0000)]
Change shell.c API to reduce usage of global commandShell.

18 years agoWith the new FSMID flag scheme we can optimize the update of the chain by
Matthew Dillon [Sat, 17 Sep 2005 08:29:42 +0000 (08:29 +0000)]
With the new FSMID flag scheme we can optimize the update of the chain by
stopping once we hit a namecache node that already has NCF_FSMID set.  Since
the bit is only cleared when a node is 'observed' with [f][l]stat(), or
when it is reclaimed, the result is that high performance I/O's on a node
do not have to update the entire namecache chain to root on each operation.

Basically the idea of the FSMID is to be able to optimally monitor changes
in a filesystem hierarchy.  When we see the FSMID of a node change we know
we have to scan its sub-tree.  But there's no reason to change the FSMID of
the parent node AGAIN while further changes are made to the children AFTER
the original observation if the scan of the sub-tree has NOT YET REACHED
those children.  This is a kind of Einsteinian-observer effect, but it
works!

If on the other hand we are trying to detect changes in a tree by
monitoring an FSMID, but we do not bother to rescan the tree after noting
such a change in a parent node, this optimization will break us.

This is a solution to a problem Joerg Sonnenberger posed with regard to
the detrimental effect that could occur when a high rate of I/O is
performed on a file deep in a directory tree.

18 years agoAdd an argument to vfs_add_vnodeops() to specify VVF_* flags for the vop_ops
Matthew Dillon [Sat, 17 Sep 2005 07:43:12 +0000 (07:43 +0000)]
Add an argument to vfs_add_vnodeops() to specify VVF_* flags for the vop_ops
structure.  Add a new flag called VVF_SUPPORTS_FSMID to indicate filesystems
which support persistent storage of FSMIDs.  Rework the FSMID code a bit
to reduce overhead.

Use the spare field in the UFS inode structure to implement a persistent
FSMID.  The FSMID is recursively marked in the namecache but not adjusted
until the next getattr() call on the related inode(s), or when the vnode
is reclaimed.

18 years agoAdd an option, -y, which displays the 64 bit FSMID for a file or directory.
Matthew Dillon [Sat, 17 Sep 2005 07:08:43 +0000 (07:08 +0000)]
Add an option, -y, which displays the 64 bit FSMID for a file or directory.

18 years agoSplit spinlock.h into spinlock.h and spinlock2.h so we can embed spinlocks in
Matthew Dillon [Fri, 16 Sep 2005 21:50:13 +0000 (21:50 +0000)]
Split spinlock.h into spinlock.h and spinlock2.h so we can embed spinlocks in
other structures/header files without having to bring in a ton of includes.

18 years agoReserve the same amount of space for the spinlock structure whether we are
Matthew Dillon [Fri, 16 Sep 2005 20:55:44 +0000 (20:55 +0000)]
Reserve the same amount of space for the spinlock structure whether we are
SMP or not, so other structures using it do not change size.

18 years agoBump __Dragonfly_version to 130006 (+ slip preview on the file)
Matthew Dillon [Fri, 16 Sep 2005 19:25:03 +0000 (19:25 +0000)]
Bump __Dragonfly_version to 130006 (+ slip preview on the file)

Reminded-by: Joerg Sonnenberger <joerg@britannica.bec.de>
18 years agoAdd -d /cvs to tag update targets.
Matthew Dillon [Fri, 16 Sep 2005 18:50:15 +0000 (18:50 +0000)]
Add -d /cvs to tag update targets.

18 years agoBump the development sub-version to 6, covering the following major changes
Matthew Dillon [Fri, 16 Sep 2005 18:48:34 +0000 (18:48 +0000)]
Bump the development sub-version to 6, covering the following major changes
and numerous smaller changes.

    Ffs_balloc deadlock.
    Newreno fixes.
    FreeBSD-SA-05:15.tcp.
    Netgraph module loads.
    Vnode deadlock during tty close.
    Nfs netboot panic.
    Kernel native rpc mount capability.
    Usb/ehci fixes.
    Journaling improvements.
    APIC/SMP fixes.
    TWE/TWA fixes.
    Sync time of day on halt.
    Serializer bug fixed (SMP).
    Token bug fixed (SMP).
    NFS server directory bug fixed.
    (some) Vinum fixes.

18 years agoCleanup a couple of serious issues with vinum.
Matthew Dillon [Fri, 16 Sep 2005 04:33:14 +0000 (04:33 +0000)]
Cleanup a couple of serious issues with vinum.

* If someone specifies a partition or a slice instead of a raw drive, such as
  'vinum read /dev/da0d' or 'vinum read /dev/da0s1', vinum gets really confused
  when it constructs device names while doing the drive scan.  For example,
  it was constructing device names like '/dev/da0as1d'.  Fixed.

  Note that vinum cannot recover the complete configuration when vinum read
  is used to scan a single partition such as /dev/da0d.  You have to tell
  it to scan the all drives associated with the vinum volume for it to be
  able to complete configure the volume.  If a 'vinum list' shows drives
  as 'referenced' without a device path, the related volumes/plexes/whatever
  cannot be used until the remaining subdisks are loaded.

* vinum was attempting to construct the device major/minor number manually
  instead of using the appropriate macros, which prevented it from properly
  handling partitions greater then 'i' through 'p'.  Fixed.

* vinum was issuing BUF_STRATEGY calls without initializing b_dev.  In
  DragonFly, b_dev must be initialized prior to every strategy call, even
  when reusing a buffer (this requirement will later be used as part of
  the block number translation caching subsystem).

Reported-by: Dave Hayes
18 years ago- include stdio.h
Sepherosa Ziehau [Thu, 15 Sep 2005 04:34:52 +0000 (04:34 +0000)]
- include stdio.h
Requested-by: Jeremy C. Reed <reed at reedmedia.net>
    Obtained-from: NetBSD
- in tcpd_{warn, jump}()'s declaration, constify format strings

18 years agodiag.c:
Sepherosa Ziehau [Thu, 15 Sep 2005 04:33:04 +0000 (04:33 +0000)]
diag.c:
- move sccs id string into comment, add DragonFly cvs tag
- use stdarg.h instead of mystdarg.h
- constify various format strings
- remove stdio.h inclusion, which is will be done in tcpd.h

tcpd.h:
- include stdio.h
Requested-by: Jeremy C. Reed <reed at reedmedia.net>
    Obtained-from: NetBSD
- in tcpd_{warn, jump}()'s declaration, constify format strings

18 years agoRename all the functions and structures for the old VOP namespace API
Matthew Dillon [Wed, 14 Sep 2005 01:13:50 +0000 (01:13 +0000)]
Rename all the functions and structures for the old VOP namespace API
functions from vop_* to vop_old_*.  e.g. vop_lookup -> vop_old_lookup.
This will make it easier to identify areas containing old VOP API code.

Remove vop_old_*_ap() functions, they are not used (and not allowed to be
used).  The old API is only allowed at the leaf of a VFS stack.

18 years agoCleanup minor syntax/informational issues.
Matthew Dillon [Tue, 13 Sep 2005 18:13:11 +0000 (18:13 +0000)]
Cleanup minor syntax/informational issues.

18 years agoFix a token bug. A preempting interrupt thread blocking on a token cannot
Matthew Dillon [Mon, 12 Sep 2005 21:48:22 +0000 (21:48 +0000)]
Fix a token bug.  A preempting interrupt thread blocking on a token cannot
safely call lwkt_drain_token_requests() because the procedure may give away
tokens owned by the preempted (parent) thread.  Instead we simply call
lwkt_yield() to turn ourselves into a normally scheduled thread and return.

Reported-by: Peter Avalos <pavalos@theshell.com>
18 years agoFix a serializer bug. The SMP serializer would in some cases fail to
Matthew Dillon [Mon, 12 Sep 2005 21:40:24 +0000 (21:40 +0000)]
Fix a serializer bug.  The SMP serializer would in some cases fail to
wakeup blocked waiters.

Reported-by: Peter Avalos <pavalos@theshell.com>
18 years agoDragonFly's malloc only guarentees X alignment when X is a power of 2,
Matthew Dillon [Mon, 12 Sep 2005 21:38:34 +0000 (21:38 +0000)]
DragonFly's malloc only guarentees X alignment when X is a power of 2,
otherwise we would have to use contigalloc, which is nasty.

Use malloc and adjust the allocation request from a multiple of 512 to the
nearest power of 2 greater or equal to 512 and greater or equal to the
request size.

Once a filesystem is mounted I/O operates on 512 byte boundaries anyway, so
this bug fix only effects programs that operates directly on the block device
such as 'newfs' and 'fsck'.

18 years agoCall resettodr on shutdown to ensure that RTC and wall clock gets
Joerg Sonnenberger [Mon, 12 Sep 2005 21:32:03 +0000 (21:32 +0000)]
Call resettodr on shutdown to ensure that RTC and wall clock gets
synchronised. This should make clock drifts on long running systems not
depend on the initial sync.

18 years agoWhen testing whether a negative delta is smaller than the default
Joerg Sonnenberger [Mon, 12 Sep 2005 19:01:45 +0000 (19:01 +0000)]
When testing whether a negative delta is smaller than the default
per-tick delta, the latter has to be negated, otherwise the condition is
always false.

18 years agoDon't declare a struct just for sizeof(). Just use sizeof().
Liam J. Foy [Mon, 12 Sep 2005 14:35:51 +0000 (14:35 +0000)]
Don't declare a struct just for sizeof(). Just use sizeof().

18 years agoAdd helper script to generate README.DELETED files.
Simon Schubert [Mon, 12 Sep 2005 00:10:00 +0000 (00:10 +0000)]
Add helper script to generate README.DELETED files.

usage:
  genreadmedeleted origdir trimddir

18 years agoMove the modification of hspace out of the realloc call to make this a
Joerg Sonnenberger [Sun, 11 Sep 2005 23:32:08 +0000 (23:32 +0000)]
Move the modification of hspace out of the realloc call to make this a
bit easier to understand. No functional change.

18 years agoremove unnecessary XXX marked comment
Sepherosa Ziehau [Sun, 11 Sep 2005 13:33:40 +0000 (13:33 +0000)]
remove unnecessary XXX marked comment

Noticed-by: Sarunas Vancevicius <svan at redbrick.dcu.ie>
18 years agofree aha_softc only after it is not used any more
Sepherosa Ziehau [Sun, 11 Sep 2005 13:23:10 +0000 (13:23 +0000)]
free aha_softc only after it is not used any more
Obtained-from: FreeBSD dev/aha/aha_isa.c rev1.30

18 years agoUpdate gcc40 to 4.0.1
Simon Schubert [Sun, 11 Sep 2005 13:09:09 +0000 (13:09 +0000)]
Update gcc40 to 4.0.1

18 years agoUpdate our READMEs.
Simon Schubert [Sun, 11 Sep 2005 13:05:13 +0000 (13:05 +0000)]
Update our READMEs.

18 years ago- convert PRVERB to use device_printf()
Sepherosa Ziehau [Sun, 11 Sep 2005 13:03:16 +0000 (13:03 +0000)]
- convert PRVERB to use device_printf()
- add aha_softc.dev
- push "dev" into aha_alloc() instead of "unit" in order to convert printf() to
  device_printf() in aha_alloc().  change aha_alloc() declaration in ahareg.h
  accordingly
- printf("aha%d str", aha->unit) ==> device_printf(aha->dev, "str")
- in aha_alloc(), aha_free() and aha_attach(), use device_get_unit(aha->dev)
  to get the device unit instead of using aha->unit directly
- remove aha_softc.unit

Submitted-by: Sarunas Vancevicius <svan at redbrick.dcu.ie>
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.