dragonfly.git
15 years agoReduce foot-shooting potential by adding -dP for cvs update and -P for
Joerg Sonnenberger [Tue, 1 Mar 2005 10:55:17 +0000 (10:55 +0000)]
Reduce foot-shooting potential by adding -dP for cvs update and -P for
checkout.

Remove the paragraph about /usr/dfports/distfiles, there's no need for
such a thing.

15 years agoStyle(9):
Chris Pressey [Tue, 1 Mar 2005 06:54:32 +0000 (06:54 +0000)]
Style(9):
- Add `static' to function prototypes and definitions;
- Remove `register' keyword;
- Rename local variables to avoid conflict with globals;
- Remove unneeded function argument;
- Sprinkle `const'.

Submitted-by: Larry Lansing <lansil_at_fuzzynerd_dot_com>
15 years agoHeader include protection from userland.
Hiten Pandya [Tue, 1 Mar 2005 06:18:18 +0000 (06:18 +0000)]
Header include protection from userland.

15 years agoFix whitespace for function prototypes.
Hiten Pandya [Tue, 1 Mar 2005 04:24:28 +0000 (04:24 +0000)]
Fix whitespace for function prototypes.

15 years agoRemove a comment that does not make sense; it was just a remnant of
Hiten Pandya [Tue, 1 Mar 2005 01:20:03 +0000 (01:20 +0000)]
Remove a comment that does not make sense; it was just a remnant of
random thoughts.

15 years agoCleanup FAIL message
Max Okumoto [Tue, 1 Mar 2005 01:14:25 +0000 (01:14 +0000)]
Cleanup FAIL message

15 years agoFix a bug in the ioctl mapping (written by me), which basically failed
Simon Schubert [Tue, 1 Mar 2005 00:43:02 +0000 (00:43 +0000)]
Fix a bug in the ioctl mapping (written by me), which basically failed
to provide the neccessary infrastructure for linux drm to work.

This changes DRM and sound handling in the linuxulator to make use of
the new code.

API compatibility is retained in wide parts; nevertheless modules using
ioctl maps (nvidia) need to be recompiled.

Discovered-and-fixed-by: Brock Johnson <wildefire@isentry.homelinux.org>
Reviewed-by: corecode, joerg
15 years agoSync with FreeBSD cp.
Simon Schubert [Mon, 28 Feb 2005 23:15:35 +0000 (23:15 +0000)]
Sync with FreeBSD cp.

o Bump FreeBSD CVS IDs and manual page date
o Style(9)
o Constify
o Add SIGINFO handler (Author: mdodd, 1.40)
o Don't mmap(2) and munmap(2) zero-length files. (Author: alc, 1.42)
o Note how cp(1) handles directories ending in "/" (Author: trhodes, 1.29.2.1)
o Sync program's usage() with manpage's SYNOPSIS. (Author: ru, 1.45)
o Include <signal.h> instead of depending on namespace pollution in
  <sys/param.h>.  Include <sys/types.h> instead of of <sys/param.h>
  so that further such dependencies don't develop. (Author: bde, 1.47)

Submitted-by: Devon H. O'Dell <dodell@sitetronics.com> and
              Sarunas Vancevicius <svan@redbrick.dcu.ie>
Reviewed-by: joerg
Some-minor-changes: corecode

15 years agoRest of last commit. Define SA_LEN in one place.
Joerg Sonnenberger [Mon, 28 Feb 2005 21:40:49 +0000 (21:40 +0000)]
Rest of last commit. Define SA_LEN in one place.

15 years agoSimplify patches by defining SA_LEN in one place.
Joerg Sonnenberger [Mon, 28 Feb 2005 21:34:48 +0000 (21:34 +0000)]
Simplify patches by defining SA_LEN in one place.

client.c.patch and server.c are intentionally left as empty patches.

15 years agoDefine __DECONST here for the sake of FreeBSD.
Joerg Sonnenberger [Mon, 28 Feb 2005 20:41:15 +0000 (20:41 +0000)]
Define __DECONST here for the sake of FreeBSD.

15 years agoRearm receiver, it was lost in the conversion.
Joerg Sonnenberger [Mon, 28 Feb 2005 19:53:31 +0000 (19:53 +0000)]
Rearm receiver, it was lost in the conversion.

15 years agoMove the MALLOC_DECLARE into sys/msfbuf.h header file.
Hiten Pandya [Mon, 28 Feb 2005 19:51:57 +0000 (19:51 +0000)]
Move the MALLOC_DECLARE into sys/msfbuf.h header file.

15 years ago- Static
Liam J. Foy [Mon, 28 Feb 2005 19:42:12 +0000 (19:42 +0000)]
- Static
- Remove limits.h

15 years ago- Remove an unnecessary call to stat(). We can just use lstat before
Liam J. Foy [Mon, 28 Feb 2005 19:26:20 +0000 (19:26 +0000)]
- Remove an unnecessary call to stat(). We can just use lstat before
  checking the file. This saves calling both stat() and lstat().

15 years agoJournaling layer work. Generate output for path names, creds, and vattr,
Matthew Dillon [Mon, 28 Feb 2005 17:41:00 +0000 (17:41 +0000)]
Journaling layer work.  Generate output for path names, creds, and vattr,
for all major modifying VFS operations.  Start working on a vnode
identification and uio abstraction.

15 years agoRemove some unnecessary braces and fix a gcc 3.4 warning.
Sascha Wildner [Mon, 28 Feb 2005 17:31:22 +0000 (17:31 +0000)]
Remove some unnecessary braces and fix a gcc 3.4 warning.

Submitted by: Andreas Hauser <andy@splashground.de>

15 years agoUse u_char define from sys/types.h.
Joerg Sonnenberger [Mon, 28 Feb 2005 17:15:28 +0000 (17:15 +0000)]
Use u_char define from sys/types.h.

Suggested-by: Andreas Hauser.
15 years agoRemove extra tokens after #else and #endif.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:55:39 +0000 (16:55 +0000)]
Remove extra tokens after #else and #endif.

Submitted-by: Andreas Hauser
15 years agoRegen.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:34:34 +0000 (16:34 +0000)]
Regen.

15 years agoUpdate Atheros entries.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:33:58 +0000 (16:33 +0000)]
Update Atheros entries.

Obtained-from: OpenBSD

15 years agoMark symname const
Joerg Sonnenberger [Mon, 28 Feb 2005 16:23:55 +0000 (16:23 +0000)]
Mark symname const

15 years agolvalue casts.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:23:25 +0000 (16:23 +0000)]
lvalue casts.

15 years agoAdd some consts.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:23:00 +0000 (16:23 +0000)]
Add some consts.

15 years agolvalue casts.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:18:22 +0000 (16:18 +0000)]
lvalue casts.

15 years agoRemove NO_WERROR.
Joerg Sonnenberger [Mon, 28 Feb 2005 13:57:40 +0000 (13:57 +0000)]
Remove NO_WERROR.

15 years agoRemove pre-ANSI malloc prototype.
Joerg Sonnenberger [Mon, 28 Feb 2005 13:57:05 +0000 (13:57 +0000)]
Remove pre-ANSI malloc prototype.

15 years agoUse __DECONST for the linted interface violations.
Joerg Sonnenberger [Mon, 28 Feb 2005 13:14:56 +0000 (13:14 +0000)]
Use __DECONST for the linted interface violations.

15 years agoRemove -Werror from CFLAGS and fix the missing part for WARNS=6.
Joerg Sonnenberger [Mon, 28 Feb 2005 13:14:08 +0000 (13:14 +0000)]
Remove -Werror from CFLAGS and fix the missing part for WARNS=6.

15 years agoRemove NO_WERROR assignment.
Joerg Sonnenberger [Mon, 28 Feb 2005 13:09:24 +0000 (13:09 +0000)]
Remove NO_WERROR assignment.

15 years agolvalue cast.
Joerg Sonnenberger [Mon, 28 Feb 2005 12:57:43 +0000 (12:57 +0000)]
lvalue cast.

15 years agoThe rest of the modifications that Harti made to patch-7.48.
Max Okumoto [Mon, 28 Feb 2005 12:17:37 +0000 (12:17 +0000)]
The rest of the modifications that Harti made to patch-7.48.

15 years agoMerge in some changes that Harti made to patch 7.49
Max Okumoto [Mon, 28 Feb 2005 12:00:10 +0000 (12:00 +0000)]
Merge in some changes that Harti made to patch 7.49

15 years agoClear up confusion about negative route reference counts.
Jeffrey Hsu [Mon, 28 Feb 2005 11:39:33 +0000 (11:39 +0000)]
Clear up confusion about negative route reference counts.

15 years agoStrip away convoluted route reference counting logic.
Jeffrey Hsu [Mon, 28 Feb 2005 11:31:20 +0000 (11:31 +0000)]
Strip away convoluted route reference counting logic.

15 years agoAllow the #! command line to be up to PAGE_SIZE long, rather then
Matthew Dillon [Mon, 28 Feb 2005 05:44:52 +0000 (05:44 +0000)]
Allow the #! command line to be up to PAGE_SIZE long, rather then
artificially limiting it to MAXSHELLCMDLEN.  The interpreter name is
still limited to MAXSHELLCMDLEN.

A \0 is now considered a line terminator.

Correctly report the ENAMETOOLONG case.

Note that FreeBSD (and hence DragonFly) break the #! line into multiple
argv arguments, which is not what any other UNIX does.  This is likely going
to be changed in the future but not as of this commit.

Inspired-by: Maxim Sobolev <sobomax@FreeBSD.org> / similar FreeBSD work,
and Garance A Drosihn <drosih@rpi.edu>

15 years agoFix a firewall rule ordering problem, the 'OPEN' firewall mode was
Matthew Dillon [Mon, 28 Feb 2005 01:42:57 +0000 (01:42 +0000)]
Fix a firewall rule ordering problem, the 'OPEN' firewall mode was
putting the pass-all rule too low in the list which prevented the nat
rules from working.

Fix a from/to ordering issue for the localnet deny rules.

Submitted-by: Andreas Hauser <andy@splashground.de>
15 years ago- The maximum value for a time_t is assumed to be <= INT_MAX, not >= INT_MAX
Liam J. Foy [Sun, 27 Feb 2005 15:57:15 +0000 (15:57 +0000)]
- The maximum value for a time_t is assumed to be <= INT_MAX, not >= INT_MAX
- Minor Style(9)

15 years agoGet rid off PC98 conditional code.
Jeroen Ruigrok/asmodai [Sun, 27 Feb 2005 12:44:43 +0000 (12:44 +0000)]
Get rid off PC98 conditional code.

15 years agoGet rid off PC98 conditional code.
Jeroen Ruigrok/asmodai [Sun, 27 Feb 2005 12:38:58 +0000 (12:38 +0000)]
Get rid off PC98 conditional code.

15 years agoRemove PC98 support. Leave the machdep.ispc98 sysctl in because make(1)
Sascha Wildner [Sun, 27 Feb 2005 10:57:24 +0000 (10:57 +0000)]
Remove PC98 support. Leave the machdep.ispc98 sysctl in because make(1)
wants it.

15 years agoRemove more left over files from wd(4) removal.
Sascha Wildner [Sun, 27 Feb 2005 00:24:06 +0000 (00:24 +0000)]
Remove more left over files from wd(4) removal.

15 years agoAdd signal mask save/restore to the checkpoint code. Reorder the file
Matthew Dillon [Sat, 26 Feb 2005 20:32:37 +0000 (20:32 +0000)]
Add signal mask save/restore to the checkpoint code.  Reorder the file
descriptor checkpointing code to accomodate future non-regular-file work.
Add a file descriptor type field to the structured data written out to the
checkpoint file for future use.

Submitted-by: "Kamal R. Prasad" <kamalpr@yahoo.com>
With-further-work-by: Matt Dillon
15 years agoWe already have the unit number in fl_ifname.
Joerg Sonnenberger [Sat, 26 Feb 2005 14:16:57 +0000 (14:16 +0000)]
We already have the unit number in fl_ifname.

15 years agoDon't define unit field on DragonFly.
Joerg Sonnenberger [Sat, 26 Feb 2005 14:15:36 +0000 (14:15 +0000)]
Don't define unit field on DragonFly.

15 years agoRemove last remnants of the wd(4) driver which was moved to the Attic some
Sascha Wildner [Sat, 26 Feb 2005 12:00:55 +0000 (12:00 +0000)]
Remove last remnants of the wd(4) driver which was moved to the Attic some
15 months ago. For the sake of completeness update various documents.

15 years agoAdd better description.
Max Okumoto [Sat, 26 Feb 2005 11:58:04 +0000 (11:58 +0000)]
Add better description.

15 years agoImprove report output.
Max Okumoto [Sat, 26 Feb 2005 11:51:54 +0000 (11:51 +0000)]
Improve report output.

15 years agoUse .Dx macro.
Jeroen Ruigrok/asmodai [Sat, 26 Feb 2005 11:33:47 +0000 (11:33 +0000)]
Use .Dx macro.

Submitted by: Sarunas Vancevicius

15 years agoGet rid off the PC98 support.
Jeroen Ruigrok/asmodai [Sat, 26 Feb 2005 11:31:38 +0000 (11:31 +0000)]
Get rid off the PC98 support.

15 years agoRelease the old a.out-only boot loader into freedom.
Sascha Wildner [Sat, 26 Feb 2005 11:26:03 +0000 (11:26 +0000)]
Release the old a.out-only boot loader into freedom.

15 years agoAdd better description.
Max Okumoto [Sat, 26 Feb 2005 11:25:02 +0000 (11:25 +0000)]
Add better description.

15 years agoChange test to check M modifier.
Max Okumoto [Sat, 26 Feb 2005 11:23:54 +0000 (11:23 +0000)]
Change test to check M modifier.

15 years agoAdd the additional space to make mount_udf.8's .Dx macro work for real.
Jeroen Ruigrok/asmodai [Sat, 26 Feb 2005 11:21:10 +0000 (11:21 +0000)]
Add the additional space to make mount_udf.8's .Dx macro work for real.

15 years agoFix extraneous spacing of .Dx by changing two unneeded tabs to spaces.
Jeroen Ruigrok/asmodai [Sat, 26 Feb 2005 11:15:15 +0000 (11:15 +0000)]
Fix extraneous spacing of .Dx by changing two unneeded tabs to spaces.

15 years agoFix HISTORY by using a proper .Dx macro.
Jeroen Ruigrok/asmodai [Sat, 26 Feb 2005 11:10:35 +0000 (11:10 +0000)]
Fix HISTORY by using a proper .Dx macro.

15 years agoRemove [cat|man]1aout directories.
Jeroen Ruigrok/asmodai [Sat, 26 Feb 2005 11:03:38 +0000 (11:03 +0000)]
Remove [cat|man]1aout directories.

Trapped into doing by: swildner

15 years agoAdd comments and sort commands.
Max Okumoto [Sat, 26 Feb 2005 10:48:43 +0000 (10:48 +0000)]
Add comments and sort commands.

15 years agoAdd description of tests.
Max Okumoto [Sat, 26 Feb 2005 10:48:24 +0000 (10:48 +0000)]
Add description of tests.

15 years agoAdd description of test.
Max Okumoto [Sat, 26 Feb 2005 10:43:29 +0000 (10:43 +0000)]
Add description of test.

15 years agoAdded test for missing Makefile
Max Okumoto [Sat, 26 Feb 2005 10:43:09 +0000 (10:43 +0000)]
Added test for missing Makefile

15 years agoGet rid of [cat|man]1aout.
Jeroen Ruigrok/asmodai [Sat, 26 Feb 2005 10:40:40 +0000 (10:40 +0000)]
Get rid of [cat|man]1aout.

15 years agoDo not create Perl 5.00503 directories anymore since it is removed from base.
Jeroen Ruigrok/asmodai [Sat, 26 Feb 2005 10:15:39 +0000 (10:15 +0000)]
Do not create Perl 5.00503 directories anymore since it is removed from base.

15 years agoGet rid of the Alpha specific manual pages.
Jeroen Ruigrok/asmodai [Sat, 26 Feb 2005 09:46:31 +0000 (09:46 +0000)]
Get rid of the Alpha specific manual pages.
Also get rid of old XXX line for noting tahoe/vax manual pages weren't
imported.

15 years agoEnable barrier support.
David Xu [Sat, 26 Feb 2005 02:26:32 +0000 (02:26 +0000)]
Enable barrier support.

15 years agoAdd barrier prototypes.
David Xu [Sat, 26 Feb 2005 02:21:56 +0000 (02:21 +0000)]
Add barrier prototypes.

15 years agoStyle fixes.
David Xu [Sat, 26 Feb 2005 02:04:22 +0000 (02:04 +0000)]
Style fixes.

15 years agoChange some white space to match FreeBSD.
Max Okumoto [Sat, 26 Feb 2005 01:52:24 +0000 (01:52 +0000)]
Change some white space to match FreeBSD.

15 years agoImprove the IPFilter rc.d file, mainly bring it in line with changes
Hiten Pandya [Fri, 25 Feb 2005 18:14:38 +0000 (18:14 +0000)]
Improve the IPFilter rc.d file, mainly bring it in line with changes
made in FreeBSD.

Obtained-from:   FreeBSD
Tested-by: Janet Sullivan <ciscogeek at bgp4.net>
15 years ago- Remove unnecessary headers
Liam J. Foy [Fri, 25 Feb 2005 18:08:05 +0000 (18:08 +0000)]
- Remove unnecessary headers
- Remove unnecessary casts
- Remove registers
- Fix data types
- Static functions
- malloc(3) sets errno, use it
- Constify some arguments
- Style(9)

15 years agoSync OpenNTPD with OpenBSD.
Joerg Sonnenberger [Fri, 25 Feb 2005 16:43:20 +0000 (16:43 +0000)]
Sync OpenNTPD with OpenBSD.

15 years agoMerge from vendor branch NTPD:
Joerg Sonnenberger [Fri, 25 Feb 2005 16:43:19 +0000 (16:43 +0000)]
Merge from vendor branch NTPD:
Sync OpenNTPD with OpenBSD.

15 years agoSync OpenNTPD with OpenBSD.
Joerg Sonnenberger [Fri, 25 Feb 2005 16:43:19 +0000 (16:43 +0000)]
Sync OpenNTPD with OpenBSD.

15 years agoMake init(8) WARNS=6 clean.
Joerg Sonnenberger [Fri, 25 Feb 2005 15:17:42 +0000 (15:17 +0000)]
Make init(8) WARNS=6 clean.

Mostly-submitted-by: Kevin M. Kilbride <kmk@ssl.org>
Additionally make local functions and variables static, reorder them
to don't mix variable and function declarations.

Correct the sigalarm handler.

Use __DECONST to cast away the constness for argv.

15 years agoInstead of messing with the internal name-to-oid conversion,
Joerg Sonnenberger [Fri, 25 Feb 2005 14:55:51 +0000 (14:55 +0000)]
Instead of messing with the internal name-to-oid conversion,
use sysctlnametomib directly.

Raise WARNS to 6.

15 years agoRenamed env.sh to common.sh
Max Okumoto [Fri, 25 Feb 2005 12:28:13 +0000 (12:28 +0000)]
Renamed env.sh to common.sh

15 years agoMove more code from test.sh scripts into common (env.sh) script file.
Max Okumoto [Fri, 25 Feb 2005 11:57:32 +0000 (11:57 +0000)]
Move more code from test.sh scripts into common (env.sh) script file.

15 years agoAdd some documentation about the regresion tests.
Max Okumoto [Fri, 25 Feb 2005 10:07:06 +0000 (10:07 +0000)]
Add some documentation about the regresion tests.

15 years agoCleanup test infrastructure.
Max Okumoto [Fri, 25 Feb 2005 09:24:37 +0000 (09:24 +0000)]
Cleanup test infrastructure.

15 years agoAdd variable expansion regression test.
Max Okumoto [Fri, 25 Feb 2005 08:53:14 +0000 (08:53 +0000)]
Add variable expansion regression test.

15 years agoRewrite the loops which extract the interpreter name and arguments out
Matthew Dillon [Fri, 25 Feb 2005 08:49:10 +0000 (08:49 +0000)]
Rewrite the loops which extract the interpreter name and arguments out
of the #! line for a shell script.  The loop was improperly handling a
missing newline by scanning past the end of the buffer, resulting in a panic.

Reported-by: Garance A Drosihn <drosih@rpi.edu>
15 years agoFix an issue that the iwi driver seems to hit, that of routing socket
Matthew Dillon [Thu, 24 Feb 2005 23:41:43 +0000 (23:41 +0000)]
Fix an issue that the iwi driver seems to hit, that of routing socket
operations on interfaces which no longer have an assigned IP address
by reverting a portion of 1.19.

Submitted-by: Andrew Atrens <atrens@nortelnetworks.com>
15 years agoHave the getroot script chdir into /etc/namedb itself instead of relying
Matthew Dillon [Thu, 24 Feb 2005 21:58:20 +0000 (21:58 +0000)]
Have the getroot script chdir into /etc/namedb itself instead of relying
on the person constructing the cron job to remember to do it.

Reported-by: Janet Sullivan <ciscogeek@bgp4.net>
15 years agoReplace the calls to Lst_ForEach with the new LST_FOREACH macro and
Max Okumoto [Thu, 24 Feb 2005 21:34:14 +0000 (21:34 +0000)]
Replace the calls to Lst_ForEach with the new LST_FOREACH macro and
fix the prototype for Compat_RunCommand to take the actual argument
types instead of void *.

Taken-from: FreeBSD
Date: 2005/02/24 10:23:31
Author: harti

15 years agoAdd DFly copyright to cache.c. This file was originally my creation in
Matthew Dillon [Thu, 24 Feb 2005 19:45:17 +0000 (19:45 +0000)]
Add DFly copyright to cache.c.  This file was originally my creation in
the FBsd tree so the DFly copyright is appropriate.

Reminded-by: Hiten Pandya <hmp@leaf.dragonflybsd.org>
15 years agoAlso bumb the reference counters when a object is already loaded.
Joerg Sonnenberger [Thu, 24 Feb 2005 16:05:22 +0000 (16:05 +0000)]
Also bumb the reference counters when a object is already loaded.

15 years agoMove the open, stat and recheck for already loaded objects into
Joerg Sonnenberger [Thu, 24 Feb 2005 15:46:24 +0000 (15:46 +0000)]
Move the open, stat and recheck for already loaded objects into
a subfunction.

15 years agoSync changes from OpenBSD. Most importantly, this adds reverse proxy support.
Joerg Sonnenberger [Thu, 24 Feb 2005 15:38:09 +0000 (15:38 +0000)]
Sync changes from OpenBSD. Most importantly, this adds reverse proxy support.

15 years agoSplit search for already loaded object into a helper function.
Joerg Sonnenberger [Thu, 24 Feb 2005 03:23:01 +0000 (03:23 +0000)]
Split search for already loaded object into a helper function.

15 years agoAdd missing .El to silence groff warning.
Sascha Wildner [Wed, 23 Feb 2005 21:54:01 +0000 (21:54 +0000)]
Add missing .El to silence groff warning.

15 years agoUse the LST_FOREACH macro instead of the Lst_ForEach function
Max Okumoto [Wed, 23 Feb 2005 21:07:43 +0000 (21:07 +0000)]
Use the LST_FOREACH macro instead of the Lst_ForEach function
and so get rid of the ForExec helper function by inlining it
into For_Run.

Taken-from: FreeBSD
Date: 2005/02/23 14:03:18
Author: harti

15 years agoStyle: fix indent, use tabs instead of space+tab for aligning things.
Max Okumoto [Wed, 23 Feb 2005 20:25:35 +0000 (20:25 +0000)]
Style: fix indent, use tabs instead of space+tab for aligning things.
Add a couple of comments.

Taken-from: FreeBSD
Date: 2005/02/23 13:58:56
Author: harti

15 years agoFix the indendation of some multi-line comments.
Max Okumoto [Wed, 23 Feb 2005 19:32:40 +0000 (19:32 +0000)]
Fix the indendation of some multi-line comments.

Date: 2005/02/23 10:20:58
Author: harti
Taken-from: FreeBSD
Noted by: Max Okumoto <okumoto@ucsd.edu>

15 years ago- Fix some xdrproc_t warnings (FreeBSD)
Liam J. Foy [Wed, 23 Feb 2005 17:44:18 +0000 (17:44 +0000)]
- Fix some xdrproc_t warnings (FreeBSD)
- Constify
- While here, sort the headers

15 years agoMerged in three patches to cleanup the code by Harti.
Max Okumoto [Wed, 23 Feb 2005 10:02:27 +0000 (10:02 +0000)]
Merged in three patches to cleanup the code by Harti.

o Invent the LST_FOREACH macro for looping through a list. In
  contrast to the Lst_ForEach function this macro reduces the number
  of function calls per invocation by N + 1 (where N is the number
  of list elements) and increases code locality thereby increasing
  readability and (maybe) performance.

o Use the new LST_FOREACH macro throughout the file and replace
  calls to Lst_ForEach and Lst_Find.

o Fix the prototypes by addings some constness.

Date: 2005/02/22 07:58:53
Date: 2005/02/22 08:00:06
Date: 2005/02/22 08:17:05
Author: harti
Taken-from: FreeBSD

15 years agoStyle: fix indendation to be 8 and use tabulators. Fix lines longer
Max Okumoto [Wed, 23 Feb 2005 09:51:50 +0000 (09:51 +0000)]
Style: fix indendation to be 8 and use tabulators. Fix lines longer
than 80 characters and slightly reorder functions to get rid of
static prototypes.

Date: 2005/02/21 13:36:22
Author: harti
Taken-from: FreeBSD

15 years agoFix a bug in handling archive members: when a member was not found
Max Okumoto [Wed, 23 Feb 2005 00:26:02 +0000 (00:26 +0000)]
Fix a bug in handling archive members: when a member was not found
when looking into an already hashed archive, the code tried to use
the name shortened to the maximum length allowed for the archive.
Unfortunately it passed a buffer of junk to the hashing routine when
the name actually wasn't too long. Theoretically this could lead to
a false positive.

Date: 2005/02/21 08:06:34
Author: harti
Taken-from: FreeBSD

15 years agoRemove alpha support.
David Xu [Tue, 22 Feb 2005 23:46:45 +0000 (23:46 +0000)]
Remove alpha support.

15 years agoImprove the contigmalloc() memory allocator. Fix a starting index bug,
Matthew Dillon [Tue, 22 Feb 2005 21:35:33 +0000 (21:35 +0000)]
Improve the contigmalloc() memory allocator.  Fix a starting index bug,
fix an endless loop bug (do not retry forever), try harder to clean
active pages, and add a third pass.  contigmalloc() is still as nasty as
it has always been but this improves matters considerably.

Submitted-by: Andrew Atrens <atrens@nortel.com>
15 years agoCode cleanup, remove unneeded includes.
David Xu [Tue, 22 Feb 2005 14:56:22 +0000 (14:56 +0000)]
Code cleanup, remove unneeded includes.