Commit Graph

16198 Commits

Author SHA1 Message Date
Paul Traina 5005b18574 Back out my recent compilation clean-up changes, sysinstall is now weird. 1996-09-26 01:08:51 +00:00
Søren Schmidt fa19f8481a Fix a typo.
Reviewed by:	 phk
1996-09-25 16:29:15 +00:00
Poul-Henning Kamp ed3d429586 A number of minor bogons and portability things from jdp.
Submitted by:	jdp
1996-09-25 08:30:46 +00:00
Steve Price 6d29e75f84 Fix for PR# 1231, make(1) execution of ``.BEGIN'' does
not halt on error.  Thanks to Wolfram for reminding me. ;)

Also remove a unnecessary test for c == '\n', since the
loop (in ParseSkipLine) will not terminate unless
c == '\n' || c == EOF, and the EOF case is already
explicted handled by a return statement.
1996-09-25 02:55:49 +00:00
Paul Traina 42a69230b9 Fix a typo in phk's rawboot conversion 1996-09-25 00:43:23 +00:00
Bruce Evans 388dfa7112 Fixed a few hundred warnings (2400 in LINT) for signed vs unsigned
comparisons in the inb() and outb() macros.  I decided that int args
are OK here.  Any type that can hold a u_int16_t without overflow
is correct, and 32-bit types are optimal.

Introduced a few tens of warnings (100 in LINT) for use of pessimized
(short) types for the port arg.  Only a few drivers are affected by
this.  u_short pessimizations aren't detected.

Added `__extension__' before the statement-expression in inb() so
that it can be compiled without warnings by gcc -pedantic.
1996-09-24 17:47:59 +00:00
Bruce Evans bda1d7064e Changed 'd' to 'D' in getopt arg too. 1996-09-24 17:29:42 +00:00
Peter Wemm 34b2ec2b3f Drat, had the N_FN overloading based on N_EXT backwards. N_EXT = filename,
no N_EXT is a "warning". eg:
% nm -p /tmp/gets.o
...
00000000 w  warning: this program uses gets(), which is unsafe.
         U  _gets
00000000 T  _gets
1996-09-24 15:56:26 +00:00
Peter Wemm 8a6f32e24c Rudimentry support for viewing weak symbols. There are two types that
this deals with, the N_INDR indirect symbols done with .stabs operations,
and those done with .weak that have an extra field in n_other.
1996-09-24 09:59:43 +00:00
Bruce Evans 4523edce8b Really eliminated includes of the "temporary" backwards compatibility
header <sys/dir.h> in applications.  My previous sweep didn't find the
places that included it without needing it.
1996-09-24 08:43:04 +00:00
Bruce Evans 0c8ea4d48c Eliminated includes of the "temporary" backwards compatibility header
<sys/dir.h> in applications.  Maintained existing (inadequate) ifdefs
for dir.h vs dirent.h in libdialog, amd and rarpd, but didn't add any
new ones.
1996-09-24 08:08:11 +00:00
Satoshi Asami 251d6f360e Back out changes in rev. 1.217 -- ${CONFIGURE_SCRIPT} is not
meant to rename the name of script in ${SCRIPTDIR}.
1996-09-24 06:48:22 +00:00
Andrey A. Chernov 55c8be64d1 Back out my brackets change, it is definitely make bug, (recently
introduced) because old make version I check do the right job.
1996-09-24 04:17:14 +00:00
Warner Losh bc2b054885 Per discussions in -current
- Change the debug flag from -d to -D to avoid conflict with other
	  install programs.
	- Update man page to reflect this
	- Update usage string
-d meaning creat directory is specifically not implemented by these changes.
1996-09-24 04:15:02 +00:00
Andrey A. Chernov 4400af91f7 Add brackets to change bogus make expression priority, i.e.
!defined(X) && $(A) != $(B)
parsed as
(!defined(X) && $(A)) != $(B)
and not as
!defined(X) && ($(A) != $(B))
Probably it should be fixed in make
1996-09-24 03:48:10 +00:00
Wolfram Schneider e0e5145ce6 add missing comma(s) in .Xr macros 1996-09-23 22:24:39 +00:00
Poul-Henning Kamp 1f05a9e73a phkmalloc/3
Various neat features added.  More documentation in the manpage.
If your machine has very little RAM, I guess that would be < 16M
these days :-(,  you may want to try this:
	ln -fs 'H<' /etc/malloc.conf
check the manpage.
1996-09-23 19:26:39 +00:00
Steve Price 0e0e0239f0 Be sure to remove any newlines encountered when
parsing the input file in ParseSkipLine(...).
1996-09-23 17:21:34 +00:00
Bruce Evans 08eb1b8719 cpp was named ccp. 1996-09-23 16:12:38 +00:00
Satoshi Asami 0a2bb16e68 Look on the CDROM for patch files too.
Submitted by:	max

While I'm here, add "${DIST_SUBDIR}/" at end of CDROM pathnames.  Also
add an empty declaration of PATCH_SITES next to MASTER_SITES to avoid
"variable recursive" error.
1996-09-23 09:27:59 +00:00
Peter Wemm a6fc828816 call srandom() during the boot to start the sequence with a slightly less
predictable seed.
1996-09-23 04:37:54 +00:00
Peter Wemm 840a0352e9 add simple srandom() and prototype 1996-09-23 04:31:43 +00:00
Peter Wemm 6f78ed368c Crude hack to work around cpp.1 doing a .so man1/cccp.1
Pointed out by: Warner Losh <imp@village.org>, PR#1667
1996-09-23 04:14:30 +00:00
Alexander Langer 97ea6d475a Fix typo from previous commit (tsvsec --> tv_sec). 1996-09-23 03:54:53 +00:00
Wolfram Schneider 148531ef1e add forgotten $Id$ 1996-09-22 21:56:57 +00:00
Poul-Henning Kamp 3f8ba9ae3e Remove length field from utrace entries. 1996-09-22 18:18:20 +00:00
Poul-Henning Kamp d920a829d4 Remove the extra length field from the utrace entries. It's redundant. 1996-09-22 18:17:51 +00:00
Wolfram Schneider 5adfa840ff add a.core entity for FreeBSD core team
use E-Mail entities if possible, except for 386BSD Patch kit section
1996-09-22 15:40:46 +00:00
Bruce Evans 38a14cf7f6 Reformatted FreeBSD additions to match 4.4Lite style. Mixed tabs and
spaces after #define's look ugly in diffs.
1996-09-22 14:57:44 +00:00
Andrey A. Chernov a59b44944e Fix one byte buffer overflow
Submitted by: Eric Allman <eric@sendmail.org>
1996-09-22 14:57:00 +00:00
Bruce Evans 76a4217503 Fixed annoying non-null output for `make depend'. SRCS should only
be used for C, C++ and assembler sources if <bsd.prog.mk> is
included.  It was used for general files.  This caused the __depend_*
lists in <bsd.dep.mk> to be empty, so mkdep was never run, so
.depend never existed, so it was always out of date, so `rm -f
.depend' was always executed to update it.
1996-09-22 14:45:23 +00:00
David Greenman 1cd443ace8 Fixed a bug with the management of the pointer to the first TxCB in the
ring that caused wrong things to happen sometimes.
Doubled the number of transmit descriptors to 128 so that the internal
FIFO in the NIC can be fully filled when dealing with small packets.
Several minor performance improvements.
1996-09-22 11:48:54 +00:00
Jordan K. Hubbard b145f09f51 Properly boldify all list items and correct a syntax error. 1996-09-22 09:29:09 +00:00
Warner Losh b604753497 Fix a possible syntax error in rc when swapfile isn't defined at all.
This can happen when the user is upgrading from an older version and
his/her sysconfig file doesn't have swapfile defined to be NO in it.
1996-09-22 06:36:49 +00:00
Gary Palmer 9986e07e1f Remove the code that renices +4 a process that has had 10 minutes of
CPU time. I find it slightly annoying on one of our servers here.

Also disliked by: David Greenman
1996-09-22 06:35:24 +00:00
Warner Losh 8ea3178507 Reviewed by: Bill Fenner <fennder@parc.xerox.com>
Reviewed by:	Garrett Wollman <wollman@freebsd.org>
Submitted by:	Warner Losh <imp@village.org>
Close PR bin/1145:
	Add -s flag to tftpd.  This enables the so-called secure mode
of tftpd where it chroots to a given directory before allowing access
to the files.  In addition, it runs as nobody when in this mode.
Reviewed a long time ago by Bill and Garrett.  Apply my patch from the
pr, and close the PR.
1996-09-22 04:19:27 +00:00
Steve Price 6bf3beb134 Fix for PR# 1095, make's continuation line handling buggy
when used with .elif.  Additional fixes include:

    - fix continuation line handling when using .for
    - plug up a memory leak
1996-09-22 02:28:36 +00:00
Steve Price 2e66d503c6 Fix for PR# 1427, yacc-generated parser generates warnings
with -Wall.  Tim's work with some minor additions by me.

Submitted by:	Tim Vanderhoek <hoek@freenet.hamilton.on.ca>
1996-09-22 02:05:53 +00:00
Paul Traina 04bd4759a8 Fix some compilation warnings 1996-09-22 01:05:21 +00:00
Paul Traina 79b3126fb3 Fix up some compilation warnings. 1996-09-22 00:55:46 +00:00
Jordan K. Hubbard 3e8947d7aa Remove some gratutious screen saves. 1996-09-22 00:48:55 +00:00
Andrey A. Chernov c0eb19c55f Fix & expansion (from pw_gecos field), sizeof buf used when
buf is pointer, not array, buflen must be used instead.
Charlie & from root name was expanded to junk as result.
1996-09-21 23:37:35 +00:00
Wolfram Schneider f98e6287f8 Improve comments, sync sh/csh scripts if possible. 1996-09-21 21:35:47 +00:00
Paul Traina 39ea627d62 Fix some compilation warnings. 1996-09-21 18:01:23 +00:00
Jordan K. Hubbard 0db7abdd72 Note that EtherPower 2 is supported.
Submitted-By: Doug White <dwhite@gdi.uoregon.edu>
1996-09-21 17:51:46 +00:00
Jordan K. Hubbard 926a83ef42 Nuke a trailing .endif which survived Peter's last edits. 1996-09-21 17:49:45 +00:00
Wolfram Schneider 374fc79d70 fix .Xr macro 1996-09-21 15:08:10 +00:00
Bruce Evans ebedb5ad97 Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:
- don't include <sys/ioctl.h> in any header.  Include <sys/ioccom.h>
  instead.  This was already done in 4.4Lite for the most important
  ioctl headers.  Header spam currently increases kernel build
  times by 10-20%.  There are more than 30000 #includes (not counting
  duplicates) for compiling LINT.
- include <sys/types.h> if and only it is necessary to make the header
  almost self-sufficient (some ioctl headers still need structs from
  elsewhere).
- uniformized idempotency ifdefs.  Copied the style in the 4.4Lite
  ioctl headers.
1996-09-21 14:59:43 +00:00
Bruce Evans 83f52dabab Include <sys/filio.h> explicitly - don't depend on <machine/soundcard.h>
bogusly defining non-soundcard ioctls.
1996-09-21 14:53:28 +00:00
Peter Wemm b99929ea6b Remove SHARED_LIBCC_INT sample, it's gone and has been a do-nothing option
since the cc1/cc1plus backends were linked static some time ago.
1996-09-21 14:30:23 +00:00