se [Thu, 27 Oct 1994 20:12:46 +0000 (20:12 +0000)]
Change some compile time defaults, which may be overridden from the
kernel config file by options lines.
Now the default settings are FAST SCSI, max. 4 TAGS, WIDE transfers,
if supported by the hardware ...
pst [Thu, 27 Oct 1994 19:14:39 +0000 (19:14 +0000)]
Printing out /etc/motd when a ftp login occurs is a security hole
(as is printing out a version number at the telnet login banner).
Don't print out /etc/motd when people login, instead if present,
print out /etc/ftpmotd. It looks like 4.4lite2 has done something similar
(perhaps for different reasons) because /etc/motd no longer shows up
on vangogh.
Folks who like the old behavior can create a symbolic link to motd.
rgrimes [Thu, 27 Oct 1994 16:33:49 +0000 (16:33 +0000)]
>Description:
While trying to figure out why rlogind wasn't working right for root,
I noticed that man wouldn't come back with a man page for iruserok, but
it would for ruserok. Checking the lib/net directory's Makefile.inc
file shows that the link to the rcmd man page just isn't getting
created.
>How-To-Repeat:
Do a 'man iruserok' and notihing will come back, where a 'man ruserok'
will.
Submitted by: Brian Moore <ziff@houdini.eecs.umich.edu>
Obtained from: NetBSD-bugs mailing list
bde [Wed, 26 Oct 1994 21:51:22 +0000 (21:51 +0000)]
Fix initialization of video_mode_ptr. It only worked if the segments
in the far pointers are multiples of 4K (as is normal when the video
BIOS is at seg 0xc000). Disallow mode switching if the pointer is bad.
Use a new pa_to_va() macro for all BIOS and video addresses in syscons.
jkh [Wed, 26 Oct 1994 19:18:28 +0000 (19:18 +0000)]
Add my user configuration utility - userconfig().
David wrote the I/O routines for this thing and deserves most of the
credit for thinking the whole idea up.
jkh [Wed, 26 Oct 1994 13:46:34 +0000 (13:46 +0000)]
Remove the code for asking for a filesystem floppy. We don't need
it anymore, and neither David nor I can think of a reasonable
mechanism to stick in its place.
jkh [Wed, 26 Oct 1994 11:14:21 +0000 (11:14 +0000)]
I'm going to nuke strtol() for now. Now I need strncmp() and rather
that add it too, and end up fighting an unwanted battle right now,
I'm just going to back away from both and start including my own private
copies of everything. I'm not going to use _anything_ from libkern
until we decide its fate.
paul [Wed, 26 Oct 1994 04:09:19 +0000 (04:09 +0000)]
Completed disklabel configuration editor. The editor is working but the
glue code to pass the edited configuration onto the following stages
isn't done yet.
phk [Wed, 26 Oct 1994 00:16:20 +0000 (00:16 +0000)]
Fixed a couple of wrong printfs (too few arguments supplied). Also zapped
a couple of unused vars at the same time. Added a #include <sys/proc.h>
to isa.c while here anyway.
se [Tue, 25 Oct 1994 23:06:16 +0000 (23:06 +0000)]
BEWARE: Interface change of register_intr() !
Changed the fifth parameter to register_intr() from u_int mask into
u_int *maskptr in preparation for new features (shared interrupts and
removable devices, eg. for PCMCIA).
se [Tue, 25 Oct 1994 22:35:12 +0000 (22:35 +0000)]
BEWARE: Interface change of register_intr() !
Changed the fifth parameter to register_intr() from u_int mask into
u_int *maskptr in preparation for new features (shared interrupts and
removable devices, eg. for PCMCIA).
bde [Tue, 25 Oct 1994 19:34:57 +0000 (19:34 +0000)]
Never strip the kernel.
Recommend -Wimplicit in CWARNFLAGS next. There are still a few hundred
potential arg mismatches because no function declaration is in scope.
Don't duplicate option `-I.'.
Remove null editing of the assembler source for all profiled objects.
The required magic has been done since prehistoric times by an
asm("mcount") declaration.
Simplify the clean rule.
Don't try to be clever about timestamps involving genassym. genassym's
timestamp usually got ahead of assym.s's timestamp, so `make' almost
always had to run genassym and compare *assym.s to decide that nothing
needed to be done. The cost is reassembling a few files whenever
genassym is rebuilt. Assembling is almost as fast as comparing.
Always go through genassym.o to build genassym. This would have avoided
numerous bugs involving mkdep -p. Now it just stops genassym from
depending on the name of the temporary object file.
Use ${CFLAGS} for building genassym. Mainly ${CWARNFLAGS} were missing.
bde [Tue, 25 Oct 1994 18:09:44 +0000 (18:09 +0000)]
Use += instead of ?= for setting LDDESTDIR. Some Makefiles, such as
cc/Makefile.inc use (abuse?) LDDESTDIR for their internal libraries
so "?=" hides non-default external libraries. Adding multiple paths
to LDDESTDIR works except it makes it even harder than usual to
decide which libraries will actually be linked against.
bde [Tue, 25 Oct 1994 17:46:53 +0000 (17:46 +0000)]
Don't write outside of partp[] if the user gives an invalid partition
number for the partition to be made active. Do nothing instead. This
allows clearing all the active flags by specifying an invalid partition.
jkh [Tue, 25 Oct 1994 14:57:57 +0000 (14:57 +0000)]
Add strtol() to libkern in support of some other work I'm doing.
I just know I'm going to get flamed for adding for the miserable
abortion that is libkern, but what am I supposed to do? At least I
didn't drag in the ctype stuff! :-)
bde [Tue, 25 Oct 1994 14:11:35 +0000 (14:11 +0000)]
Improve error detection and handling:
Reduce _JBLEN for the i386 to what is actually used.
Encapsulate jmp_buf and sigjmp_buf in structs.
Enlarge jmp_buf to the same size as sigjmp_buf.
Declare *longjmp as non-returning.
Remove stale comments about sig*jmp not being implemented.
bde [Tue, 25 Oct 1994 14:04:32 +0000 (14:04 +0000)]
Nuke sigsetjmp.c. sigsetjmp() can't be implemented as a C function
that calls setjmp(), since returning from the function usually
clobbers the saved environment.
dg [Tue, 25 Oct 1994 08:34:50 +0000 (08:34 +0000)]
Restricted maximum bufpages to 1500; this is required for machines >64MB
of memory to work without running out of kernel VM (and increasing it to
even more than it is now (96MB) is out of the question. Changed bufpages
calculation to allocation a little less bufer cache (16% of mem-2MB instead
of 20%); this is simply a better figure for most systems.