Joerg Sonnenberger [Mon, 28 Feb 2005 20:41:15 +0000 (20:41 +0000)]
Define __DECONST here for the sake of FreeBSD.
Joerg Sonnenberger [Mon, 28 Feb 2005 19:53:31 +0000 (19:53 +0000)]
Rearm receiver, it was lost in the conversion.
Hiten Pandya [Mon, 28 Feb 2005 19:51:57 +0000 (19:51 +0000)]
Move the MALLOC_DECLARE into sys/msfbuf.h header file.
Liam J. Foy [Mon, 28 Feb 2005 19:42:12 +0000 (19:42 +0000)]
- Static
- Remove limits.h
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().
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.
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>
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.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:55:39 +0000 (16:55 +0000)]
Remove extra tokens after #else and #endif.
Submitted-by: Andreas Hauser
Joerg Sonnenberger [Mon, 28 Feb 2005 16:34:34 +0000 (16:34 +0000)]
Regen.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:33:58 +0000 (16:33 +0000)]
Update Atheros entries.
Obtained-from: OpenBSD
Joerg Sonnenberger [Mon, 28 Feb 2005 16:23:55 +0000 (16:23 +0000)]
Mark symname const
Joerg Sonnenberger [Mon, 28 Feb 2005 16:23:25 +0000 (16:23 +0000)]
lvalue casts.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:23:00 +0000 (16:23 +0000)]
Add some consts.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:18:22 +0000 (16:18 +0000)]
lvalue casts.
Joerg Sonnenberger [Mon, 28 Feb 2005 13:57:40 +0000 (13:57 +0000)]
Remove NO_WERROR.
Joerg Sonnenberger [Mon, 28 Feb 2005 13:57:05 +0000 (13:57 +0000)]
Remove pre-ANSI malloc prototype.
Joerg Sonnenberger [Mon, 28 Feb 2005 13:14:56 +0000 (13:14 +0000)]
Use __DECONST for the linted interface violations.
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.
Joerg Sonnenberger [Mon, 28 Feb 2005 13:09:24 +0000 (13:09 +0000)]
Remove NO_WERROR assignment.
Joerg Sonnenberger [Mon, 28 Feb 2005 12:57:43 +0000 (12:57 +0000)]
lvalue cast.
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.
Max Okumoto [Mon, 28 Feb 2005 12:00:10 +0000 (12:00 +0000)]
Merge in some changes that Harti made to patch 7.49
Jeffrey Hsu [Mon, 28 Feb 2005 11:39:33 +0000 (11:39 +0000)]
Clear up confusion about negative route reference counts.
Jeffrey Hsu [Mon, 28 Feb 2005 11:31:20 +0000 (11:31 +0000)]
Strip away convoluted route reference counting logic.
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>
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>
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)
Jeroen Ruigrok/asmodai [Sun, 27 Feb 2005 12:44:43 +0000 (12:44 +0000)]
Get 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.
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.
Sascha Wildner [Sun, 27 Feb 2005 00:24:06 +0000 (00:24 +0000)]
Remove more left over files from wd(4) removal.
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
Joerg Sonnenberger [Sat, 26 Feb 2005 14:16:57 +0000 (14:16 +0000)]
We already have the unit number in fl_ifname.
Joerg Sonnenberger [Sat, 26 Feb 2005 14:15:36 +0000 (14:15 +0000)]
Don't define unit field on DragonFly.
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.
Max Okumoto [Sat, 26 Feb 2005 11:58:04 +0000 (11:58 +0000)]
Add better description.
Max Okumoto [Sat, 26 Feb 2005 11:51:54 +0000 (11:51 +0000)]
Improve report output.
Jeroen Ruigrok/asmodai [Sat, 26 Feb 2005 11:33:47 +0000 (11:33 +0000)]
Use .Dx macro.
Submitted by: Sarunas Vancevicius
Jeroen Ruigrok/asmodai [Sat, 26 Feb 2005 11:31:38 +0000 (11:31 +0000)]
Get rid off the PC98 support.
Sascha Wildner [Sat, 26 Feb 2005 11:26:03 +0000 (11:26 +0000)]
Release the old a.out-only boot loader into freedom.
Max Okumoto [Sat, 26 Feb 2005 11:25:02 +0000 (11:25 +0000)]
Add better description.
Max Okumoto [Sat, 26 Feb 2005 11:23:54 +0000 (11:23 +0000)]
Change test to check M modifier.
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.
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.
Jeroen Ruigrok/asmodai [Sat, 26 Feb 2005 11:10:35 +0000 (11:10 +0000)]
Fix HISTORY by using a proper .Dx macro.
Jeroen Ruigrok/asmodai [Sat, 26 Feb 2005 11:03:38 +0000 (11:03 +0000)]
Remove [cat|man]1aout directories.
Trapped into doing by: swildner
Max Okumoto [Sat, 26 Feb 2005 10:48:43 +0000 (10:48 +0000)]
Add comments and sort commands.
Max Okumoto [Sat, 26 Feb 2005 10:48:24 +0000 (10:48 +0000)]
Add description of tests.
Max Okumoto [Sat, 26 Feb 2005 10:43:29 +0000 (10:43 +0000)]
Add description of test.
Max Okumoto [Sat, 26 Feb 2005 10:43:09 +0000 (10:43 +0000)]
Added test for missing Makefile
Jeroen Ruigrok/asmodai [Sat, 26 Feb 2005 10:40:40 +0000 (10:40 +0000)]
Get rid of [cat|man]1aout.
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.
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.
David Xu [Sat, 26 Feb 2005 02:26:32 +0000 (02:26 +0000)]
Enable barrier support.
David Xu [Sat, 26 Feb 2005 02:21:56 +0000 (02:21 +0000)]
Add barrier prototypes.
David Xu [Sat, 26 Feb 2005 02:04:22 +0000 (02:04 +0000)]
Style fixes.
Max Okumoto [Sat, 26 Feb 2005 01:52:24 +0000 (01:52 +0000)]
Change some white space to match FreeBSD.
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>
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)
Joerg Sonnenberger [Fri, 25 Feb 2005 16:43:20 +0000 (16:43 +0000)]
Sync OpenNTPD with OpenBSD.
Joerg Sonnenberger [Fri, 25 Feb 2005 16:43:19 +0000 (16:43 +0000)]
Merge from vendor branch NTPD:
Sync OpenNTPD with OpenBSD.
Joerg Sonnenberger [Fri, 25 Feb 2005 16:43:19 +0000 (16:43 +0000)]
Sync OpenNTPD with OpenBSD.
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.
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.
Max Okumoto [Fri, 25 Feb 2005 12:28:13 +0000 (12:28 +0000)]
Renamed env.sh to common.sh
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.
Max Okumoto [Fri, 25 Feb 2005 10:07:06 +0000 (10:07 +0000)]
Add some documentation about the regresion tests.
Max Okumoto [Fri, 25 Feb 2005 09:24:37 +0000 (09:24 +0000)]
Cleanup test infrastructure.
Max Okumoto [Fri, 25 Feb 2005 08:53:14 +0000 (08:53 +0000)]
Add variable expansion regression test.
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>
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>
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>
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
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>
Joerg Sonnenberger [Thu, 24 Feb 2005 16:05:22 +0000 (16:05 +0000)]
Also bumb the reference counters when a object is already loaded.
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.
Joerg Sonnenberger [Thu, 24 Feb 2005 15:38:09 +0000 (15:38 +0000)]
Sync changes from OpenBSD. Most importantly, this adds reverse proxy support.
Joerg Sonnenberger [Thu, 24 Feb 2005 03:23:01 +0000 (03:23 +0000)]
Split search for already loaded object into a helper function.
Sascha Wildner [Wed, 23 Feb 2005 21:54:01 +0000 (21:54 +0000)]
Add missing .El to silence groff warning.
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
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
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>
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
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
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
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
David Xu [Tue, 22 Feb 2005 23:46:45 +0000 (23:46 +0000)]
Remove alpha support.
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>
David Xu [Tue, 22 Feb 2005 14:56:22 +0000 (14:56 +0000)]
Code cleanup, remove unneeded includes.
David Xu [Tue, 22 Feb 2005 14:53:17 +0000 (14:53 +0000)]
With new tls interface, sysarch.h is no longer needed.
Also remove a leftover #ifdef __DragonFly condition,
we are on native Dragonfly platform now.
Joerg Sonnenberger [Tue, 22 Feb 2005 03:01:21 +0000 (03:01 +0000)]
Temporary switch the cardbus interrupt from INTR_TYPE_AV to
INTR_TYPE_NET until I find a better way to handle the interrupt
mask.
Joerg Sonnenberger [Tue, 22 Feb 2005 02:52:48 +0000 (02:52 +0000)]
Conditionalize the source on INET and INET6 respectively.
This is already done for the normal static kernel and
simplifies the module configuration.
Matthew Dillon [Tue, 22 Feb 2005 02:17:56 +0000 (02:17 +0000)]
Add system call prototypes for userland.
Submitted-by: David Xu <davidxu@t2t2.com>
Joerg Sonnenberger [Tue, 22 Feb 2005 01:52:44 +0000 (01:52 +0000)]
Define default value for PRId64 to keep FreeBSD 4 happy.
David Xu [Tue, 22 Feb 2005 00:10:00 +0000 (00:10 +0000)]
Use new kernel tls interface.
Matthew Dillon [Mon, 21 Feb 2005 21:51:48 +0000 (21:51 +0000)]
Implement TLS support, tls manual pages, and link the umtx and tls manual
pages together. TLS stands for 'thread local storage' and is used to
support efficient userland threading and threaded data access models.
Three TLS segments are supported in order to (eventually) support GCC3's
__thread qualifier. David Xu's thread library only uses one descriptor
for now. The system calls implement a mostly machine-independant API
which return architecture-specific results. Rather then pass the actual
descriptor structure, which unnecessarily pollutes the userland
implementation, we pass a more generic (base,size) and the system call
returns the %gs load value for IA32. For AMD64 and other architectures,
the returned value will be something for those architectures.
The current low level assembly support is not as efficient as it could be,
but it is good enough for now. The heavy weight switch code for processes
does the work. The light weight switch code for pure kernel threads has not
been changed (since the kernel doesn't use TLS descriptors we can just ignore
them).
Based on work by David Xu <davidxu@freebsd.org> and Matthew Dillon <dillon@backplane.com>
Matthew Dillon [Mon, 21 Feb 2005 21:41:01 +0000 (21:41 +0000)]
Implement TLS support, tls manual pages, and link the umtx and tls manual
pages together. TLS stands for 'thread local storage' and is used to
support efficient userland threading and threaded data access models.
Three TLS segments are supported in order to (eventually) support GCC3's
__thread qualifier. David Xu's thread library only uses one descriptor
for now. The system calls implement a mostly machine-independant API
which return architecture-specific results. Rather then pass the actual
descriptor structure, which unnecessarily pollutes the userland
implementation, we pass a more generic (base,size) and the system call
returns the %gs load value for IA32. For AMD64 and other architectures,
the returned value will be something for those architectures.
The current low level assembly support is not as efficient as it could be,
but it is good enough for now. The heavy weight switch code for processes
does the work. The light weight switch code for pure kernel threads has not
been changed (since the kernel doesn't use TLS descriptors we can just ignore
them).
Based on work by David Xu <davidxu@freebsd.org> and Matthew Dillon <dillon@backplane.com>
Sascha Wildner [Mon, 21 Feb 2005 20:48:28 +0000 (20:48 +0000)]
When building as a kernel module, ignore the setting of the
UKBD_DFLT_KEYMAP option.
In discussion with: joerg
Joerg Sonnenberger [Mon, 21 Feb 2005 20:48:13 +0000 (20:48 +0000)]
More cleanup.