Backed out part of the last change that prevents the rpos table from
being output if <= 1 rpos; there is a bug in the kernel which doesn't
quite get along with this. Changed default #rpos to 1, and fixed up
manual page. Converted nrpos to 1 if user specifies 0.
ache [Sun, 9 Oct 1994 11:18:44 +0000 (11:18 +0000)]
Remove EOF handling after Bruce explanation. This step returns
to 4.4 way to not allow EOF in ctype and now all signed chars
(including '\377' which becomes EOF) converted to (unsigned char) properly.
phk [Sat, 8 Oct 1994 22:19:51 +0000 (22:19 +0000)]
db_disasm.c: Unused var zapped.
pmap.c: tons of unused vars zapped, various other warnings silenced.
trap.c: unused vars zapped.
vm_machdep.c: A wrong argument, which by chance did the right thing, was
corrected.
Completely removed trailer support. The only reason I wrote that code in
the first place was so that BPF could grok trailer packets. I've since
decided that this is a job for tcpdump to decipher (if at all). Also
fixed up checks for received packet length to better cope with ancient
starlan boards.
rgrimes [Sat, 8 Oct 1994 06:20:52 +0000 (06:20 +0000)]
Correct #ifdef for nfs_disless support is #ifdef NFS, there will be no
option DISKLESS for the 2.0 nfs diskless support. A 2.0 diskless kernel
simple needs NFS linked in statically.
phk [Sat, 8 Oct 1994 01:40:23 +0000 (01:40 +0000)]
Mostly Cosmetics. Some of the procedures in if_sl.c was void, but should
be int. I made them int, and let them return 0. Will have to find out
what the return-val is used for.
csgr [Fri, 7 Oct 1994 22:27:00 +0000 (22:27 +0000)]
First stage of getting imgact_gzip reentrant:
1) cut this up into /sys/sys/inflate.h, sys/kern/inflate.c
sys/kern/ingact_gzip.c
2) make a lot more things static
3) make a lot of globals const
4) make some args const
5) first stage of making globals into a struct (not used yet)
The vm_allocate() call which was introduced between revisions 1.4 and
1.5 of imagact_gzip.c broke things. I have backed that out for the time
being. (Davidg: help please)
WARNING: if you have gzip enabled in your kernel, you must now run
config again, as another source file has been added. Otherwise your
kernel compile will fall over.
phk [Fri, 7 Oct 1994 21:17:41 +0000 (21:17 +0000)]
Reviewed by: phk
Submitted by: Thomas David Rivers <rivers%ponds@ncren.net>
WARNING: might hide some bug below! I commit this to improve the stability
of 2.0.
Thomas wrote:
-------------
I have been running a kernel with this change since October 4th; barring
unrelated network router troubles, the pitiful little machine has
completed several builds without any interaction from me, and continues
to chug along.
I re-read wd.c, and added appropriate printfs() to look for references
to dk_badsect[]. My changes should have printed something when dk_badsect[]
was referenced.
I got no output :-(
Thus, I'm forced to concluded that something else is examining some
spurious memory... which happened to be in dk_badsect[] of the disk structure
in wd.c. I can find no other explanation of why this unnecessary
initialization causes things to operate correctly.
On the premise that such an initialization isn't going to hurt anything,
I'm going to suggest it go into 2.0.
I'd like to thank everyone for there assistance, particularly David,
John and Bruce.
ache [Fri, 7 Oct 1994 13:13:32 +0000 (13:13 +0000)]
Fix many problems with 8bit chars (sign extend in ctype macros)
Fix main problem with 8-bit chars in directories names: because
signed_sum left uninitialized, wrong checksum occurse
pst [Thu, 6 Oct 1994 23:57:21 +0000 (23:57 +0000)]
(a) there's no reason for PASSIVEMODE to be conditionally compiled since it's
controlled by a runtime switch.
(b) add '-P' to toggle passive mode from the command line
(c) turn on passive mode by default
- passive mode ftp works on all but a few servers out there
- it's easy to disable
- no, standard ftp should not run with passive enabled by default,
but that doesn't matter because I've already fixed standard mode
ftp to take a switch
This really should have been implemented as a ncftp "set" command instead
of carrying over the same hack that was done to ftp. I will go back and fix
it some day.
ache [Thu, 6 Oct 1994 20:32:08 +0000 (20:32 +0000)]
Change padding mechanism to use usleep, old variant not works
on terminals with no pad char (cons25) and quote from tputs.c says so too:
! * Too bad there are no user program accessible programmed delays.
! * Transmitting pad characters slows many
! * terminals down and also loads the system.
phk [Thu, 6 Oct 1994 18:22:24 +0000 (18:22 +0000)]
Steven Wallace provided a program which broke this stuff. I guess there are
more weird kinds of a.out than anyone can argue for. This code failed to
load the first 28K of the text-segment, in the case where the first page
of the a.out contains only the a.out-header, and the text is still at 0x0.
Thanks Steven !
rgrimes [Thu, 6 Oct 1994 09:41:05 +0000 (09:41 +0000)]
1. BOOTSEG and BOOTSTACK are now set from the Makefile, the boot code has
been relocated to run in the 64k segment at 0x10000 with the stack at
the top of this segment. This corrects the problems machines with 512K
base memory had booting.
2. startprog routing rewritten to convert the BOOTSEG ss to a KERNELSEG
ss, this eliminated the last of the >512K memory references. Additional
cleanup in here included a better way to copy the arguments to the
kernel stack.
3. Elimination of argv and esym cruft saved a few bytes.
4. Only need to truncate the head.a_entry to a meg boundary once intead
of every time we used it! [Saving more bytes].
5. Addition of version 1 bootinfo structure support. These boot blocks
pass the kernel name in to the kernel now.
6. Removed historical comments about MACH argv stuff, as it is useless now.
wollman [Thu, 6 Oct 1994 00:32:42 +0000 (00:32 +0000)]
A few fixes:
- register, registerd, and make_keypair don't compile (and are bogus anyway)
- don't forget to put back the obj directory when doing `kprog'
- while we're at it make the `kprog' commands overrideable from the command
line
- add a bootstrap target which does the following:
install includes
cleandir and obj
zap old version 4.0 shared libraries (these will screw the build)
depend all install
rebuild stuff in the main source tree which depends on kerberos
jkh [Wed, 5 Oct 1994 22:28:45 +0000 (22:28 +0000)]
Following changes from Robert Withrow (+ a few mods):
1. Make DEPENDS fully qualified, and not implictly assume relative
to ${PORTSDIR}. This allows more arbitrary dependencies to be
specified. This also means that DEPENDS= x11/foo needs to be changed
to DEPENDS= ${PORTSDIR}/x11/foo in any Makefiles. I'll try to do
these changes myself.
2. Add an option NO_DEPENDS to disable the automagic building of depended
ports.
Submitted by: rww
wollman [Wed, 5 Oct 1994 20:11:28 +0000 (20:11 +0000)]
A number of bug-fixes inspired by Mark Treacy:
- Allow PPP to run multicasts natively.
- Deal properly with lots of similarly-named interfaces.
- Don't sign-extend if_flags.
NB: the last fix (to rtsock.c) must be reversed when we expand if_flags to a
reasonable size.
After a comment from Rod Grimes about buf.h, I went back and looked at this
and found that swapinfo doesn't need that include file and five others (!).
Sheesh.
Stuff object into v_vmdata rather than pager. Not important which at
the moment, but will be in the future. Other changes mostly cosmetic,
but are made for future VMIO considerations.
Fixed minor bug caused by some missing parens that can result in slightly
reduced paging performance by missing a clustering opportunity. Found
by Poul-Henning Kamp with gcc -Wall.
phk [Wed, 5 Oct 1994 04:52:47 +0000 (04:52 +0000)]
Realigned the output of "vmstat -m", "MSDOSFS mount" was too wide for the
field. Saved some space and gained a little clarity by printing "128K"
instead of 131072 (and so on).
phk [Wed, 5 Oct 1994 00:58:33 +0000 (00:58 +0000)]
David Greenman told me to do this: (Thanks!) use vm_allocate to allocate
the uncompression buffer. Now malloc(M_GZIP) is used for all the Huffman-
tree stuff only. Numbers so far indicate < 15Kb Malloc use + 32 Kb for
the abovementioned buffer while uncompressing.