]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agodon't see NBPFILTER.
Hajimu UMEMOTO [Tue, 11 Jan 2005 07:17:33 +0000 (07:17 +0000)]
don't see NBPFILTER.

19 years agoremove HAVE_OLD_BPF part.
Hajimu UMEMOTO [Tue, 11 Jan 2005 07:14:37 +0000 (07:14 +0000)]
remove HAVE_OLD_BPF part.

19 years agowe are not OLD_BPF system.
Hajimu UMEMOTO [Tue, 11 Jan 2005 07:08:15 +0000 (07:08 +0000)]
we are not OLD_BPF system.

19 years agofix typo.
Hajimu UMEMOTO [Tue, 11 Jan 2005 07:05:56 +0000 (07:05 +0000)]
fix typo.

19 years agoAdd a few cards from NetBSD. They don't work yet, since the code to
Warner Losh [Tue, 11 Jan 2005 06:48:38 +0000 (06:48 +0000)]
Add a few cards from NetBSD.  They don't work yet, since the code to
read the ethernet address from the attribute space hasn't been
implemented.  Also add flags for the MBH10302.  The flags and maddr
fields will be used when reading from the attribute space...

19 years agoUse the standard FreeBSD license
Warner Losh [Tue, 11 Jan 2005 06:24:40 +0000 (06:24 +0000)]
Use the standard FreeBSD license

19 years agonits
Warner Losh [Tue, 11 Jan 2005 06:22:48 +0000 (06:22 +0000)]
nits

19 years agoRemove a.out runtime linker. It doesn't build and was removed from the
Tom Rhodes [Tue, 11 Jan 2005 06:15:19 +0000 (06:15 +0000)]
Remove a.out runtime linker.  It doesn't build and was removed from the
build over two years ago by peter.

The binary a.out version of ld.so can be obtained from misc/compat22 or
src/lib/compat/compat22.

Discussed on: -arch
Voted yes: jhb, ru, linimon, delphij

19 years agoThe card activation failured message is lame, and not done for other
Warner Losh [Tue, 11 Jan 2005 05:38:01 +0000 (05:38 +0000)]
The card activation failured message is lame, and not done for other
busses, nor for the 16-bit cards.  Eliminate it.

19 years ago/* -> /*- for a second clause
Warner Losh [Tue, 11 Jan 2005 05:34:14 +0000 (05:34 +0000)]
/* -> /*- for a second clause

19 years agoUse the FreeBSD standard license, since there's no reason to use the
Warner Losh [Tue, 11 Jan 2005 05:33:18 +0000 (05:33 +0000)]
Use the FreeBSD standard license, since there's no reason to use the
version I have here.

19 years agoKAME-IPSEC has already supports TCP_SIGNATURE(IPv4)
SUZUKI Shinsuke [Tue, 11 Jan 2005 04:24:17 +0000 (04:24 +0000)]
KAME-IPSEC has already supports TCP_SIGNATURE(IPv4)

19 years agoThere are no PC98 amd64 machines, so gc a few stray ifdefs.
Warner Losh [Tue, 11 Jan 2005 03:44:17 +0000 (03:44 +0000)]
There are no PC98 amd64 machines, so gc a few stray ifdefs.

19 years agoWhile we want the recursion protection for the bucket zones so that
Bosko Milekic [Tue, 11 Jan 2005 03:33:09 +0000 (03:33 +0000)]
While we want the recursion protection for the bucket zones so that
recursion from the VM is handled (and the calling code that allocates
buckets knows how to deal with it), we do not want to prevent allocation
from the slab header zones (slabzone and slabrefzone) if uk_recurse is
not zero for them.  The reason is that it could lead to NULL being
returned for the slab header allocations even in the M_WAITOK
case, and the caller can't handle that (this is also explained in a
comment with this commit).

The problem analysis is documented in our mailing lists:
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=153445+0+archive/2004/freebsd-current/20041231.freebsd-current

(see entire thread for proper context).

Crash dump data provided by: Peter Holm <peter@holm.cc>

19 years agoAdjust the mail reject output so that it gives an abreviated reason for the
Brian Somers [Tue, 11 Jan 2005 02:08:53 +0000 (02:08 +0000)]
Adjust the mail reject output so that it gives an abreviated reason for the
reject.  For example:

Checking for rejected mail hosts:
  48 getherbalnow.info (451... resolve)
  46 absorb.com (451... resolve)
   4 tgmart01.codns.com (553... exist)
   3 kali.com.cn (451... resolve)
   2 genie.com (451... resolve)
   1 zv.qy (553... exist)
   1 zd.hinet.hr (553... exist)
   ....

The bit in parenthesis is the reject code and the last word on the line -
enough to give the admin a better chance of seeing real problems (hopefully!).

While I'm here, remove the "<" at the start of rejects coming from "from"
addresses without a name@ part.

I had to rewrite the patch given by the submitter as this script has been
sed'ified (used to be perl) and I think the reject code is useful....

PR: 17377
Idea from: root at ns dot internet dot dk
MFC after: 7 days

19 years agoCollapse "fgrep | egrep | sed" down to a single sed.
Brian Somers [Tue, 11 Jan 2005 01:47:44 +0000 (01:47 +0000)]
Collapse "fgrep | egrep | sed" down to a single sed.

This also trims extraneous commas from domain names.

MFC after: 7 days

19 years agoMake default RFCOMM session MTU match default L2CAP MTU.
Maksim Yevmenkin [Tue, 11 Jan 2005 01:39:53 +0000 (01:39 +0000)]
Make default RFCOMM session MTU match default L2CAP MTU.

This is just a workaround for a know problem with Motorola E1000
phone. Something is wrong with the configuration of L2CAP/RFCOMM
channel. Even though we set L2CAP MTU to 132 bytes (default RFCOMM
MTU 127 + 5 bytes RFCOMM frame header) and the phone accepts it,
the phone still sends oversized L2CAP packets. It appears that the
phone wants to use bigger (667 bytes) RFCOMM frames, but it does
not segment them according to the configured L2CAP MTU. The 667
bytes RFCOMM frame size corresponds to the default L2CAP MTU of
672 bytes (667 + 5 bytes RFCOMM frame header).

This problem only appears if connection was initiated from the
phone. I'm not sure who is at fault here, so for now just put
workaround in place. Quick look at the spec did not reveal any
anwser.

Tested by: Jes < jjess at freebsd dot polarhome dot com >
MFC after: 3 days

19 years agoFinal attempt to make aha 1542A working. If not, oh well, I don't
Warner Losh [Tue, 11 Jan 2005 01:17:07 +0000 (01:17 +0000)]
Final attempt to make aha 1542A working.  If not, oh well, I don't
have the card and no way to reproduce problems.  We do this by
applying the workaround to firmware revsion 0.

PR: 14334

19 years agopuc handles this card, so remove it from here.
Warner Losh [Tue, 11 Jan 2005 00:53:58 +0000 (00:53 +0000)]
puc handles this card, so remove it from here.

PR: 48468

19 years agoAnother prism2 card (not sure what, if anything, is needed for >=5)
Warner Losh [Tue, 11 Jan 2005 00:40:00 +0000 (00:40 +0000)]
Another prism2 card (not sure what, if anything, is needed for >=5)

Pr: 43805

19 years agoProperly calculate the offset in mapping the memory of pccards. This
Warner Losh [Tue, 11 Jan 2005 00:32:43 +0000 (00:32 +0000)]
Properly calculate the offset in mapping the memory of pccards.  This
allows my 3com cards to work again.  It appears that this code was
once there, but I removed it when I added the alignment issues.

MFC After: 5 days
PR: 70639 (and likely others)

19 years ago1. s/women/woman/ when the singular is intended
Doug Barton [Tue, 11 Jan 2005 00:25:38 +0000 (00:25 +0000)]
1. s/women/woman/ when the singular is intended
2. Remove some duplicates
3. Slightly improve a punch line, "and then cut off her head"
instead of "and cut her head off."

19 years agoAdd support for ptrace() and gdb breakpoints.
Olivier Houchard [Mon, 10 Jan 2005 22:43:16 +0000 (22:43 +0000)]
Add support for ptrace() and gdb breakpoints.

19 years agoDon't assume pmap_update() will cpwait for us, pmap_update will disappear soon.
Olivier Houchard [Mon, 10 Jan 2005 22:41:08 +0000 (22:41 +0000)]
Don't assume pmap_update() will cpwait for us, pmap_update will disappear soon.

19 years agoISO C requires at least one element in an initialiser list.
Stefan Farfeleder [Mon, 10 Jan 2005 20:30:04 +0000 (20:30 +0000)]
ISO C requires at least one element in an initialiser list.

19 years agoBump WARNS to 4 as this seems OK on the alpha now.
David Malone [Mon, 10 Jan 2005 20:22:37 +0000 (20:22 +0000)]
Bump WARNS to 4 as this seems OK on the alpha now.

19 years agoCast size_t to off_t before adding them to avoid warnings on the alpha.
David Malone [Mon, 10 Jan 2005 20:19:46 +0000 (20:19 +0000)]
Cast size_t to off_t before adding them to avoid warnings on the alpha.
Use %ld and intmax_t for printing an off_t.

19 years agoSome variables became unused or global in the last change to this
David Malone [Mon, 10 Jan 2005 20:16:08 +0000 (20:16 +0000)]
Some variables became unused or global in the last change to this
file. Remove the now redundant declarations.

Add declarations for the new show and set_events functions and make
them static.

19 years agoForgot to submit a fixed version of this script to Simon.
Ruslan Ermilov [Mon, 10 Jan 2005 18:54:55 +0000 (18:54 +0000)]
Forgot to submit a fixed version of this script to Simon.

19 years agoAdd support files for using text from the POSIX specification in
Simon L. B. Nielsen [Mon, 10 Jan 2005 18:09:17 +0000 (18:09 +0000)]
Add support files for using text from the POSIX specification in
FreeBSD manual pages:

- POSIX-copyright contains copyright text to be used in manual pages
  which has POSIX text inserted.
- deshallify.sh is a shell script which removes many of the ``shall''
  statements from the POSIX text and therefore making the text more
  readable.

Real work to make this happen by: nectar, ru

19 years agomdoc style nit: "\-" should only be used to represent a minus sign.
Giorgos Keramidas [Mon, 10 Jan 2005 16:31:39 +0000 (16:31 +0000)]
mdoc style nit: "\-" should only be used to represent a minus sign.

Suggested by: ru

19 years agoScheduled mdoc(7) sweep.
Ruslan Ermilov [Mon, 10 Jan 2005 16:17:34 +0000 (16:17 +0000)]
Scheduled mdoc(7) sweep.

19 years ago/usr/lib doesn't contain only archive (ar(1) style) libraries. Shared
Giorgos Keramidas [Mon, 10 Jan 2005 16:06:13 +0000 (16:06 +0000)]
/usr/lib doesn't contain only archive (ar(1) style) libraries.  Shared
libraries live there too.  Also point to ar(1) which contains a nice
description of what an 'archive library' is.

PR: docs/76056
Submitted by: Enrique Matías Sanchez <cronopios@gmail.com>
MFC after: 3 days

19 years agowhitespace
Poul-Henning Kamp [Mon, 10 Jan 2005 13:09:33 +0000 (13:09 +0000)]
whitespace

19 years agofixed an unexpected addr/port matching failure in IPv6 SA management
SUZUKI Shinsuke [Mon, 10 Jan 2005 13:06:42 +0000 (13:06 +0000)]
fixed an unexpected addr/port matching failure in IPv6 SA management

PR: kern/72393
MFC after: 3 days

19 years agoMake life for owners of Synaptics Touchpads more pleasant :-)
Philip Paeps [Mon, 10 Jan 2005 13:05:58 +0000 (13:05 +0000)]
Make life for owners of Synaptics Touchpads more pleasant :-)

 o Implement a shiny new algorithm to keep track of finger movement at
   slow speeds.  This dramatically reduces the level of questionable
   language from users trying to resize windows.

 o Properly catch the many extra buttons and dials which manufacturers
   are known to screw onto Synaptics touchpad controllers.  Currently,
   up to seven buttons are known to work, more should work too.

 o Add a number of sysctls allowing one to tune the driver to taste in
   a simple way:

     # Should the extra buttons act as axes or as middle button
     hw.psm.synaptics.directional_scrolls

     # These control the 'stickiness' at low speeds
     hw.psm.synaptics.low_speed_threshold
     hw.psm.synaptics.min_movement
     hw.psm.synaptics.squelch_level

PR: kern/75725
Submitted by: Jason Kuri <jay@oneway.com>
MFC after: 1 month

19 years agoReplace err(3) calls when in daemon mode by syslog(3), too.
Yaroslav Tykhiy [Mon, 10 Jan 2005 12:19:11 +0000 (12:19 +0000)]
Replace err(3) calls when in daemon mode by syslog(3), too.
A daemon has no stderr to send its complains to.

Pointed out by: Nick Leuta
MFC after: 1 week

19 years agoCorrect two typos in almost identical fortunes.
Jens Schweikhardt [Mon, 10 Jan 2005 12:03:32 +0000 (12:03 +0000)]
Correct two typos in almost identical fortunes.

19 years agoUse the standard BSD copyright as per OpenBSD and /sys/net/slcompress*
Brian Somers [Mon, 10 Jan 2005 11:47:17 +0000 (11:47 +0000)]
Use the standard BSD copyright as per OpenBSD and /sys/net/slcompress*

19 years agoCast unsigned variables to int
Brian Somers [Mon, 10 Jan 2005 11:12:36 +0000 (11:12 +0000)]
Cast unsigned variables to int

19 years agoifr_flagshigh is FreeBSD specific
Brian Somers [Mon, 10 Jan 2005 11:12:10 +0000 (11:12 +0000)]
ifr_flagshigh is FreeBSD specific

19 years agoinclude "alias.h", not <alias.h>
Brian Somers [Mon, 10 Jan 2005 10:54:06 +0000 (10:54 +0000)]
include "alias.h", not <alias.h>

MFC after: 3 days

19 years agoInitialize "he" in DoFile, so savecore(8) is WARNS=6 clean.
Xin LI [Mon, 10 Jan 2005 10:44:56 +0000 (10:44 +0000)]
Initialize "he" in DoFile, so savecore(8) is WARNS=6 clean.
Bump WARNS accordingly.

19 years agoReimplement the fix in rev. 1.126.
Ruslan Ermilov [Mon, 10 Jan 2005 09:56:47 +0000 (09:56 +0000)]
Reimplement the fix in rev. 1.126.

OK'ed by: phk

19 years agoIntegrate some OpenBSD alignment fixes. This hopefully also fixes PR 38058...
Brian Somers [Mon, 10 Jan 2005 09:48:51 +0000 (09:48 +0000)]
Integrate some OpenBSD alignment fixes.  This hopefully also fixes PR 38058...

Obtained from: Brad <brad@comstyle.com>

19 years agodon't pollute global namespace with valid_Ether_p, instead, prepend
Warner Losh [Mon, 10 Jan 2005 09:29:48 +0000 (09:29 +0000)]
don't pollute global namespace with valid_Ether_p, instead, prepend
fe_ to it.

19 years ago- add the Eagle Tech NE200T
Christian Brueffer [Mon, 10 Jan 2005 09:18:09 +0000 (09:18 +0000)]
- add the Eagle Tech NE200T
- bump .Dd

19 years agoUnbreak the install.
Ruslan Ermilov [Mon, 10 Jan 2005 09:04:13 +0000 (09:04 +0000)]
Unbreak the install.

19 years ago/*- or .\"- or #- to begin license clauses.
Warner Losh [Mon, 10 Jan 2005 08:39:26 +0000 (08:39 +0000)]
/*- or .\"- or #- to begin license clauses.

19 years agoFinish removal of matcd
Warner Losh [Mon, 10 Jan 2005 08:37:01 +0000 (08:37 +0000)]
Finish removal of matcd

19 years agoRemove the clause 3, per berkeley and mail from rwatson representing
Warner Losh [Mon, 10 Jan 2005 08:21:45 +0000 (08:21 +0000)]
Remove the clause 3, per berkeley and mail from rwatson representing
that nai was OK with all third clause removals.

19 years agoNE200 -> NE200T
Warner Losh [Mon, 10 Jan 2005 08:08:30 +0000 (08:08 +0000)]
NE200 -> NE200T

19 years agoTweaks to the name of this card, based on input from Sean Shapira.
Warner Losh [Mon, 10 Jan 2005 08:07:41 +0000 (08:07 +0000)]
Tweaks to the name of this card, based on input from Sean Shapira.

19 years agoRemove matcd. It isn't in the build, has issues and can be retired.
Warner Losh [Mon, 10 Jan 2005 08:00:14 +0000 (08:00 +0000)]
Remove matcd.  It isn't in the build, has issues and can be retired.

Submitted by: trhodes (the real one)
Approved by: core, mdodd, uhclem

19 years agosort more things alphabetically
Warner Losh [Mon, 10 Jan 2005 05:11:40 +0000 (05:11 +0000)]
sort more things alphabetically

19 years agolibarchive does much more than just tar ;-)
Tim Kientzle [Mon, 10 Jan 2005 05:11:15 +0000 (05:11 +0000)]
libarchive does much more than just tar ;-)

19 years agoSort entries.
Warner Losh [Mon, 10 Jan 2005 04:40:23 +0000 (04:40 +0000)]
Sort entries.
Remove a couple of 'card' lines that were somehow missed when OLDCARD was
desupported.

19 years agoSort entires better.
Warner Losh [Mon, 10 Jan 2005 04:38:58 +0000 (04:38 +0000)]
Sort entires better.

19 years agoAdd support for:
Warner Losh [Mon, 10 Jan 2005 03:48:17 +0000 (03:48 +0000)]
Add support for:
fe1: <EAGLE Technology NE200 ETHERNET LAN MBH10302  04>

As reported by Sean Shapira.  This appears to be working.  Eagle used
Fujitsu's vendor number, with a product number of 4 (which is the same
as the vendor number, which is a little suspect).  Since there's no
apparent conflict, go ahead and use it.

Submitted by: Sean Shapira

19 years agoAdd Eagle NE200 Ethernet LAN MBH10302 card. This appears to be a fe
Warner Losh [Mon, 10 Jan 2005 03:45:21 +0000 (03:45 +0000)]
Add Eagle NE200 Ethernet LAN MBH10302 card.  This appears to be a fe
card, and works with that driver.  However, Eagle is using Fujitsu's
vendor number and a product code of 4, which seems a little odd.
Still, there's no conflicts...

19 years agoFree the shared devq last since CAM expects it to be there if
Doug White [Mon, 10 Jan 2005 02:34:26 +0000 (02:34 +0000)]
Free the shared devq last since CAM expects it to be there if
xpt_alloc_device() gets called, which can happen during detach in
certain situations. Fixes module unload.

MFC after: 3 days

19 years agoWording nit.
Tom Rhodes [Mon, 10 Jan 2005 00:35:54 +0000 (00:35 +0000)]
Wording nit.

19 years agofix a "little-endian-big-endian confusion that luckily:
Julian Elischer [Sun, 9 Jan 2005 23:49:45 +0000 (23:49 +0000)]
fix a "little-endian-big-endian confusion that luckily:
1/ doesn't matter on most of our architectures
2/ will never happen unless we start queueing multiple trasactions
to a single endpoint at one time (which we do not allow yet).
If anyone has a big_endian machine with EHCI they might check this
if they are having problems with EHCI but it's unlikely even there..

Submitted by: Hans Petter Selasky <hselasky@c2i.net>
MFC after: 3 days

19 years agoCosmetic typo in check_pidfile()
Giorgos Keramidas [Sun, 9 Jan 2005 23:46:37 +0000 (23:46 +0000)]
Cosmetic typo in check_pidfile()

PR: bin/75946
Submitted by: zero@gddn.org (Finn)

19 years agoOnly update the boot sector when there is a valid drive number provided.
Peter Edwards [Sun, 9 Jan 2005 23:30:35 +0000 (23:30 +0000)]
Only update the boot sector when there is a valid drive number provided.
(After squeezing a few more bytes out of boot0)

Discussed With: jhb, julian
PR: 66248
Submitted By: Hans Petter Selasky
MFC After: 1 week

19 years agoFix typos and add .Pp after the end of a display to separate the
Giorgos Keramidas [Sun, 9 Jan 2005 22:49:24 +0000 (22:49 +0000)]
Fix typos and add .Pp after the end of a display to separate the
displayed text from the paragraph right after it.

19 years agoIn my last commit, I'd assumed that LINE30 was always defined. It
Warner Losh [Sun, 9 Jan 2005 22:17:39 +0000 (22:17 +0000)]
In my last commit, I'd assumed that LINE30 was always defined.  It
turns out that LINE30_ROW was always defined, not LINE30.  I confused
this for LINE30 and did the unifdef -DLINE30 using that mistaken
belief.  This corrects that problem.

Submitted by: nyan-san

19 years agoRemove the meteor helper files, imp removed the driver and manual page
Tom Rhodes [Sun, 9 Jan 2005 21:21:25 +0000 (21:21 +0000)]
Remove the meteor helper files, imp removed the driver and manual page
over a year ago.

19 years agocorrect direction for bus_dma sync of rx buffer
Sam Leffler [Sun, 9 Jan 2005 19:57:55 +0000 (19:57 +0000)]
correct direction for bus_dma sync of rx buffer

Submitted by: Tai-hwa Liang

19 years agoScheduled mdoc(7) sweep.
Ruslan Ermilov [Sun, 9 Jan 2005 19:54:23 +0000 (19:54 +0000)]
Scheduled mdoc(7) sweep.

19 years agoDon't panic when we're asked to allocate a resource type that we know
Marcel Moolenaar [Sun, 9 Jan 2005 18:58:08 +0000 (18:58 +0000)]
Don't panic when we're asked to allocate a resource type that we know
won't exist for EBus. Just fail the allocation by returning NULL.
Now drivers that are MI can try resources that the driver knows may
be used by the device.

19 years agoUse uint32_t instead of u_long when appropriate.
Olivier Houchard [Sun, 9 Jan 2005 17:42:03 +0000 (17:42 +0000)]
Use uint32_t instead of u_long when appropriate.
That's enough to make my bt848 work on amd64.

MFC after: 1 week

19 years agoIncrease default synchronization speed.
Pawel Jakub Dawidek [Sun, 9 Jan 2005 14:43:39 +0000 (14:43 +0000)]
Increase default synchronization speed.

MFC after: 3 days

19 years agoRevert previous revision. Including bsd.compat.mk is necessary
Ruslan Ermilov [Sun, 9 Jan 2005 12:55:47 +0000 (12:55 +0000)]
Revert previous revision.  Including bsd.compat.mk is necessary
both from sys.mk (to handle old knobs set in /etc/make.conf),
and from here (to handle old knobs set in individual makefiles).

19 years agoo Make telnet[d] -S (IP TOS) flag really work. We do not have
Maxim Konovalov [Sun, 9 Jan 2005 10:24:46 +0000 (10:24 +0000)]
o Make telnet[d] -S (IP TOS) flag really work.  We do not have
/etc/iptos implementation so only numeric values supported.

o telnetd.8: steal the -S flag description from telnet.1, bump
the date of the document.

MFC after: 6 weeks

19 years agoFix build on all (hopefully) 64 bit architectures.
Tom Rhodes [Sun, 9 Jan 2005 09:10:24 +0000 (09:10 +0000)]
Fix build on all (hopefully) 64 bit architectures.

Noticed by: tinderbox
Tested on: panther

19 years agoMark the IPX netisr as MPSAFE so that inbound IPX traffic is processed
Robert Watson [Sun, 9 Jan 2005 07:34:55 +0000 (07:34 +0000)]
Mark the IPX netisr as MPSAFE so that inbound IPX traffic is processed
without Giant, and can be directly dispatched in the ithread when
net.isr.enable is turned on.

MFC after: 4 weeks

19 years agoRecent changes have locked down most of the highly dynamic data
Robert Watson [Sun, 9 Jan 2005 05:34:37 +0000 (05:34 +0000)]
Recent changes have locked down most of the highly dynamic data
structures in IPX/SPX -- primarily, sequence numbering, PCB lists,
and PCBs for IPX raw sockets, IPX datagram sockets, and IPX/SPX.
As such, remove remove NET_NEEDS_GIANT() for IPX, and remove the
assertion of Giant in the ipxintr() IPX input path.

Note that IPX/SPX is not fully MPSAFE, and that there are some
problems with IPX/SPX locking that will require some further work.
However, it is now safe enough to run in general without the Giant
lock.

MFC after: 4 weeks

19 years agoUse the IPX PCB list mutex and IPX PCB mutexes to lock down the SPX
Robert Watson [Sun, 9 Jan 2005 05:31:16 +0000 (05:31 +0000)]
Use the IPX PCB list mutex and IPX PCB mutexes to lock down the SPX
portion of IPX/SPX:

- Protect IPX PCB lists with the IPX PCB list mutex, in particular
  when calling PCB and PCB list manipulation routines in ipx_pcb.c.
- Protect both IPX PCB state and SPX PCB state using the IPX PCB
  mutex.
- Generally annotate locking, as well as adding liberal use of lock
  assertions to document locking requirements.
- Where possible, use unlocked reads when reading integer or smaller
  sized socket options on SPX sockets.
- De-spl throughout.

Notes:

- spx_input() expects both the list mutex and PCB mutex to be held
  on entry, but will release both on return.  Because sonewconn() is
  called from spx_input(), it may actually drop one PCB lock and
  acquire another during generation of a new connection, meaning the
  caller is not in a position to unlock the PCB mutex.

MFC after: 3 weeks

19 years agoClean up return handling for a number of SPX-related routines that
Robert Watson [Sun, 9 Jan 2005 05:25:02 +0000 (05:25 +0000)]
Clean up return handling for a number of SPX-related routines that
were derived from more complex TCP versions of the same:

- spx_close(), spx_disconnect(), spx_drop(), and spx_usrclosed() all
  always free's the spxpcb invalidating the argument, so a return
  value is not required to indicate if it has.
- Annotate that the cb arguments to each of these functions is
  invalidated via a comment.
- When tearing down a pcb due to sonewconn() having failed, mark the
  cb as NULL; later, when deciding whether to store trace information
  due to SO_DEBUG, check that cb is not NULL before dereferencing or
  a NULL pointer dereference may occur.

MFC after: 3 weeks

19 years agoProtect ipx_pexseq with the IPX PCB list mutex.
Robert Watson [Sun, 9 Jan 2005 05:15:59 +0000 (05:15 +0000)]
Protect ipx_pexseq with the IPX PCB list mutex.

When processing socket options against IPX PCBs, generally protect
PCB fields using the IPX PCB mutex.  Where possible, use unlocked
reads on integer values to avoid locking overhead.

MFC after: 3 weeks

19 years agoAcquire or assert the IPX PCB list lock or IPX PCB lock during various
Robert Watson [Sun, 9 Jan 2005 05:13:14 +0000 (05:13 +0000)]
Acquire or assert the IPX PCB list lock or IPX PCB lock during various
protocol methods relating to IPX.  Conditionally acquire the PCB list
lock in the send operation only if the socket requires binding in order
to use the requested address.

Remove spl's generally no longer required during these accesses.

MFC after: 3 weeks

19 years agoAssert or acquire the IPX PCB list lock or IPX PCB locks throughout
Robert Watson [Sun, 9 Jan 2005 05:10:43 +0000 (05:10 +0000)]
Assert or acquire the IPX PCB list lock or IPX PCB locks throughout
the IPX-related PCB routines.  In general, the list lock is required
to iterate the PCB list, either for read or write; the PCB lock is
required to access or modify a PCB.  To change the binding of a PCB,
both locks must be held.

MFC after: 3 weeks

19 years agoHold the IPX PCB mutex around calls to ipx_input() in the IPX input
Robert Watson [Sun, 9 Jan 2005 05:08:47 +0000 (05:08 +0000)]
Hold the IPX PCB mutex around calls to ipx_input() in the IPX input
path.

MFC after: 3 weeks

19 years agoHold the global IPX PCB list mutex in the IPX input path when walking
Robert Watson [Sun, 9 Jan 2005 05:06:19 +0000 (05:06 +0000)]
Hold the global IPX PCB list mutex in the IPX input path when walking
the IPX PCB list.

MFC after: 3 weeks

19 years agoIntroduce a global mutex, ipxpcb_list_mtx, to protect the global
Robert Watson [Sun, 9 Jan 2005 05:00:41 +0000 (05:00 +0000)]
Introduce a global mutex, ipxpcb_list_mtx, to protect the global
IPX PCB lists.  Add macros to initialize, destroy, lock, unlock,
and assert the mutex.  Initialize the mutex when IPX is started.

Add per-IPX PCB mutexes, ipxp_mtx in struct ipxpcb, to protect
per-PCB IPX/SPX state.  Add macros to initialize, destroy, lock,
unlock, and assert the mutex.  Initialize the mutex when a new
PCB is allocated; destroy it when the PCB is free'd.

MFC after: 2 weeks

19 years agoIn ipx_setsockaddr(), use M_WAITOK instead of M_NOWAIT so that the
Robert Watson [Sun, 9 Jan 2005 04:47:42 +0000 (04:47 +0000)]
In ipx_setsockaddr(), use M_WAITOK instead of M_NOWAIT so that the
call always succeeds, avoiding causing the caller to return success
even though the returned *sockaddr is NULL.

MFC after: 2 weeks

19 years agoEliminate jump to 'bad' label in order to clean up the ipx_input()
Robert Watson [Sun, 9 Jan 2005 04:39:16 +0000 (04:39 +0000)]
Eliminate jump to 'bad' label in order to clean up the ipx_input()
return/unwind path for locking work.

MFC after: 2 weeks

19 years agoImplement rpmatch(), a semi-standard interface (as found on AIX, Tru64,
Tim J. Robbins [Sun, 9 Jan 2005 03:55:13 +0000 (03:55 +0000)]
Implement rpmatch(), a semi-standard interface (as found on AIX, Tru64,
GNU) for determining whether a string is an affirmative or negative
response to a question according to the current locale. This is done
by matching the response against nl_langinfo(3) items YESEXPR and NOEXPR.

19 years agoMove the acquisition and release of the page queues lock outside of a loop
Alan Cox [Sat, 8 Jan 2005 23:41:11 +0000 (23:41 +0000)]
Move the acquisition and release of the page queues lock outside of a loop
in vm_object_split() to avoid repeated acquisition and release.

19 years agoUse static const char and bump WARNS.
Tom Rhodes [Sat, 8 Jan 2005 22:56:08 +0000 (22:56 +0000)]
Use static const char and bump WARNS.

19 years agoRemove support for FreeBSD < 4.recent from this driver.
Warner Losh [Sat, 8 Jan 2005 22:52:00 +0000 (22:52 +0000)]
Remove support for FreeBSD < 4.recent from this driver.

19 years agoRemove unused variable.
Tom Rhodes [Sat, 8 Jan 2005 22:47:10 +0000 (22:47 +0000)]
Remove unused variable.

19 years agoRemove vnode.h and adjust includes to compensate for pollution.
Warner Losh [Sat, 8 Jan 2005 22:43:33 +0000 (22:43 +0000)]
Remove vnode.h and adjust includes to compensate for pollution.

19 years agoLINE30 is always defined now, so unifdef -DLINE30 for clarity.
Warner Losh [Sat, 8 Jan 2005 22:29:53 +0000 (22:29 +0000)]
LINE30 is always defined now, so unifdef -DLINE30 for clarity.

19 years agoMerge module.h into 30line.h and remove it. It lacked a
Warner Losh [Sat, 8 Jan 2005 22:29:23 +0000 (22:29 +0000)]
Merge module.h into 30line.h and remove it. It lacked a
copyright/license header and was only used by 30line.h.  It appears
that the copyright/license in 30line.h covers the old contents
module.h anyway, so this simplifies things a little while cleaning up
one obscure potential license confusion...

Revired by: nyan-san

19 years agoRecognize and parse symlinks in ISO9660 CDROM images with Rockridge extensions.
Tim Kientzle [Sat, 8 Jan 2005 19:56:07 +0000 (19:56 +0000)]
Recognize and parse symlinks in ISO9660 CDROM images with Rockridge extensions.

19 years agoDocumentation improvements. In particular,
Tim Kientzle [Sat, 8 Jan 2005 19:51:04 +0000 (19:51 +0000)]
Documentation improvements.  In particular,
expand and clarify the description of the client
callback functions and how they should handle errors.

Thanks to: Antony Dovgal

19 years agoCorrectly document the order of arguments
Tim Kientzle [Sat, 8 Jan 2005 18:32:49 +0000 (18:32 +0000)]
Correctly document the order of arguments
to archive_read_open and archive_write_open.

Thanks to: Antony Dovgal

19 years agoClear the error buffer on entry
Tim Kientzle [Sat, 8 Jan 2005 18:28:11 +0000 (18:28 +0000)]
Clear the error buffer on entry
to archive_read_next_header so the
next error doesn't just get appended.

MFC after: 7 days