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.
Sascha Wildner [Mon, 21 Feb 2005 20:31:39 +0000 (20:31 +0000)]
Remove PC98 fdisk(8).
Sascha Wildner [Mon, 21 Feb 2005 20:19:55 +0000 (20:19 +0000)]
Remove uac(1). We don't support Alpha.
Matthew Dillon [Mon, 21 Feb 2005 19:53:34 +0000 (19:53 +0000)]
Add a manual page for the umtx_*() system calls.
Matthew Dillon [Mon, 21 Feb 2005 18:56:05 +0000 (18:56 +0000)]
Track the last read and last write timestamp at the device level and modify
the stat code to retrieve the information. This is so devices such as ttys
report the correct access/modified time for the 'w' and related utilities.
NOTE: the inode still needs to be updated at CLOSE time to record the last
accessed and modified times persistently, and this is not yet occuring.
This is necessary because device read/write now bypasses the filesystem VOP
code.
Joerg Sonnenberger [Mon, 21 Feb 2005 18:40:37 +0000 (18:40 +0000)]
Remove some duplicate FreeBSD CVS IDs, move some IDs to better places.
Submitted-by: Sarunas Vancevicius <svan@redbrick.dcu.ie>
Sascha Wildner [Mon, 21 Feb 2005 18:22:06 +0000 (18:22 +0000)]
Remove elf2exe.
Joerg Sonnenberger [Mon, 21 Feb 2005 15:26:55 +0000 (15:26 +0000)]
Add sigtimedwait.o and sigwaitinfo.o.
David Xu [Mon, 21 Feb 2005 13:47:21 +0000 (13:47 +0000)]
Set initial thread's stack to 2M on 32 bits platform, 1M for default stack.
Double the stack sizes on 64 bits platform.
David Xu [Mon, 21 Feb 2005 13:40:54 +0000 (13:40 +0000)]
Remove unused macro.
David Xu [Mon, 21 Feb 2005 13:40:00 +0000 (13:40 +0000)]
Remove debug code.
Joerg Sonnenberger [Mon, 21 Feb 2005 05:25:49 +0000 (05:25 +0000)]
GC TULIP_CRC32_POLY, TULIP_ADDREQUAL and TULIP_ADDRBRDCST.
Move tulips definition into if_de.c.
Joerg Sonnenberger [Mon, 21 Feb 2005 05:18:29 +0000 (05:18 +0000)]
GC TULIP_NEED_FASTTIMEOUT
Joerg Sonnenberger [Mon, 21 Feb 2005 05:16:16 +0000 (05:16 +0000)]
GC TULIP_DEBUG.
Joerg Sonnenberger [Mon, 21 Feb 2005 05:03:51 +0000 (05:03 +0000)]
GC TULIP_VERBOSE.
Joerg Sonnenberger [Mon, 21 Feb 2005 04:59:42 +0000 (04:59 +0000)]
GC !__DragonFly__ section.
Joerg Sonnenberger [Mon, 21 Feb 2005 04:58:34 +0000 (04:58 +0000)]
GC TULIP_BUS_DMA.
Joerg Sonnenberger [Mon, 21 Feb 2005 04:48:57 +0000 (04:48 +0000)]
GC TULIP_PERFSTAT support.
Joerg Sonnenberger [Mon, 21 Feb 2005 04:44:22 +0000 (04:44 +0000)]
GC __alpha__ support.
Joerg Sonnenberger [Mon, 21 Feb 2005 04:38:21 +0000 (04:38 +0000)]
TLUIP_HDR_DATA was always defined, unconditionalize.
Joerg Sonnenberger [Mon, 21 Feb 2005 04:35:40 +0000 (04:35 +0000)]
Remove TULIP_USE_SOFTINTR support. If someone really needs it, we can
add DEVICE_POLLING support later, which is the more general and less
hackish solution.
Joerg Sonnenberger [Mon, 21 Feb 2005 03:38:55 +0000 (03:38 +0000)]
Remove LE_NOLEMAC and LE_NOLANCE conditionals.
Joerg Sonnenberger [Mon, 21 Feb 2005 03:37:44 +0000 (03:37 +0000)]
Use normal inb / outb / inw / outw / inl / outl functons.
Joerg Sonnenberger [Mon, 21 Feb 2005 03:04:00 +0000 (03:04 +0000)]
Expand some macros.
Joerg Sonnenberger [Mon, 21 Feb 2005 02:46:50 +0000 (02:46 +0000)]
Use ether_crc32_le.
Joerg Sonnenberger [Mon, 21 Feb 2005 02:33:42 +0000 (02:33 +0000)]
Some cleanup.
David Xu [Mon, 21 Feb 2005 01:36:05 +0000 (01:36 +0000)]
Fix timeout verification bug. Matt Dillon asked to check tv_sec,
but I wrote wrong code. ;-)
Joerg Sonnenberger [Mon, 21 Feb 2005 01:27:08 +0000 (01:27 +0000)]
Rename local variables and arguments "index" to "idx".
Joerg Sonnenberger [Sun, 20 Feb 2005 21:52:33 +0000 (21:52 +0000)]
Require NETWORKING, not DAEMON for ntpd. The former makes much more sense
and fixes the order issue for rpcbind.
Joerg Sonnenberger [Sun, 20 Feb 2005 21:51:22 +0000 (21:51 +0000)]
We don't need syslogd support for chrooted ntpd.
Joerg Sonnenberger [Sun, 20 Feb 2005 21:50:44 +0000 (21:50 +0000)]
Don't depend on altqd.
Joerg Sonnenberger [Sun, 20 Feb 2005 21:49:51 +0000 (21:49 +0000)]
Remove altqd's init script, we don't have it anyway.
Matthew Dillon [Sun, 20 Feb 2005 19:47:17 +0000 (19:47 +0000)]
rcorder tries real hard to free things while processing the list but this
not only slows it down unnecessarily, it can also result in a double-free
when certain circular dependancies are encountered. Remove the free()'s
causing the problem.
Reported-by: Gary Allan <dragonfly@gallan.plus.com>
Jeroen Ruigrok/asmodai [Sun, 20 Feb 2005 17:34:11 +0000 (17:34 +0000)]
Get rid off conditionals for hpux, AIX, THINKC, TURBOC, MS_DOS, VMS.
Sascha Wildner [Sun, 20 Feb 2005 17:21:53 +0000 (17:21 +0000)]
R.I.P. ARC
Jeroen Ruigrok/asmodai [Sun, 20 Feb 2005 17:19:11 +0000 (17:19 +0000)]
Get rid of the #define mess for other platforms. We're just Unix.
Sascha Wildner [Sun, 20 Feb 2005 16:38:22 +0000 (16:38 +0000)]
Remove Alpha support for ficl.
Sascha Wildner [Sun, 20 Feb 2005 16:31:53 +0000 (16:31 +0000)]
Remove arch-alpha variable.
Sascha Wildner [Sun, 20 Feb 2005 16:30:39 +0000 (16:30 +0000)]
Remove Alpha support.
Jeroen Ruigrok/asmodai [Sun, 20 Feb 2005 12:49:34 +0000 (12:49 +0000)]
GCC supports two pseudo variables to get the function name, __FUNCTION__
and __func__. The latter is C99, prefer that.
Jeroen Ruigrok/asmodai [Sun, 20 Feb 2005 12:13:21 +0000 (12:13 +0000)]
Update comments for the Belarussian locale.
Submitted by: Yury Tarasievich
Joerg Sonnenberger [Sun, 20 Feb 2005 05:45:38 +0000 (05:45 +0000)]
ALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 05:11:02 +0000 (05:11 +0000)]
Remove tulip_ifstart_one, always process the whole queue.
Joerg Sonnenberger [Sun, 20 Feb 2005 04:52:22 +0000 (04:52 +0000)]
ALTQ support. The error handling in nv_ifstart should be reviewed,
it drops more packets than necessary. It now also drops packets if
the TX queue is full. This is indicated by
"nv_ifstart: transmit queue is full" in the system log.
Joerg Sonnenberger [Sun, 20 Feb 2005 04:41:46 +0000 (04:41 +0000)]
ALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 04:29:28 +0000 (04:29 +0000)]
ALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 04:12:32 +0000 (04:12 +0000)]
Replace dc_coal with m_defrag.
Joerg Sonnenberger [Sun, 20 Feb 2005 04:04:55 +0000 (04:04 +0000)]
ALTQ support
Joerg Sonnenberger [Sun, 20 Feb 2005 04:02:14 +0000 (04:02 +0000)]
ALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 03:58:04 +0000 (03:58 +0000)]
ALTQ support.
David Xu [Sun, 20 Feb 2005 03:24:47 +0000 (03:24 +0000)]
Regen.
Joerg Sonnenberger [Sun, 20 Feb 2005 03:21:58 +0000 (03:21 +0000)]
Move the m_freem from vr_encap to vr_start, making the passed mbuf effectively
const. Don't check for m_head == NULL in vr_encap, it can't happen anyway.
Joerg Sonnenberger [Sun, 20 Feb 2005 03:11:53 +0000 (03:11 +0000)]
ALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 03:08:29 +0000 (03:08 +0000)]
ALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 03:04:51 +0000 (03:04 +0000)]
ALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 02:59:57 +0000 (02:59 +0000)]
ALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 02:54:21 +0000 (02:54 +0000)]
ALTQ support. Fixes a small bug which could result in packets showing
up multiple times in BPF.
Sascha Wildner [Sun, 20 Feb 2005 02:35:28 +0000 (02:35 +0000)]
We don't support DEC Alpha.
David Xu [Sun, 20 Feb 2005 01:58:00 +0000 (01:58 +0000)]
Implement cancellation points for sigwait, sigtimedwait and sigwaitinfo.
David Xu [Sun, 20 Feb 2005 01:54:30 +0000 (01:54 +0000)]
generate __sys_sigtimedwait and __sys_sigwaitinfo to allow
thread libraries override their libc version.
David Xu [Sun, 20 Feb 2005 01:52:25 +0000 (01:52 +0000)]
Implement sigwait.
Joerg Sonnenberger [Sun, 20 Feb 2005 01:49:21 +0000 (01:49 +0000)]
ALTQ support.