Liam J. Foy [Sun, 19 Dec 2004 19:37:06 +0000 (19:37 +0000)]
- Remove unneccessary cast
- Constify *ofn
- Add $DragonFly$ tag to Makefile
- Add WARNS?= 6
Liam J. Foy [Sun, 19 Dec 2004 11:56:45 +0000 (11:56 +0000)]
- Deregister strlcpy
Submitted by: Steve Mynott <steve.mynott@gmail.com>
Matthew Dillon [Sun, 19 Dec 2004 00:06:55 +0000 (00:06 +0000)]
Temporarily allow recursion on locks to deal with a double lock in the
kern_link()/ext2_link() case.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 22:50:34 +0000 (22:50 +0000)]
Remove file from build_tools, since it serves no build tool purpose.
Sascha Wildner [Sat, 18 Dec 2004 22:48:15 +0000 (22:48 +0000)]
Clean (void) casts from usr.sbin
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 22:34:36 +0000 (22:34 +0000)]
Add missing backslash.
Discovered by: "walt"
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>
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
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
Sascha Wildner [Sat, 18 Dec 2004 21:43:46 +0000 (21:43 +0000)]
Clean (void) casts from sbin
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
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
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.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 20:53:19 +0000 (20:53 +0000)]
Switch from OpenSSL 0.9.7d to 0.9.7e.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 20:21:21 +0000 (20:21 +0000)]
Merge from vendor branch BINUTILS:
Add binutils 2.15.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 20:21:21 +0000 (20:21 +0000)]
Add binutils 2.15.
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.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 19:13:47 +0000 (19:13 +0000)]
Add libmagic to _prebuild_libs
YONETANI Tomokazu [Sat, 18 Dec 2004 18:18:07 +0000 (18:18 +0000)]
rename foo to bar
YONETANI Tomokazu [Sat, 18 Dec 2004 18:16:07 +0000 (18:16 +0000)]
just a test
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.
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).
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:32:47 +0000 (17:32 +0000)]
Use spaces after the CFLAGS assignment as well.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:30:11 +0000 (17:30 +0000)]
Use a space instead of a tab.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:28:05 +0000 (17:28 +0000)]
Add LIBMAGIC.
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.
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.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:18:43 +0000 (17:18 +0000)]
First stab at file's libmagic.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:18:06 +0000 (17:18 +0000)]
Merge from vendor branch FILE:
Add file 4.12.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 17:18:06 +0000 (17:18 +0000)]
Add file 4.12.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 16:39:39 +0000 (16:39 +0000)]
Remove obsolete/unused file.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 16:00:07 +0000 (16:00 +0000)]
Regenerate.
Jeroen Ruigrok/asmodai [Sat, 18 Dec 2004 15:59:36 +0000 (15:59 +0000)]
Add some nForce2 identifiers.
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.
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.
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>
Sascha Wildner [Fri, 17 Dec 2004 21:13:46 +0000 (21:13 +0000)]
test
Max Okumoto [Fri, 17 Dec 2004 21:09:04 +0000 (21:09 +0000)]
Reduce white space diffs between FreeBSD.
Matthew Dillon [Fri, 17 Dec 2004 20:50:46 +0000 (20:50 +0000)]
Synchronize usbdevs with NetBSD and regenerate.
Submitted-by: Barry Bouwsma
Jeroen Ruigrok/asmodai [Fri, 17 Dec 2004 16:08:48 +0000 (16:08 +0000)]
Regenerate.
Jeroen Ruigrok/asmodai [Fri, 17 Dec 2004 16:08:21 +0000 (16:08 +0000)]
Major cleanup and expansion of the NVIDIA id section.
Max Okumoto [Fri, 17 Dec 2004 08:20:32 +0000 (08:20 +0000)]
Missed removal of a file, in previous commit.
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
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
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
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
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
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
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
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
Max Okumoto [Fri, 17 Dec 2004 07:05:22 +0000 (07:05 +0000)]
Constify some calls of Buf_AddBytes.
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.
Max Okumoto [Fri, 17 Dec 2004 00:09:17 +0000 (00:09 +0000)]
Changed comment to match code.
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
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
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
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
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
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>
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
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
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
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
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
Max Okumoto [Thu, 16 Dec 2004 21:38:04 +0000 (21:38 +0000)]
Use __arysize() to cal size of array.
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
Jeroen Ruigrok/asmodai [Thu, 16 Dec 2004 14:04:10 +0000 (14:04 +0000)]
Regenerate.
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.
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.
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>
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>
Chris Pressey [Thu, 16 Dec 2004 00:32:07 +0000 (00:32 +0000)]
Bump WARNS to 6.
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
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
Max Okumoto [Thu, 16 Dec 2004 00:03:54 +0000 (00:03 +0000)]
Fix code that modifies const string variables.
Chris Pressey [Wed, 15 Dec 2004 23:40:55 +0000 (23:40 +0000)]
Oopsie; use WARNS?=, not WARNS=.
Chris Pressey [Wed, 15 Dec 2004 23:22:57 +0000 (23:22 +0000)]
Bump 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.
Chris Pressey [Wed, 15 Dec 2004 21:27:40 +0000 (21:27 +0000)]
Bump WARNS to 6.
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.
Matthew Dillon [Wed, 15 Dec 2004 09:27:05 +0000 (09:27 +0000)]
Fix field for recent radix.h cleanups.
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>
Jeffrey Hsu [Wed, 15 Dec 2004 00:11:04 +0000 (00:11 +0000)]
Clean up routing code before I parallelize it.
Matthew Dillon [Tue, 14 Dec 2004 23:59:47 +0000 (23:59 +0000)]
Fix a diagnostic check related to new VOP_INACTIVE semantics.
Matthew Dillon [Tue, 14 Dec 2004 23:58:32 +0000 (23:58 +0000)]
Document vmpageinfo.c
Liam J. Foy [Tue, 14 Dec 2004 21:06:51 +0000 (21:06 +0000)]
- Add $DragonFly$ tag
- Add WARNS?= 6
Jeffrey Hsu [Tue, 14 Dec 2004 18:46:58 +0000 (18:46 +0000)]
Clean up routing code before I parallelize it.
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
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
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
Jeroen Ruigrok/asmodai [Tue, 14 Dec 2004 16:08:40 +0000 (16:08 +0000)]
Regenerate.
Joerg Sonnenberger [Tue, 14 Dec 2004 16:05:57 +0000 (16:05 +0000)]
Merge from vendor branch NTPD:
Sync with OpenBSD.
Joerg Sonnenberger [Tue, 14 Dec 2004 16:05:57 +0000 (16:05 +0000)]
Sync with OpenBSD.
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
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.
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.
Max Okumoto [Mon, 13 Dec 2004 21:45:05 +0000 (21:45 +0000)]
Add back missing space after comma.
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@
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@
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