Commit graph

74176 commits

Author SHA1 Message Date
Poul-Henning Kamp d9fc2b816e Do not call nge_tick() if we get an PHY interrupt, nge_tick() calls
mii_tick() which should only be called once per second.

Our current MII/PHY state-engine is not able to deal with PHY
interrupts as far as I can tell, and most net drivers don't seem
to use the link/status change call-back mechanism.  It seems that
MII/PHY was orphaned before it grew up.
2002-05-04 11:15:33 +00:00
Poul-Henning Kamp 37c0fba7c4 Increase gigE negotiation timeout to 17 seconds.
10 seconds is not enough to negotiate a gigE link with a cisco switch which
holds carrier off for several seconds between tries.
2002-05-04 11:08:49 +00:00
Poul-Henning Kamp fd94424c78 Clean up mii/phy drivers: Remove the MIIF_DOINGAUTO which doesn't really
do anything at the end of the day except bloat the drivers which has
copy&pasted it.
2002-05-04 11:00:30 +00:00
Maxime Henrion 3203428dc5 Restore the minfree functionality into savecore. This patch
restores the check_space() function with small modifications
to make it work with the current code.  The patch was slightly
modified by Bill Fenner to handle error messages better.

Reviewed by:	fenner
2002-05-04 10:36:35 +00:00
Marcel Moolenaar 9a1bf46934 Make sure we don't index the pm_rid array out of bounds in
pmap_ensure_rid(). This can happen because the function is
called for both user and kernel addresses, while the rid array
only has room for user addresses. This bug got exposed by rev
1.58 of ia64/ia64/pmap.c and rev 1.8 of ia64/include/pmap.h.
2002-05-04 08:04:28 +00:00
Alfred Perlstein 698f85d3e3 style(9): 'if' and 'while' need a space after them. 2002-05-04 07:40:49 +00:00
Jonathan Mini 3c00eca519 Add myself.
Approved by:	alfred
2002-05-04 06:34:11 +00:00
Juli Mallett 9bf450b850 Grouping changes.
Submitted by:	Carl Schmidt <cschmidt@slackerbsd.org>
2002-05-04 06:00:19 +00:00
Juli Mallett 3dca1afc60 Don't use pointers as booleans. 2002-05-04 05:53:02 +00:00
Warner Losh ad1e033e00 Try to de-confuse ad-hoc, demo ad-hoc and ibss:
o Don't ever refer to ad-hoc mode in the raw.  Instead, refer to it as
  demo ad-hoc mode or lucent legacy demo ad-hoc or some variation on this
  theme.
o Talk about point-to-point modes rather than ad-hoc modes.  Use ibss where
  appropriate.
o Fix type IBBS -> IBSS
2002-05-04 04:59:20 +00:00
Jeff Roberson 5df148630f Include systm.h so panic(9) is defined when doing DEBUG_ALL_VFS_LOCKS. 2002-05-04 02:40:37 +00:00
Jeff Roberson 441271159e Include systm.h for panic(9) so that DEBUG_ALL_VFS_LOCKS compiles. 2002-05-04 02:37:00 +00:00
Jeff Roberson ef317162da include systm.h in vnode_if.c so that panic is defined when we're doing
DEBUG_ALL_VFS_LOCKS.
2002-05-04 02:35:13 +00:00
Alan Cox 8c5c5d049f o Remove GIANT_REQUIRED from vm_map_lookup_entry() and
vm_map_check_protection().
 o Call vm_map_check_protection() without Giant held in munmap().
2002-05-04 02:07:36 +00:00
Juli Mallett b6594dba8b Replace calloc(3) with malloc(3), and set the tail of the
argument list to NULL, to terminate the arguments passed
to execvp(2).

Thanks to:	bde (for pointing out some missing parens)

And with apologies to Ozzy Osbourne:

	On his way to dinner
	It took him by surprise
	When an email from bde
	Said his code was full of lies

	Style (indentation)
	And his bracing were all wrong
	He casted to size_t
	When he should have cast to long

	I don't mind

	Single letter identifiers
	Unwrapped Line
	Over 80 chars
	Far over 80 chars

	Who can we get to send diffs
	We need Bruce D. Evans
	Shows you comparason to his
	We need Bruce D. Evans again
2002-05-04 00:08:06 +00:00
Bruce A. Mah a39ed8234a em(4) updates. 2002-05-03 22:41:35 +00:00
Bruce A. Mah ca9bd723d3 New release notes: PCI_ENABLE_IO_MODES (+MFC), drm drivers,
csplit(1), mk_cmds(1) removal (+MFC), sysinstall(8) multi-volume
support (+MFC).

Modified release notes:  m4 20020426, OpenPAM Cinnamon.

Other MFCs noted:  CPU_ATHLON_SSE_HACK.

Un-MFC-ed:  Emphemeral port range change.
2002-05-03 22:18:30 +00:00
Maxim Konovalov cc37581539 style(9): sort includes, remove EOL spaces.
MFC after:	1 week
2002-05-03 21:03:37 +00:00
Poul-Henning Kamp 70e01b9a56 I have no idea how I managed to get two lines about geom in there... 2002-05-03 21:02:42 +00:00
Maxim Konovalov 021e53b8df wait(2) for compress_log() processes to complete before exit.
Spotted by:	Grigoriy Strokin <grg@isabase.philol.msu.ru>
Reviewed by:	-current
MFC after:	1 month
2002-05-03 20:53:37 +00:00
Juli Mallett a1269e01b8 Rename eqrelval' which was renamed from eqrel' to quiet a shadow warning
to `op' as suggested by Bruce, as this is used to store the operator between
vl and vr.

Submitted by:	bde
2002-05-03 20:46:10 +00:00
Robert Watson cc0e549485 Various updates to VOP_ATTRIB(9): mention locks being shared/exclusive
for VOP_GETATTR() and VOP_SETATTR(), reference VOP_NULL() to suggest
clearing all of *vap with it before setting specific values.  Cross
reference VFS(9).  Indicate that failure modes are possible from
VOP_GETATTR() and that an errno value is returned.

Submitted by:	Hiten Pandya <hiten@uk.FreeBSD.org>
2002-05-03 20:28:38 +00:00
Juli Mallett 38dff9a439 Fix a bug whereby we were getting ~0 and comparing it to maxsize, i.e. if
s1 was 0 length, and replstr was 0 length, etc., we would end up subtracting
one from zero and seeing if it was greater than the size_t (unsigned) var
maxsize...  This would cause us to return a string consisting of essentially
only match, which is not the right behaviour if we have 0 length inpline.
2002-05-03 19:45:41 +00:00
Juli Mallett de8541ffe6 Add a test for the -R option. 2002-05-03 18:44:43 +00:00
Poul-Henning Kamp 1ed91802ee HPFS picks up the vop_stdgetpages and vop_stdputpages member functions
via the default entry and the default vop vector.
2002-05-03 18:23:29 +00:00
Warner Losh 0801cb6b0e Minor tweaks:
o go ahead and document ibss-master and ibss modes, since there are
	  patches in the pipeline to support them.
	o Note that they aren't implemented yet.
	o Note that different regulatory domains have different default
	  channels.
	o Note that Lucent cards prior to firmware 6.0.4 do not support
	  ibss mode, and only support the older demo ad-hoc mode.
	o Note that PRISM2 chipsets do not support WDS mode of operation
	  (the mysterious -p 2 option).
2002-05-03 18:11:17 +00:00
Juli Mallett ea0b7a7699 Typo fix: detects -> detect.
Reviewed by:	phk
2002-05-03 17:59:25 +00:00
Poul-Henning Kamp 9589c2561c Fix a memory-leak when configuring a vnode backed md(4) device fails.
Submitted by:	Martin Faxér <gmh003532@brfmasthugget.se>
MFC after:	4 weeks
2002-05-03 17:55:10 +00:00
Juli Mallett 263dc775f2 Move substitution out to a function, prerun(), and replace use of run() with
it.  It handles everything (right now) that needs done before run(), except
the -J case, because while that would be easy, I don't quite understand -J.

Reviewed by:	src/tools/regression/usr.bin/xargs
2002-05-03 17:41:54 +00:00
Garrett Wollman 0d84b47e9c Fix fd leak. Threads people: does the call above to `access' need to be
underscored as well?

PR:		37717
Submitted by:	fred@clift.org (slightly modified by me)
2002-05-03 17:28:28 +00:00
Juli Mallett b9b03ba0bc Get rid of bogus holder for realloc(3). 2002-05-03 17:13:29 +00:00
Juli Mallett 1925cb245c Rewrite the loop that handles substitution in the -I case, and try to make
it easier to understand.  Making it easy to understand isn't all that easy,
so litter the code with comments so some other poor soul can come along some
day and work on this if they see fit to do so.  Avoid calling strlen(3) to
check for a nil-string, when we can just check for *str=='\0'.

Approved by:    src/tools/regression/usr.bin/xargs/
2002-05-03 17:05:25 +00:00
Juli Mallett 4f49da74db Rename lflag' to Lflag' to match the option's case. 2002-05-03 16:32:03 +00:00
Dag-Erling Smørgrav d95ec55335 s/pfs_badop/vop_eopnotsupp/
Submitted by:	phk
2002-05-03 14:58:25 +00:00
Juli Mallett d7a43b245d Revert revision 1.22. I incorrectly modified the Berkeley identifiers.
Requested by:	bde, mike
2002-05-03 14:50:31 +00:00
Juli Mallett 90432ef88d Revert vendor identifiers, and #if 0 what is #if 0/#else for OpenBSD.
Add __FBSDID() properly.

Requested by:	bde, mike
2002-05-03 14:48:21 +00:00
Juli Mallett af2c59f62e Regenerate -I output since an argument bogon in the -I code was fixed, among
other things.
2002-05-03 14:31:28 +00:00
Dag-Erling Smørgrav d6551d89a2 Unbreak static build and remove usage() that isn't usage().
Reviewed by:	bde
2002-05-03 13:12:06 +00:00
Dag-Erling Smørgrav 6f610f13c7 This commit was generated by cvs2svn to compensate for changes in r95978,
which included commits to RCS files with non-trunk default branches.
2002-05-03 12:56:29 +00:00
Dag-Erling Smørgrav c495750164 Initialize other to all-zeroes before using it (perforce change 10738) 2002-05-03 12:56:29 +00:00
Poul-Henning Kamp 48e5da550a Initialize time_second to 1 instead of zero to pacify slightly bogus arp code.
Various minor style fixes from BDE.
2002-05-03 08:46:03 +00:00
Poul-Henning Kamp 9ebe64ca1b Don't grab the lock until somewhat later in attach to avoid a lock
reversal.
2002-05-03 08:44:53 +00:00
Poul-Henning Kamp afe564a200 Name ufs_vop_[gs]etextattr() consistently with the rest of our VOPs and
put then in the ufs_vnops where they belong, rather than in the ffs_vnops.

Ok'ed by:	rwatson
Sponsored by:	DARPA & NAI Labs.
2002-05-03 08:40:33 +00:00
Seigo Tanimura 6041fa0a60 As malloc(9) and free(9) are now Giant-free, remove the Giant lock
across malloc(9) and free(9) of a pgrp or a session.
2002-05-03 07:46:59 +00:00
Seigo Tanimura 5cbc7077cb The first argument of pgsigio() is now struct sigio **. 2002-05-03 07:45:26 +00:00
Warner Losh a4b3d9067b Remove Apple Airport card, since it seems to be mac-only.
Change date to today.
Add socket low power WLAN CF card
Add SMC 2602W which I use all the time
Comment out the create-ibss example.  FreeBSD doesn't yet have that
media option.  Also change it to master-ibss since that's what OpenBSD
really uses (and that is a change in their man page too)
2002-05-03 05:47:38 +00:00
Warner Losh 57190641c0 Additional patches from OpenBSD. Mostly grammar fixes and the like,
however I'm adding the Dlink DWL520 as supported from OpenBSD.  Also
adding Dlink DWL650 since I have one in my hot little hands and it
works great.

# I suspect that OpenBSD needs this too :-)
2002-05-03 05:39:16 +00:00
Seigo Tanimura c8d8a686e4 Fix the lock order reversal between the sigio lock and a process/pgrp lock in
funsetownlst() by locking the sigio lock across funsetownlst().
2002-05-03 05:32:25 +00:00
Marcel Moolenaar cb5e1f4f73 Adjust KINFO_PROC_SIZE due to segsz_t being changed from a 32-bit to
a 64-bit integral.
2002-05-03 01:41:37 +00:00
Peter Wemm 81fb684cc3 Pre-generate the optimized x86 crypto code and check it in rather than
depending on perl at build time.  Makefile.asm is a helper for after the
next import.

With my cvs@ hat on, the relatively small repo cost of this is acceptable,
especially given that we have other (much bigger) things like
lib*.so.gz.uu checked in under src/lib/compat/*.

Reviewed by:	kris (maintainer)
2002-05-03 00:14:39 +00:00