Bruce Evans [Fri, 29 Nov 1996 15:23:42 +0000 (15:23 +0000)]
Fixed some bugs in BREAK handling. If BRKINT is set, then always flush
the queues and generate a SIGINT. Previously, this wasn't done if ISIG
was clear or the VINTR character was disabled, and it was done by
converting the BREAK to a VINTR character and sometimes bogusly echoing
this character.
Bruce Evans [Fri, 29 Nov 1996 14:48:17 +0000 (14:48 +0000)]
Changed _POSIX_VERSION from 198808L to 199009L. We're close to conforming
to the 1990 version according to NIST-PCTS. Many man pages still refer to
the 1988 version.
Correct name in probe type. Closes PR# 2122 (with a change, since the PR
did not actually use the correct name either :-). Submitted-By: Toyonori Fujiura <toyo@exiv.pearnet.org>
John Dyson [Fri, 29 Nov 1996 07:04:03 +0000 (07:04 +0000)]
Support the appropriate use of bswap instruction on non-I386 builds.
Per Wayne Scott of Intel, the old sequence took 20cycles!!! on a P6.
Another nice side-benefit is that the kernel is about 3K smaller!!!
Submitted by: Wayne Scott <wscott@ichips.intel.com>
John Dyson [Thu, 28 Nov 1996 04:26:04 +0000 (04:26 +0000)]
Potentially fix a problem, whereby MSDOSFS can request buffers
larger than the vfs layer can provide. We now automatically support
32K clusters if MSDOSFS is installed, and panic if a filesystem tries
to allocate a buffer larger than MAXBSIZE.
This commit is a result of some "prodding" by BDE.
John Dyson [Thu, 28 Nov 1996 04:07:44 +0000 (04:07 +0000)]
Potentially fix a problem, whereby MSDOSFS can request buffers
larger than the vfs layer can provide. We now automatically support
32K clusters if MSDOSFS is installed, and panic if a filesystem tries
to allocate a buffer larger than MAXBSIZE.
This commit is a result of some "prodding" by BDE.
Since locale reading code not resistent against stack overflowing or
similar intruder attacks, don't allow PATH_LOCALE env variable action
for s-bit programs (non-standard locale path setting)
Stephen McKay [Wed, 27 Nov 1996 13:06:51 +0000 (13:06 +0000)]
Simplified. Some fts related bugs removed. Made less verbose. The default
number of mail messages sent per run was lowered from 2 to 1. Why? Well,
some numbers just give you the warm fuzzies, like zero and one. Zero isn't
much use here, so I picked my all time favourite, one.
PATH_LOCALE: use this non-standard env variable first time only, i.e.
strdup() it to prevent unsetenv() or setenv() effects. Check its length to
not allow user to overflow internal locale buffer. Move PATH_LOCALE
handling code into one place.
POSIX: make better stub for LC_MONETARY & LC_NUMERIC, now it check
locale directory existance instead of refusing all non-C non-POSIX
locales. POSIX treats empty locale env variable as unset variable
while our old code treats it as "C" locale, fix it. Implement previous locale
restoring, if locale setting fails. Old code assumes success if some
of LC_ALL subset is successed even other fails, POSIX treats it as
failure with previous locale restoring, fix it.
Remove unneccessary length checking in currentlocale()
Bill Fenner [Tue, 26 Nov 1996 01:43:20 +0000 (01:43 +0000)]
LBL chose to use IPPROTO_ENCAP to represent IP proto 4 encapsulation
as performed by the multicast kernel modifications. However, BSD
already had IPPROTO_ENCAP defined as 98 (RFC 1241 encapsulation).
This changes the use of IPPROTO_ENCAP to IPPROTO_IPIP, which is
the BSD name for IP proto 4.
Make a kernel with DDB but without sio possible again. This is only
a stopgap measure, a more complete solution is on somebodys whiteboard
(and we all know that THAT means :-).
Bill Fenner [Mon, 25 Nov 1996 06:20:54 +0000 (06:20 +0000)]
Fix the IGMP printer. A lost pair of parenthesis caused all IGMP
reports to be printed as IGMPv1, and a misapplied patch caused
IGMP Leave messages to be partially interpreted as DVMRP routing
messages.
Mike Smith [Mon, 25 Nov 1996 01:52:28 +0000 (01:52 +0000)]
Correct the syntax of the example to reflect reality, and note that the
'host:' element is mandatory.
A better fix would involve reworking bootparamd not to require a ':'
in the response string.
John Hay [Sun, 24 Nov 1996 08:35:23 +0000 (08:35 +0000)]
Slow down the RIP and SAP broadcasts. At least some NW4.x machines can't
handle them back-to-back. (We couldn't either without my ipx receive buffer
enlargement.)
Bruce Evans [Sat, 23 Nov 1996 20:04:02 +0000 (20:04 +0000)]
Added forgotten directories zoneinfo/Antarctica and zoneinfo/Arctic.
The zoneinfo makefile doesn't follow the rules. It builds everything
at install time. It dpends on zic to create the directories. zic
doesn't know about the weird 555 permissions specified in BSD.usr.dist,
so it creates the directories with nonstandard permissions.
Bill Fenner [Sat, 23 Nov 1996 19:07:02 +0000 (19:07 +0000)]
Allocate a header mbuf for the start of the encapsulated packet.
The rest of the code was treating it as a header mbuf, but it was
allocated as a normal mbuf.
This fixes the panic: ip_output no HDR when you have a multicast
tunnel configured.
Added `info' subdirectory to the section ``Subdirectories'' as the location
to install info pages.
(It hasn't been clear in the handbook either share/info or info should be
used.)
Andreas Klemm [Sat, 23 Nov 1996 12:33:34 +0000 (12:33 +0000)]
Name Pentium Pro Support.
Changed an expression "one year ago", which is in fact only valid
for a short period of time.
Updated the section about ports. Make this more general, "hundreds of
ports" and give a concrete number of ports (over 710) with a timestamp
"at end of November 96".
I reformatted the "ports" paragraph using fmt, because I think it looks
nicer now in sgml source. So the diff shows more changed lines than was
actually changed. If this isn't suitable for you, then I'll do my best
in the future, to avoid this. My intention was, to make the source look
nicer as well.
Peter Wemm [Sat, 23 Nov 1996 07:38:25 +0000 (07:38 +0000)]
Make this compile again after the syscons/psm/kbdio changes that removed
the keyboard IO port definitions from <machine/console.h>.
Note: I do not have a machine available to test this yet, I sent this
for review to several people who have not replied.
This is also totally busted in 2.2, which has half of the syscons/psm/kbdio
changes in it. This really desperately needs to be tested and fixed
in 2.2 as well.
Paul Traina [Fri, 22 Nov 1996 08:59:07 +0000 (08:59 +0000)]
Back out recent security patch for rexecd. After more careful analysis,
it is both uneeded and breaks certain lock-step timing in the rexec
protocol.
Yes, an attacker can "relay" connections using this trick, but a properly
configured firewall that would make this sort of subterfuge necessary in the
first place (instead of direct packet spoofing) would also thwart useful
attacks based on this.
Justin T. Gibbs [Fri, 22 Nov 1996 08:25:23 +0000 (08:25 +0000)]
Conditionally enable the busfree interrupt to catch unexpected busfrees.
Immediate SCBs, since they always send messages that tell the target to
transition to bus free now rely on the busfree interrupt instead of the
IMMEDDONE sequencer interrupt that was generated before.
Rearrange some code in the message out loop to give ATN a little more time
to drop before we ACK the last byte.
Use SPIORDY instead of REQINIT when snooping for a tag message on a reconnect.
This is done for the same reasons we use SPIORDY in the inb functions.
When going into BITBUCKET mode, turn off HDMAEN in the DFCNTRL register so
that we can "not care" what the value of HCNT is. If HCNT is 0, BITBUCKET
mode won't transfer any data if HDMAEN is set. Seeing as we don't want the
transfer to even think about touching the host, this seems more sane anyway.
Thanks to "Dan Willis" <dan@plutotech.com> for pointing out that this was
a problem.
Peter Wemm [Fri, 22 Nov 1996 04:27:43 +0000 (04:27 +0000)]
Set a more explicit #include path for building aix7xxx_asm, otherwise it
uses /usr/include/sys/*, which may point to a different build tree. I'm
not sure that this is necessary, but there was a question mark over what
/usr/include/sys points to when building the "user mode" binaries in the
kernel code, especially when building the smp tree.
I suspect that the "right" line here is to use ${INCLUDES}, but that
causes warnings about unused static inline functions in stdio.h and ctype.h
Garrett Wollman [Thu, 21 Nov 1996 19:36:09 +0000 (19:36 +0000)]
Fix lots of non-bug questionable code:
- Don't link against libkvm and don't uselessly include <kvm.h>.
- Declare constant objects as const.
- Declare functions with the correct types.
- Call functions with the correct parameters.
Not fixed:
- The sysctl parsing remains ugly (but it may be the best we can do).
- atnetrange() should use strtoul() rather than sscanf() for better
error checking.
Julian Elischer [Thu, 21 Nov 1996 07:19:00 +0000 (07:19 +0000)]
changes to make devfs more 'normal'
also fixes a bug I've been chasing for a LONG TIME,
due to the fact that spec_bwrite is a NOP and I didn't realise it..
old symptom:
mount -t devfs devfs /mnt
mount /mnt/wd0e /mnt/mnt2
umount /mnt2 <process hangs>
there are some pretty large structural differences internal to devfs
but outwards it should look the same.
I have not yet tested extensively but will do so and fix 3 warnings tomorrow.
Justin T. Gibbs [Thu, 21 Nov 1996 06:18:33 +0000 (06:18 +0000)]
Change the way Automatic PIO is performed in the mesgin and mesgout phases.
SPIORDY should go active on any REQ of the bus, so testing for REQINIT is
not necessary. It also seems that testing for SPIORDY is more robust then
REQINIT since SPIORDY comes active after REQINIT and PHASEMIS seems to take
some time to come true after REQ is asserted if the phase has changed. Of
course, none of this is documented.
This should give the code savings of my original changes, without breaking the
driver on fast peripherals.
Garrett Wollman [Wed, 20 Nov 1996 20:54:28 +0000 (20:54 +0000)]
Copy a slightly modified version of the `libgnumalloc hack' to allow
us to finally phase out the 8K shared version of liby in favor of the
600-byte static one, as was done years ago for libl/libfl.