Commit graph

73382 commits

Author SHA1 Message Date
SUZUKI Shinsuke 88ff5695c1 just merged cosmetic changes from KAME to ease sync between KAME and FreeBSD.
(based on freebsd4-snap-20020128)

Reviewed by:	ume
MFC after:	1 week
2002-04-19 04:46:24 +00:00
Warner Losh 835284be37 Do some minor editing of the entires (the date of the smmsp user
wasn't April 4, but Feb 17th).  Update the updating proceedure to use
the new mergemaster -p flag.  Add a footnote telling users how to cope
if their mergemaster doesn't have a -p flag.
2002-04-19 04:22:35 +00:00
Alan Cox 92de35b0ce o Move the acquisition of Giant from vm_fault() to the point
after initialization in vm_fault1().
 o Fix some style problems in vm_fault1().
2002-04-19 04:20:31 +00:00
David E. O'Brien ccf3ce3e97 Move the sysV variable substitution up with the BSD feature that replaced it. 2002-04-19 04:08:35 +00:00
Alan Cox 3c3f826d7e o Remove vm_map_growstack() from ia64's trap_pfault().
o Remove the acquisition and release of Giant from ia64's trap_pfault().
   (vm_fault() still acquires it.)
2002-04-19 02:08:33 +00:00
Robert Watson 0a371dd9f3 Clean up usage message: don't put optional parameter's in brackets.
Update copyright date.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
Extracted from:	green
2002-04-19 01:42:55 +00:00
Jacques Vidrine e983a3762b When exec'ing a set[ug]id program, make sure that the stdio file descriptors
(0, 1, 2) are allocated by opening /dev/null for any which are not already
open.

Reviewed by:	alfred, phk
MFC after:	2 days
2002-04-19 00:45:29 +00:00
Søren Schmidt 091a610ac9 Fix the breakage of tagged queueing that the busdma integration
introduced. Since its now only possible to have one DMA control
block at a time, we move the setup to dmastart instead.
2002-04-18 19:11:45 +00:00
Maxime Henrion 7eab3d347b Add a reference to the kenv(2) manpage. 2002-04-18 18:49:41 +00:00
Dag-Erling Smørgrav 214f3239c0 Don't list pam_unix in the session chain, since it does not provide any
session management services.

Sponsored by:	DARPA, NAI Labs
2002-04-18 17:40:27 +00:00
Warner Losh bc123897ed De-__P, use ansi function definitions 2002-04-18 17:14:09 +00:00
Maxime Henrion 76b2224aad Connect the kenv.2 manpage to the build. 2002-04-18 16:46:23 +00:00
Maxime Henrion ccee6a3c72 Add a manpage for the kenv(2) syscall that Chad David kindly
wrote for me.

Submitted by:	davidc
2002-04-18 16:45:57 +00:00
Tom Rhodes 05a213f1e8 Fix the fdisk(8) manual page.
s/partition/slice/ in fdisk.8
fix a bug in fdisk(8) where it did not honer -t when using -I

PR:		36563 and 35688
Submitted by:	bde
Reviewed by:	bde
2002-04-18 16:25:18 +00:00
Dag-Erling Smørgrav e89a35d565 Back out previous commit, which was not at all approved by the maintainer
of this code.  I very much doubt that "the FreeBSD way" really means "make
it as unreadable and unmaintable as possible", and I would like Makefile
style (which is not currently documented anywhere except in the minds of
bde and ru) to be discussed and agreed upon in the appropriate forum
before any further commits of this kind happen.
2002-04-18 16:20:18 +00:00
Scott Long ce2d4dd7f1 Add the PCI ID for an upcoming variant of a soon-to-be released series of
cards.
2002-04-18 15:47:31 +00:00
David E. O'Brien 455e3a78bf This style is *way* outside the relm of any other of our Makefiles
(other than the single sys.mk).  Adjust to smell like FreeBSD.

Reviewed & prefered by:	bde
2002-04-18 15:13:06 +00:00
Alfred Perlstein 198d002e7b Cleanup comments.
Remove all current poll(2) extensions except POLLINIGNEOF as they are now
unused.

Submitted by: bde
2002-04-18 14:54:26 +00:00
Alfred Perlstein 5a6ce14c42 Remove support for using soon to be retired "special" poll(2) ops.
Replace with kevent(2) ops.

This is untested, but the code would rot even further if this wasn't
applied.  I've chosen to apply this to prompt some cleanup.

Submitted by: bde
2002-04-18 14:52:28 +00:00
Alfred Perlstein 7858dcd629 Cleanup of logic, flow and comments.
Submitted by: bde
2002-04-18 14:47:34 +00:00
Stephen McKay e3c5a44915 Work around an Intel 21143 chip bug.
Rev 1.56 of if_dc.c removed calls to mii_pollstat() from the dc_tick()
routine.  dc_tick() is called regularly to detect link up and link down
status, especially when autonegotiating.

The expectation was that mii_tick() (which is still called from dc_tick())
would update status information automatically in all cases where it would
be sensible to do so.

Unfortunately, with authentic 21143 chips this is not the case, and
the driver never successfully autonegotiates.  This is because (despite
what it says in the 21143 manual) the chip always claims that link is not
present while the autonegotiation enable bit is set.  Autonegotation takes
place and succeeds, but the driver tests the link bits before it switches
off the autonegotiation enable bit, and success is not recognised.

The simplest solution is to call dcphy_status() more often for MII_TICK
calls by dropping out of the switch statement instead of exiting when
we are autonegotiating and link appears to not be present.  When
autonegotiation succeeds, dcphy_status() will note the speed and fdx/hdx
state and turn off the autonegotiation enable bit.  The next call to
dcphy_status() will notice that link is present, and the dc driver code
will be notified.

Macronix chips also use this code, but implement link detection as
described in the manual, and hence don't need this patch.  However, tests
on a Macronix 98715AEC-C show that it does not adversely affect them.

This could be done better but is the minimal effective change, and most
closely mimics what was happening prior to rev 1.56 of if_dc.c.  (Actually
I also deleted a small amount of unnecessary code while I was in the area.)

Reviewed by:	wpaul
2002-04-18 14:40:20 +00:00
Ruslan Ermilov 8383349061 Removed gratuitous LIBCOMPATDIR assignments. 2002-04-18 13:24:35 +00:00
Bruce Evans fe3736d468 Fixed some style bugs:
- ifdefs around vendor sccsid were left reversed after switching to
  __FBSDID().
- vertical whitespace after some of the non-FALLTHROUGH cases was lost.
- too much vertical whitespace before prototypes.
2002-04-18 13:02:17 +00:00
Bruce Evans 7be9c056ce Backed out the style bugs in rev.1.17:
- don't use unusual indentation for 39 lines of declarations when only 2
  of the lines benefit from it.
- don't use __DECONST().  This was the one use of it in the tree, and it
  was just wrong.  It was used to hide the warning about tgetnum() having
  the wrong prototype (missing a `const') due to libncurses being
  misconfigured.  libncurses has been fixed, so the original code now
  compiles cleanly with WARNS=4.
2002-04-18 12:53:39 +00:00
Ruslan Ermilov 78257b6288 Do not reset MAKEFILE when reading ".depend" as this rather
eliminates the usefulness of ${MAKEFILE}.

Obtained from:	NetBSD
MFC after:	1 week
2002-04-18 12:04:34 +00:00
Ruslan Ermilov 5b3e868df5 Fixed bugs in previous revision:
Added NOOBJ if anyone even attempts to "make obj" here.
Revert to installing files with mode 644 except README.
Make this overall look like a BSD-style Makefile rather
than roll-your-own (this is not a bug).

For the record.  Previous revision also fixed the breakage
introduced by the sys.mk,v 1.60 commit: bsd.own.mk is no
longer automatically included from sys.mk.

Reported by:	jhay
2002-04-18 10:58:14 +00:00
Dag-Erling Smørgrav 8abb6072c1 Use ${FILES} and <bsd.prog.mk> rather than roll-your-own. 2002-04-18 10:07:36 +00:00
Ruslan Ermilov cf80b5b504 Optimize for i486 better (-m486 is just another deprecated
synonym for -mcpu=i486).

PR:		i386/37212
Submitted by:	Matthias Andree <matthias.andree@web.de>
MFC after:	3 days
2002-04-18 09:37:15 +00:00
Ruslan Ermilov 6106f3b274 Install bsd.init.mk.
Submitted by:	"Peter S. Housel" <housel@acm.org>
2002-04-18 07:10:39 +00:00
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