Commit Graph

16635 Commits

Author SHA1 Message Date
bde
33b5d083b8 Added new documented options I586_OPTIMIZED_BCOPY and I586_OPTIMIZED_BZERO.
Added old misnamed option I586_FAST_BCOPY in options.i386.

Added old undocumented CLK* and SI_DEBUG options in LINT.
1996-10-09 18:36:44 +00:00
wollman
ab2dd924d4 Get rid of obsolete RTF_MASK and RTF_CHAINDELETE flags. 1996-10-09 18:35:10 +00:00
jkh
9d2a3f5e23 Accept 'Q' or 'ESC' in intro screen as a "Jane, stop this crazy thing!"
request.
1996-10-09 18:31:20 +00:00
bde
f9a9c0927c Enable the i586-optimized bcopy if the cpu is a "586" and option
I586_OPTIMIZED_BCOPY is configured.

Similarly for bzero/I586_OPTIMIZED_BZERO.

Fake 586's had better have a hardware FPU with non-broken exception
handling (we mask exceptions, but broken exception handling may trap
on the instructions that do the masking).  I guess this means that
the routines won't work on most 386's or FPUless 486's even when they
have a h/w FPU.
1996-10-09 18:30:08 +00:00
wollman
8beec6c65d Remove reference to oobsolete RTF_MASK flag (soon to be removed). 1996-10-09 18:19:07 +00:00
bde
6b1de9ceec Added i586-optimized bcopy() and bzero().
These are based on using the FPU to do 64-bit stores.  They also
use i586-optimized instruction ordering, i586-optimized cache
management and a couple of other tricks.  They should work on any
i*86 with a h/w FPU, but are slower on at least i386's and i486's.
They come close to saturating the memory bus on i586's.  bzero()
can maintain a 3-3-3-3 burst cycle to 66 MHz non-EDO main memory
on a P133 (but is too slow to keep up with a 2-2-2-2 burst cycle
for EDO - someone with EDO should fix this).  bcopy() is several
cycles short of keeping up with a 3-3-3-3 cycle for writing.  For
a P133 writing to 66 MHz main memory, it just manages an N-3-3-3,
3-3-3-3 pair of burst cycles, where N is typically 6.

The new routines are not used by default.  They are always configured
and can be enabled at runtime using a debugger or an lkm to change
their function pointer, or at compile time using new options (see
another log message).

Removed old, dead i586_bzero() and i686_bzero().  Read-before-write is
usually bad for i586's.  It doubles the memory traffic unless the data
is already cached, and data is (or should be) very rarely cached for
large bzero()s (the system should prefer uncached pages for cleaning),
and the amount of data handled by small bzero()s is relatively small
in the kernel.

Improved comments about overlapping copies.

Removed unused #include.
1996-10-09 18:16:17 +00:00
wollman
3d953050fb Require that a timezone specified via the TZ envariable be a regular
file (and not a directory or a device which might also be readable).
Closes PR#1740.
1996-10-09 17:39:37 +00:00
ache
05c321a078 Add orandom(), osrandom(), etc. 1996-10-09 16:12:38 +00:00
ache
c00dcd7b7a Improve seeding, the random sequence did not vary match
with the seed. Old variant will be available via libcompat soon.
1996-10-09 15:59:04 +00:00
bde
e8d192466f Don't claim the console when the driver is disabled. The getc/putc
part of the console driver usually works when the driver is disabled,
but the normal read/write part doesn't (it caused a panic).
1996-10-09 15:24:21 +00:00
jkh
b3eb03e7b2 DTRT if ESC is hit in a Yes/No dialog.
Noticed-by: jfieber
1996-10-09 09:53:41 +00:00
wosch
f7abebc6e2 Fix searching for shell quoting characters. I guess it was
broken since locate exists.

This works now

$ locate '*\['
$ locate '*i386-\**'
$ locate '*[C\[]'
1996-10-09 00:33:34 +00:00
bde
28e40e3bc6 Added option PROBE_KEYBOARD_LOCK which gives a serial console if the
keyboard is locked.
1996-10-08 22:41:34 +00:00
bde
da493162e3 Saved about 160 bytes by using the gcc-2.7 alignment options. 1996-10-08 22:35:48 +00:00
bde
de8a481c6f Print the dos device number for read failures. 1996-10-08 22:31:31 +00:00
jdp
32032fd3df Fix an error in the description of "h_errno". Add "const" to a few
declarations to make them agree with the actual prototypes in <netdb.h>.
1996-10-08 22:30:08 +00:00
bde
11c65a934b Removed unused arg to badsect(). It wasted 16 bytes.
Staticized badsect().

Avoid warning for benign signed vs unsigned comparison.
1996-10-08 22:25:22 +00:00
bde
34f60067c2 Use the same warning flags as for the kernel. This causes surprisingly
few warnings.
1996-10-08 22:18:34 +00:00
bde
81e1e3c10e Oops, forgot to cvs add bsd.kern.mk.
Centralized the definition of CWARNFLAGS into bsd.kern.mk.
1996-10-08 22:10:49 +00:00
bde
fa51fcfcdd Centralized the definition of CWARNFLAGS into bsd.kern.mk. 1996-10-08 22:09:03 +00:00
bde
f89fc380f7 Fixed pessimized (short) i/o port types. 1996-10-08 21:08:18 +00:00
wollman
7a20be466c Fix a macro error in HISTORY section. 1996-10-08 20:38:28 +00:00
wollman
c890cc3e7b Delete stale rt_metrics and route flag descriptions and replace them with
a cross-reference to rtentry(9).  Add SEE ALSO and HISTORY sections.
1996-10-08 20:37:24 +00:00
wollman
86a93ff5de Add an rtentry(9) page to describe the structure of a routing-table
entry and the metrics and flags which pertain thereto.
1996-10-08 20:25:39 +00:00
bde
77321c10b0 Don't mention tcpdump; this is for groff. 1996-10-08 20:11:55 +00:00
bde
50390e5cdf Yet another attempt to remove the old libraries correctly. libfoo.*
was misnamed foo.*.
1996-10-08 20:06:41 +00:00
peter
04838bc55a Add a -p to the amd invocation, it's not optional since we are expecting
the pid on stdout for /var/run/amd.pid.  The example in sysconfig had
forgotten -p anyway...
1996-10-08 20:02:57 +00:00
peter
c9ea7e4fc9 Some tweaks after having run a YP-only system with quotas:
- split the "starting network daemons" in half.
 - The first half starts things necessary to get full name service up.
 - The quota check etc moved from "before network" to after the name
   services are running.  quotacheck does a while(p=getpwent()) which
   isn't real good without YP running...
 - moved rwhod a little later to put it with the other network stuff.
 - deferred inetd a tad so that it's after ldconfig and dev_mkdb,
   otherwise you get logins before you're ready.

Unresolved: named is started before ypserv/ypbind still, but named does
a while(s = getservent()) and while (p=getprotoent()) to suck in the
entire database into memory.  This means you cannot have a "+" in the
/etc/services or /etc/protocols files or you get a long hang at boot.
1996-10-08 20:00:44 +00:00
sef
5c2cf660b6 Fix a typo. Oops.
Submitted by:	asami
1996-10-08 19:16:24 +00:00
wollman
376ed22559 Document what I believe to be the interface of rtalloc*. 1996-10-08 18:45:06 +00:00
guido
fa2df97111 Fix the case where fsck would not see sparse directories and the kernel would
panic. If such a thing is fixed fsck needs a rerun (and bugs the user to do
so).

Reviewed by:	Kirk McKusick
1996-10-08 14:54:53 +00:00
jfieber
c75b6f83bd Generate ISO-8859-1 text by default instead of US-ASCII. 1996-10-08 13:45:06 +00:00
pst
0611e5ccfe Link shared libraries with -x 1996-10-08 04:37:00 +00:00
pst
cf16ac24a7 Shared libraries should be linked with -x.
Submitted to:	john.osterhout@eng.sun.com
1996-10-08 04:35:45 +00:00
steve
838a7cdccb O' to be bitten by CVS. Cleanup after import
of Christos' version of make(1) and add Id's.

Set straight by: Bruce Evans and Peter Wemm :)
1996-10-08 04:07:59 +00:00
sef
c3ba3806b8 Paul objected to my previous change. This adds the same functionality
(implemented better, admittedly) with a new option, '-S'.  If the
maintainers of traceroute (Van?) add a -S option, we will then be in
conflict.

Also added a too-brief description of the option in the man page.  Someone
with a better command of English than I at the moment should probably look
over it and rephrase it.

Reviewed by:	pst, jkh
1996-10-08 02:44:26 +00:00
scrappy
a7a5567c4d Fixed prototyping of dlopen/dlsym in dlfcn.h, to match how crt0.c defines
it and link.h prototypes it

Error of my ways pointed out by Peter
1996-10-08 01:41:51 +00:00
scrappy
03a8558771 Fixed the wrong include file for a "prototype mismatch" error between
dlfcn.h and link.h
1996-10-08 01:38:36 +00:00
peter
5e60082391 Use ${INSTALL} -C instead of -c. I did it with -C originally, but during
testing I changed it to -c to check for missed files by looking at time
stamps in /usr/include/g++.

Submitted by: "Philippe Charnier" <charnier@xp11.frmug.org>
1996-10-07 23:38:08 +00:00
scrappy
417a88b9aa dlfcn.h and link.h have conflicting declarations for dlopen/dlsym,
with dlfcn.h declaring them as:

void *dlopen __P((const char *, int));
void *dlsym __P((void *, const char *));

while link.h declared them as

extern void *dlopen __P((char *, int));
extern void *dlsym __P((void *, char *));

Fix link.h to match dlfcn.h
1996-10-07 20:49:03 +00:00
peter
2ed8e17b91 Implement virtual-to-physical address mapping for the kvm library on
dead kernel debugging.  The previous code was a "do nothing".

The most obvious side effect of this is that you can now do things like
this and reasonably expect them to work:
  dmesg -M /var/crash/vmcore.3 -N /var/crash/kernel.3
  ps -axl -M /var/crash/vmcore.3 -N /var/crash/kernel.3

A good deal of this was lifted from the gdb code to do this, as well as
from NetBSD's libkvm (which has completely different VM macros)
1996-10-07 20:17:50 +00:00
wollman
5db9741711 All three files: make COMPAT_IPFW==0 case work again.
ip_input.c:
	- delete some dusty code
	- _IP_VHL
	- use fast inline header checksum when possible
1996-10-07 19:21:46 +00:00
wollman
6fa07fb99b Remove some historical cruft inherited from the loopback driver in which
there were three possible different code paths through which we could
discard a packet (which, after all, is the entire function of this interface).
1996-10-07 19:11:55 +00:00
dg
00503a161c Improved in_pcblookuphash() to support wildcarding, and changed relavent
callers of it to take advantage of this. This reduces new connection
request overhead in the face of a large number of PCBs in the system.
Thanks to David Filo <filo@yahoo.com> for suggesting this and providing
a sample implementation (which wasn't used, but showed that it could be
done).

Reviewed by:	wollman
1996-10-07 19:06:12 +00:00
wollman
1d8ea9950b Fix padding of short packets (PR#1701).
Submitted by: seki@sysrap.cs.fujitsu.co.jp
1996-10-07 17:50:00 +00:00
jfieber
ad85d21628 close pr 1509 1996-10-07 14:31:01 +00:00
jfieber
e7fde020ca Close pr 1474
Submitted by:	"David E. O'Brien" <obrien@Nuxi.cs.ucdavis.edu>
1996-10-07 14:25:44 +00:00
sos
7510af99b9 Add the feature to use MYADDR & HISADDR macroes as arguments to
a shell escape.
1996-10-07 10:01:17 +00:00
joerg
94ef229c15 Export $TERM only if it has been set in our environment.
Detected by: Amancio Hasty
1996-10-07 10:00:58 +00:00
jkh
6f83ff6916 Add note about SYN fix. 1996-10-07 04:43:01 +00:00