Commit Graph

26354 Commits

Author SHA1 Message Date
bde
648446f969 Exec dmesg and awk to print everything in the message buffer
following "panic:" or "Fatal trap".  `panicstr' is still printed,
although it is redundant if there is a valid message buffer and
incomplete if it contains `%'s.  I think the awk command belongs
here and not in a script since a standard format with complete
messages is good for bug reports.
1997-12-19 21:37:18 +00:00
bde
e3217cf458 Don't print "Making info file ...' except in verbose mode. 1997-12-19 21:20:07 +00:00
bde
93f1da9dce Backed out all FreeBSD changes. They are unnecessary now that bfd
understands kernels.

Reviewed by:	jdp
1997-12-19 21:09:20 +00:00
bde
98ed8d085c Override gdb's version of N_TXTADDR() with the (new) system version
so that gdb gets the text address right for kernels.  Override some
other macros to get a consistent set.

Reviewed by:	jdp
1997-12-19 21:08:54 +00:00
bde
8f84818ada Made N_TXTADDR() work for kernels (assume that a ZMAGIC file with an
out of bounds a_entry is a kernel and use the usual kludge to find
the text address).  If gdb had used this, it would have been able
to find the kernel text address properly.  Unfortunately, it uses
its own a.out macros, so this is mainly an example for gdb to copy.
1997-12-19 20:44:48 +00:00
bde
d102d16ab7 Don't strip trailing slashes (for the initial rmdir). It breaks
following of the symlink for `rmdir symlink/' and is unnecessary
for ordinary directories (POSIX doesn't require rmdir(1) to do
anything for trailing slashes; it requires rmdir(2) to let them
"refer to a directory", and following the symlink for symlink/ is
what BSD does).  This also fixes bugs in the slash-stripping code
(for paths consisting entirely of slashes, the pointer into the
string was decremented to "before" the beginning of the string,
and the path was at best stripped to "".

The behaviour is unchanged except for the final directory for
`rmdir -p ...'.  There is no alternative to stripping intermediate
slashes since they must be specified.  The sloppy slash-stripping
code is adequate for intermediate directories, since the all-slashes
case fails early.
1997-12-19 20:20:22 +00:00
ache
ae9996d766 MALLOC->malloc
Suggested-by: bde
1997-12-19 19:39:01 +00:00
bde
4191aa2363 Set the sender's low watermark to match the maximum size for atomic
writes that we advertise (PIPE_BUF = 512).
1997-12-19 18:58:14 +00:00
bde
ae349861e5 Only remove ${CLEANFILES} in the default clean rule. In particular,
don't remove a.out explicitly.  a.out should only be generated for
libraries and is removed in the non-default rule in bsd.lib.mk.

Removed undocumented cleanfiles target.  It was the same as the
default clean target except it didn't descend into subdirs.  It was
different from special clean targets in other ways.  This feature
hasn't been missed for more important targets.

Removed unused default cleandepend target.  bsd.dep.mk has a better
version which is always used.

Use a better rule for checkdpadd in the BINFORMAT=aout case.  This
mainly checks that ld -f is working correctly.  The old rule is
still available via `make BINFORMAT=foo checkdpadd' and should be
used to check for regressions under 2.2 where ld -f is not available.
1997-12-19 18:48:45 +00:00
brian
8e957697c8 Reset our "ifaddr" to zero if the "set ifaddr" fails in
-auto mode.  This makes ppp correctly exit if you kick it
off twice in auto mode with the same label (read: interface).
1997-12-19 18:11:05 +00:00
dyson
4c44bbc963 Change bogus usage of btoc to atop. The incorrect usage of btoc was
pointed out by bde.
1997-12-19 15:31:13 +00:00
brian
9564a08fa8 The ``super scsi'' device is /dev/scc.
I'm not sure it's fully functional though !
1997-12-19 14:14:26 +00:00
bde
254d5ecb9e Fixed namespace pollution in previous commit.
Merged KERNEL ifdefs.
1997-12-19 10:03:31 +00:00
ache
6c0f717b7e SUNIT: use MALLOC/FREE and M_NOWAIT 1997-12-19 09:48:57 +00:00
dyson
6bd1f74dcf Some performance improvements, and code cleanups (including changing our
expensive OFF_TO_IDX to btoc whenever possible.)
1997-12-19 09:03:37 +00:00
brian
47b91b0d8a If the peer asks for IP 0.0.0.0, choose an IP ourselves
without looking for it in our IP list (and if found, trying
to ifconfig it!).
1997-12-19 04:49:53 +00:00
julian
efed7b6cdc Fix an incredibly horrible bug in the ipfw code
where if you are using the "reset tcp" firewall command,
the kernel would write ethernet headers onto random kernel stack locations.

Fought to the death by: terry, julian, archie.
fix valid for 2.2 series as well.
1997-12-19 03:36:15 +00:00
dyson
21d1d08bb0 Correct the check for multiword dma. It was incorrectly checking
for multiword dma mode 4 (which doesn't exist.)
Submitted by:	John Hood
1997-12-19 02:25:51 +00:00
bde
50c5a05b16 Augment $PATH to ensure searching of /sbin and /usr/sbin for sysctl
instead of using an absolute path to sysctl.
Problem reported by: ache
1997-12-18 21:03:04 +00:00
bde
aa2bd98249 Install sysctl in /sbin. It is used in some cases in network_pass1(),
before /usr is mounted if /usr has type nfs.
1997-12-18 15:34:08 +00:00
bde
731c4cc06f Removed extra (non-trailing) arg in a call to warnx(). 1997-12-18 15:27:43 +00:00
bde
e90eb09739 Fixed missing dependency on version.c.
Fixed some style bugs ($@ is not recommended ...).
1997-12-18 15:22:12 +00:00
bde
5123be31b9 Oops, the previous patch was botched. 1997-12-18 12:56:52 +00:00
dg
0f803af547 Fixed a missing splx(s) bug in tcp_usr_send(). 1997-12-18 09:50:38 +00:00
dg
5b21cc8b37 Call in_pcballoc() at splnet(). As near as I can tell, this won't fix
any instability problems, but it was wrong nonetheless and will be
required in an upcoming round of PCB changes.
1997-12-18 09:13:39 +00:00
charnier
8a27726113 Typo. 1997-12-18 07:39:27 +00:00
peter
1c1263e645 Add missing references to Xcpuast, get_isrlock and checkstate_probed_cpus 1997-12-18 02:09:29 +00:00
brian
ad6dc08636 Replace
strcpy(a, b);  /* a and b are the same size */

with

  strncpy(a, b, sizeof(a));
  a[sizeof(a)-1] = '\0';

Making the code `correct at a glance'.

Suggested by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-18 01:10:13 +00:00
brian
71fc17164f "No reply from ppp" -> "Connection closed".
"No reply" sounds like the message didn't get through (for
example when you `pppctl xxxx quit all'.
1997-12-18 00:29:56 +00:00
brian
681e86adc4 Don't log the actual password when command-logging
"passwd xxxx".
1997-12-18 00:28:36 +00:00
brian
7903f9af94 Don't depend on a u_long being 32 bits.
Pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-17 21:22:05 +00:00
brian
7d06bfe1d5 char filename[200] => char filename[MAXPATHLEN]
Pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-17 21:22:01 +00:00
brian
0d6d3cfaeb Log the source of client connections to the diagnostic port.
Disallow connections from port numbers <1024 as low port numbers
can only really mean trouble (ftp bounces etc.).

Discussed at length with: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-17 21:21:56 +00:00
brian
ee37461631 Remove useless comparison. 1997-12-17 21:21:53 +00:00
brian
b8bde84af7 If we've got a descriptor table that's bigger than an
fd_set, make sure that all descriptors >2 are closed
when we start - otherwise we're asking for a dump in
FD_SET().

Problem pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-17 21:21:47 +00:00
brian
4f380fde8d o Log ******** instead of the actual password for "set authkey"
when command logging is switched on.
o Display ******** for the authkey for "show auth"
o Document how \P should be used, and document the other chat escapes
  while I'm there.
o Make sure the full command is displayed when a compound command
  fails - ie, "set novar rubbish" should say "set novar: Invalid command"
  rather than "novar: Invalid command"

Problem pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org> (among others)
1997-12-17 21:21:42 +00:00
bde
d1353afc41 <bsd.prog.mk> has always included ../Makefile.inc, and there are no
complications involving .PATH or dependencies, so don't include it here.
1997-12-17 20:22:34 +00:00
bde
67fdac0638 <bsd.prog.mk> has included ../Makefile.inc for a long time, and there
are no complications involving .PATH or dependencies, so don't include
it here.
1997-12-17 19:57:35 +00:00
bde
eeba28eca5 <bsd.prog.mk> has always included ../Makefile.inc, and there are no
complications involving .PATH or dependencies, so don't include it here.
1997-12-17 19:49:09 +00:00
wollman
7c7c2d2637 Add -Wno-unused so that ``make world'' can complete successfully.
GCC suppresses the warning for ``standard'' header files, but since the
headers do not come from the ``standard'' place in a ``make world'', GCC
doesn't get it.
1997-12-17 19:38:33 +00:00
bde
e7da1a2ae7 BSDify. 1997-12-17 19:32:54 +00:00
bde
fbf2dc264b <bsd.doc.mk> now includes ../Makefile.inc, so don't include it here. 1997-12-17 19:26:07 +00:00
bde
bd59d1ae52 Oops, rm -f can't handle empty lists. 1997-12-17 15:35:09 +00:00
cwt
c097ee04f0 DPADD repairs suggested by Bruce Evans <bde@zeta.org.au> 1997-12-17 15:18:54 +00:00
bde
60c58bdca7 Oops, rm -f can't handle empty lists. 1997-12-17 15:18:53 +00:00
bde
1a1b424469 Don't use LDDESTDIR. Just put the -L arg in LDADD. 1997-12-17 15:11:43 +00:00
wollman
438677fced Revert poll() for UFS files to traditional behavior where polling for read-
or writability always returns true.  This works around bugs in netscape and
squid, at a minimum.
1997-12-17 14:44:23 +00:00
bde
8526cea3ba Don't clean files that we don't create.
Fixed style of empty test.

Include <bsd.libnames.mk> if `checkdpadd' is being made, so that it can
:e checked until it goes away.
1997-12-17 13:40:00 +00:00
bde
c0bce29b7d Normally don't include <bsd.libnames.mk>. Include it in the !aout case
(as in bsd.prog.mk).  Include it if `checkdpadd' is being made, so that
it can be checked until it goes away.

Don't clean files that we don't create.

Fixed style of empty test.
1997-12-17 13:36:44 +00:00
bde
a3800989c1 Close some file descriptors on exec so that the inferior process gets
a normal environment.  Fd's 3 and 4 were usually left open.
1997-12-17 13:23:51 +00:00