Commit graph

73353 commits

Author SHA1 Message Date
Ruslan Ermilov
71b3ac84e1 Replaced exists() tests with two equivalent defined().
LIBDIR is defined in bsd.own.mk but sys.mk no longer
includes bsd.own.mk as of revision 1.60.
2002-04-18 07:01:35 +00:00
Ruslan Ermilov
96f1512e70 INFODIR is defined in bsd.own.mk but sys.mk no longer includes
bsd.own.mk as of share/mk/sys.mk,v 1.60.

I did not notice this because I tested with DESTDIR=/foo/5.0,
and the "exists(/foo/5.0)" test apparently succeeded.

Reported by:	fenner
2002-04-18 06:55:32 +00:00
Ruslan Ermilov
10c51522ed This Makefile.inc depended on the (wrong) order of inclusion
of makefiles: bsd.own.mk was included before ../Makefile.inc,
effectively hiding the (wrong) LIBCOMPATDIR assignment here.
share/mk/sys.mk,v 1.60 (and assorted share/mk fixes) fixed
this order, revealed this bug, and broke "make release" and
"make installworld" with either of -DCOMPAT1X or -DCOMPAT2?.

Reported by:	jhay
2002-04-18 06:46:34 +00:00
Ruslan Ermilov
07b10385f0 In rare cases, we might want to include bsd.own.mk directly.
So protect it from being included twice.
2002-04-18 06:37:48 +00:00
Alan Cox
ff8f4ebe22 Add a comment documenting a race condition in vm_fault(): Specifically, a
modification is made to the vm_map while only a read lock is held.
2002-04-18 03:55:50 +00:00
Robert Watson
91e007dc70 Since WITNESS doesn't just do mutexes, remove "mutex" from the WITNESS
comment in GENERIC config files of appropriate platforms.  For whatever
reason, powerpc didn't use WITNESS in GENERIC.
2002-04-18 03:44:44 +00:00
Robert Watson
aa4019efa1 Witness doesn't just track mutexes, so don't say mutexes specifically. It
also tracks sxlocks, etc.
2002-04-18 03:41:49 +00:00
Tim J. Robbins
13e06695bf Add the -b option (break at byte position, not column number) and the -s
option (try to break at word bounaries) for SUSv3 conformance.

Partially based on the NetBSD version, with the following changes:
 - style(9)
 - break on <blank>s, not spaces, per POSIX (and GNU)
 - when looking for last space on line, search backwards instead of
   forwards; less comparisons needed this way.
 - use LINE_MAX macro instead of a magic number and a comment saying it is
   LINE_MAX.

PR:		36245
Reviewed by:	mike
Obtained from:	NetBSD (partially)
2002-04-18 03:33:51 +00:00
Alan Cox
6139043b1f o Call vm_map_growstack() from vm_fault() if vm_map_lookup() has failed
due to conditions that suggest the possible need for stack growth.
   This has two beneficial effects: (1) we can
   now remove calls to vm_map_growstack() from the MD trap handlers and (2)
   simple page faults are faster because we no longer unnecessarily perform
   vm_map_growstack() on every page fault.
 o Remove vm_map_growstack() from the i386's trap_pfault().
 o Remove the acquisition and release of Giant from i386's trap_pfault().
   (vm_fault() still acquires it.)
2002-04-18 03:28:27 +00:00
Udo Erdelhoff
1291e40d3d Whitespace fix after the restructuring, no content changes 2002-04-18 01:27:19 +00:00
Udo Erdelhoff
4bd2a978f6 Restructure the Sparc installation instructions to
- get rid of the 4th level headings
- seperate the actions required to prepare the installation (getting
  the CD, settings up the various daemons, ...) from the actual
  installation

Translation teams: This patch moves some paragraphs around and changes
a lot of <sectX> headers, but does not contain any content changes in
the strict sense of the word (i.e. I did not rewrite paragraphs yet).
There were no changes to the indentation, either.

Reviewed by: bmah, -sparc, -doc
2002-04-18 01:07:25 +00:00
Bruce A. Mah
e124b1b104 New release note: SA-02:21. 2002-04-17 23:16:40 +00:00
Mike Barcroft
7aad98ac48 Remove an extraneous .El call.
Submitted by:	fenner
2002-04-17 23:07:58 +00:00
Dag-Erling Smørgrav
a35b5480e5 This commit was generated by cvs2svn to compensate for changes in r94970,
which included commits to RCS files with non-trunk default branches.
2002-04-17 22:58:58 +00:00
Dag-Erling Smørgrav
c7070155fc Fix broken markup (perforce changes 9937, 9939) 2002-04-17 22:58:58 +00:00
Dag-Erling Smørgrav
07f86017c9 This commit was generated by cvs2svn to compensate for changes in r94968,
which included commits to RCS files with non-trunk default branches.
2002-04-17 22:57:09 +00:00
Dag-Erling Smørgrav
11d81aa6d4 Set rsp to NULL before calling the conversation function so we can later
detect if it hasn't been touched (perforce change 9889)

Sponsored by:	DARPA, NAI Labs
2002-04-17 22:57:09 +00:00
Tor Egge
de8218bb7b Fix typo in adjusted panic message.
Submitted by:	cokane
2002-04-17 22:41:58 +00:00
Bill Fenner
7aa632bcc2 mdoc police: get rid of blank line at end of file. 2002-04-17 21:39:59 +00:00
Bill Fenner
69b1a0d9c0 mdoc police: use .El to end the list in the ENVIRONMENT section. 2002-04-17 21:34:47 +00:00
Bill Fenner
04df644c95 mdoc police: turn .PP back into .Pp 2002-04-17 21:26:43 +00:00
Tor Egge
50c15af4da Update io_apic_ints array properly when revoking an irq mapping.
Adjust panic message.

Submitted by:	David Xu <bsddiy@yahoo.com>
2002-04-17 18:27:10 +00:00
Alfred Perlstein
62563373ff De-K&R dkcksum() to fix some issues with c++.
Submitted by: Miguel Mendez <flynn@energyhq.homeip.net>
2002-04-17 18:09:27 +00:00
Maxime Henrion
b48a4280fc Avoid calling malloc() or free() while holding the
kenv lock.

Reviewed by:	jake
2002-04-17 17:51:10 +00:00
Bruce A. Mah
5a02974a18 New release note: SA-02:20. 2002-04-17 17:49:57 +00:00
Juli Mallett
b1ea3d46b7 This adds support for -s to the m4(1) utility, which causes #line directives
to be emitted as per the C preprocessor.  It updates the manual page in
regards to standards accordingly.

PR:		standards/36075
Submitted by:	tjr
Reviewed by:	mike
MFC after:	1 week
2002-04-17 17:26:32 +00:00
Ruslan Ermilov
2ecf206550 Install files via FILES, there's no reason to compare them before installing. 2002-04-17 16:56:36 +00:00
Murray Stokely
5cdb0b3d41 Require approval for DHCP commits. I have commit access to isc.org
DHCP, so it should not be too much to ask to keep the sources synced.
2002-04-17 16:39:01 +00:00
Ruslan Ermilov
4367bda680 ${INSTALLFLAGS} aren't suitable for installing ${SCRIPTS} and ${FILES}. 2002-04-17 16:29:02 +00:00
Matthew N. Dodd
41fd17a668 Fix missing commas. 2002-04-17 16:12:24 +00:00
Ruslan Ermilov
092179f985 Really unbreak it this time (clean and install were still broken). 2002-04-17 15:33:40 +00:00
Bernd Walter
b5b4067771 Fix a compiler warning I missed in the last commit.
Reviewed by:	gallatin
Approved by:	gallatin
2002-04-17 15:32:11 +00:00
Brian Somers
c357e4dfc8 Make delay iteration counts a function of hz as the delay period in each
loop is inversly proportional to hz.

This makes things more sane for configurations with hz != 100.

Cosmetic: Make the loops look similar to the loops in digi.c
2002-04-17 15:28:41 +00:00
Brian Somers
b2d8576794 Make delay iteration counts a function of hz as the delay period in each
loop is inversly proportional to hz.

This makes things more sane for configurations with hz > 100.

Submitted by:	Peter Jeremy <peter.jeremy@alcatel.com.au>
2002-04-17 15:13:52 +00:00
Bernd Walter
27c5b6c8f1 Revive dec_axppci_33_intr_route for LCA.
We now get valid interrupt lines for devices on secondary pci busses.

Reviewed by:	gallatin
Approved by:	gallatin
2002-04-17 14:08:22 +00:00
Thomas Moestl
70abba50b6 Parenthesize some macro arguments.
PR:		20024
Submitted by:	Tony Finch <dot@dotat.at>
2002-04-17 14:00:37 +00:00
Bernd Walter
dd516e0773 Clear the error flags in the LCA_IOC_STAT0 register after
machine_checks.
This fixes pci config reads for non existing devices on secondary
pci busses.

Thanks to Andrew Gallatin for pointing me to the register

Reviewed by:	gallatin
Approved by:	gallatin
2002-04-17 13:57:50 +00:00
Ruslan Ermilov
2bdaf7e81c Don't include bsd.own.mk from sys.mk, this makes it impossible
to use ``.if defined()'' inside bsd.own.mk to test for defines
in individual makefiles.  For example, setting DEBUG_FLAGS in
Makefile didn't take the desired effect on the STRIP assignment.

Added bsd.init.mk (like in NetBSD) that handles the inclusion
of ../Makefile.inc and bsd.own.mk from all bsd.*.mk files that
"build something".

Back out bsd.own.mk,v 1.15: moved OBJFORMAT initialization back
to sys.mk (several source tree makefiles want to check it early)
and removed MACHINE_ARCH initialization (it's hard to see from
looking at the commitlogs what the problem was at the time, but
now it serves no purpose).

Prohibit the direct inclusion of bsd.man.mk and bsd.libnames.mk.

Protect bsd.obj.mk from repetitive inclusion.  Prohibiting the
direct inclusion of bsd.obj.mk might be a good idea too.
2002-04-17 13:49:29 +00:00
Thomas Moestl
d57e28adb2 Document STAILQ_CONCAT and TAILQ_CONCAT.
PR:		20024
Submitted by:	Tony Finch <dot@dotat.at> (TAILQ_CONCAT, slightly changed
		by me)
Reviewed by:	ru (earlier version)
2002-04-17 13:48:14 +00:00
Thomas Moestl
421a9d041e Add macros for concatenating tailqs and stailqs.
PR:		20024
Submitted by:	Tony Finch <dot@dotat.at> (TAILQ_CONCAT)
2002-04-17 13:43:31 +00:00
Maxime Henrion
41196280ac Use the new functionalities provided by the kenv(2) syscall.
Reviewed by:	peter
2002-04-17 13:08:14 +00:00
Maxime Henrion
d786139c76 Rework the kernel environment subsystem. We now convert the static
environment needed at boot time to a dynamic subsystem when VM is
up.  The dynamic kernel environment is protected by an sx lock.

This adds some new functions to manipulate the kernel environment :
freeenv(), setenv(), unsetenv() and testenv().  freeenv() has to be
called after every getenv() when you have finished using the string.
testenv() only tests if an environment variable is present, and
doesn't require a freeenv() call. setenv() and unsetenv() are self
explanatory.

The kenv(2) syscall exports these new functionalities to userland,
mainly for kenv(1).

Reviewed by:	peter
2002-04-17 13:06:36 +00:00
Maxime Henrion
fd448168b7 Add an entry for the kenv(2) syscall (code to follow).
Reviewed by: peter
2002-04-17 13:05:13 +00:00
Brian Somers
d5f694305a Add variable substitutions for SOCKNAME, IPOCTETSIN, IPOCTETSOUT, IPPACKETSIN,
IPPACKETSOUT, IPV6OCTETSIN, IPV6OCTETSOUT, IPV6PACKETSIN, IPV6PACKETSOUT,
OCTETSIN, OCTETSOUT, PACKETSIN, PACKETSOUT and SOCKNAME.
2002-04-17 12:38:59 +00:00
Ruslan Ermilov
50c012bece Don't attempt to chflags(1) non-existent executable. 2002-04-17 12:15:02 +00:00
Josef Karthauser
865fe6dbe4 Revert part of revision 1.49 which was supposed to be white space
only.  In the device probe we don't want to match unless there is
an iface structure already set up.
2002-04-17 12:03:20 +00:00
Gerald Pfeifer
e6c0365295 Mention that terminal type vt220 will work better if one needs
interoperability with other systems like Solaris or GNU/Linux.

PR:		33810
Approved by:	obrien
2002-04-17 10:42:41 +00:00
Ruslan Ermilov
bda79b63d6 Fixed mdoc(7) warnings visible in troff mode only.
Spotted by:	Rich Morin <rdm@cfcl.com>
2002-04-17 07:37:42 +00:00
Matthew N. Dodd
f5d1240c12 Remove a stray comment terminator that was hiding beyond 80 columns. 2002-04-17 07:04:58 +00:00
Matthew N. Dodd
1462e313d4 - Add defines for ABR and UBR traffic types.
- Add IDT bits to vendor/vendorapi/device enums.
- Add EISA to atm_bus enum.
2002-04-17 07:00:56 +00:00