dragonfly.git
14 years agoComplete Citrus import. Import message catalog implement from
Joerg Sonnenberger [Thu, 21 Apr 2005 16:36:35 +0000 (16:36 +0000)]
Complete Citrus import. Import message catalog implement from
NetBSD. Remove external visible rune interface.

Obtained-from: Project Citrus / NetBSD

14 years agoBuild aicasm as host program, not via world's compiler.
Joerg Sonnenberger [Thu, 21 Apr 2005 14:43:58 +0000 (14:43 +0000)]
Build aicasm as host program, not via world's compiler.

14 years agoDon't create directories for gcc2 and binutils212 anymore.
Joerg Sonnenberger [Thu, 21 Apr 2005 13:48:56 +0000 (13:48 +0000)]
Don't create directories for gcc2 and binutils212 anymore.

14 years agoBump major numbers in preparation for libc work.
Joerg Sonnenberger [Thu, 21 Apr 2005 13:42:34 +0000 (13:42 +0000)]
Bump major numbers in preparation for libc work.

14 years agoConsider only drifts smaller than 32 ms as negligible.
Joerg Sonnenberger [Thu, 21 Apr 2005 13:34:59 +0000 (13:34 +0000)]
Consider only drifts smaller than 32 ms as negligible.

14 years agoAs long as a peer has some trust left, use the aggressive retry interval
Joerg Sonnenberger [Thu, 21 Apr 2005 13:32:22 +0000 (13:32 +0000)]
As long as a peer has some trust left, use the aggressive retry interval
when the deadline is not met.

14 years agoOverride gcc2 for buildworld. Necessary to handle the former default
Joerg Sonnenberger [Thu, 21 Apr 2005 13:23:07 +0000 (13:23 +0000)]
Override gcc2 for buildworld. Necessary to handle the former default
value which might still be active via /usr/share/mk.

14 years agoMake osreldate.h building happing by explicitly using /bin/date.
Joerg Sonnenberger [Thu, 21 Apr 2005 08:43:42 +0000 (08:43 +0000)]
Make osreldate.h building happing by explicitly using /bin/date.
We have to use system's date or we would have to hack the default
string in.

14 years agodate as bootstrap tool doesn't make sense, remove it.
Joerg Sonnenberger [Thu, 21 Apr 2005 08:10:24 +0000 (08:10 +0000)]
date as bootstrap tool doesn't make sense, remove it.

14 years agoUnhook GCC 2.95 and Binutils 2.12 from build.
Joerg Sonnenberger [Thu, 21 Apr 2005 08:00:37 +0000 (08:00 +0000)]
Unhook GCC 2.95 and Binutils 2.12 from build.

14 years agoStop building libkeycap, PCVT is gone.
Joerg Sonnenberger [Thu, 21 Apr 2005 07:55:47 +0000 (07:55 +0000)]
Stop building libkeycap, PCVT is gone.

14 years agoUnhook PCVT from kernel build.
Joerg Sonnenberger [Thu, 21 Apr 2005 07:48:15 +0000 (07:48 +0000)]
Unhook PCVT from kernel build.

14 years agoUse new _DATE_FMT langinfo instead of '%+'.
Joerg Sonnenberger [Thu, 21 Apr 2005 07:35:01 +0000 (07:35 +0000)]
Use new _DATE_FMT langinfo instead of '%+'.

14 years agoAdd _DATE_FMT to get the locale-specific date(1) string.
Joerg Sonnenberger [Thu, 21 Apr 2005 07:28:59 +0000 (07:28 +0000)]
Add _DATE_FMT to get the locale-specific date(1) string.

14 years agoMerge from vendor branch CVS:
Jeroen Ruigrok/asmodai [Thu, 21 Apr 2005 06:33:15 +0000 (06:33 +0000)]
Merge from vendor branch CVS:
Add CVS 1.12.12.

14 years agoAdd CVS 1.12.12.
Jeroen Ruigrok/asmodai [Thu, 21 Apr 2005 06:33:15 +0000 (06:33 +0000)]
Add CVS 1.12.12.

14 years agoStop exporting OSVERSION variable to enviornment via .makeenv.
Max Okumoto [Wed, 20 Apr 2005 21:58:13 +0000 (21:58 +0000)]
Stop exporting OSVERSION variable to enviornment via .makeenv.
This quiets a the warning that OSVERSION is from the commandline
when ports calls make recursively.

OSVERSION is only used by the make infrastructure, so anything that
references that variable would get it from make's global scope, or
would get it from a recursively called make which would have put
it into the env since it is in MAKEFLAGS.

Variables set in the command line and MAKEFLAGS are readonly, those
variables are also exported into the enviornment of make.  Nothing
in the makefiles are able to modified thier values. (POSIX)

This is compatible with .makeenv (soon to be .EXPORT:)
     o if variable does not exist create it and
       export it to the enviornment, as empty string.
     o if variable exists, export it to the enviornment
       with its value.
     o if variable that is exported is set after being
       exported, export its new value.

     o if variable is from command line or MAKEFLAGS
       do net change is value, or modify the enviornment.
       Emit a warning.

14 years agoMake GCC 3.4 the default compiler.
Joerg Sonnenberger [Wed, 20 Apr 2005 21:39:00 +0000 (21:39 +0000)]
Make GCC 3.4 the default compiler.

14 years agoClean up some of the sockbuf append code.
Jeffrey Hsu [Wed, 20 Apr 2005 21:37:06 +0000 (21:37 +0000)]
Clean up some of the sockbuf append code.

14 years agoRIP compat libraries. Use misc/compatXX from ports instead.
Joerg Sonnenberger [Wed, 20 Apr 2005 21:06:06 +0000 (21:06 +0000)]
RIP compat libraries. Use misc/compatXX from ports instead.

14 years agoWARNS=6. The (int) case should be reevaluated when this code is converted
Joerg Sonnenberger [Wed, 20 Apr 2005 20:45:57 +0000 (20:45 +0000)]
WARNS=6. The (int) case should be reevaluated when this code is converted
to (s)size_t usage.

14 years agoUn-disable stack protector. I take responsibility for all problems this
Joerg Sonnenberger [Wed, 20 Apr 2005 20:27:04 +0000 (20:27 +0000)]
Un-disable stack protector. I take responsibility for all problems this
adds, which are not actual bugs.

14 years agoRemove old beforeinstall hack. Should be not used for ages.
Joerg Sonnenberger [Wed, 20 Apr 2005 20:07:19 +0000 (20:07 +0000)]
Remove old beforeinstall hack. Should be not used for ages.

14 years agoRemove some commented out warnings.
Joerg Sonnenberger [Wed, 20 Apr 2005 20:01:09 +0000 (20:01 +0000)]
Remove some commented out warnings.

14 years agoCosmetic changes, mostly changing zeros to NULLs.
Jeffrey Hsu [Wed, 20 Apr 2005 19:43:53 +0000 (19:43 +0000)]
Cosmetic changes, mostly changing zeros to NULLs.

14 years agoStrip away a layer of indirection. Now that we properly declare
Jeffrey Hsu [Wed, 20 Apr 2005 19:38:22 +0000 (19:38 +0000)]
Strip away a layer of indirection.  Now that we properly declare
so_pcb as a "void *", we don't need the sotounpcb() macro any more.
Directly reference so->so_pcb to get the unp control block.

14 years agoAdd NetBSD 3.0.
Sascha Wildner [Wed, 20 Apr 2005 18:21:16 +0000 (18:21 +0000)]
Add NetBSD 3.0.

14 years agobasetime should be static, all access done via PKI.
Joerg Sonnenberger [Wed, 20 Apr 2005 17:57:16 +0000 (17:57 +0000)]
basetime should be static, all access done via PKI.

14 years agoAdd entry for libarchive.
Sascha Wildner [Wed, 20 Apr 2005 17:26:15 +0000 (17:26 +0000)]
Add entry for libarchive.

14 years agoDocument the rwlock routines as being MP safe.
Matthew Dillon [Wed, 20 Apr 2005 17:03:35 +0000 (17:03 +0000)]
Document the rwlock routines as being MP safe.

14 years agoMake the kernel malloc() and free() MP safe by pushing the BGL past the
Matthew Dillon [Wed, 20 Apr 2005 17:03:08 +0000 (17:03 +0000)]
Make the kernel malloc() and free() MP safe by pushing the BGL past the
per-cpu frontend and into the VM access layer.

14 years agoGet rid of VPLACEMARKER and retool vmntvnodescan() to use a secondary
Matthew Dillon [Wed, 20 Apr 2005 17:01:56 +0000 (17:01 +0000)]
Get rid of VPLACEMARKER and retool vmntvnodescan() to use a secondary
structure to track ripouts that occur during the slowfunc() callback,
similar to how we do it for the mountlist and clean/dirty buffer trees.

14 years agoStyle(9) cleanup: use ANSI format for function definitions.
Chris Pressey [Wed, 20 Apr 2005 16:37:09 +0000 (16:37 +0000)]
Style(9) cleanup: use ANSI format for function definitions.

14 years agoRemove unnecessary .El (fixes groff warning).
Sascha Wildner [Wed, 20 Apr 2005 16:24:13 +0000 (16:24 +0000)]
Remove unnecessary .El (fixes groff warning).

14 years agoMake comments about bpf_validate()'s behaviour reflect reality. The
Chris Pressey [Wed, 20 Apr 2005 16:05:51 +0000 (16:05 +0000)]
Make comments about bpf_validate()'s behaviour reflect reality.  The
code does not check that jumps are forward; jumps are specified by
unsigned values, and as such, are inevitably forward jumps.

14 years agoFix grammar (associate -> associated) and start sentence on new line.
Chris Pressey [Wed, 20 Apr 2005 15:44:32 +0000 (15:44 +0000)]
Fix grammar (associate -> associated) and start sentence on new line.

14 years agoUse get_approximate_time_t().
Joerg Sonnenberger [Wed, 20 Apr 2005 14:27:29 +0000 (14:27 +0000)]
Use get_approximate_time_t().

14 years agoAdd support for ServerWorks chipsets.
Joerg Sonnenberger [Wed, 20 Apr 2005 10:51:24 +0000 (10:51 +0000)]
Add support for ServerWorks chipsets.

Obtained-from: FreeBSD

14 years agoFix whitespace in copyright dates.
Hiten Pandya [Wed, 20 Apr 2005 10:24:48 +0000 (10:24 +0000)]
Fix whitespace in copyright dates.

14 years agoAdd bpf_mtap_family(9) which allows the client to specify an address
Hiten Pandya [Wed, 20 Apr 2005 10:22:44 +0000 (10:22 +0000)]
Add bpf_mtap_family(9) which allows the client to specify an address
family.  The logic is quite repetetive in various psuedo drivers and
other networking subsystems, like netgraph.

In-discussion-with:  Joerg Sonnenberger.

14 years agosbappend() is called by stream-oriented as well as record-oriented
Jeffrey Hsu [Wed, 20 Apr 2005 09:28:29 +0000 (09:28 +0000)]
sbappend() is called by stream-oriented as well as record-oriented
protocols, so we can't use the sb_lastrecord hint, which is only
for record-oriented protocols, as an optimization.  (However,
stream-oriented protocols only have one record anyways, so a last
record hint provides zero speedup here anyhow.)

Original bug with X client occasionally not working reported by Simon Schubert.

14 years agoCorrect a bug in the positive 32bit overflow handling of ntp_tick_acc.
Joerg Sonnenberger [Wed, 20 Apr 2005 08:04:32 +0000 (08:04 +0000)]
Correct a bug in the positive 32bit overflow handling of ntp_tick_acc.
Simplify the logic by not playing wiered bit masking, just substract
the large part. Depending on whether 64bit math is native, this can be
even faster.

14 years agoNULL-out two stack-declared variables that were incorrectly assumed to
Matthew Dillon [Tue, 19 Apr 2005 20:38:57 +0000 (20:38 +0000)]
NULL-out two stack-declared variables that were incorrectly assumed to
be NULL on entry.

Reported-by: Jimmy Lim <jimmyblim@gmail.com>
Submitted-by: "Skoda Tomas" <tomas.skoda@zoznam.sk>
14 years agoChange NOACU to NULL.
Sascha Wildner [Tue, 19 Apr 2005 18:55:24 +0000 (18:55 +0000)]
Change NOACU to NULL.

14 years agoFix a buildkernel warning by properly initializing dom_next in struct domain.
Sascha Wildner [Tue, 19 Apr 2005 18:51:57 +0000 (18:51 +0000)]
Fix a buildkernel warning by properly initializing dom_next in struct domain.

Thanks for telling: joerg

14 years agoChange herz to hertz.
Sascha Wildner [Tue, 19 Apr 2005 18:05:02 +0000 (18:05 +0000)]
Change herz to hertz.

14 years agoAbstract out the routines which manipulate the mountlist.
Matthew Dillon [Tue, 19 Apr 2005 17:54:52 +0000 (17:54 +0000)]
Abstract out the routines which manipulate the mountlist.

Introduce an MP-safe mountlist scanning function.  This function keeps track
of scans which are in-progress and properly handles ripouts that occur during
the callback by advancing the matching pointers being tracked.  The callback
can safely block without confusing the scan.

This algorithm has already been successfully used for the buffer cache and
will soon be used for the vnode lists hanging off the mount point.

14 years agoProvide correct PLIST_SUB value for batch scripts.
Joerg Sonnenberger [Tue, 19 Apr 2005 17:17:03 +0000 (17:17 +0000)]
Provide correct PLIST_SUB value for batch scripts.

14 years agoMerge from vendor branch NTPD:
Joerg Sonnenberger [Tue, 19 Apr 2005 13:09:30 +0000 (13:09 +0000)]
Merge from vendor branch NTPD:
Print "reply from ..." before "adjust local clock ..." in debug mode.

14 years agoPrint "reply from ..." before "adjust local clock ..." in debug mode. vendor/NTPD
Joerg Sonnenberger [Tue, 19 Apr 2005 13:09:30 +0000 (13:09 +0000)]
Print "reply from ..." before "adjust local clock ..." in debug mode.

14 years agoMerge from vendor branch NTPD:
Joerg Sonnenberger [Tue, 19 Apr 2005 07:37:43 +0000 (07:37 +0000)]
Merge from vendor branch NTPD:
Sync in my paranoia check.

14 years agoSync in my paranoia check.
Joerg Sonnenberger [Tue, 19 Apr 2005 07:37:43 +0000 (07:37 +0000)]
Sync in my paranoia check.

14 years agoStyle cleanup: instead of seperate #defines for NULL cast to different
Chris Pressey [Tue, 19 Apr 2005 05:32:02 +0000 (05:32 +0000)]
Style cleanup: instead of seperate #defines for NULL cast to different
types (NOSTR, NOFILE, NOPWD, NOACU, NOVAL,) just spell NULL as NULL.

Inspired-by: NetBSD
14 years agoReduce warnings that appear under higher WARNS levels:
Chris Pressey [Tue, 19 Apr 2005 05:18:19 +0000 (05:18 +0000)]
Reduce warnings that appear under higher WARNS levels:
- Include a missing header;
- Spell out initializers in full;
- De-constify a char * that isn't really constant.

14 years agoWhen installing packages into an ISO-image-to-be file tree:
Chris Pressey [Tue, 19 Apr 2005 04:20:27 +0000 (04:20 +0000)]
When installing packages into an ISO-image-to-be file tree:
- Don't try to copy packages that already exist (with identical version
  numbers) on the image; and
- Bail out early if an error (e.g. missing dependency) occurs, instead
  of blindly carrying on with the next package.

14 years agoPrefer TAILQ_EMPTY() to null-check on the result of TAILQ_FIRST().
Jeffrey Hsu [Mon, 18 Apr 2005 23:50:30 +0000 (23:50 +0000)]
Prefer TAILQ_EMPTY() to null-check on the result of TAILQ_FIRST().

14 years agoDefer assigning to the forwarding route variable until the forwarding
Jeffrey Hsu [Mon, 18 Apr 2005 23:43:04 +0000 (23:43 +0000)]
Defer assigning to the forwarding route variable until the forwarding
route has been determined.

14 years agoMinor cosmetic cleanups. Use the canonical name "ro" for a variable
Jeffrey Hsu [Mon, 18 Apr 2005 22:57:52 +0000 (22:57 +0000)]
Minor cosmetic cleanups.  Use the canonical name "ro" for a variable
of type struct route.  Clean up ip_forward().

14 years agoUse a larger initial window size when restarting after a long idle period.
Jeffrey Hsu [Mon, 18 Apr 2005 22:41:23 +0000 (22:41 +0000)]
Use a larger initial window size when restarting after a long idle period.

14 years agoCVS was seg-faulting on systems with hostnames greater then 34 characters
Matthew Dillon [Mon, 18 Apr 2005 20:22:42 +0000 (20:22 +0000)]
CVS was seg-faulting on systems with hostnames greater then 34 characters
long due to assuming that gethostname() would return ENAMETOOLONG.  In
FreeBSD/DragonFly it returns ENOMEM.  Use our auto-patching mechanism to
patch in the additional error code.

Reported-by: Jeroen Ruigrok/asmodai <asmodai@wxs.nl>
14 years agoWARNS=6 + minor style issues while here.
Joerg Sonnenberger [Mon, 18 Apr 2005 20:17:58 +0000 (20:17 +0000)]
WARNS=6 + minor style issues while here.

Submitted-by: Sepherosa Ziehau <sepherosa@softhome.net>
14 years agoSync with OpenBSD. The ntpd -s is included now.
Joerg Sonnenberger [Mon, 18 Apr 2005 18:17:20 +0000 (18:17 +0000)]
Sync with OpenBSD. The ntpd -s is included now.

14 years agoMerge from vendor branch NTPD:
Joerg Sonnenberger [Mon, 18 Apr 2005 18:17:20 +0000 (18:17 +0000)]
Merge from vendor branch NTPD:
Sync with OpenBSD. The ntpd -s is included now.

14 years agoSync with OpenBSD. The ntpd -s is included now.
Joerg Sonnenberger [Mon, 18 Apr 2005 18:17:20 +0000 (18:17 +0000)]
Sync with OpenBSD. The ntpd -s is included now.

14 years agoUse the local runetype.h here too.
Joerg Sonnenberger [Mon, 18 Apr 2005 17:42:15 +0000 (17:42 +0000)]
Use the local runetype.h here too.

14 years agoSwitch IP divert from mbuf based tagging to mbuf tags.
Joerg Sonnenberger [Mon, 18 Apr 2005 14:26:57 +0000 (14:26 +0000)]
Switch IP divert from mbuf based tagging to mbuf tags.
This patch is meant to keep the old semantic, the divert
handling can be pushed down in most places later.

14 years agoMake kern.ntp.permanent specify the frequency correction per second,
Joerg Sonnenberger [Mon, 18 Apr 2005 13:27:44 +0000 (13:27 +0000)]
Make kern.ntp.permanent specify the frequency correction per second,
not per tick. This makes a bit more sense by isolating implementation
detail of per-tick correction.

14 years agoAdd snprintf and vsnprintf.
Joerg Sonnenberger [Mon, 18 Apr 2005 07:55:09 +0000 (07:55 +0000)]
Add snprintf and vsnprintf.

14 years agoUse the headers from src/include for ctype.h and runetype.h instead
Joerg Sonnenberger [Mon, 18 Apr 2005 07:43:45 +0000 (07:43 +0000)]
Use the headers from src/include for ctype.h and runetype.h instead
of the installed versions. The latter might not exist or define different
conditionals.

14 years agostaticize lwkt_reqtoken_remote().
Matthew Dillon [Mon, 18 Apr 2005 01:03:33 +0000 (01:03 +0000)]
staticize lwkt_reqtoken_remote().

14 years agoFix a bug in the last commit. A FIFO calculation was incorrect (3/2 instead
Matthew Dillon [Mon, 18 Apr 2005 01:02:58 +0000 (01:02 +0000)]
Fix a bug in the last commit.  A FIFO calculation was incorrect (3/2 instead
of 2/3), resulting in overflows during heavy token handling activity.

Reported-by: =?ISO-8859-1?Q?Stefan_Kr=FCger?= <skrueger@meinberlikomm.de>
14 years agopatch-7.189
Max Okumoto [Sat, 16 Apr 2005 10:38:37 +0000 (10:38 +0000)]
patch-7.189
Remove unsed functions Var_GetTail() and Var_GetHead()

14 years agotch-7.188
Max Okumoto [Sat, 16 Apr 2005 10:36:19 +0000 (10:36 +0000)]
tch-7.188
  Var_SubstOnly(), match_var()
o Split out test to check if variable name should not be expanded.

14 years agopatch-7.187
Max Okumoto [Sat, 16 Apr 2005 10:35:54 +0000 (10:35 +0000)]
patch-7.187
  Var_Subst() Var_SubstOnly()
o unify syntax for accessing bytes in the input string.
o Simplify skipping bytes.

14 years agopatch-7.186
Max Okumoto [Sat, 16 Apr 2005 10:35:29 +0000 (10:35 +0000)]
patch-7.186
 Var_SubstOnly()
o remove continue statement.

14 years agopatch-7.185
Max Okumoto [Sat, 16 Apr 2005 10:35:02 +0000 (10:35 +0000)]
patch-7.185
  Var_Subst(), Var_SubstOnly()
o remove dead code.

14 years agopatch-7.184
Max Okumoto [Sat, 16 Apr 2005 10:34:26 +0000 (10:34 +0000)]
patch-7.184
o Copy Var_Subst() into Var_SubstOnly(), the new function
  is never passed NULL in the 'var' input parameter.
o Modified Var_Subst() to always expect var==NULL as input paramter.
o Update calling code by removing unused parameter.

14 years agoAdd a debug knob debug.acpi.avoid.paths, a variant of debug.acpi.avoid
YONETANI Tomokazu [Sat, 16 Apr 2005 08:17:02 +0000 (08:17 +0000)]
Add a debug knob debug.acpi.avoid.paths, a variant of debug.acpi.avoid
but without totally disabling execution of _INI and _STA.  Maybe useful
to narrow down the portion of namespace causing problems without messing
with editing and compiling ASL.  Disablement of _INI and _STA when
debug.acpi.avoid is specified has been added years before to workaround
interpreter crash on some systems, and I'm not sure whether the recent
ACPI-CA code still crashes on those systems, but I'll leave it as is
anyway for compatibility with FreeBSD.

Suggested-by: Sepherosa Ziehau
14 years agoForgot to add these files to previous commit. directive_hash.c
Max Okumoto [Fri, 15 Apr 2005 21:13:05 +0000 (21:13 +0000)]
Forgot to add these files to previous commit.  directive_hash.c
must be regenerated if new directives are added/removed/modified.

14 years agoAdd back .makenv compat until everyone's source tree is updated.
Max Okumoto [Fri, 15 Apr 2005 21:09:15 +0000 (21:09 +0000)]
Add back .makenv compat until everyone's source tree is updated.

14 years agoCreate VAR_ENV context, and fill it with everything in the environment.
Max Okumoto [Fri, 15 Apr 2005 21:06:35 +0000 (21:06 +0000)]
Create VAR_ENV context, and fill it with everything in the environment.

14 years agoadd .EXPORT: special tag and add ST_EXPORT variable.
Max Okumoto [Fri, 15 Apr 2005 21:05:52 +0000 (21:05 +0000)]
add .EXPORT: special tag and add ST_EXPORT variable.

14 years agoFreeBSD-Date: 2005/04/11 08:20:09
Max Okumoto [Fri, 15 Apr 2005 21:01:27 +0000 (21:01 +0000)]
FreeBSD-Date: 2005/04/11 08:20:09
FreeBSD-Date: 2005/04/11 08:26:21
FreeBSD-Date: 2005/04/11 08:40:54

Author: harti

Rework the directive parsing code. Instead of using a lot of strcmp()s
on every line that starts with a dot use a minimal perfect hash
function and a single strcmp() on the first word after the dot
to find out whether it is really a directive call and, if yes, which
one. Then directly dispatch to a handler function for that directive
(or fall through to the dependency handling code). This makes the
directive parse a little bit more strict about the syntax: the directive
word must be followed by a character that is not alphanumerical and not
an underline (making .undefFOO illegal); .endif and .else can only be
followed by comments.

14 years agoInline stripvarname() since it will be removed in the next few patches.
Max Okumoto [Fri, 15 Apr 2005 20:50:43 +0000 (20:50 +0000)]
Inline stripvarname() since it will be removed in the next few patches.

14 years agoSplit VarFind() into a series of functions tailored for the different sets
Max Okumoto [Fri, 15 Apr 2005 20:45:48 +0000 (20:45 +0000)]
Split VarFind() into a series of functions tailored for the different sets
of flags originally passed to VarFind(). This eliminates the code by
removing a bunch of tests.

patch-7.173
patch-7.174
patch-7.176

14 years agoImplement Red-Black trees for the vnode clean/dirty buffer lists.
Matthew Dillon [Fri, 15 Apr 2005 19:08:32 +0000 (19:08 +0000)]
Implement Red-Black trees for the vnode clean/dirty buffer lists.

Implement ranged fsyncs and adjust the syncer to use the new capability.
This capability will also soon be used to replace the write_behind
heuristic.  Rewrite the fsync code for all VFSs to use the new APIs
(generally simplifying them).

Get rid of B_WRITEINPROG, it is no longer useful or needed.
Get rid of B_SCANNED, it is no longer useful or needed.

Rewrite the NFS 2-phase commit protocol to take advantage of the new
Red-Black tree topology.

Add RB_SCAN() for callback-scanning of Red-Black trees.  Give RB_SCAN
the ability to track the 'next' scan node and automatically fix it up
if the callback directly or indirectly or through blocking indirectly
deletes nodes in the tree while the scan is in progress.

Remove most related loop restart conditions, they are no longer necessary.

Disable filesystem background bitmap writes.  This really needs to be
solved a different way and the concept does not work well with red-black
trees.

14 years agoRemove pccard RCNG script, the daemon config, the depency on pccard
Joerg Sonnenberger [Fri, 15 Apr 2005 18:40:52 +0000 (18:40 +0000)]
Remove pccard RCNG script, the daemon config, the depency on pccard
for the other RCNG scripts, the actual daemon and the control program.

pccard_ether is used by usbd, keep it for now.

14 years agoZero the whole structure, not just the name, so we don't trip up on this
Matthew Dillon [Fri, 15 Apr 2005 18:39:13 +0000 (18:39 +0000)]
Zero the whole structure, not just the name, so we don't trip up on this
in the future.

14 years agoGC OLDCARD userland tools.
Joerg Sonnenberger [Fri, 15 Apr 2005 18:26:58 +0000 (18:26 +0000)]
GC OLDCARD userland tools.

14 years agoFix the parameter order of __stack_smash_handler. Also print the
Joerg Sonnenberger [Fri, 15 Apr 2005 18:07:13 +0000 (18:07 +0000)]
Fix the parameter order of __stack_smash_handler. Also print the
return address on IA32 to aid debugging.

14 years agoExtend a local buffer to workarond a buffer overflow for now.
Joerg Sonnenberger [Fri, 15 Apr 2005 17:55:49 +0000 (17:55 +0000)]
Extend a local buffer to workarond a buffer overflow for now.

14 years agoRemove some uses of register keywords.
David Rhodus [Fri, 15 Apr 2005 17:55:29 +0000 (17:55 +0000)]
Remove some uses of register keywords.

14 years agoFix a small stack disclosure in ifconf().
Joerg Sonnenberger [Fri, 15 Apr 2005 07:08:27 +0000 (07:08 +0000)]
Fix a small stack disclosure in ifconf().

See FreeBSD-SA-05:04.ifconf for credits and details.

14 years agogetopt is WARNS 6 clean.
Eirik Nygaard [Thu, 14 Apr 2005 15:49:12 +0000 (15:49 +0000)]
getopt is WARNS 6 clean.

14 years agoA few more instances of leaf that should be leap.
Eirik Nygaard [Thu, 14 Apr 2005 15:05:29 +0000 (15:05 +0000)]
A few more instances of leaf that should be leap.

Noticed by: Bart Thate <dunker@freebsd.nl>

14 years agoIgnore replies with a negative delay. Correct time of next query and
Joerg Sonnenberger [Thu, 14 Apr 2005 11:22:16 +0000 (11:22 +0000)]
Ignore replies with a negative delay. Correct time of next query and
deadline for all peers in priv_settime is called.

This should fix the problems of ntpd -s with very large initial correction.

14 years agoleap second, not leaf second. fix totally stupid, but consistent spelling
Joerg Sonnenberger [Thu, 14 Apr 2005 11:15:52 +0000 (11:15 +0000)]
leap second, not leaf second. fix totally stupid, but consistent spelling
error.

Noticed-by: corecode
14 years agoSync with OpenBSD. This fixes the bug of -s not working and allows
Joerg Sonnenberger [Thu, 14 Apr 2005 10:41:29 +0000 (10:41 +0000)]
Sync with OpenBSD. This fixes the bug of -s not working and allows
defered DNS lookups, which might be necessary in certain network
setups.

14 years agoMerge from vendor branch NTPD:
Joerg Sonnenberger [Thu, 14 Apr 2005 10:41:29 +0000 (10:41 +0000)]
Merge from vendor branch NTPD:
Sync with OpenBSD. This fixes the bug of -s not working and allows
defered DNS lookups, which might be necessary in certain network
setups.

14 years agoUse corrected system time internally, adjust old offsets after
Joerg Sonnenberger [Thu, 14 Apr 2005 10:31:27 +0000 (10:31 +0000)]
Use corrected system time internally, adjust old offsets after
doing a relative adjust of kern.ntp.delta.

Change the default scaling interval to 0.005 and 0.010, which
means that offsets smaller than 5ms double to probe interval,
anything greater than 10ms uses the default. The value of
QSCALE_OFF_MIN can be decreases even more, once frequency correction
is implemented.