]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
24 years agoSince /etc/sendmail.cf got moved to /etc/mail/sendmail.cf, a 'make world'
peter [Wed, 29 Dec 1999 18:56:55 +0000 (18:56 +0000)]
Since /etc/sendmail.cf got moved to /etc/mail/sendmail.cf, a 'make world'
would leave you with a broken sendmail and local mail loss.
This evil hack moves sendmail.cf from the old location to the new one (if
required) at install time.

24 years agoPreempt one brucification - I was missing a ${DESTDIR}. I hate merging
peter [Wed, 29 Dec 1999 18:51:36 +0000 (18:51 +0000)]
Preempt one brucification - I was missing a ${DESTDIR}.  I hate merging
two sets of changes from different trees.

24 years agoAdd mailwrapper. It redirects to sendmail by default, but you can
peter [Wed, 29 Dec 1999 18:44:06 +0000 (18:44 +0000)]
Add mailwrapper.  It redirects to sendmail by default, but you can
point /usr/sbin/sendmail to any mailer of your choice with the
/etc/mail/mailer.conf config file.

24 years agoInstall sendmail in it's new location.
peter [Wed, 29 Dec 1999 18:40:56 +0000 (18:40 +0000)]
Install sendmail in it's new location.

24 years agoAdd /usr/libexec/sendmail
peter [Wed, 29 Dec 1999 18:34:33 +0000 (18:34 +0000)]
Add /usr/libexec/sendmail

24 years agoAs a special case, deal with a missing mailer.conf at install time. I
peter [Wed, 29 Dec 1999 18:27:35 +0000 (18:27 +0000)]
As a special case, deal with a missing mailer.conf at install time.  I
don't particularly like doing this here, but the alternative (loosing mail)
is worse.

24 years agoMove mailer.conf to /etc/mail at obrien's request.
peter [Wed, 29 Dec 1999 18:25:55 +0000 (18:25 +0000)]
Move mailer.conf to /etc/mail at obrien's request.

24 years agoAdd $FreeBSD$
peter [Wed, 29 Dec 1999 18:24:06 +0000 (18:24 +0000)]
Add $FreeBSD$

24 years agomoved to etc/mail
peter [Wed, 29 Dec 1999 18:23:33 +0000 (18:23 +0000)]
moved to etc/mail

Requested by: obrien

24 years agoTry and sort BIN1 a bit, it was all over the place.
peter [Wed, 29 Dec 1999 18:22:52 +0000 (18:22 +0000)]
Try and sort BIN1 a bit, it was all over the place.
Add mail/mailer.conf  (repocopied from /etc/mailer.conf to
/etc/mail/mailer.conf on obrien's request)

24 years agoRevert previous commit, -o is functional here and is required.
peter [Wed, 29 Dec 1999 18:20:23 +0000 (18:20 +0000)]
Revert previous commit, -o is functional here and is required.

24 years agoMake mailwrapper build
peter [Wed, 29 Dec 1999 17:51:22 +0000 (17:51 +0000)]
Make mailwrapper build

24 years agoConnect fparseln(3) for mailwrapper(8)
peter [Wed, 29 Dec 1999 17:50:34 +0000 (17:50 +0000)]
Connect fparseln(3) for mailwrapper(8)

24 years agoBack out previous commit and replace with a cleaner solution adapted
sheldonh [Wed, 29 Dec 1999 16:50:08 +0000 (16:50 +0000)]
Back out previous commit and replace with a cleaner solution adapted
from the source attributed below.  In particular, this removes a goto
inside a switch and replaces those horrendous ATOI macros with
something acceptable.

More clean-ups to come.

PR: bin/14151
Reported by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
Obtained from: NetBSD

24 years agoRemove -o before sendmail.cw - pure file name needed here
ache [Wed, 29 Dec 1999 16:15:22 +0000 (16:15 +0000)]
Remove -o before sendmail.cw - pure file name needed here

24 years agoUse LC_TIME=C for date
ache [Wed, 29 Dec 1999 15:45:45 +0000 (15:45 +0000)]
Use LC_TIME=C for date

24 years agoDon't explicitly mmap() red zones at the bottom of thread stacks (except
jasone [Wed, 29 Dec 1999 15:44:59 +0000 (15:44 +0000)]
Don't explicitly mmap() red zones at the bottom of thread stacks (except
the initial thread).  Instead, just leave an unmapped gap between thread
stacks and make sure that the thread stacks won't grow into these gaps,
simply by limiting the size of the stacks with the 'len' argument to
mmap().  This (if I understand correctly) reduces VM overhead
considerably.

Reviewed by: deischen

24 years agoRestore changes I spammed.
obrien [Wed, 29 Dec 1999 14:47:00 +0000 (14:47 +0000)]
Restore changes I spammed.

24 years agoAllow the specification of a prefix for gcc to find all the various bits.
obrien [Wed, 29 Dec 1999 14:42:46 +0000 (14:42 +0000)]
Allow the specification of a prefix for gcc to find all the various bits.
If one wishes to anchor the compiler toolchain tree somewhere other than /,
all one needs to do is set "TOOLS_PREFIX" to a different rooting.

Submitted by: marcel (in a different format and reworked by me)

24 years agoDon't use time_offset as a leaky bucket variable in hardpps(), this
phk [Wed, 29 Dec 1999 14:39:24 +0000 (14:39 +0000)]
Don't use time_offset as a leaky bucket variable in hardpps(), this
resulted in vastly optimistic offset values reported to userland
(typically a factor 40+ too small).  Apart from that, the code had
two sign-bugs.

Apply the hardpps() phase with the right sign with a simply
scaling by integration interval.  (This may be too stiff at
long integration intervals, see below).

Allow pps_shiftmax to be reduced again.

Before this, the phase lock in hardpps() were broken, but due to
two bugs mostly cancelling out, it would end up basically working
with a large stochastic component.  Now it behaves as one would
expect: smooth and quiet.

It seems that pps_shiftmax above 7..9 somewhere makes the phaselock
too weak to hold onto random walk phase errors from a HP-105 OCXO,
which basically means that it is too weak for real-life use with
such integration times.  This is yet to be resolved.

Submitted to: Prof. Dave "NTP" Mills.
Tested by: Terje Mathisen <Terje.Mathisen@hda.hydro.com>

24 years agoOnly make beforeinstall in libcrypto/libssl if they actually exist. I haven't
kris [Wed, 29 Dec 1999 14:18:51 +0000 (14:18 +0000)]
Only make beforeinstall in libcrypto/libssl if they actually exist. I haven't
imported these on Freefall yet for the reasons previously explained.

Noticed by: asami

24 years agoOops, the previous commit was bogus. I shouldn't commit something without
asami [Wed, 29 Dec 1999 13:57:31 +0000 (13:57 +0000)]
Oops, the previous commit was bogus.  I shouldn't commit something without
reading all my mail.

I still don't understand why this was was committed on freefall before
the libcrypto and libssl subdirectories were imported on freefall though.

24 years ago- do not dereference a null pointer.
ru [Wed, 29 Dec 1999 13:53:13 +0000 (13:53 +0000)]
- do not dereference a null pointer.
- minor sanity.

PR: 15318

24 years agoTypo (libcrypto -> libcrypt).
asami [Wed, 29 Dec 1999 13:33:54 +0000 (13:33 +0000)]
Typo (libcrypto -> libcrypt).

24 years agoCopy Texas Instruments cardbus controllers from pcisupport.c, the pcisupport.c
billf [Wed, 29 Dec 1999 13:33:37 +0000 (13:33 +0000)]
Copy Texas Instruments cardbus controllers from pcisupport.c, the pcisupport.c
probes are at the 'chip' level and will get overridden by pcic_p if it is
compiled in. It's still nice to get the better probe message if it's not...

Requested by: imp

24 years agoSorry, ndp command is not exist yet.
shin [Wed, 29 Dec 1999 12:53:21 +0000 (12:53 +0000)]
Sorry, ndp command is not exist yet.

Specified by: Anders Andersson <anders@sanyusan.se>

24 years agoSubstantially revamp the way that we determine the amount of memory available
msmith [Wed, 29 Dec 1999 09:54:46 +0000 (09:54 +0000)]
Substantially revamp the way that we determine the amount of memory available
for our use.  Use the same search order for BIOS memory size functions
as the kernel will later use.

Allow the loader to use all of the detected physical memory (this will
greatly help people trying to load enormous memory disk images).

More correctly handle running out of memory when loading an object.

Use the end of base memory for the top of the heap, rather than
blindly hoping that there is 384k left.

Add copyrights to a couple of files I forgot.

24 years agoForgot to add newly added udp and raw IPv6 apps to usr.sbin SUBDIR.
shin [Wed, 29 Dec 1999 07:11:50 +0000 (07:11 +0000)]
Forgot to add newly added udp and raw IPv6 apps to usr.sbin SUBDIR.
They are confirmed to be buildable and seems to be working.

24 years agomake es1373 chips with ac97 2.1 work on troublesome motherboards
cg [Wed, 29 Dec 1999 05:44:17 +0000 (05:44 +0000)]
make es1373 chips with ac97 2.1 work on troublesome motherboards

Submitted by: Russell Cattelan <cattelan@thebarn.com>

24 years agoRemove vnode_if.sh - it's a perl script. This stayed around for a while
peter [Wed, 29 Dec 1999 05:37:14 +0000 (05:37 +0000)]
Remove vnode_if.sh - it's a perl script.  This stayed around for a while
because bsd.kmod.mk is usually out of sync with kernel source.  However
bsd.kmod.mk has to be updated now because of the _KERNEL change so there
is no need to keep this (pre-repo copy) version around.

24 years agoAdd the Texas Instruments PCI14xx pccard/cardbus controllers device ids.
billf [Wed, 29 Dec 1999 05:33:57 +0000 (05:33 +0000)]
Add the Texas Instruments PCI14xx pccard/cardbus controllers device ids.

24 years agoChange #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
peter [Wed, 29 Dec 1999 05:07:58 +0000 (05:07 +0000)]
Change #ifdef KERNEL to #ifdef _KERNEL in the public headers.  "KERNEL"
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot).  This is consistant with the other
BSD's who made this change quite some time ago.  More commits to come.

24 years agoChange #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
peter [Wed, 29 Dec 1999 04:46:21 +0000 (04:46 +0000)]
Change #ifdef KERNEL to #ifdef _KERNEL in the public headers.  "KERNEL"
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot).  This is consistant with the other
BSD's who made this change quite some time ago.  More commits to come.

24 years ago- latest 2ndbuffer patch
cg [Wed, 29 Dec 1999 03:46:54 +0000 (03:46 +0000)]
- latest 2ndbuffer patch
- make chn_setdir work for rec on isa cards
- note: es1371 does not irq in smp

Submitted by: tanimura

24 years agoAdd the Id for the NeoMagic 256ZX, the display from which I'm seeing this..
billf [Wed, 29 Dec 1999 02:47:02 +0000 (02:47 +0000)]
Add the Id for the NeoMagic 256ZX, the display from which I'm seeing this..

24 years agoOnly print "couldn't install distributions" popup if any
jkh [Wed, 29 Dec 1999 01:49:11 +0000 (01:49 +0000)]
Only print "couldn't install distributions" popup if any
actual distributions were found to go along with the residual
mask value.

24 years agoAdd support for building the 'mlx?' devices, which will be used by the
msmith [Wed, 29 Dec 1999 01:11:29 +0000 (01:11 +0000)]
Add support for building the 'mlx?' devices, which will be used by the
upcoming 'mlxcontrol' utility.

24 years agoHookup the info docs.
obrien [Wed, 29 Dec 1999 00:38:48 +0000 (00:38 +0000)]
Hookup the info docs.

24 years agoMake tcp_drain() actually do something. When invoked (usually as a
msmith [Tue, 28 Dec 1999 23:18:33 +0000 (23:18 +0000)]
Make tcp_drain() actually do something.  When invoked (usually as a
desperation measure in low-memory situations), walk the tcpbs and
flush the reassembly queues.

This behaviour is currently controlled by the debug.do_tcpdrain sysctl
(defaults to on).

Submitted by: Bosko Milekic <bmilekic@dsuper.net>
Reviewed by: wollman

24 years agoBuild and install the GASP info page. Unfortunately there is no manpage.
obrien [Tue, 28 Dec 1999 22:32:24 +0000 (22:32 +0000)]
Build and install the GASP info page.  Unfortunately there is no manpage.

24 years agoUse the *much* more readable unified diff format.
obrien [Tue, 28 Dec 1999 21:38:12 +0000 (21:38 +0000)]
Use the *much* more readable unified diff format.

24 years ago-Wall and minor style(9) cleanups.
deischen [Tue, 28 Dec 1999 18:13:04 +0000 (18:13 +0000)]
-Wall and minor style(9) cleanups.

24 years agoChange stack allocation algorithm to make better use of memory
deischen [Tue, 28 Dec 1999 18:12:07 +0000 (18:12 +0000)]
Change stack allocation algorithm to make better use of memory
(it was leaving an unused block).  Also protect the global stack
pointer from context changes while fiddling with it.

24 years agoDon't wakeup threads when there is a process signal and no installed
deischen [Tue, 28 Dec 1999 18:08:09 +0000 (18:08 +0000)]
Don't wakeup threads when there is a process signal and no installed
handler.  Thread-to-thread signals (pthread_signal) are treated differently
than process signals; a pthread_signal can wakeup a blocked thread if
a signal handler is not installed for that signal.

Found by: ACE tests

24 years agoBuild openssl properly during make world.
kris [Tue, 28 Dec 1999 16:22:50 +0000 (16:22 +0000)]
Build openssl properly during make world.

24 years agoAvoid to write garbage if uiomove fails.
bp [Tue, 28 Dec 1999 16:14:54 +0000 (16:14 +0000)]
Avoid to write garbage if uiomove fails.

24 years agoFix an overflow in the msdosfs_read() function which exposed on the files
bp [Tue, 28 Dec 1999 15:34:23 +0000 (15:34 +0000)]
Fix an overflow in the msdosfs_read() function which exposed on the files
with size > 2GB.

PR: 15639
Submitted by: Tim Kientzle <kientzle@acm.org>
Reviewed by: phk

24 years agoIt is possible that number of sectors specified in the BPB
bp [Tue, 28 Dec 1999 15:27:39 +0000 (15:27 +0000)]
It is possible that number of sectors specified in the BPB
will exceed FAT capacity. This will lead to kernel panic while other
systems just limit number of clusters.

PR: 4381, 15136
Reviewed by: phk

24 years agoTypo cops.
hoek [Tue, 28 Dec 1999 15:24:01 +0000 (15:24 +0000)]
Typo cops.

24 years agoAdd history: The reallocf() function first appeared in FreeBSD-3.0.
hoek [Tue, 28 Dec 1999 15:14:59 +0000 (15:14 +0000)]
Add history: The reallocf() function first appeared in FreeBSD-3.0.

See imp's 199808201619.KAA20970@harmony.village.org in freebsd-hackers (the
reallocf.c cvs history mistakenly refers to freebsd-current).

24 years agoAdd ".Xref tolower 3" since its internal use is inferred in DESCRIPTION.
hoek [Tue, 28 Dec 1999 14:57:33 +0000 (14:57 +0000)]
Add ".Xref tolower 3" since its internal use is inferred in DESCRIPTION.

24 years agoAvoid the potentially confusing term "a null pointer" and say "the NULL
hoek [Tue, 28 Dec 1999 14:47:00 +0000 (14:47 +0000)]
Avoid the potentially confusing term "a null pointer" and say "the NULL
pointer" instead.  The potential confusion arises because the string/*.3
pages use the term "null-terminated string" (which is permissable).  Moreover,
this also makes these two manpages more consistent with the other string/*.3
manpages.

24 years agoAdd .Xrefs to tolower.3 and toupper.3, respectively.
hoek [Tue, 28 Dec 1999 14:10:21 +0000 (14:10 +0000)]
Add .Xrefs to tolower.3 and toupper.3, respectively.

24 years agoBetter handling groff failures. If popen(ROFF_COMMAND) returns zero bytes
phantom [Tue, 28 Dec 1999 12:55:58 +0000 (12:55 +0000)]
Better handling groff failures. If popen(ROFF_COMMAND) returns zero bytes
then handle it as problem. This commit fixes problem with archiving empty files.

PR: gnu/5767
Submitted by: Bill Fenner <fenner@parc.xerox.com>

24 years agoUse the ctype.h version of isascii() - it doesn't loose precision and think
peter [Tue, 28 Dec 1999 11:48:23 +0000 (11:48 +0000)]
Use the ctype.h version of isascii() - it doesn't loose precision and think
that 0x100 (int) is an ascii character.

Submitted by: bde

24 years agoTake into account the fact that "[" may be called with a path,
sheldonh [Tue, 28 Dec 1999 09:34:57 +0000 (09:34 +0000)]
Take into account the fact that "[" may be called with a path,
for example "/bin/[".

Reported by: Vlad Skvortsov <vss@ulstu.ru>
Reported by: Peter Jeremy <peter.jeremy@alcatel.com.au>
Message-Id: 99Dec27.111307est.40321@border.alcanet.com.au

24 years agoMake cloning mask sockaddr (genmask) possible.
ru [Tue, 28 Dec 1999 08:38:01 +0000 (08:38 +0000)]
Make cloning mask sockaddr (genmask) possible.

PR: kern/3061
Reviewed by: wollman

24 years agoAdded following modes:
kato [Tue, 28 Dec 1999 07:38:38 +0000 (07:38 +0000)]
Added following modes:
 5in     HD 2 heads, 77 cylinders, 8 sectors/track, 1024 bytes/sector
 5/3.5in DD 2 heads, 80 cylinders, 8 sectors/track, 512 bytes/sector

Meanings of the rogrammer-readeble fd name were explained by Brian
Fundakowski Feldman and Peter Wemm in hackers list and NOKUBI
Hirotaka.

Reviewed by: nyan

24 years agoFix a panic when doing non-multiples of PAGE_SIZE or misaligned transfers
peter [Tue, 28 Dec 1999 07:32:34 +0000 (07:32 +0000)]
Fix a panic when doing non-multiples of PAGE_SIZE or misaligned transfers
to a swap backed vn device.

OK'ed by: dillon

24 years agoFix the swap backed vn case - this was broken by my rev 1.128 to
peter [Tue, 28 Dec 1999 07:30:55 +0000 (07:30 +0000)]
Fix the swap backed vn case - this was broken by my rev 1.128 to
swap_pager.c and related commits.

Essentially swap_pager.c is backed out to before the changes, but
swapdev_vp is converted into a real vnode with just VOP_STRATEGY().
It no longer abuses specfs vnops and no longer needs a dev_t and
/dev/drum (or /dev/swapdev) for the intermediate layer.

This essentially restores the vnode interface as the interface to the
bottom of the swap pager, and vm_swap.c provides a clean vnode interface.

This will need to be revisited when we swap to files (vnodes) - which
is the other reason for keeping the vnode interface between the swap pager
and the swap devices.

OK'ed by: dillon

24 years agoSuppress vast quantities of unneeded warnings spewed by libc's gethostbydns
rwatson [Tue, 28 Dec 1999 07:21:08 +0000 (07:21 +0000)]
Suppress vast quantities of unneeded warnings spewed by libc's gethostbydns
on encountering a real-world SIG record during a lookup of another type.

PR: bin/7352
Reviewed by: peter, eivind

24 years agoCorrectly handle a user-requested abort in the middle of displaying a
msmith [Tue, 28 Dec 1999 07:19:22 +0000 (07:19 +0000)]
Correctly handle a user-requested abort in the middle of displaying a
help subtopic.

PR: kern/13196
Submitted by: MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>

24 years agoAdd display of maximum allowed mbuf count to match mbuf cluster count.
msmith [Tue, 28 Dec 1999 06:38:37 +0000 (06:38 +0000)]
Add display of maximum allowed mbuf count to match mbuf cluster count.

Submitted by: Bosko Milekic <bmilekic@dsuper.net>

24 years agoActively limit the allocation of mbufs to NMBUFS/nmbufs and mbuf clusters
msmith [Tue, 28 Dec 1999 06:35:57 +0000 (06:35 +0000)]
Actively limit the allocation of mbufs to NMBUFS/nmbufs and mbuf clusters
to NMBCLUSTERS/nmbclusters/kern.ipc.nmbclusters.

Add a read-only sysctl kern.ipc.nmbufs matching kern.ipc.nmbclusters.

Submitted by: Bosko Milekic <bmilekic@dsuper.net>

24 years agoFix a small typo in the comments.
billf [Tue, 28 Dec 1999 06:04:29 +0000 (06:04 +0000)]
Fix a small typo in the comments.

24 years agoDedocument one of the BUGS listed in the last commit. The bug (needless
hoek [Tue, 28 Dec 1999 05:56:33 +0000 (05:56 +0000)]
Dedocument one of the BUGS listed in the last commit.  The bug (needless
calculation of line numbers) never existed and the two bugs that made me
think it existed have been fixed (see recent commits about this date to
linenum.c:r.1.3 and ch.c:r.1.8 fixing broken line-number buffering and
braindead algorithms respectively).

24 years agoRather than use an LRU-ordered circular list to store buffered data,
hoek [Tue, 28 Dec 1999 05:47:24 +0000 (05:47 +0000)]
Rather than use an LRU-ordered circular list to store buffered data,
simply keep an index into the last access on the circular list and begin
searches at that point.  An LRU list is inappropriate here since the
vast majority of accesses will occur in the same order that the list
is created in.  The only case where an LRU is remotely useful here is when
reading from a file and the user is jumping to randomish positions and
constantly returning to some central position.  Even for this case it is
such a small optimization as not to be noticed in an interactive program
such as more(1).

This change results in a _tremendously_ noticable speed-up when reading long
files through a pipe (where long = ~200k, machine = ~2.5h single-disk
worldstone).

24 years agoSmall bug fix and improvements
shin [Tue, 28 Dec 1999 05:37:39 +0000 (05:37 +0000)]
Small bug fix and improvements
  (1)added error check of if_nameindex() return value at getaddrinfo().
  (2)print out more detailed information when getaddrinfo() error value
     is EAI_SYSTEM.(in this case system error num is kept in errno)

(1) is Discovered by: jinmei@kame.net in KAME environment.

24 years agoUpgrade to the pam_ssh module, version 1.1..
green [Tue, 28 Dec 1999 05:32:54 +0000 (05:32 +0000)]
Upgrade to the pam_ssh module, version 1.1..

(From the author:)
Primarily, I have added built-in functions for manipulating the
environment, so putenv() is no longer used.  XDM and its variants
should now work without modification.  Note that the new code uses
the macros in <sys/queue.h>.

Submitted by: Andrew J. Korty <ajk@iu.edu>

24 years agoWork around an assert failure in the dynamic linker's default thread
jdp [Tue, 28 Dec 1999 04:38:17 +0000 (04:38 +0000)]
Work around an assert failure in the dynamic linker's default thread
locking functions.  If an application loads a shared object with
dlopen() and the shared object has an init function which requires
lazy binding, then _rtld_bind is called when the thread is already
inside the dynamic linker.  This leads to a recursive acquisition
of the lock, which I was not expecting -- hence the assert failure.

This work-around makes the default locking functions handle recursive
locking.  It is NOT the correct fix -- that should be implemented
at the generic locking level rather than in the default locking
functions.  I will implement the correct fix in a future commit.

Since the dllockinit() interface will likely need to change, warn
about that in both the man page and the header file.

24 years agoDelete dead code and clean comments a little.
hoek [Tue, 28 Dec 1999 03:01:20 +0000 (03:01 +0000)]
Delete dead code and clean comments a little.

24 years agoGetaddrinfo(), getnameinfo(), and etc support in libc/net.
shin [Tue, 28 Dec 1999 02:37:14 +0000 (02:37 +0000)]
Getaddrinfo(), getnameinfo(), and etc support in libc/net.
Several udp and raw apps IPv6 support.

Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project

24 years agoThis commit adds device driver support for the ADMtek AN986 Pegasus
wpaul [Tue, 28 Dec 1999 02:01:18 +0000 (02:01 +0000)]
This commit adds device driver support for the ADMtek AN986 Pegasus
USB ethernet chip. Adapters that use this chip include the LinkSys
USB100TX. There are a few others, but I'm not certain of their
availability in the U.S. I used an ADMtek eval board for development.
Note that while the ADMtek chip is a 100Mbps device, you can't really
get 100Mbps speeds over USB. Regardless, this driver uses miibus to
allow speed and duplex mode selection as well as autonegotiation.
Building and kldloading the driver as a module is also supported.

Note that in order to make this driver work, I had to make what some
may consider an ugly hack to sys/dev/usb/usbdi.c. The usbd_transfer()
function will use tsleep() for synchronous transfers that don't complete
right away. This is a problem since there are times when we need to
do sync transfers from an interrupt context (i.e. when reading registers
from the MAC via the control endpoint), where tsleep() us a no-no.
My hack allows the driver to have the code poll for transfer completion
subject to the xfer->timeout timeout rather that calling tsleep().
This hack is controlled by a quirk entry and is only enabled for the
ADMtek device.

Now, I'm sure there are a few of you out there ready to jump on me
and suggest some other approach that doesn't involve a busy wait. The
only solution that might work is to handle the interrupts in a kernel
thread, where you may have something resembling a process context that
makes it okay to tsleep(). This is lovely, except we don't have any
mechanism like that now, and I'm not about to implement such a thing
myself since it's beyond the scope of driver development. (Translation:
I'll be damned if I know how to do it.) If FreeBSD ever aquires such
a mechanism, I'll be glad to revisit the driver to take advantage of
it. In the meantime, I settled for what I perceived to be the solution
that involved the least amount of code changes. In general, the hit
is pretty light.

Also note that my only USB test box has a UHCI controller: I haven't
I don't have a machine with an OHCI controller available.

Highlights:

- Updated usb_quirks.* to add UQ_NO_TSLEEP quirk for ADMtek part.
- Updated usbdevs and regenerated generated files
- Updated HARDWARE.TXT and RELNOTES.TXT files
- Updated sysinstall/device.c and userconfig.c
- Updated kernel configs -- device aue0 is commented out by default
- Updated /sys/conf/files
- Added new kld module directory

24 years agoTwo nits and disable isa probe due to its overly agressive claiming of
imp [Tue, 28 Dec 1999 01:07:16 +0000 (01:07 +0000)]
Two nits and disable isa probe due to its overly agressive claiming of
devices.
o Return ENXIO from sn_isa_probe
o Fix SN_DEBUG printf
o Use IFQ_MAXLEN rather than 8

I'll fix the isa probe when I get access to a real isa attachment
device to test against here in a few days.

Overly agressive snagging behavior noticed by: phk

24 years agoCorrectly maintain state when manipulating linked lists. This fixes a
hoek [Mon, 27 Dec 1999 20:53:35 +0000 (20:53 +0000)]
Correctly maintain state when manipulating linked lists.  This fixes a
bug that prevented the line-number buffer from working correctly.  AFAIK
the bug is still present in other derivatives of more(1).

24 years agoAdd ipsec_esp option to files which depend on crypto.
shin [Mon, 27 Dec 1999 18:53:24 +0000 (18:53 +0000)]
Add ipsec_esp option to files which depend on crypto.
Now you can build a kernel which support IPsec message authentication
but don't support message encryption, by defining IPSEC in your kernel
config file and not defining IPSEC_ESP.

24 years agoInitialize unitialized variable from prev. commit.
hoek [Mon, 27 Dec 1999 17:33:25 +0000 (17:33 +0000)]
Initialize unitialized variable from prev. commit.

24 years agoFixed breakage of static linkage of rlogind. Someone added -lutil and
bde [Mon, 27 Dec 1999 17:25:40 +0000 (17:25 +0000)]
Fixed breakage of static linkage of rlogind.  Someone added -lutil and
-lcom_err to some libpam modules without updating LIBPAM here.

24 years agoFixed some bugs (one serious one: timeouts were claimed to be executed at
bde [Mon, 27 Dec 1999 16:22:20 +0000 (16:22 +0000)]
Fixed some bugs (one serious one: timeouts were claimed to be executed at
spl0) and some bitrot (the not-so-new callout_init/stop/reset functions
were not mentioned; the callout_activate/deactivate/pending macros are
still not mentioned).

Submitted by: mostly by jlemon

24 years agoFix typo "," vs ";"
peter [Mon, 27 Dec 1999 16:03:38 +0000 (16:03 +0000)]
Fix typo "," vs ";"

PR: 15696
Submitted by: Takashi Okumura <taka@cs.pitt.edu>

24 years agoFixed namespace pollution in rev.1.24 (don't implement <sys/signal.h> here).
bde [Mon, 27 Dec 1999 15:54:52 +0000 (15:54 +0000)]
Fixed namespace pollution in rev.1.24 (don't implement <sys/signal.h> here).
Fixed long lines.

24 years agoSynced with sys/isa/sio.c rev 1.282.
kato [Mon, 27 Dec 1999 14:01:06 +0000 (14:01 +0000)]
Synced with sys/isa/sio.c rev 1.282.

24 years agoSynced with sys/i386/isa/clock.c rev 1.148. This is a cosmetic change
kato [Mon, 27 Dec 1999 13:56:54 +0000 (13:56 +0000)]
Synced with sys/i386/isa/clock.c rev 1.148.  This is a cosmetic change
because PC-98 doesn't have RTC and RTC related code is included by
`#ifndef PC98' and `#endif'.

24 years agoSynced with sys/i386/conf/Makefile.i386 rev 1.169.
kato [Mon, 27 Dec 1999 13:53:43 +0000 (13:53 +0000)]
Synced with sys/i386/conf/Makefile.i386 rev 1.169.

24 years agoSynced with Makefile.i386. The following cleanups in Makefile.i386
bde [Mon, 27 Dec 1999 12:06:11 +0000 (12:06 +0000)]
Synced with Makefile.i386.  The following cleanups in Makefile.i386
rev.1.168 should have been committed concurrently:

Fixed some style bugs (always use precisely 1 space after `:' in
dependency specifications).
Removed bogus dependency of ${FULLKERNEL} on ${BEFORE_DEPEND}.

Reminded by: peter

24 years agoAdd a bunch of `const's and fix a typo.
brian [Mon, 27 Dec 1999 11:54:57 +0000 (11:54 +0000)]
Add a bunch of `const's and fix a typo.

Submitted by: Rich Neswold <rneswold@MCS.Net>

24 years agoDon't allowt '#' as a comment when it's embedded in quotes:
brian [Mon, 27 Dec 1999 11:43:31 +0000 (11:43 +0000)]
Don't allowt '#' as a comment when it's embedded in quotes:

  set something "xxx yyy # zzz" aaa

shouldn't be interpreted as

  set something "xxx yyy" aaa

24 years agoFix some typo's.
asmodai [Mon, 27 Dec 1999 11:02:43 +0000 (11:02 +0000)]
Fix some typo's.

PR: 15678
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>

24 years agoThis should have been committed with related changes to .c files.
bde [Mon, 27 Dec 1999 10:47:32 +0000 (10:47 +0000)]
This should have been committed with related changes to .c files.

Changed the type used to represent the user stack pointer from `long *'
to `register_t *'.  This fixes bugs like misplacement of argc and argv
on the user stack on i386's with 64-bit longs.  We still use longs to
represent "words" like argc and argv, and assume that they are on the
stack (and that there is stack).  The suword() and fuword() families
should also use register_t.

24 years agoChanged the type used to represent the user stack pointer from `long *'
bde [Mon, 27 Dec 1999 10:42:55 +0000 (10:42 +0000)]
Changed the type used to represent the user stack pointer from `long *'
to `register_t *'.  This fixes bugs like misplacement of argc and argv
on the user stack on i386's with 64-bit longs.  We still use longs to
represent "words" like argc and argv, and assume that they are on the
stack (and that there is stack).  The suword() and fuword() families
should also use register_t.

24 years agoFixed some type mismatches. p_retval[0] in struct proc has type
bde [Mon, 27 Dec 1999 10:22:09 +0000 (10:22 +0000)]
Fixed some type mismatches.  p_retval[0] in struct proc has type
register_t, so pointers to it must be passed around as `register_t *',
not as `int *'.  The type mismatches were non-benign on alphas, but
the broken code is normally only configured by LINT.

24 years agoConnect up the bootforth glue and compile it, but don't initialize it
peter [Mon, 27 Dec 1999 09:20:33 +0000 (09:20 +0000)]
Connect up the bootforth glue and compile it, but don't initialize it
at runtime as it has a nasty habit of crashing on the Alpha :-(.
This is being done this way so we have a common starting point for
debugging.

24 years agoAdd in missing ENABLE TARGET MODE opcode.
mjacob [Mon, 27 Dec 1999 08:47:11 +0000 (08:47 +0000)]
Add in missing ENABLE TARGET MODE opcode.

24 years agoTidy up some loose ends. nullfs_read/write were returning the wrong value.
peter [Mon, 27 Dec 1999 08:45:14 +0000 (08:45 +0000)]
Tidy up some loose ends.  nullfs_read/write were returning the wrong value.
Fix some ctype problems - isascii() caused a warning if fed an unsigned
char - it's always > 0 and libstand is compiled with -Wall.
Missing prototype/include in printf.c

24 years agoMake this compile with -Wall -Werror
peter [Mon, 27 Dec 1999 08:40:40 +0000 (08:40 +0000)]
Make this compile with -Wall -Werror

24 years agoReset the Zoom 56K modem when starting to use it.
julian [Mon, 27 Dec 1999 08:39:29 +0000 (08:39 +0000)]
Reset the Zoom 56K modem when starting to use it.
Failing to do so freezes your system.

Submitted by:Sean O'Connell <sean@stat.Duke.EDU>  (my hero)

24 years agokvm_mkdb(8) no longer exists (in .Xr) and kvm_nlist(8) has even less to do
peter [Mon, 27 Dec 1999 08:01:11 +0000 (08:01 +0000)]
kvm_mkdb(8) no longer exists (in .Xr) and kvm_nlist(8) has even less to do
with dev_mkdb(8) than it did before.

24 years agoInclude opt_nfs.h
peter [Mon, 27 Dec 1999 07:51:05 +0000 (07:51 +0000)]
Include opt_nfs.h

PR: 15711
Submitted by: Wilko Bulte <wilko@yedi.iaf.nl>

24 years agoRemove kvm_mkdb as it isn't installed anymore. libkvm asks directly
peter [Mon, 27 Dec 1999 07:43:07 +0000 (07:43 +0000)]
Remove kvm_mkdb as it isn't installed anymore.  libkvm asks directly
via kldsym(2), and crash dumps use nlist directly (and always have).

24 years agoZap kvm_mkdb, it was for kvm_nlist's benefit, but now it goes direct
peter [Mon, 27 Dec 1999 07:27:50 +0000 (07:27 +0000)]
Zap kvm_mkdb, it was for kvm_nlist's benefit, but now it goes direct
to the in-kernel hashed symbol tables (including modules).