Scott Ullrich [Sat, 31 Jul 2004 19:03:00 +0000 (19:03 +0000)]
Merge from vendor branch OPENSSH:
Import OpenSSH 3.8.1.p1 into base.
Patch-submitted-by: Simon 'corecode' Schubert
Reviewed-by: Chris Pressey
Parts-obtained-from: FreeBSD
Scott Ullrich [Sat, 31 Jul 2004 19:03:02 +0000 (19:03 +0000)]
Import OpenSSH 3.8.1.p1 into base.
Patch-submitted-by: Simon 'corecode' Schubert
Reviewed-by: Chris Pressey
Parts-obtained-from: FreeBSD
Scott Ullrich [Sat, 31 Jul 2004 19:03:00 +0000 (19:03 +0000)]
Import OpenSSH 3.8.1.p1 into base.
Patch-submitted-by: Simon 'corecode' Schubert
Reviewed-by: Chris Pressey
Parts-obtained-from: FreeBSD
Eirik Nygaard [Sat, 31 Jul 2004 11:18:43 +0000 (11:18 +0000)]
Remove local main() definition.
Eirik Nygaard [Sat, 31 Jul 2004 10:23:11 +0000 (10:23 +0000)]
Add WARNS?=6 and remove CFLAGS=.
Add missing $DragonFly$ keyword.
Eirik Nygaard [Sat, 31 Jul 2004 10:19:53 +0000 (10:19 +0000)]
Don't depend on pollution in <limits.h> for the definition of <stdint.h> macros.
Remove local prototype for main().
Submitted by: "Liam J. Foy" <liamfoy@sepulcrum.org>
Obtained from: FreeBSD
Matthew Dillon [Sat, 31 Jul 2004 07:58:23 +0000 (07:58 +0000)]
Since mbufs are no longer limited by an mb_map the kern.ipc.nmbufs and
kern.ipc.nmbclusters sysctls can be made writable.
Matthew Dillon [Sat, 31 Jul 2004 07:52:58 +0000 (07:52 +0000)]
Get rid of mb_map. Retool the mbuf and mbuf cluster allocator to use
malloc() (our slab allocator). Get rid of the NULL callback function for
M_EXT buffers, assign real functions for standard M_EXT buffers and add
a new flag M_EXT_CLUSTER to tell the mbuf code when an M_EXT buffer is
under management by the mbuf cluster allocator. Get rid of the address
calculations and the char array ref count that used to exist for mbuf
clusters. Replace with a meta-data structure to keep track of ref
counts. Note that the new cluster code uses the new M_EXT mechanism.
Increase the default mbuf+cluster pool from 10 to 20. Add sysctl's to
set the mbuf and mbuf cluster free-pool maximums (kern.ipc.mcl_free_max and
kern.ipc.mbuf_free_max), beyond which mbuf and mbuf cluster memory is
returned to the system.
Matthew Dillon [Fri, 30 Jul 2004 21:56:17 +0000 (21:56 +0000)]
Change sendfile() to use the new m_ext callback scheme for cleaning up after
SFBUF's. Remove the sf_buf_tosf() function (a hack that existed only to
support sendfile()).
Matthew Dillon [Fri, 30 Jul 2004 04:46:14 +0000 (04:46 +0000)]
Bring in the latest pkg_install sources from FreeBSD-5.
Note that the only substantive DragonFly changes, apart from adding our
CVS id and doing a few other cleanups, are in add/main.c:getpackagesite().
Matthew Dillon [Fri, 30 Jul 2004 00:24:24 +0000 (00:24 +0000)]
Add the ndiscvt utility from FreeBSD-5, which is used to compile windows
device drivers for NDIS.
Matthew Dillon [Thu, 29 Jul 2004 21:51:55 +0000 (21:51 +0000)]
Provide some basic instructions on how to create an NDIS wireless driver
based on instructions I found on the net and my own playing around.
Matthew Dillon [Thu, 29 Jul 2004 21:35:57 +0000 (21:35 +0000)]
Fix more __stdcall issues. Move the __stdcall into the function typedefs
themselves instead of specifying it later on when the function typedef is
declared. This fixes a number of warnings plus it also fixes internal
compiler errors that occur with gcc-2.95.x.
Matthew Dillon [Thu, 29 Jul 2004 21:07:32 +0000 (21:07 +0000)]
NDIS_INFO -> NDIS_LOCK_INFO
Matthew Dillon [Thu, 29 Jul 2004 21:05:54 +0000 (21:05 +0000)]
Generally speaking modules should unconditionally enable things like
INET. INET is not something developers usually set in /etc/make.conf.
Follow what other modules are doing and unconditionally #define INET and IPX.
This fixes an ARP problem with this module :-).
Matthew Dillon [Thu, 29 Jul 2004 20:51:36 +0000 (20:51 +0000)]
Bring in NDIS emulation support from FreeBSD-5. NDIS is a Windows device
driver API emulator. The FreeBSD work was done by Bill Paul
<wpaul@windriver.com>, who has again proven himself to be a more insane
hacker then the rest of us.
Bring in IF_NDIS from FreeBSD-5.
Make a number of additional changes to the driver. Windows API calls are not
compatible with standard gnu C. The FreeBSD-5 NDIS code properly uses
__attribute__((__stdcall__)) to deal with the target-pops-argument-stack
issue but had terrible __asm hacks to deal with regargs. Consolidate the
regargs support into a new header file, regcall.h, and use
__attribute__((__regparm__(3))) to formalize argument passing in registers.
Note that __regparm__(3) places three arguments in registers in the
following order: %eax, %edx, %ecx, but Windoz reg calls place registered
arguments in %ecx and %edx (and additional arguments go on the stack).
regcall.h provides macros to do the proper (I hope) translations.
DragonFly's kernel threads do not have proc structures. Convert up all the
proc references to thread references.
Convert mutex ops into token ops.
Fix a number of prototypes, including one that was causing an internal
compiler error in gcc2.
Testing: Doesn't crash with Sony-TR3A Intel Centrino 2200 based wireless
chipset, is able to DHCP up the IP address, but cannot yet ping due
to an issue in the ARP code somewhere.
Taken from: FreeBSD-5 / Bill Paul
Matthew Dillon [Thu, 29 Jul 2004 20:34:29 +0000 (20:34 +0000)]
Sync the IFM_MAKEMODE() macro from FreeBSD-5.
Matthew Dillon [Thu, 29 Jul 2004 20:34:09 +0000 (20:34 +0000)]
Work to allow pure threads to issue VFS lookups: (untested/experimental)
Use the rootvnode as the basis for searches initiated from pure threads
since no proc or fdp structure exists.
Matthew Dillon [Thu, 29 Jul 2004 20:32:59 +0000 (20:32 +0000)]
Work to allow pure threads to issue VFS lookups: fp_open() uses proc0's
ucred if called from a pure thread.
Matthew Dillon [Thu, 29 Jul 2004 20:32:24 +0000 (20:32 +0000)]
Work to allow pure threads to issue VFS lookups: Only check p->p_ucred
if p is not NULL.
Matthew Dillon [Thu, 29 Jul 2004 20:31:13 +0000 (20:31 +0000)]
Add a test-and-set and release poll function. This is really just a hack
to support NDIS emulation.
Matthew Dillon [Thu, 29 Jul 2004 20:30:32 +0000 (20:30 +0000)]
Remove a recently added incorrect assertion. I was assuming that
pmap_init_thread() was only being called for processes but it is called
for both processes and threads.
Matthew Dillon [Thu, 29 Jul 2004 09:20:39 +0000 (09:20 +0000)]
add the 'y' and 'Y' options to ps, and add the 'iac' keyword. The 'y'
option and 'iac' keyword displays the interactive heuristic calcualtion.
It is a value between -127 and 127 where lower numbers indicate more
interactive and higher numbers indicate more batch-like.
Matthew Dillon [Thu, 29 Jul 2004 09:02:33 +0000 (09:02 +0000)]
Move kthread_create() from lwkt_thread.c to kern_kthread.c. Add a new
api function, kthread_create_stk(), which allows a custom stack size to be
specified.
Matthew Dillon [Thu, 29 Jul 2004 08:55:48 +0000 (08:55 +0000)]
Add LWKT convenience functions lwkt_getpri() and lwkt_getpri_self().
Matthew Dillon [Thu, 29 Jul 2004 08:55:02 +0000 (08:55 +0000)]
Add a stack-size argument to the LWKT threading code so threads can be
created with different-sized stacks. Adjust libcaps to match.
This is a pre-requisit to adding NDIS support. NDIS threads need larger
stacks because microsoft drivers expect larger stacks.
Matthew Dillon [Thu, 29 Jul 2004 08:50:09 +0000 (08:50 +0000)]
Implement a kernel strdup() function (API synch with FreeBSD).
Matthew Dillon [Thu, 29 Jul 2004 08:46:23 +0000 (08:46 +0000)]
Stage 1/many: mbuf/cluster accounting rewrite and mbuf allocator rewrite.
Implement 'new' style mbuf m_ext buffers where the callbacks are called with
a custom argument instead of with (buf, size). Old style m_ext buffers have
to jump through loops to properly track reference counters in a manner that
is tightly integrated with the old mbuf/cluster KVA allocation array.
The old clustering methodology is going to have to be converted to the new
methodology before we can rip out the old mbuf allocator, plus we want to
use the new mechanism anyway because it is a whole lot cleaner and because
it's easier to import driver code (aka NDIS) from FreeBSD-5 with the new
mechanism.
This commit still supports the old mechanism via M_EXT_OLD, and all
existing function-based M_EXT's have been converted to use M_EXT_OLD. The
old mechanism (and M_EXT_OLD) will be removed in later stages.
Matthew Dillon [Thu, 29 Jul 2004 00:48:41 +0000 (00:48 +0000)]
Output a more descriptive error message when AGP can't bind memory.
Matthew Dillon [Wed, 28 Jul 2004 20:40:35 +0000 (20:40 +0000)]
(From Alan):
Correct a very old error in both vm_object_madvise() (originating in
vm/vm_object.c revision 1.88) and vm_object_sync() (originating in
vm/vm_map.c revision 1.36): When descending a chain of backing objects,
both use the wrong object's backing offset. Consequently, both may
operate on the wrong pages.
(From Matt):
In DragonFly the code needing correction is in vm_object_madvise() and
vm_map_clean() (that code in vm_map_clean() was moved to vm_object_sync()
in FreebSD-5 hence the FreeBSD-5 correction made by Alan was slight
different).
The madvise case could produce corrupted user memory when MADV_FREE was
used, primarily on server-forked processes (where shadow objects exist)
PLUS a special set of additional circumstances: (1) The deeper shadow
layers had to no longer be shared, (2) Either the memory had been swapped
out in deeper shadow layers (not just the first shadow layer), resulting
in the wrong swap space being freed, or (2) the forked memory had not yet
been COW'd (and the deeper shadow layer is no longer shared) AND also had
not yet been collapsed backed into the parent (e.g. the original parent
and/or other forks had exited and/or the memory had been isolated from
them already).
This bug could be responsible for all of the sporatic madvise oddness
that has been reported over the years, especially in earlier days when
systems had less memory and paged to swap a lot more then they do today.
These weird failure cases have led people to generally not use MADV_FREE
(in particular the 'H' malloc.conf option) as much as they could. Also
note that I tightened up the VM object collapse code considerably in
FreeBSD-4.x making the failure cases above even less likely to occur.
The vm_map_clean() (vm_object_sync() in FreeBSD-5) case is not likely
to produce failures and it might not even be possible for it to occur
in the first place since it requires PROT_WRITE mapped vnodes to exist
in a backing object, which either might not be possible or might only occur
under extrodinary circumstances. Plus the worst that happens is that the
vnode's data doesn't get written out immediately (but always will later on).
Kudos to Alan for finding this old bug!
Noticed and corrected by: Alan Cox <alc@cs.rice.edu>
See also: FreeBSD vm_object.c/1.329
Justin C. Sherrill [Wed, 28 Jul 2004 20:26:45 +0000 (20:26 +0000)]
A cvsup file that pulls the "checked out" version of source. I'm referencing
this in documentation, as it's a simpler process than pulling CVS and checking
out a local copy as you have to do with 'DragonFly-supfile'.
Approved-by: Matthew Dillon
Matthew Dillon [Wed, 28 Jul 2004 17:55:46 +0000 (17:55 +0000)]
Change the default syslogd flags from -s to -ss, which prevents a network
socket from being opened at all.
Suggested-by: Ed <df@bsd.it>
Joerg Sonnenberger [Wed, 28 Jul 2004 12:27:40 +0000 (12:27 +0000)]
NTOHL / HTONL removal.
Joerg Sonnenberger [Wed, 28 Jul 2004 12:07:49 +0000 (12:07 +0000)]
NTOHL(x) ==> x = ntohl(x)
Joerg Sonnenberger [Wed, 28 Jul 2004 08:53:43 +0000 (08:53 +0000)]
Add IF_QLEN and the ALTQ macros. This are only the lock-free versions with
the underscore (_), since we want to protect the queues via normal splimp,
not via mutexes / tokens.
Obtained-from: FreeBSD
Joerg Sonnenberger [Wed, 28 Jul 2004 08:47:55 +0000 (08:47 +0000)]
Add two more 802.11 media types.
Obtained-from: FreeBSD
Joerg Sonnenberger [Wed, 28 Jul 2004 08:38:33 +0000 (08:38 +0000)]
Sync with FreeBSD CURRENT.
Important changes:
- Ignore EINVAL from wi_getval for optional values to increase support for
different drivers.
- Generally improved error handling.
- Better output and support for the generic 802.11 layer.
- Warnings output deprecated options which are supported by ifconfig,
this will be removed at some time.
Additional changes:
- print "No stations" instead of "0 stations:"
- Remove 'Z', the zeroing of the signal cache is not supported by the
newer driver versions anyway.
- Add WARNS?= 6 to Makefile.
Matthew Dillon [Wed, 28 Jul 2004 06:04:41 +0000 (06:04 +0000)]
udev2dev() can return NODEV now, make sure it doesn't crash autoconf's
attempt to mount the root filesystem.
Crash reported by: =?ISO-8859-1?Q?Stefan_Kr=FCger?= <skrueger@meinberlikomm.de>
Chris Pressey [Wed, 28 Jul 2004 02:51:06 +0000 (02:51 +0000)]
DragonFly-ize pgrep/pkill:
- Bump date in pkill.1 and refine the history of these utilities.
- Tailor pkill.c to the specifics of DragonFly's libkvm.
This makes pkill.c buildable, and makes the resulting utilities
capable of producing reasonable and seemingly correct output.
Much-assistance-by: hmp
Hiten Pandya [Wed, 28 Jul 2004 00:49:54 +0000 (00:49 +0000)]
Readd the $DragonFly$ Id tag which I removed by mistake in previous
revision.
Chris Pressey [Wed, 28 Jul 2004 00:41:47 +0000 (00:41 +0000)]
Import from NetBSD: `pgrep' and `pkill' utilities for finding and
signalling processes by name.
This initial commit brings in the following files directly from
NetBSD, unchanged except for the addition of $DragonFly$ ID tags:
$NetBSD: Makefile,v 1.1 2002/03/01 11:21:58 ad Exp $
$NetBSD: pkill.1,v 1.8 2003/02/14 15:59:18 grant Exp $
$NetBSD: pkill.c,v 1.7 2004/02/15 17:03:30 soren Exp $
The next few commits will DragonFly-ize these files and hook them up
to the build.
Initially-requested-by: Munish Chopra <chopra at soulwax dot net>
Approved-by: dillon
Hiten Pandya [Wed, 28 Jul 2004 00:22:37 +0000 (00:22 +0000)]
Major cleanup of the base IPFilter:
o Vendor's ChangeLog available in src/contrib/ipfilter/HISTORY.
o Update kernel and userland to version 3.4.35, major changes:
* only allow non-fragmented packets to influence whether or
not a logged packet is the same as the one logged before.
* block packets that fail to create stable entries.
* correct the ICMP packet checksum fixing up when processing
ICMP errors for NAT.
* implement a maximum for the number of entries in the NAT
table (NAT_TABLE_MAX and ipf_nattable_max).
* frsynclist() wasn't paying attention to all places where
interface names are, like it should.
* fix comparison of ICMP packets with established TCP state
where only 8 bytes of header are returned in the ICMP
error.
o Following files were removed from under src/contrib/ipfilter,
because they were redundant:
fil.c ip_auth.c ip_auth.h ip_compat.h ip_fil.c ip_fil.h
ip_frag.c ip_frag.h ip_ftp_pxy.c ip_log.c ip_nat.c
ip_nat.h ip_proxy.c ip_proxy.h ip_raudio_pxy.c ip_rcmd_pxy.c
ip_state.c ip_state.h ipl.h mlfk_ipl.c
o Cast interface numbers to u_int instead of u_char, so that
big numbered units don't get truncated. More information on
this problem can be found at FreeBSD GNATS, PR kern/64584.
o Compile INET6 support into ipfilter unless NOINET6 is defined
as Make variable.
o Update $FreeBSD$ CVS ID tags.
o Adjust minor style(9) changes, like prototypes, etc.
Tested by David Rhodus, Chris Beuchler and Chris Pressey.
Reviewed-by: Darren Reed <darrenr@freebsd.org> (earlier version)
Matthew Dillon <dillon@apollo.backplane.com>
Matthew Dillon [Tue, 27 Jul 2004 21:42:48 +0000 (21:42 +0000)]
rename functions that clash with reserved math procedures to avoid gcc3.4
built-in function conflicts.
Matthew Dillon [Tue, 27 Jul 2004 21:03:51 +0000 (21:03 +0000)]
rename exp() to expx() to avoid conflict with gcc-3.4 built-in.
Matthew Dillon [Tue, 27 Jul 2004 21:01:44 +0000 (21:01 +0000)]
Patch out tcsh's use of 'exp2', which is math-reserved in gcc-3.4.
Matthew Dillon [Tue, 27 Jul 2004 19:37:19 +0000 (19:37 +0000)]
Boot1 tries to clear boot2's BSS. It makes several assumptions that are
incorrect (or incorrect now), and doesn't really know how much BSS to clear
anyway. Remove the BSS clearing code from boot1 and add BSS clearing code
to the boot2 (in particular, /usr/src/sys/boot/i386/btx/lib/btxcsu.S).
This should solve numerous issues including boot2 getting confused about
the default boot device file path.
Collapse some boot2 code to make it fit again.
Move the BOOT2 virtual origin (relative to the BTX client address space)
into bootasm.h, replace an undocumented hardwired BOOT2 origin calculation
(that was SIZ_PAG*2) with BOOT2_VORIGIN. Replace the hardwired ORG2
constant in boot2's Makefile with code to pull BOOT2_VORIGIN out of the
header file.
David Rhodus [Tue, 27 Jul 2004 19:18:50 +0000 (19:18 +0000)]
We will need more resource-limiting compliance work done before these
interfaces can become POSIX compliant. Change back to old prototype.
David Rhodus [Tue, 27 Jul 2004 18:02:07 +0000 (18:02 +0000)]
Correct getpriority() and setpriority() function definitions to
match POSIX standard.
David Rhodus [Tue, 27 Jul 2004 17:57:02 +0000 (17:57 +0000)]
Correct line wrap.
Hiten Pandya [Tue, 27 Jul 2004 17:43:28 +0000 (17:43 +0000)]
KNF/style and warnings clean up. ANSI style prototype for printb(), and
use the const specifier and correct types for the arguments, wherever
appropriate.
Remove an extra semi-colon.
Hiten Pandya [Tue, 27 Jul 2004 17:07:01 +0000 (17:07 +0000)]
Use the correct header file, which is located in netproto/802_11.
Hiten Pandya [Tue, 27 Jul 2004 16:21:52 +0000 (16:21 +0000)]
Minor cleanups to bring us on-par with FreeBSD's cat(1):
o change use of perror() into warn()
o move usage into a usage() function for consistency.
Obtained from FreeBSD via Liam J. Foy <liamfoy@kerneled.org>
Hiten Pandya [Tue, 27 Jul 2004 16:12:38 +0000 (16:12 +0000)]
KNF/style changes. Match scanfiles() function prototype with the rest
and remove main()'s prototype.
Obtained from FreeBSD via Liam J. Foy <liamfoy@kerneled.org>
Hiten Pandya [Tue, 27 Jul 2004 14:50:56 +0000 (14:50 +0000)]
Add the ieee80211(9) API manual pages.
Obtained from FreeBSD with my modifications.
Joerg Sonnenberger [Tue, 27 Jul 2004 14:35:55 +0000 (14:35 +0000)]
Remove now obsolete header.
Joerg Sonnenberger [Tue, 27 Jul 2004 14:34:30 +0000 (14:34 +0000)]
Refer to netproto/802_11/ieee80211{.h,_ioctl.h} instead of net/if_ieee80211.h.
Joerg Sonnenberger [Tue, 27 Jul 2004 14:30:10 +0000 (14:30 +0000)]
Use netproto/802_11 includes instead of net/if_ieee80211.h.
Remove if_wavelan_ieee.h, we only temporary need WI_CMD_DEBUG from it,
which isn't in the generic version.
Joerg Sonnenberger [Tue, 27 Jul 2004 14:25:56 +0000 (14:25 +0000)]
Use netproto/802_11 includes instead of net/if_ieee80211.h and
dev/netif/wi/if_wavelan.h. Temporary include definitions for
ieee80211_nwkey and ieee80211_nwid wit the ioctl macros.
Joerg Sonnenberger [Tue, 27 Jul 2004 14:16:49 +0000 (14:16 +0000)]
Use netproto/802_11 includes instead of net/if_ieee80211.h
Joerg Sonnenberger [Tue, 27 Jul 2004 14:06:14 +0000 (14:06 +0000)]
Use netproto/802_11 includes instead of net/if_ieee80211.h.
Joerg Sonnenberger [Tue, 27 Jul 2004 13:56:50 +0000 (13:56 +0000)]
Use netproto/802_11 includes, instead of net/if_ieee80211.h
Hiten Pandya [Tue, 27 Jul 2004 13:50:15 +0000 (13:50 +0000)]
Remove VAX conditionalized code.
Joerg Sonnenberger [Tue, 27 Jul 2004 13:39:46 +0000 (13:39 +0000)]
Make raycontrol(8) WARNS=6 safe by adding const and fixing a signed/unsigned
comparision.
Hiten Pandya [Tue, 27 Jul 2004 13:11:22 +0000 (13:11 +0000)]
Remove UIO_USERISPACE, we do not support any split instruction/data
address space machines such as the PDP-11. It is not used anywhere
in the kernel.
Remove it from the manual page as well; the only place where it is
referenced now is the old 4.4BSD FS Interface doc which cannott be
changed.
Mostly obtained from FreeBSD -HEAD.
Joerg Sonnenberger [Tue, 27 Jul 2004 12:51:03 +0000 (12:51 +0000)]
- turn a strcpy into a strlcpy to avoid overflow
- if the byte string is too long, use errx, not err
- abort via call to usage(), if argument of 'W' doesn't contain ':'
Obtained-from: FreeBSD
Hiten Pandya [Tue, 27 Jul 2004 12:33:01 +0000 (12:33 +0000)]
Fix generation of opt_inet.h and opt_ipx.h by providing their targets
respectively.
Hiten Pandya [Tue, 27 Jul 2004 12:21:54 +0000 (12:21 +0000)]
Add MOD_SHUTDOWN to be processed by the module event handling function.
Jeroen Ruigrok/asmodai [Tue, 27 Jul 2004 11:22:34 +0000 (11:22 +0000)]
Get rid of varargs.h.
Jeroen Ruigrok/asmodai [Tue, 27 Jul 2004 10:55:57 +0000 (10:55 +0000)]
Actually add the main file for Pentium 4 Thermal Control Circuit support.
Obtained from: FreeBSD(from OpenBSD)
Submitted by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
Reminded by: YONETANI Tomokazu <qhwt+dragonfly-commits@les.ath.cx>
OK'd by: dillon
Feeling like an idiot: asmodai
Jeroen Ruigrok/asmodai [Tue, 27 Jul 2004 10:20:21 +0000 (10:20 +0000)]
Get rid of varargs.h.
Add $DragonFly$ where needed.
Joerg Sonnenberger [Tue, 27 Jul 2004 08:43:41 +0000 (08:43 +0000)]
Add 802.11 include directory
Joerg Sonnenberger [Tue, 27 Jul 2004 08:38:26 +0000 (08:38 +0000)]
Add 802.11 include directory
Jeroen Ruigrok/asmodai [Tue, 27 Jul 2004 08:09:56 +0000 (08:09 +0000)]
Add Pentium 4 Thermal Control Circuit support.
Enable by putting 'options CPU_ENABLE_TCC' in your kernel config.
Taken from: FreeBSD (which took it from OpenBSD)
Submitted by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
OK'd by: dillon
Jeroen Ruigrok/asmodai [Tue, 27 Jul 2004 07:59:10 +0000 (07:59 +0000)]
Get rid of varargs.h.
Add $DragonFly$ where needed.
Jeroen Ruigrok/asmodai [Tue, 27 Jul 2004 07:41:03 +0000 (07:41 +0000)]
Get rid of the CFLAGS with traditional-cpp, it compiles fine without.
Jeroen Ruigrok/asmodai [Tue, 27 Jul 2004 07:37:39 +0000 (07:37 +0000)]
Get rid of varargs.h.
Jeroen Ruigrok/asmodai [Tue, 27 Jul 2004 07:22:14 +0000 (07:22 +0000)]
Get rid of varargs.h.
Chris Pressey [Tue, 27 Jul 2004 01:24:28 +0000 (01:24 +0000)]
Style(9) cleanup:
- Remove some unneeded #define's and indent others properly.
- Convert K&R function definitions to ANSI.
- No functional changes.
Submitted-by: Tim Wickberg <me@k9mach.org>
Scott Ullrich [Mon, 26 Jul 2004 20:42:16 +0000 (20:42 +0000)]
Fix typo in Makefile syntax to unbreak the build. Top was being patched from /cvs which would break the build process if /cvs did not exist.
Noticed-by: Many
Fixed-by: Simon 'corecode' Schubert
Reviewed-by: Chris Pressey
David Rhodus [Mon, 26 Jul 2004 19:48:31 +0000 (19:48 +0000)]
POSIX.1-2003: Changing the group ID is permitted to a process with an
effective user ID of file, but without appropriate privileges, if and
only if owner is equal to the file's user ID or (uid_t)-1 and group is
equal either to the calling process effective group ID or to one of its
supplementary group IDs.
Joerg Sonnenberger [Mon, 26 Jul 2004 16:30:17 +0000 (16:30 +0000)]
Import generic 802.11 layer.
Choose netproto/802_11 instead of net80211 as source location.
Use token API instead mutexing. The locking heavenly depends on atomic
Operations and needs additional work.
Use POSIX int types.
Add dev/wi/if_wavelan_ieee.h as netproto/802_11/if_wavelan_ieee.h, since
this is used by all wireless interfaces and beside the variable and constant
naming mostly wi(4) indepedent.
Obtained-from: FreeBSD
Joerg Sonnenberger [Mon, 26 Jul 2004 16:03:23 +0000 (16:03 +0000)]
Don't use cast as lvalues.
Joerg Sonnenberger [Mon, 26 Jul 2004 15:59:48 +0000 (15:59 +0000)]
Don't cast lvalues.
Joerg Sonnenberger [Mon, 26 Jul 2004 14:41:17 +0000 (14:41 +0000)]
Add macro to test for broadcast / multicast Ethernet addresses.
Obtained-from: NetBSD
Joerg Sonnenberger [Mon, 26 Jul 2004 14:29:11 +0000 (14:29 +0000)]
Extend the patch framework to handle non-compilable files. E.g. for
a man page patch, no object file should be created.
This is done by using the extension .no_obj.patch.
Requested-by: corecode
Hiten Pandya [Mon, 26 Jul 2004 10:25:55 +0000 (10:25 +0000)]
Aesthetic changes:
* remove useless prototype for main()
* lint(1) comments
* add some whitespace between two lines
Submitted-by: Liam J. Foy <liamfoy@kerneled.org>
Jeroen Ruigrok/asmodai [Mon, 26 Jul 2004 06:35:31 +0000 (06:35 +0000)]
Use stronger wording against using 'register' and '__P()'.
Jeroen Ruigrok/asmodai [Mon, 26 Jul 2004 06:32:58 +0000 (06:32 +0000)]
Remove stray fr_checkp() declaration.
Scott Ullrich [Mon, 26 Jul 2004 00:32:11 +0000 (00:32 +0000)]
Minor comment update.
Noticed-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
Scott Ullrich [Mon, 26 Jul 2004 00:20:59 +0000 (00:20 +0000)]
Allow options BRIDGE to be defined without having to define options IPFILTER.
Approved-by: dillon, hmp
Submitted-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
Matthew Dillon [Sun, 25 Jul 2004 18:29:54 +0000 (18:29 +0000)]
Add 'propolice' to the version string version_local.c sed patchup.
Suggested-by: Andreas Hauser <andy@splashground.de>
Hiten Pandya [Sun, 25 Jul 2004 16:17:31 +0000 (16:17 +0000)]
Merge revision 1.8 and 1.9 from FreeBSD -CURRENT, i.e., add a section on
maintaining a local branch.
Noticed-by: Maxim Konovalov <maxim@FreeBSD.org>
Hiten Pandya [Sun, 25 Jul 2004 16:14:37 +0000 (16:14 +0000)]
Merge mdoc(7) corrections from FreeBSD -CURRENT.
Matthew Dillon [Sat, 24 Jul 2004 20:37:04 +0000 (20:37 +0000)]
Move usched_debug out of the INVARIANTS conditional. Make it unconditional.
Get rid of debug.sccount.
Note that the usched_debug stuff is temporary.
Matthew Dillon [Sat, 24 Jul 2004 20:30:00 +0000 (20:30 +0000)]
Make fstat() account for pending direct-write data when run on a pipe.
Submitted-by: Hiten Pandya <hmp@freebsd.org>
Obtained-from: FreeBSD 1.172 (Mike Silbersack)
Matthew Dillon [Sat, 24 Jul 2004 20:27:19 +0000 (20:27 +0000)]
Have DDBs 'ps' command display additional scheduler-related paramters
to ease the debugging of the userland scheduler.
Matthew Dillon [Sat, 24 Jul 2004 20:25:47 +0000 (20:25 +0000)]
Adjust gd_vme_avail after ensuring that sufficient entries exist rather
then before. This should solve a panic where the userland
vm_map_entry_reserve() was eating out of the kernel's reserve and causing
a recursive zalloc() to panic.
Matthew Dillon [Sat, 24 Jul 2004 20:21:35 +0000 (20:21 +0000)]
Update the userland scheduler. Fix scheduler interactions which were
previously resulting in the wrong process sometimes getting a full 1/10
second slice, which under heavy load resulted in serious glitching.
Introduce a new dynamic 'p_interactive' heuristic and allow it to effect
priority +/- by a few nice levels.
With this patch batch operations such as buildworlds, setiathome should not
interfere with X / interactive operations as much as they did before.
Note that we are talking about the the userland scheduler here, not the
LWKT scheduler. Also note that the userland scheduler needs a complete
rewrite.
Eirik Nygaard [Sat, 24 Jul 2004 19:50:42 +0000 (19:50 +0000)]
Add missing va_end(ap);
Eirik Nygaard [Sat, 24 Jul 2004 19:45:10 +0000 (19:45 +0000)]
style(9) cleanup.
Submitted by: Douwe Kiela <virtus@wanadoo.nl>
Small fixups by: me