dragonfly.git
19 years agoClean (void) casts from usr.sbin
Sascha Wildner [Sat, 18 Dec 2004 22:48:15 +0000 (22:48 +0000)]
Clean (void) casts from usr.sbin

19 years agoAdd missing backslash.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 22:34:36 +0000 (22:34 +0000)]
Add missing backslash.

Discovered by: "walt"

19 years ago- Change manpage to show the change from M_ -> MB_
Liam J. Foy [Sat, 18 Dec 2004 21:55:21 +0000 (21:55 +0000)]
- Change manpage to show the change from M_ -> MB_

Submitted by: Michal Belczyk <diavul@bsd.krakow.pl>

19 years agoMerge from vendor branch CVS:
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 21:54:14 +0000 (21:54 +0000)]
Merge from vendor branch CVS:
Add CVS 1.12.11.

Most notable features:

- new scripting hooks
- speed improvements
- write proxy support
- error message improvements
- various bug and documentation fixes

19 years agoAdd CVS 1.12.11.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 21:54:14 +0000 (21:54 +0000)]
Add CVS 1.12.11.

Most notable features:

- new scripting hooks
- speed improvements
- write proxy support
- error message improvements
- various bug and documentation fixes

19 years agoClean (void) casts from sbin
Sascha Wildner [Sat, 18 Dec 2004 21:43:46 +0000 (21:43 +0000)]
Clean (void) casts from sbin

19 years agoLet the allocation of registers be done by compilers nowadays. The average
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 21:39:38 +0000 (21:39 +0000)]
Let the allocation of registers be done by compilers nowadays.  The average
programmer lacks sufficient specific CPU knowledge to second-guess any
decent current compiler.  In other words: remove register keyword usage.

Submitted by: Steve Mynott

19 years agoMove from K&R function declaration to ANSI.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 21:37:43 +0000 (21:37 +0000)]
Move from K&R function declaration to ANSI.

Submitted by: Steve Mynott

19 years agoRegenerate the manual pages after the OpenSSL update to 0.9.7e.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 21:34:12 +0000 (21:34 +0000)]
Regenerate the manual pages after the OpenSSL update to 0.9.7e.

19 years agoSwitch from OpenSSL 0.9.7d to 0.9.7e.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 20:53:19 +0000 (20:53 +0000)]
Switch from OpenSSL 0.9.7d to 0.9.7e.

19 years agoMerge from vendor branch BINUTILS:
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 20:21:21 +0000 (20:21 +0000)]
Merge from vendor branch BINUTILS:
Add binutils 2.15.

19 years agoAdd binutils 2.15.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 20:21:21 +0000 (20:21 +0000)]
Add binutils 2.15.

19 years agoRevert from previous commit, seems to have to be solved elsewhere.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 19:59:08 +0000 (19:59 +0000)]
Revert from previous commit, seems to have to be solved elsewhere.

19 years agoAdd libmagic to _prebuild_libs
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 19:13:47 +0000 (19:13 +0000)]
Add libmagic to _prebuild_libs

19 years agorename foo to bar
YONETANI Tomokazu [Sat, 18 Dec 2004 18:18:07 +0000 (18:18 +0000)]
rename foo to bar

19 years agojust a test
YONETANI Tomokazu [Sat, 18 Dec 2004 18:16:07 +0000 (18:16 +0000)]
just a test

19 years agoMove the Magdir handling from usr.bin/file to here and simplify.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 18:14:20 +0000 (18:14 +0000)]
Move the Magdir handling from usr.bin/file to here and simplify.

19 years agoSimplify file to be a binary linking to libmagic (which contains the real
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:39:17 +0000 (17:39 +0000)]
Simplify file to be a binary linking to libmagic (which contains the real
functionality).

19 years agoUse spaces after the CFLAGS assignment as well.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:32:47 +0000 (17:32 +0000)]
Use spaces after the CFLAGS assignment as well.

19 years agoUse a space instead of a tab.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:30:11 +0000 (17:30 +0000)]
Use a space instead of a tab.

19 years agoAdd LIBMAGIC.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:28:05 +0000 (17:28 +0000)]
Add LIBMAGIC.

19 years agoAdd libmagic and reorder/restructure the list of the libraries to be build.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:25:16 +0000 (17:25 +0000)]
Add libmagic and reorder/restructure the list of the libraries to be build.

19 years agoUse the more commonly used SRCDIR instead of SOURCEDIR, does not seem to
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:22:54 +0000 (17:22 +0000)]
Use the more commonly used SRCDIR instead of SOURCEDIR, does not seem to
collide with anything inside share/mk.

19 years agoFirst stab at file's libmagic.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:18:43 +0000 (17:18 +0000)]
First stab at file's libmagic.

19 years agoMerge from vendor branch FILE:
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:18:06 +0000 (17:18 +0000)]
Merge from vendor branch FILE:
Add file 4.12.

19 years agoAdd file 4.12.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:18:06 +0000 (17:18 +0000)]
Add file 4.12.

19 years agoRemove obsolete/unused file.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 16:39:39 +0000 (16:39 +0000)]
Remove obsolete/unused file.

19 years agoRegenerate.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 16:00:07 +0000 (16:00 +0000)]
Regenerate.

19 years agoAdd some nForce2 identifiers.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 15:59:36 +0000 (15:59 +0000)]
Add some nForce2 identifiers.

19 years agoMerge from vendor branch OPENSSL:
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 15:29:53 +0000 (15:29 +0000)]
Merge from vendor branch OPENSSL:
Add OpenSSL 0.9.7e.

Notable changes:

- Fix race condition in CRL checking code.
- Fixes to PKCS#7 (S/MIME) code.

19 years agoAdd OpenSSL 0.9.7e.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 15:29:53 +0000 (15:29 +0000)]
Add OpenSSL 0.9.7e.

Notable changes:

- Fix race condition in CRL checking code.
- Fixes to PKCS#7 (S/MIME) code.

19 years agoCleanup missing and duplicate defines from the last commit, rename an
Matthew Dillon [Sat, 18 Dec 2004 06:22:48 +0000 (06:22 +0000)]
Cleanup missing and duplicate defines from the last commit, rename an
entry in umass to conform.

Reported-by: "Alexander \"alxl\" Lobachov" <alxl@alxl.info>
19 years agotest
Sascha Wildner [Fri, 17 Dec 2004 21:13:46 +0000 (21:13 +0000)]
test

19 years agoReduce white space diffs between FreeBSD.
Max Okumoto [Fri, 17 Dec 2004 21:09:04 +0000 (21:09 +0000)]
Reduce white space diffs between FreeBSD.

19 years agoSynchronize usbdevs with NetBSD and regenerate.
Matthew Dillon [Fri, 17 Dec 2004 20:50:46 +0000 (20:50 +0000)]
Synchronize usbdevs with NetBSD and regenerate.

Submitted-by: Barry Bouwsma
19 years agoRegenerate.
Jeroen Ruigrok/asmodai [Fri, 17 Dec 2004 16:08:48 +0000 (16:08 +0000)]
Regenerate.

19 years agoMajor cleanup and expansion of the NVIDIA id section.
Jeroen Ruigrok/asmodai [Fri, 17 Dec 2004 16:08:21 +0000 (16:08 +0000)]
Major cleanup and expansion of the NVIDIA id section.

19 years agoMissed removal of a file, in previous commit.
Max Okumoto [Fri, 17 Dec 2004 08:20:32 +0000 (08:20 +0000)]
Missed removal of a file, in previous commit.

19 years agoFix a long-standing bug when make(1) is passed the -V and
Max Okumoto [Fri, 17 Dec 2004 08:17:05 +0000 (08:17 +0000)]
Fix a long-standing bug when make(1) is passed the -V and
-f options in MAKEFLAGS environment variable, and some of
these options are also specified on the command line.

Taken-from: FreeBSD
Author: ru

19 years agoInstead of dynamically allocating list heads allocated them statically
Max Okumoto [Fri, 17 Dec 2004 08:13:30 +0000 (08:13 +0000)]
Instead of dynamically allocating list heads allocated them statically
now that their size is only two pointers. This eliminates a lot of calls
to Lst_Init and from there to malloc together with many calls to
Lst_Destroy (in places where the list is obviously empty). This also
reduces the chance to leave a list uninitilized so we can remove more
NULL pointer checks and probably eliminates a couple of memory leaks.

Taken-from: FreeBSD
Author: harti

19 years agoo Remove a useless list where just all command lines are stuffed
Max Okumoto [Fri, 17 Dec 2004 08:09:58 +0000 (08:09 +0000)]
o Remove a useless list where just all command lines are stuffed
  onto, never used and just freed at the end. The idea might have
  been to be able to free all the strings, but what's the point to
  free just before exiting?

o Remove a list that used to hold all the GNodes just to be able
  to free them just before exiting.

o Remove a list that was just used to free all variables just before
  exiting.

Taken-from: FreeBSD
Author: harti

19 years agoNobody actually checked the return codes from Lst_Append and
Max Okumoto [Fri, 17 Dec 2004 08:07:49 +0000 (08:07 +0000)]
Nobody actually checked the return codes from Lst_Append and
Lst_Insert so don't return anything.

Taken-from: FreeBSD
Author: harti

19 years agoIf a path element directory was never opened it is not on the list of
Max Okumoto [Fri, 17 Dec 2004 08:06:12 +0000 (08:06 +0000)]
If a path element directory was never opened it is not on the list of
open directories so there is no need to remove it from there. This fixes
a core dump introduced by removing the run-time check from Lst_Remove.

Taken-from: FreeBSD
Author: harti

19 years agoo Don't free the second list in Lst_Concat for LST_CONCLINK; free
Max Okumoto [Fri, 17 Dec 2004 08:01:40 +0000 (08:01 +0000)]
o Don't free the second list in Lst_Concat for LST_CONCLINK; free
  it in the caller instead.

o Remove return value from Lst_Concat. None of the callers ever
  checked it. Remove stuff that was needed for circular lists.

o Don't check the return code from Lst_Remove. There is no way that
  the list's first element is not on the list.

o No caller checks the return code from Lst_Remove, so don't return
  one.  Simplify the algorithm now that circular lists are gone.

o Now that circular lists are gone remove stuff for them. Simplify
  somewhat so that we can remove a local variable.

Taken-from: FreeBSD
Author: harti

19 years agoGet rid of the sequential access feature of the lists. This was
Max Okumoto [Fri, 17 Dec 2004 07:56:08 +0000 (07:56 +0000)]
Get rid of the sequential access feature of the lists. This was
used only in a couple of places and all of them except for one were
easily converted to use Lst_First/Lst_Succ. The one place is
compatibility mode in job.c where the it was used to advance to the
next command on each invocation of JobStart. For this case add a
pointer to the node to hold the currently executed command.

Take-from: FreeBSD
Author: harti

19 years agoConstify the arguments to the list compare function. This temporarily
Max Okumoto [Fri, 17 Dec 2004 07:53:57 +0000 (07:53 +0000)]
Constify the arguments to the list compare function. This temporarily
requires to make a copy of the filename in ReadMakefile and to
duplicate two small functions in suff.c. This hopefully will go
away when everything is constified.

Taken-from: FreeBSD
Author: harti

19 years agoConstify some calls of Buf_AddBytes.
Max Okumoto [Fri, 17 Dec 2004 07:05:22 +0000 (07:05 +0000)]
Constify some calls of Buf_AddBytes.

19 years agoVFS messaging/interfacing work stage 10/99:
Matthew Dillon [Fri, 17 Dec 2004 00:18:49 +0000 (00:18 +0000)]
VFS messaging/interfacing work stage 10/99:

Start adding the journaling, range locking, and (very slightly) cache
coherency infrastructure.  Continue cleaning up the VOP operations vector.

Expand on past commits that gave each mount structure its own set of VOP
operations vectors by adding additional vector sets for journaling or
cache coherency operations.  Remove the vv_jops and vv_cops fields
from the vnode operations vector in favor of placing those vop_ops directly
in the mount structure.  Reorganize the VOP calls as a double-indirect
and add a field to the mount structure which represents the current
vnode operations set (which will change when e.g. journaling is turned on
or off).  This creates the infrastructure necessary to allow us to stack
a generic journaling implementation on top of a filesystem.

Introduce a hard range-locking API for vnodes.   This API will be used by
high level system/vfs calls in order to handle atomicy guarentees.  It is
a prerequisit for: (1) being able to break I/O's up into smaller pieces
for the vm_page list/direct-to-DMA-without-mapping goal, (2) to support
the parallel write operations on a vnode goal, (3) to support the clustered
(remote) cache coherency goal, and (4) to support massive parallelism in
dispatching operations for the upcoming threaded VFS work.

This commit represents only infrastructure and skeleton/API work.

19 years agoChanged comment to match code.
Max Okumoto [Fri, 17 Dec 2004 00:09:17 +0000 (00:09 +0000)]
Changed comment to match code.

19 years agoTypedefs of pointers to structs are evil. Make Lst and LstNode typedef of
Max Okumoto [Fri, 17 Dec 2004 00:02:57 +0000 (00:02 +0000)]
Typedefs of pointers to structs are evil. Make Lst and LstNode typedef of
the structs itself not of pointers to them. This will simplify constification.

Taken-from: FreeBSD
Author: harti

19 years agoConstification of arguments passed to functions; no change on the
Max Okumoto [Thu, 16 Dec 2004 23:52:16 +0000 (23:52 +0000)]
Constification of arguments passed to functions; no change on the
resulting executable.  Submitted by:  Max Okumoto <okumoto@ucsd.edu>

Taken-from: FreeBSD
Author: harti

19 years agoMake needs no circular lists so remove them from the list code.
Max Okumoto [Thu, 16 Dec 2004 23:24:10 +0000 (23:24 +0000)]
Make needs no circular lists so remove them from the list code.

Taken-from: FreeBSD
Author: harti

19 years agoSome constification which doesn't require code rewrites.
Max Okumoto [Thu, 16 Dec 2004 23:22:15 +0000 (23:22 +0000)]
Some constification which doesn't require code rewrites.

Taken-from: FreeBSD
Author: harti

19 years agoo Remove an unused macro
Max Okumoto [Thu, 16 Dec 2004 23:08:36 +0000 (23:08 +0000)]
o Remove an unused macro
o Style: fix indentation.

Taken-from: FreeBSD
Author: harti

19 years agoAdd weak fake pthread functions, which always fail. This is needed to
Joerg Sonnenberger [Thu, 16 Dec 2004 22:55:29 +0000 (22:55 +0000)]
Add weak fake pthread functions, which always fail. This is needed to
allow non-threaded programs to link thread-aware libraries or dlopen
such shared objects. A similiar "solution" has been used by
XFree86 / Xorg for years in form of libXThrStub, but this was recently
retired. It can be a considered a short term solution until libcr is
ready.

Submitted-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
19 years agoConstify arguments to Hash_FindEntry and Hash_CreateEntry.
Max Okumoto [Thu, 16 Dec 2004 22:28:09 +0000 (22:28 +0000)]
Constify arguments to Hash_FindEntry and Hash_CreateEntry.

Taken-from: FreeBSD
Author: harti

19 years agoo Remove an extra space.
Max Okumoto [Thu, 16 Dec 2004 22:23:59 +0000 (22:23 +0000)]
o Remove an extra space.
o Style: fix indentation, prototypes for functions even in comment.
o Remove extra empty lines.

Taken-from: FreeBSD
Author: harti

19 years agoUse size_t to fix 64-bit platforms
Max Okumoto [Thu, 16 Dec 2004 22:20:12 +0000 (22:20 +0000)]
Use size_t to fix 64-bit platforms

Taken-from: FreeBSD
Author: harti

19 years agoMake sizes to be of type size_t and correct function arguments that
Max Okumoto [Thu, 16 Dec 2004 22:05:23 +0000 (22:05 +0000)]
Make sizes to be of type size_t and correct function arguments that
should be Byte (as the numerous casts to Byte in the function calls
show).  Put macro arguments in paranthesis.

Taken-from: FreeBSD
Author: harti

19 years agoStyle: fix indentation, protect macro with do { } while (0).
Max Okumoto [Thu, 16 Dec 2004 21:58:14 +0000 (21:58 +0000)]
Style: fix indentation, protect macro with do { } while (0).

Taken-from: FreeBSD
Author: harti

19 years agoUse __arysize() to cal size of array.
Max Okumoto [Thu, 16 Dec 2004 21:38:04 +0000 (21:38 +0000)]
Use __arysize() to cal size of array.

19 years agoChange the algorithm that matches the builtin shells from the name keyword
Max Okumoto [Thu, 16 Dec 2004 21:28:28 +0000 (21:28 +0000)]
Change the algorithm that matches the builtin shells from the name keyword
of the .SHELL target. Formerly it used to select the shell with the
longest common trailing substring, so that bash would select sh, but pocsh
would select csh. Now an exact match is required so that specifying bash
without also giving a path and the other keywords will give an error.

Taken-from: FreeBSD
Author: harti

19 years agoRegenerate.
Jeroen Ruigrok/asmodai [Thu, 16 Dec 2004 14:04:10 +0000 (14:04 +0000)]
Regenerate.

19 years agoAdd more detail to the 845, 865, and 915 family.
Jeroen Ruigrok/asmodai [Thu, 16 Dec 2004 14:03:18 +0000 (14:03 +0000)]
Add more detail to the 845, 865, and 915 family.
The 2573 is not 82801, but the 848/865 PCI-CSA.
Add E7520 and E7525 details.

19 years agoFix the keyboard lockup problem. There were two big clues: The first was a
Matthew Dillon [Thu, 16 Dec 2004 08:30:15 +0000 (08:30 +0000)]
Fix the keyboard lockup problem.  There were two big clues:  The first was a
report that it sometimes seemed to occur during heavy video operations.  The
second was a set of kernel dates from Jansen Gotis and Michael Powell that
focused me in on the right part of the code.

Simply put, there is a hack for AT keyboards that polls the keyboard for
data 10 times a second in order to catch lost interrupts.  Lost interrupts
can occur because unlike other interrupts the AT keyboard interrupt is
edge-triggered.  This means that latency in the system can cause the
keyboard interrupt to retrigger before it is reenabled after an earlier
event but not cause any further interrupts.

There is a big hack in the system that polls for keyboard data 10 times a
second in order to detect this 'lost' interrupt case.  However, that code
was broken by the timeout->callout work I did on September 19th.  An
incorrectly placed callout_reset() stopped the polling code in its tracks.

Reported-by: Jeroen Ruigrok/asmodai <asmodai@wxs.nl>,
Chris Pressey <cpressey@catseye.mine.nu>,
Michael Powell <nightrecon@hotmail.com>,
Jansen Gotis <jtgotis@gmail.com>,
And others.

19 years ago'bool' is a really bad name for a variable, rename it.
Matthew Dillon [Thu, 16 Dec 2004 03:39:05 +0000 (03:39 +0000)]
'bool' is a really bad name for a variable, rename it.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
19 years agoCorrect a bug where incoming connections do not properly initialize the
Matthew Dillon [Thu, 16 Dec 2004 03:37:30 +0000 (03:37 +0000)]
Correct a bug where incoming connections do not properly initialize the
inflight bandwidth calculator.

Reorg the code a bit, removing random initialization elsewhere and putting
it all in one place.

Add an idle check and a pure-ack check.

Reported-by: Dan Nelson <dnelson@allantgroup.com>
19 years agoBump WARNS to 6.
Chris Pressey [Thu, 16 Dec 2004 00:32:07 +0000 (00:32 +0000)]
Bump WARNS to 6.

19 years agoRemove a double test for the same ptr != NULL and use the official
Max Okumoto [Thu, 16 Dec 2004 00:28:13 +0000 (00:28 +0000)]
Remove a double test for the same ptr != NULL and use the official
macro for this; reorder an if.

Taken-from: FreeBSD
Author: harti

19 years agoStyle: remove a lot of unnecessary casts, add some and spell the null
Max Okumoto [Thu, 16 Dec 2004 00:17:05 +0000 (00:17 +0000)]
Style: remove a lot of unnecessary casts, add some and spell the null
pointer constant as NULL.

Checked by: diff -r on the object files before and after

Taken-from: FreeBSD
Author: harti

19 years agoFix code that modifies const string variables.
Max Okumoto [Thu, 16 Dec 2004 00:03:54 +0000 (00:03 +0000)]
Fix code that modifies const string variables.

19 years agoOopsie; use WARNS?=, not WARNS=.
Chris Pressey [Wed, 15 Dec 2004 23:40:55 +0000 (23:40 +0000)]
Oopsie; use WARNS?=, not WARNS=.

19 years agoBump WARNS to 6.
Chris Pressey [Wed, 15 Dec 2004 23:22:57 +0000 (23:22 +0000)]
Bump WARNS to 6.

19 years agoBump WARNS to 6:
Chris Pressey [Wed, 15 Dec 2004 23:11:06 +0000 (23:11 +0000)]
Bump WARNS to 6:
- Initialize variable that GCC can't tell will never be used
  uninitialized.

19 years agoBump WARNS to 6.
Chris Pressey [Wed, 15 Dec 2004 21:27:40 +0000 (21:27 +0000)]
Bump WARNS to 6.

19 years agoRemove bool and boolean_t typedefs from header files where they don't belong,
Matthew Dillon [Wed, 15 Dec 2004 09:44:47 +0000 (09:44 +0000)]
Remove bool and boolean_t typedefs from header files where they don't belong,
fixing portions of the build.

19 years agoFix field for recent radix.h cleanups.
Matthew Dillon [Wed, 15 Dec 2004 09:27:05 +0000 (09:27 +0000)]
Fix field for recent radix.h cleanups.

19 years agoPatch up user/kernel space difference with boolean types.
Jeffrey Hsu [Wed, 15 Dec 2004 07:32:26 +0000 (07:32 +0000)]
Patch up user/kernel space difference with boolean types.

Reported by:  Simon 'corecode' Schubert <corecode@fs.ei.tum.de>

19 years agoClean up routing code before I parallelize it.
Jeffrey Hsu [Wed, 15 Dec 2004 00:11:04 +0000 (00:11 +0000)]
Clean up routing code before I parallelize it.

19 years agoFix a diagnostic check related to new VOP_INACTIVE semantics.
Matthew Dillon [Tue, 14 Dec 2004 23:59:47 +0000 (23:59 +0000)]
Fix a diagnostic check related to new VOP_INACTIVE semantics.

19 years agoDocument vmpageinfo.c
Matthew Dillon [Tue, 14 Dec 2004 23:58:32 +0000 (23:58 +0000)]
Document vmpageinfo.c

19 years ago- Add $DragonFly$ tag
Liam J. Foy [Tue, 14 Dec 2004 21:06:51 +0000 (21:06 +0000)]
- Add $DragonFly$ tag
- Add WARNS?= 6

19 years agoClean up routing code before I parallelize it.
Jeffrey Hsu [Tue, 14 Dec 2004 18:46:58 +0000 (18:46 +0000)]
Clean up routing code before I parallelize it.

19 years ago- Complete re-write/re-structure of rev(1). The previous code was ugly!
Liam J. Foy [Tue, 14 Dec 2004 18:22:09 +0000 (18:22 +0000)]
- Complete re-write/re-structure of rev(1). The previous code was ugly!

Thanks to Joerg, YONETANI Tomokazu and Matt.

Ok'ed by: Matt, Joerg and YONETANI Tomokazu

19 years agoRemove generic generating counting. I'm going to use a different approach
Joerg Sonnenberger [Tue, 14 Dec 2004 17:53:53 +0000 (17:53 +0000)]
Remove generic generating counting. I'm going to use a different approach
for the network stack and other parts in need of generation counting.

Requested-by: dillon
19 years agoAdd an example ntpd.conf. This is not installed by default, because
Joerg Sonnenberger [Tue, 14 Dec 2004 17:30:05 +0000 (17:30 +0000)]
Add an example ntpd.conf. This is not installed by default, because
administrators and users are encouraged to use personalized settings,
which means being aware of this file first.

Requested-by: Erik Paulsen Skaalerud
Inspired-by: OpenBSD's src/etc/ntpd.conf
19 years agoRegenerate.
Jeroen Ruigrok/asmodai [Tue, 14 Dec 2004 16:08:40 +0000 (16:08 +0000)]
Regenerate.

19 years agoMerge from vendor branch NTPD:
Joerg Sonnenberger [Tue, 14 Dec 2004 16:05:57 +0000 (16:05 +0000)]
Merge from vendor branch NTPD:
Sync with OpenBSD.

19 years agoSync with OpenBSD.
Joerg Sonnenberger [Tue, 14 Dec 2004 16:05:57 +0000 (16:05 +0000)]
Sync with OpenBSD.

19 years agoAdd IDs for the following:
Jeroen Ruigrok/asmodai [Tue, 14 Dec 2004 16:04:04 +0000 (16:04 +0000)]
Add IDs for the following:
Intel E7205 Memory Controller Hub
Intel 915G/P/GV DRAM Controller
Intel 915G/P/GV Host-to-PCI Express Bridge
Intel 82801FB/FR LPC Interface Bridge
Intel 82801FB/FR/FW/FRW USB UHCI Controller
Intel 82801FB/FR/FW/FRW USB EHCI Controller
Intel 82801FB/FR/FW/FRW SMBus Controller

19 years agoDo not reinitialize the translation mode if reattaching to an existing
Matthew Dillon [Tue, 14 Dec 2004 02:27:00 +0000 (02:27 +0000)]
Do not reinitialize the translation mode if reattaching to an existing
keyboard state, aka the console.  Otherwise we might change the mode out
from under X and screw up X's translation of keyboard strokes.

This allows a USB keyboard to be unplugged and replugged in without messing
up X.

19 years agoAdd dependency for libcrypto to dc(1). Don't build bc and dc if
Joerg Sonnenberger [Mon, 13 Dec 2004 21:48:16 +0000 (21:48 +0000)]
Add dependency for libcrypto to dc(1). Don't build bc and dc if
NO_OPENSSL is specified.

19 years agoAdd back missing space after comma.
Max Okumoto [Mon, 13 Dec 2004 21:45:05 +0000 (21:45 +0000)]
Add back missing space after comma.

19 years ago- Restructure the code
Liam J. Foy [Mon, 13 Dec 2004 17:43:57 +0000 (17:43 +0000)]
- Restructure the code
- Update functions to ANSI style
- Remove register
- Make variables const
- Remove filename, unnecessary (we can use argv)
- Avoid repeated checks on *argv
- If ferror returns an error, we must reset the error indicator
  with clearerr(). We must do this incase another error occurs
  on file ++argv
- Add WARNS 6
- Static functions
- Add $DragonFly$ tag to Makefile

OK'ed: Joerg@

19 years ago- Remove both errno.h and string.h. Both are unnecessary.
Liam J. Foy [Mon, 13 Dec 2004 14:08:44 +0000 (14:08 +0000)]
- Remove both errno.h and string.h. Both are unnecessary.
- Better error message
- Add WARNS 6

OK'ed: Joerg@

19 years ago- We should warn with argv[i] not argv[1]
Liam J. Foy [Sun, 12 Dec 2004 17:01:05 +0000 (17:01 +0000)]
- We should warn with argv[i] not argv[1]
- err -> warn (we can continue)
- Return with error if any fsyncs fail
- Add WARNS?= 6

19 years agoMerge from FreeBSD:
Jeffrey Hsu [Sat, 11 Dec 2004 01:04:00 +0000 (01:04 +0000)]
Merge from FreeBSD:
  revision 1.102
  date: 2003/02/08 15:05:15;  author: orion;  state: Exp;  lines: +7 -6
  Avoid multiply for preemptive arp calculation since it hits every
  ethernet packet sent.

  Prompted by: Jeffrey Hsu <hsu@FreeBSD.org>

19 years agovm_page_free_*() now requires the page to be busied, fix a case in
Matthew Dillon [Fri, 10 Dec 2004 23:07:10 +0000 (23:07 +0000)]
vm_page_free_*() now requires the page to be busied, fix a case in
vm_page_unhold() where that was not occuring.

19 years agoBring in elements from the FreeBSD usbdevs that the DFly usbdevs does not
Matthew Dillon [Fri, 10 Dec 2004 20:37:55 +0000 (20:37 +0000)]
Bring in elements from the FreeBSD usbdevs that the DFly usbdevs does not
have.

Submitted-by: Barry Bouwsma
19 years agoRemove more whitespace.
Max Okumoto [Fri, 10 Dec 2004 20:34:01 +0000 (20:34 +0000)]
Remove more whitespace.

Check-by: diff on make *.o lst.lib/*.o