dragonfly.git
15 years agoFix whitespace.
Jeffrey Hsu [Tue, 21 Dec 2004 02:42:41 +0000 (02:42 +0000)]
Fix whitespace.

15 years agoReorder included headers to an acceptable standard. System headers
Hiten Pandya [Tue, 21 Dec 2004 02:07:27 +0000 (02:07 +0000)]
Reorder included headers to an acceptable standard.  System headers
should come first, then userland/normal headers, then application
specific headers, etc.

This should be in accordance with the style(9) manual page.

15 years ago- Detect and exit on write errors (from FreeBSD, but our code)
Liam J. Foy [Mon, 20 Dec 2004 23:59:45 +0000 (23:59 +0000)]
- Detect and exit on write errors (from FreeBSD, but our code)
- Add err.h

Ok'ed by: Joerg

15 years agoCorrect the make target the user is told to use to fetch required
Matthew Dillon [Mon, 20 Dec 2004 21:13:09 +0000 (21:13 +0000)]
Correct the make target the user is told to use to fetch required
packages.

15 years agoBump WARNS to 6:
Chris Pressey [Mon, 20 Dec 2004 20:09:23 +0000 (20:09 +0000)]
Bump WARNS to 6:
- Remove redundant nested extern declarations;
- Constify some char *'s, introducing new variables where existing
  variables were being used more than once for different purposes;
- Adjust the signedness of some integer variables to reflect their
  usage in comparisons;
- Use a struct timeval instead of a pair of integer variables to
  record the 'best' time.

15 years agoStyle(9):
Chris Pressey [Mon, 20 Dec 2004 19:59:54 +0000 (19:59 +0000)]
Style(9):
- Remove casts to void when ignoring return values;
- Un-block a useless inner block containing no variable declarations.

15 years agoMove the doscmd: depdendancy to after the .include so it does not
Matthew Dillon [Mon, 20 Dec 2004 19:24:38 +0000 (19:24 +0000)]
Move the doscmd: depdendancy to after the .include so it does not
override the ${PROG} target.

15 years agoMerge from vendor branch GCC:
Joerg Sonnenberger [Mon, 20 Dec 2004 19:23:26 +0000 (19:23 +0000)]
Merge from vendor branch GCC:
- Update GCC to version 3.4.3.
- Remove some unused files from the repository.
- Change default debug format back to DWARF-2, since gdb 6 works better with
  it.
- Compile libobjc dynamically too, it helps e.g. GnuStep.
- Install MMX/SSE/... support headers under /usr/libdata/gcc34.

15 years ago- Update GCC to version 3.4.3.
Joerg Sonnenberger [Mon, 20 Dec 2004 19:23:27 +0000 (19:23 +0000)]
- Update GCC to version 3.4.3.
- Remove some unused files from the repository.
- Change default debug format back to DWARF-2, since gdb 6 works better with
  it.
- Compile libobjc dynamically too, it helps e.g. GnuStep.
- Install MMX/SSE/... support headers under /usr/libdata/gcc34.

15 years ago- Update GCC to version 3.4.3.
Joerg Sonnenberger [Mon, 20 Dec 2004 19:23:26 +0000 (19:23 +0000)]
- Update GCC to version 3.4.3.
- Remove some unused files from the repository.
- Change default debug format back to DWARF-2, since gdb 6 works better with
  it.
- Compile libobjc dynamically too, it helps e.g. GnuStep.
- Install MMX/SSE/... support headers under /usr/libdata/gcc34.

15 years agoClean up "`cache' might be used uninitialized" warnings. These come from
Matthew Dillon [Mon, 20 Dec 2004 18:37:59 +0000 (18:37 +0000)]
Clean up "`cache' might be used uninitialized" warnings.  These come from
a really badly coded cache boolean related to NQ leases which is passed back
in a reply.  Just pre-initialize the variable to 0 to fix the warnings.

15 years agoRemove cruft for GCC 3.3
Joerg Sonnenberger [Mon, 20 Dec 2004 18:36:29 +0000 (18:36 +0000)]
Remove cruft for GCC 3.3

15 years agoThe ../Makefile.inc chain may be .included early (it is also included by
Matthew Dillon [Mon, 20 Dec 2004 18:10:11 +0000 (18:10 +0000)]
The ../Makefile.inc chain may be .included early (it is also included by
bsd.init.mk).  Make sure the chain is only included once to avoid
duplicate script warnings from make.

15 years agoRemove duplicate .include of bsd.subdir.mk. It is already indirectly
Matthew Dillon [Mon, 20 Dec 2004 18:08:32 +0000 (18:08 +0000)]
Remove duplicate .include of bsd.subdir.mk.   It is already indirectly
included.

15 years agoRemove duplicate _EXTRADEPEND entry. bsd.lib.mk already has one. It is
Matthew Dillon [Mon, 20 Dec 2004 18:02:19 +0000 (18:02 +0000)]
Remove duplicate _EXTRADEPEND entry.  bsd.lib.mk already has one.  It is
unclear how the source dependancy should be handled but since it only
generates entries for a .depend file we can comment it out for now.

15 years agoFix printf format specifier from %lx->%x for ntohl argument.
Matthew Dillon [Mon, 20 Dec 2004 17:44:51 +0000 (17:44 +0000)]
Fix printf format specifier from %lx->%x for ntohl argument.

15 years agoFix duplicate script warnings byt remove a duplicate .include of bsd.subdir.mk.
Matthew Dillon [Mon, 20 Dec 2004 17:21:39 +0000 (17:21 +0000)]
Fix duplicate script warnings byt remove a duplicate .include of bsd.subdir.mk.

15 years agoFix format %lx->%x for ntohl conversions in diagnostic warning printfs.
Matthew Dillon [Mon, 20 Dec 2004 17:15:40 +0000 (17:15 +0000)]
Fix format %lx->%x for ntohl conversions in diagnostic warning printfs.

15 years agoDefine __arysize for FreeBSD 4 buildworlds.
Joerg Sonnenberger [Mon, 20 Dec 2004 16:58:34 +0000 (16:58 +0000)]
Define __arysize for FreeBSD 4 buildworlds.

15 years agoAdd missing ..
Matthew Dillon [Mon, 20 Dec 2004 16:20:02 +0000 (16:20 +0000)]
Add missing ..

Reported-by: Jonathon McKitrick <jcm@FreeBSD-uk.eu.org>
15 years agoCorrect the module search path in some manual pages.
Sascha Wildner [Mon, 20 Dec 2004 14:21:19 +0000 (14:21 +0000)]
Correct the module search path in some manual pages.

Submitted-by: Joerg Anslik <joerg@anslik.de>
15 years agoRemove unecessary range check. start and num are unsigned anyway and
Joerg Sonnenberger [Mon, 20 Dec 2004 13:58:02 +0000 (13:58 +0000)]
Remove unecessary range check. start and num are unsigned anyway and
the num == 0 case works fine already.

Noticed-by: Christer Öberg <christer.oberg@ornsat.com>
15 years agoUSER_LDT has been removed ages ago.
Joerg Sonnenberger [Mon, 20 Dec 2004 13:35:14 +0000 (13:35 +0000)]
USER_LDT has been removed ages ago.

15 years agoMatch GCC's configured target.
Jeroen Ruigrok/asmodai [Mon, 20 Dec 2004 13:21:38 +0000 (13:21 +0000)]
Match GCC's configured target.

Asked for by: joerg

15 years agoFirst stab at bmake glue for binutils 2.15.
Jeroen Ruigrok/asmodai [Mon, 20 Dec 2004 13:14:45 +0000 (13:14 +0000)]
First stab at bmake glue for binutils 2.15.
Based on the 2.14 work.

15 years agoConsistently use /:/boot:/modules as search path in the loader, the kernel
Joerg Sonnenberger [Mon, 20 Dec 2004 13:13:19 +0000 (13:13 +0000)]
Consistently use /:/boot:/modules as search path in the loader, the kernel
and the associated documentation.

Submitted-by: Joerg Anslik <joerg@anslik.de>
15 years agoRemove the userland visible part of the socket generation counting.
Joerg Sonnenberger [Mon, 20 Dec 2004 11:03:16 +0000 (11:03 +0000)]
Remove the userland visible part of the socket generation counting.
As a side issue, the CPU used for processing a PCB isn't shown anymore,
since this is currently not included by the userland sockets.

15 years ago- Make *user, *group and *groupset local, constify them and initialise
Liam J. Foy [Mon, 20 Dec 2004 10:59:36 +0000 (10:59 +0000)]
- Make *user, *group and *groupset local, constify them and initialise
  them.
- Remove unnecessary cast

15 years ago- Add WARNS?= 6
Liam J. Foy [Mon, 20 Dec 2004 10:28:41 +0000 (10:28 +0000)]
- Add WARNS?= 6
- Silence GCC with WARNS 6 enabled via __dead2
- Constify
- Rename sleep -> apm_sleep (avoid shadows)
- Fix a data type (int i -> u_int i)

Ok'ed by: Joerg

15 years agoRemove bogus DIAGNOSTIC code that checked if the process was SZOMB or SRUN
Matthew Dillon [Mon, 20 Dec 2004 09:21:18 +0000 (09:21 +0000)]
Remove bogus DIAGNOSTIC code that checked if the process was SZOMB or SRUN
during cpu_heavy_restore().  In fact, the process structure may be in
virtually any state since a preemption will call the restore function to
return to the preempted thread.  The process state is really more a
function of the userland scheduler and not so much related to the LWKT
scheduler.

15 years agoMove the CCVER override for the release build from a make command line
Matthew Dillon [Mon, 20 Dec 2004 09:11:56 +0000 (09:11 +0000)]
Move the CCVER override for the release build from a make command line
variable to an environment variable.  Make command line variables cannot
be overridden which will prevent the buildworld the release target runs
from being able to properly override sub-makes during e.g. the GCC-3.4 build.

15 years agoAdd binutils 2.15 directories.
Jeroen Ruigrok/asmodai [Mon, 20 Dec 2004 08:57:00 +0000 (08:57 +0000)]
Add binutils 2.15 directories.

15 years agoCorrect conditional which would always make kcore_open() fail and return
Matthew Dillon [Mon, 20 Dec 2004 02:40:07 +0000 (02:40 +0000)]
Correct conditional which would always make kcore_open() fail and return
NULL.

15 years agoThere seems to be a race during shutdown where ifa->ifa_addr can become
Matthew Dillon [Mon, 20 Dec 2004 01:26:44 +0000 (01:26 +0000)]
There seems to be a race during shutdown where ifa->ifa_addr can become
NULL during or just before the processing of an IP packet.  We probably need
some sort of synchronization between interface updates and the IP stack,
but for now just check for the case.

Reported-by: Jonathon McKitrick <jcm@FreeBSD-uk.eu.org>
15 years agoThe dos slice scanner was incorrectly including extended partition entries
Matthew Dillon [Mon, 20 Dec 2004 01:16:14 +0000 (01:16 +0000)]
The dos slice scanner was incorrectly including extended partition entries
beyond the root level in the slice table, causing the slices following to
have an incorrect slice index relative to the way the kernel counts slices.
This resulted in confusion between the /boot/loader and the kernel.

We count slices by reserving the first four to exactly match the primary
slice table, but then not counting any additional extended slice entries
beyond that.  So, for example, if there are three extended tables the
in-memory indexing layout would be something like A,B,C,<ext>,D,E,F rather
then A,B,C,<ext>,D,<ext>,E,<ext>,F.  This matches what the kernel does.

Additionally, a breadth-first traversal is used rather then a depth-first
traversal.  This might not matter since most partitioners seem to use only
the first two slice entries per table (one to specify the entry and another
to chain to the next extended slice, with the last two zero'd out), but it
was done to match the way the kernel scans the slices and it appears to
be compatible with the way extended slices are created by e.g. Linux, NetBSD,
and Windows.

Submitted-by: walt <wa1ter@myrealbox.com>
with additional modifications by Matt Dillon
Analysis-by: walt <wa1ter@myrealbox.com>
15 years agoBump WARNS to 6:
Chris Pressey [Sun, 19 Dec 2004 21:10:48 +0000 (21:10 +0000)]
Bump WARNS to 6:
- Un-nest 'extern' declaration.
- Constify some char *'s and char **'s.  In the process:
--- Split a variable which was re-used, and give the new variable a
    more descriptive name (entered_pass.)
--- Use __DECONST() to convert from const char ** to char * const *
    without raising a warning.

__DECONST()-ickiness-OK'ed-by: joerg

15 years ago- Remove unneccessary cast
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

15 years ago- Deregister strlcpy
Liam J. Foy [Sun, 19 Dec 2004 11:56:45 +0000 (11:56 +0000)]
- Deregister strlcpy

Submitted by: Steve Mynott <steve.mynott@gmail.com>

15 years agoTemporarily allow recursion on locks to deal with a double lock in the
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.

15 years agoRemove file from build_tools, since it serves no build tool purpose.
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.

15 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

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

Discovered by: "walt"

15 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>

15 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

15 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

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

15 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

15 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

15 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.

15 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.

15 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.

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

15 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.

15 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

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

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

15 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.

15 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).

15 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.

15 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.

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

15 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.

15 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.

15 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.

15 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.

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

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

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

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

15 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.

15 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.

15 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>
15 years agotest
Sascha Wildner [Fri, 17 Dec 2004 21:13:46 +0000 (21:13 +0000)]
test

15 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.

15 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
15 years agoRegenerate.
Jeroen Ruigrok/asmodai [Fri, 17 Dec 2004 16:08:48 +0000 (16:08 +0000)]
Regenerate.

15 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.

15 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.

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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.

15 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.

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

15 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

15 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

15 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

15 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

15 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

15 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>
15 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

15 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

15 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

15 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

15 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