]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoThis commit was generated by cvs2svn to compensate for changes in r63516,
Darren Reed [Wed, 19 Jul 2000 13:52:47 +0000 (13:52 +0000)]
This commit was generated by cvs2svn to compensate for changes in r63516,
which included commits to RCS files with non-trunk default branches.

23 years agoImport v3.4.8 into -current
Darren Reed [Wed, 19 Jul 2000 13:52:47 +0000 (13:52 +0000)]
Import v3.4.8 into -current

23 years agoAdd some examples for IPv6 addresses.
Hajimu UMEMOTO [Wed, 19 Jul 2000 13:05:58 +0000 (13:05 +0000)]
Add some examples for IPv6 addresses.

PR: conf/18614
Submitted by: James Housley <jim@thehousleys.net>

23 years agoRemove mention of SYNCER_MAXDELAY and "thirty seconds", using more
Sheldon Hearn [Wed, 19 Jul 2000 11:47:16 +0000 (11:47 +0000)]
Remove mention of SYNCER_MAXDELAY and "thirty seconds", using more
general terms instead.  This follows a discussion with alfred,
in which it became clear that I had misunderstood sched_sync().

23 years agoUse <bsd.kmod.mk> not a path to ../../conf/kmod.mk.
Peter Wemm [Wed, 19 Jul 2000 10:40:39 +0000 (10:40 +0000)]
Use <bsd.kmod.mk> not a path to ../../conf/kmod.mk.

23 years agoAdd a default ident string and do some minor whitespace adjustments
Brian Somers [Wed, 19 Jul 2000 10:16:29 +0000 (10:16 +0000)]
Add a default ident string and do some minor whitespace adjustments

23 years agoDescribe the new VERSION and COMPILATIONDATE macros and mention that the
Brian Somers [Wed, 19 Jul 2000 10:14:00 +0000 (10:14 +0000)]
Describe the new VERSION and COMPILATIONDATE macros and mention that the
``ident'' command will expand macros.

23 years agoAdd /dev/agpgart for AGP.
Ruslan Ermilov [Wed, 19 Jul 2000 09:21:14 +0000 (09:21 +0000)]
Add /dev/agpgart for AGP.

Reviewed by: dfr

23 years agoBraino: don't use passive mode unless the user requests it.
Dag-Erling Smørgrav [Wed, 19 Jul 2000 09:12:36 +0000 (09:12 +0000)]
Braino: don't use passive mode unless the user requests it.

PR: bin/20025
Submitted by: HIYAMA Takeshi <th@cis.ibaraki.ac.jp>

23 years agoOops. fsync(8) should have been fsync(1). (repo-copied by peter)
Paul Saab [Wed, 19 Jul 2000 08:44:26 +0000 (08:44 +0000)]
Oops.  fsync(8) should have been fsync(1).  (repo-copied by peter)
Change reference from update(4) to syncer(4).

23 years agoAdd fsync(8). This becomes useful with the advent of MAP_NOSYNC etc.
Paul Saab [Wed, 19 Jul 2000 08:38:18 +0000 (08:38 +0000)]
Add fsync(8).  This becomes useful with the advent of MAP_NOSYNC etc.

Reviewed by: peter

23 years agoUpdate stale references to update(4) with references to the new
Sheldon Hearn [Wed, 19 Jul 2000 07:39:08 +0000 (07:39 +0000)]
Update stale references to update(4) with references to the new
syncer(4) manual page.

23 years agoReplace the obsolete update(4) manual page with syncer(4). I was
Sheldon Hearn [Wed, 19 Jul 2000 07:15:32 +0000 (07:15 +0000)]
Replace the obsolete update(4) manual page with syncer(4).  I was
not abble to solicit review from <freebsd-hackers>.

23 years agoApm device is now safe to be world readable, so make it so.
Warner Losh [Wed, 19 Jul 2000 06:35:58 +0000 (06:35 +0000)]
Apm device is now safe to be world readable, so make it so.

23 years agoWhen we're just reading info from the driver, attempt to open the apm
Warner Losh [Wed, 19 Jul 2000 06:34:02 +0000 (06:34 +0000)]
When we're just reading info from the driver, attempt to open the apm
device read only so we can suppot a readonly apm device.

23 years agoClean up this new manual page. This delta includes content and
Sheldon Hearn [Wed, 19 Jul 2000 06:33:34 +0000 (06:33 +0000)]
Clean up this new manual page.  This delta includes content and
whitespace changes, which should not be a problem because this
is only the second revision of the file and translators are
unlikely to have gotten started yet.

Reviewed by: abial

23 years agoExcept for the information gathering IOCTLs, require apm device be
Warner Losh [Wed, 19 Jul 2000 06:32:00 +0000 (06:32 +0000)]
Except for the information gathering IOCTLs, require apm device be
opened for write.  This should make the apm device read only safe.

23 years agoTo define A RR to root (.) is valid in DNS. So, h_name = "" shouldn't
Hajimu UMEMOTO [Wed, 19 Jul 2000 06:22:01 +0000 (06:22 +0000)]
To define A RR to root (.) is valid in DNS.  So, h_name = "" shouldn't
be treated as NULL.

PR: bin/19816
Submitted by: Bill Fenner <fenner@research.att.com>
Reviewed by: Atsushi Onoe <onoe@sm.sony.co.jp>

23 years agoStudied the tech docs for the Voodoo3 and Banshee, and hopefully fixed the
Coleman Kane [Wed, 19 Jul 2000 05:41:14 +0000 (05:41 +0000)]
Studied the tech docs for the Voodoo3 and Banshee, and hopefully fixed the
errors that plagued those cards with XFree86 4.0. They have two memory
ranges as well as an IO port range to them. Also cleaned up the three
warning messages that I got, from inb(), outb() and linuxulator. Also, I
noticed that the DRI and Glide support for the Voodoo4 and 5 has been
placed upon linux.3dfx.com, too bad they haven't released the tech docs
yet. Apparently, they are still pushing glide for all of us, so I will try
and add support once those tech docs are up.

23 years agoSave any binaries we use by installworld, so that we won't use the
Marcel Moolenaar [Wed, 19 Jul 2000 04:41:59 +0000 (04:41 +0000)]
Save any binaries we use by installworld, so that we won't use the
binaries we just installed. This allows a future upgrade target to
install a new system without intermediate reboots and also
prevents conflicts for parallel make runs where we might exec a
binary that's being installed at the same time.

23 years agoSupport link identification from rfc1570
Brian Somers [Wed, 19 Jul 2000 02:10:35 +0000 (02:10 +0000)]
Support link identification from rfc1570
Two new commands are available; ``ident'' and ``sendident''.

23 years agoFrom the PR:
Ben Smithurst [Wed, 19 Jul 2000 00:05:59 +0000 (00:05 +0000)]
From the PR:

1.  Correct FTP site for 4.0-stable snapshots and delete sentence
    fragment immediately following.
    [ not applicable to HEAD ]

2.  Add FDDI section to table of contents (see #5 below) and add
    one line of whitespace.

3.  In userland section, document csh->tcsh, more->less, and
    colorized ls.

4.  In Ethernet section, do:

        s/gigabit ethernet/Gigabit Ethernet/
        s/fast ethernet/Fast Ethernet/
        s/ethernet/Ethernet/

5.  Pull DEC DEFPA/DEFEA *FDDI* cards out of the *Ethernet* section
    and into their own second-level section.

6.  Add missing period in section header in ATM section.

7.  Tweak upgrading sectio with some new text, not sure if this is
    much better though.

8.  Add a blurb about the -stable mailing list.
    [ changed to -current list in HEAD ]

PR: 20015
Submitted by: Bruce A. Mah <bmah@cisco.com>

23 years agoConst'ify parameters to ethers(3) routines as appropriate.
Archie Cobbs [Tue, 18 Jul 2000 22:44:52 +0000 (22:44 +0000)]
Const'ify parameters to ethers(3) routines as appropriate.

23 years agoMake "ifconfig" with no arguments equivalent to "ifconfig -a".
Archie Cobbs [Tue, 18 Jul 2000 22:07:31 +0000 (22:07 +0000)]
Make "ifconfig" with no arguments equivalent to "ifconfig -a".

23 years agoFix a bug which would cause some knotes to get lost when two kqueues
Jonathan Lemon [Tue, 18 Jul 2000 21:41:47 +0000 (21:41 +0000)]
Fix a bug which would cause some knotes to get lost when two kqueues
were being used in a process at the same time.

Test case provided by:  Chris Peiffer <peifferc@CS.Stanford.EDU>

23 years agomake this file suitable for 4-stable as well as 5-current
Cameron Grant [Tue, 18 Jul 2000 21:23:48 +0000 (21:23 +0000)]
make this file suitable for 4-stable as well as 5-current

23 years ago* Remove description of obsolete -t option.
Ben Smithurst [Tue, 18 Jul 2000 21:05:11 +0000 (21:05 +0000)]
* Remove description of obsolete -t option.
* Insert newline before "and" in ".Fl c and".

Approved by: des

23 years agoPR:19945
Richard Seaman Jr. [Tue, 18 Jul 2000 20:18:16 +0000 (20:18 +0000)]
PR:19945
Reviewed by:tanimura
Fix boot panic introduced by newmidi code.

23 years agoRemove an unused variable warning.
Nick Hibma [Tue, 18 Jul 2000 20:16:36 +0000 (20:16 +0000)]
Remove an unused variable warning.

23 years agoFreeBSD_version bump for changed kqueue API.
Jonathan Lemon [Tue, 18 Jul 2000 20:16:26 +0000 (20:16 +0000)]
FreeBSD_version bump for changed kqueue API.

23 years agoFix the detection of parallel port Zip drives.
Nick Hibma [Tue, 18 Jul 2000 20:16:16 +0000 (20:16 +0000)]
Fix the detection of parallel port Zip drives.

Submitted by: j mckitrick <jcm@freebsd-uk.eu.org>
Reviewed by: nsouchu

23 years ago o Convert to <inttypes.h> style fixed sized types to facilitate porting to
Justin T. Gibbs [Tue, 18 Jul 2000 20:12:14 +0000 (20:12 +0000)]
 o Convert to <inttypes.h> style fixed sized types to facilitate porting to
   other systems.

 o Normalize copyright text.

 o Clean up probe code function interfaces by passing around a single
   structure of common arguments instead of passing "too many" args
   in each function call.

 o Add support for the AAA-131 as a SCSI adapter.

 o Add support for the AHA-4944 courtesy of "Matthew N. Dodd" <winter@jurai.net

 o Correct manual termination support for PCI cards.  The bit definitions
   for manual termination control in the SEEPROM were incorrect.

 o Add support for extracting NVRAM information from SCB 2 for BIOSen
   that use this mechanism to pass this data to OS drivers.

 o Properly set the STPWLEVEL bit in PCI config space based on the
   setting in an SEEPROM.

 o Go back to useing 32byte SCBs for all controllers.  The current
   firmware allows us to embed 12byte cdbs on all controllers in
   a 32byte SCB, and larger cdbs are rarely used, so it is a
   better use of this space to offer more SCBs (32).

 o Add support for U160 transfers.

 o Add an idle loop executed during data transfers that prefetches
   S/G segments on controllers that have a secondary DMA engine
   (aic789X).

 o Improve the performance of reselections by avoiding an extra
   one byte DMA in the case of an SCB lookup miss for the reselecting
   target.  We now keep a 16byte "untagged target" array on the card
   for dealing with untagged reselections.  If the controller has
   external SCB ram and can support 64byte SCBs, then we use an
   "untagged target/lun" array to maximize concurrency.  Without
   external SCB ram, the controller is limited to one untagged
   transaction per target, auto-request sense operations excluded.

 o Correct the setup of the STPWEN bit in SXFRCTL1.  This control
   line is tri-stated until set to one, so set it to one and then
   set it to the desired value.

 o Add tagged queuing support to our target role implementation.

 o Handle the common cases of the ignore wide residue message
   in firmware.

 o Add preliminary support for 39bit addressing.

 o Add support for assembling on big-endian machines.  Big-endian
   support is not complete in the driver.

 o Correctly remove SCBs in the waiting for selection queue when
   freezing a device queue.

 o Now that we understand more about the autoflush bug on the
   aic7890, only use the workaround on devices that need it.

 o Add a workaround for the "aic7890 hangs the system when you
   attempt to pause it" problem.  We can now pause the aic7890
   safely regardless of what instruction it is executing.

23 years agoscsi_all.c:
Justin T. Gibbs [Tue, 18 Jul 2000 19:48:58 +0000 (19:48 +0000)]
scsi_all.c:
Clean up the comments related to the high speed
sync rate table for SPI.

scsi_message.h:
Bring in some SCSI3 message terminology.  All SCSI2 names
are still preserved for backwards compatibility.

23 years agocam_ccb.h:
Justin T. Gibbs [Tue, 18 Jul 2000 19:47:14 +0000 (19:47 +0000)]
cam_ccb.h:
Bring back the CAM_NEGOTIATE ccb flag.  This flag indicates
that SPI transfer negotiation should occur concurrently with the
execution of this CCB.  The flag is not yet used by the XPT but
is required for proper support of multi-initiator configurations
where topology scans cannot rely on a bus reset to invalidate
prior negotiations.

cam_xpt.c:
Don't allow DT transmission rates to be specified for devices
that don't have the DT feature listed in their inquiry data.

23 years agoConvert calls to match new kqueue API.
Jonathan Lemon [Tue, 18 Jul 2000 19:38:38 +0000 (19:38 +0000)]
Convert calls to match new kqueue API.

23 years agoSimplify kqueue API slightly.
Jonathan Lemon [Tue, 18 Jul 2000 19:31:52 +0000 (19:31 +0000)]
Simplify kqueue API slightly.

Discussed on: -arch

23 years agoFix the IRQ9/IRQ2 confusion.
Poul-Henning Kamp [Tue, 18 Jul 2000 18:50:24 +0000 (18:50 +0000)]
Fix the IRQ9/IRQ2 confusion.

Submitted by: Alan Clegg <abc@bsdi.com>

23 years agoCorrect the attribution for yes(1).
Nik Clayton [Tue, 18 Jul 2000 18:32:08 +0000 (18:32 +0000)]
Correct the attribution for yes(1).

PR: docs/19401
Submitted by: s.c.sprong@student.utwente.nl

23 years agoRemove an OBE comment.
David E. O'Brien [Tue, 18 Jul 2000 18:27:06 +0000 (18:27 +0000)]
Remove an OBE comment.

23 years agoKNF'ize.
David E. O'Brien [Tue, 18 Jul 2000 18:26:03 +0000 (18:26 +0000)]
KNF'ize.

23 years agodocument serial console habits of AS2100[a]
Wilko Bulte [Tue, 18 Jul 2000 17:50:16 +0000 (17:50 +0000)]
document serial console habits of AS2100[a]

23 years agoCross-reference mount_nfs(8) and showmount(8).
Sheldon Hearn [Tue, 18 Jul 2000 17:34:23 +0000 (17:34 +0000)]
Cross-reference mount_nfs(8) and showmount(8).

PR: 20008
Reported by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>

23 years agoOrder the cross-references in the SEE ALSO section, in preparation
Sheldon Hearn [Tue, 18 Jul 2000 17:31:00 +0000 (17:31 +0000)]
Order the cross-references in the SEE ALSO section, in preparation
for PR 20008.

23 years agoImport the new truncate(1) utility.
Sheldon Hearn [Tue, 18 Jul 2000 17:03:58 +0000 (17:03 +0000)]
Import the new truncate(1) utility.

Approved by: jdp

23 years agoAdd the '-l' flag to nghook which loops the received data back.
Poul-Henning Kamp [Tue, 18 Jul 2000 16:52:27 +0000 (16:52 +0000)]
Add the '-l' flag to nghook which loops the received data back.

23 years agooops- need reboot.h file
Matt Jacob [Tue, 18 Jul 2000 16:47:49 +0000 (16:47 +0000)]
oops- need reboot.h file

23 years agoFix a comment which was broken in rev 1.36.
Sheldon Hearn [Tue, 18 Jul 2000 16:43:29 +0000 (16:43 +0000)]
Fix a comment which was broken in rev 1.36.

PR: 19947
Submitted by: Tetsuya Isaki <isaki@net.ipc.hiroshima-u.ac.jp>

23 years agoAdd case that David missed about setting RB_SERIAL.
Matt Jacob [Tue, 18 Jul 2000 16:25:14 +0000 (16:25 +0000)]
Add case that David missed about setting RB_SERIAL.

23 years agoRemove <center> tags from with <title> section.
Ben Smithurst [Tue, 18 Jul 2000 15:20:55 +0000 (15:20 +0000)]
Remove <center> tags from with <title> section.

PR: 20002
Submitted by: James Johnson <bonk1138@msn.com>
Approved by: patrick (from freebsd-small mailing list)

23 years agoDefine what is meant by `brackets' and `braces'.
Ben Smithurst [Tue, 18 Jul 2000 14:41:01 +0000 (14:41 +0000)]
Define what is meant by `brackets' and `braces'.

Suggested by: grog

23 years agoAdd an empty crunch.inc with instructions that you can use it to adjust
Neil Blakey-Milner [Tue, 18 Jul 2000 13:49:17 +0000 (13:49 +0000)]
Add an empty crunch.inc with instructions that you can use it to adjust
the building of the crunched binary.

I'll add examples when I add the post-include mechanism, since the
crunch.mk environment stomps on the pre-included crunch.inc's variables
at the moment.

23 years agoMake a separate build directory in which to put all the generated
Neil Blakey-Milner [Tue, 18 Jul 2000 13:43:38 +0000 (13:43 +0000)]
Make a separate build directory in which to put all the generated
objects, to simplify working with PicoBSD.

Add the ability to put make instructions in crunch.inc to pass to the
build process.

Now explicitly make the objects in our own object tree, since we want to
build the objects with our own defines, and allow this to occur in a
common object tree for all PicoBSD builds, if required.  This is
controlled by the COMM_OBJ variable, for those who don't want this -
setting it to /usr/obj again will just pick up the objects from your
last make buildworld, as before.

23 years agoUpdate PICOBSD-C kernel configuration to the new world order, grabbing
Neil Blakey-Milner [Tue, 18 Jul 2000 13:25:51 +0000 (13:25 +0000)]
Update PICOBSD-C kernel configuration to the new world order, grabbing
hints simply from GENERIC.hints.

Added a bunch of comments about usb devices, new network cards, and
IPv6.

23 years agoOrder the cross-references in the SEE ALSO section correctly.
Sheldon Hearn [Tue, 18 Jul 2000 13:03:09 +0000 (13:03 +0000)]
Order the cross-references in the SEE ALSO section correctly.

23 years agoFix the one 'obj'-related breakage, and quieten the build. Also change
Neil Blakey-Milner [Tue, 18 Jul 2000 12:17:54 +0000 (12:17 +0000)]
Fix the one 'obj'-related breakage, and quieten the build.  Also change
symlinks from '/sbin' to 'sbin', so following the links make sense when
not on the disk itself.

23 years agoFirst part of PicoBSD makeover, adding basic 'obj' facilities, allowing
Neil Blakey-Milner [Tue, 18 Jul 2000 12:04:33 +0000 (12:04 +0000)]
First part of PicoBSD makeover, adding basic 'obj' facilities, allowing
for read-only src tree.

While I'm there:
1) Use kgzip, not kzip, since kzip certainly doesn't make bootable
kernels anymore.  loader still isn't built separately, let alone without
forth support.  This needs to be fixed.

2) Expand the mount/vnconfig examples to be the defacto way of making
sure the filesystems are mounted, unmounted, or not configured.  This
needs more work.

3) quieten the build substantially, so errors are more prominent

4) Start of '-j' ability.  Current style isn't quite in the correct
dependency format for this, but obvious mistakes (changing directories
in main shell) are fixed.

Approved by: grog, dwhite, luigi (no objections to me doing a makeover)

23 years agoFix one grammar problem which crept in from rev 1.40 to rev 1.42, and
Sheldon Hearn [Tue, 18 Jul 2000 12:02:15 +0000 (12:02 +0000)]
Fix one grammar problem which crept in from rev 1.40 to rev 1.42, and
one mdoc problem from rev 1.40 (unnecessarily populated Nm macro).

23 years agoDriver for LMC1504 card: four port E1 or fractional E1.
Poul-Henning Kamp [Tue, 18 Jul 2000 11:34:15 +0000 (11:34 +0000)]
Driver for LMC1504 card:  four port E1 or fractional E1.
T1 support is possible but I have no T1 hardware to test with.

The vendor can be found at: www.lanmedia.com

23 years agoSubstitute UT_NAMESIZE for 8 when truncating long usernames.
Sheldon Hearn [Tue, 18 Jul 2000 11:32:27 +0000 (11:32 +0000)]
Substitute UT_NAMESIZE for 8 when truncating long usernames.

PR: 19886
Reported by: Gregory Bond <gnb@itga.com.au>

23 years agoFix header inclusions in preparation for a fix for PR 19886.
Sheldon Hearn [Tue, 18 Jul 2000 11:29:13 +0000 (11:29 +0000)]
Fix header inclusions in preparation for a fix for PR 19886.
The CVS Id tag FreeBSD was added to satisfy commit_prep.pl.

23 years agoDriver for LMC1504 card: four port E1 or fractional E1.
Poul-Henning Kamp [Tue, 18 Jul 2000 11:17:25 +0000 (11:17 +0000)]
Driver for LMC1504 card:  four port E1 or fractional E1.
T1 support is possible but I have no T1 hardware to test with.

The vendor can be found at: www.lanmedia.com

23 years agoAdd the umodem driver.
Nick Hibma [Tue, 18 Jul 2000 10:49:45 +0000 (10:49 +0000)]
Add the umodem driver.

23 years agoSet `boothowto' approapiately if our console is a serial one.
David E. O'Brien [Tue, 18 Jul 2000 10:05:10 +0000 (10:05 +0000)]
Set `boothowto' approapiately if our console is a serial one.

The "debug.boothowto" sysctl can now be used (as on the i386) to determine
if the console is a serial one.

23 years agoAllow the Fix-it functionality to detect that we are on a serial console,
David E. O'Brien [Tue, 18 Jul 2000 09:14:06 +0000 (09:14 +0000)]
Allow the Fix-it functionality to detect that we are on a serial console,
and DTRT rather than start the fixit shell on a non-existant vty.

PR: 19837
Submitted by: Doug Ambrisko <ambrisko@whistle.com>
Approved by: JKH

23 years agoAdd smc37c935 chipset support and clean up the code which tries to
Doug Rabson [Tue, 18 Jul 2000 09:01:09 +0000 (09:01 +0000)]
Add smc37c935 chipset support and clean up the code which tries to
allocate a short port range in some alpha configurations.

Submitted by: "Andrew M. Miklic" <miklic@udlkern.fc.hp.com>,
      Mark Abene <phiber@radicalmedia.com>

23 years agoAllow logger to send messages directly to a remote syslog. (This
David Malone [Tue, 18 Jul 2000 08:56:54 +0000 (08:56 +0000)]
Allow logger to send messages directly to a remote syslog.  (This
only does IPv4 as our syslogd only does IPv4. I dunno if the KAME
people have any plans for syslogd).

PR: 19821
Submitted by: Nick Hilliard <nick@iol.ie>
Reviewed by: sheldonh

23 years agoFix an unmatched opening quote.
Hajimu UMEMOTO [Tue, 18 Jul 2000 08:44:17 +0000 (08:44 +0000)]
Fix an unmatched opening quote.

PR: conf/20000
Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>

23 years agoDrop the references to index(3) and rindex(3), which are non-standard
Alexander Langer [Tue, 18 Jul 2000 08:05:11 +0000 (08:05 +0000)]
Drop the references to index(3) and rindex(3), which are non-standard
and people shouldn't be encouraged to use them.

Asked by: sheldonh

23 years agoClean up this new manual page. This delta includes content and
Sheldon Hearn [Tue, 18 Jul 2000 07:46:14 +0000 (07:46 +0000)]
Clean up this new manual page.  This delta includes content and
whitespace changes, which should not be a problem because this
is only the second revision of the file and translators are
unlikely to have gotten started yet.

Reviewed by: abial

23 years agoDon't take a failure to stat a file to mean that it doesn't exist, as it may
Dag-Erling Smørgrav [Tue, 18 Jul 2000 07:12:26 +0000 (07:12 +0000)]
Don't take a failure to stat a file to mean that it doesn't exist, as it may
be a dynamically created file, e.g. a tarball on servers that support sending
tarballs of directories.

23 years agoAdd in some new IN_XXX and CT_XXXX flags in preparation
Matt Jacob [Tue, 18 Jul 2000 07:06:47 +0000 (07:06 +0000)]
Add in some new IN_XXX and CT_XXXX flags in preparation
for the rototilling that !*$)~@!$_@*_(~@$*_(~@$*~@$*
Qlogic F/W changes will need.

23 years agoIf debugging set, zero out an incoming response entry
Matt Jacob [Tue, 18 Jul 2000 07:05:37 +0000 (07:05 +0000)]
If debugging set, zero out an incoming response entry
when we're done reading it (makes checking things easier).
Before calling isp_notify_ack make sure we're at RUNSTATE-
elsewise we can be responding to LIPs or SCSI bus resets
before we've finished some of the wiring.

23 years agoThe SERVICING_INTERRUPT isn't quite safe yet.
Matt Jacob [Tue, 18 Jul 2000 07:04:07 +0000 (07:04 +0000)]
The SERVICING_INTERRUPT isn't quite safe yet.

23 years agoAdd a isp_target_putback_atio- we aren't using CCINCR at this time, so
Matt Jacob [Tue, 18 Jul 2000 06:58:28 +0000 (06:58 +0000)]
Add a isp_target_putback_atio- we aren't using CCINCR at this time, so
we need a function that tells the Qlogic f/w that a target mode command
is done, so increase the resource count for that lun. Add in a timeout
function to kick the putback again if we fail to do it the first time (we
may not have the request queue space for ATIO push). Split the function
isp_handle_platform_ctio into two parts so that the timeout function for
the ATIO push or isp_handle_platform_ctio can inform CAM that the requested
CTIO(s) are now done.

Clean up (cough) residual handling. What we need for Fibre Channel
is to preserve the at_datalen field from the original incoming ATIO
so we can calculate a 'true' residual.  Unfortunately, we're not
guaranteed to get that back from CAM. We'll *try* to find it hiding
in the periph_priv field (layering violation)- but if an ATIO was
passed in from user land- forget it. This means that we'll probably
get residuals wrong for Fibre Channel commands we're completing
with an error. It's too late to 4.1 release to fix this- too bad.
Luckily the only device we'd really care about this occurring on
is a tape device and they're still so rare as FC attached devices
that this can be considered an untested combination anyway.

Remove all CCINCR usage (resource autoreplenish). When we've proved
to ourself that things are working properly, we can add it back
in.

Make sure we propage 'suggested' sense data from the incoming ATIO
into the created system ATIO- and set sense_len appropriately.
Correctly propagate tag values.

Fall back to the model of generating (well, the functions in isp_pci.c
do the work) multiple CTIOs based upon what we get from XPT. Instead
of being able to pair Qlogic generated ATIOs with CAM ATIOs, and then
to pair CAM CTIOs with Qlogic CTIOs, we have to take the CTIO passed
to us from XPT, and if it implies that we have to generate extra
Qlogic CTIOs, so be it. This means that we have to wait until the
last CTIO in a sequence we generated completes before calling xpt_done.

Executive summary- target mode actually now pretty much works well
enough to tell folks about.

23 years agoRaise debug level for some messages. Fix botched inversion
Matt Jacob [Tue, 18 Jul 2000 06:46:48 +0000 (06:46 +0000)]
Raise debug level for some messages. Fix botched inversion
about MBOX_COMMAND_ERROR vs. MBOX_COMMAND_PARAM_ERROR.

23 years agoKeep interrupts blocked for all of isp_pci_attach. Redo DMA routines
Matt Jacob [Tue, 18 Jul 2000 06:40:22 +0000 (06:40 +0000)]
Keep interrupts blocked for all of isp_pci_attach. Redo DMA routines
for target mode for cleanliness and accuracy.

23 years agoProperly detect ISA cards in EISA mode and skip them in the ISA identify
Matthew N. Dodd [Tue, 18 Jul 2000 06:37:08 +0000 (06:37 +0000)]
Properly detect ISA cards in EISA mode and skip them in the ISA identify
routine so that they will be picked up by the EISA front end.

PR: i386/2598

23 years agoPatch up some bogons in the resource_find() vs resource_find_hard()
Peter Wemm [Tue, 18 Jul 2000 06:08:27 +0000 (06:08 +0000)]
Patch up some bogons in the resource_find() vs resource_find_hard()
interfaces.  The original resource_find() returned a pointer to an internal
resource table entry.  resource_find_hard() dereferences the actual
passed in value (oops!) - effectively trashing random memory due to
the pointer being passed in with a random initial value.

Submitted by:  bde

23 years agoDon't get stuck in a loop calling exit from an atexit routine. Clean
Matt Jacob [Tue, 18 Jul 2000 04:39:36 +0000 (04:39 +0000)]
Don't get stuck in a loop calling exit from an atexit routine. Clean
up cam_fill_ctio usage to passed atio flags. Clear periph_priv area
of new ctio so if the kernel is dumb enough to look at them (this is
a SECURITY hole) the panic will be obvious instead of subtle.

23 years agoDeclare our DEC Alpha cdboot to be a fully released version 1.0.
David E. O'Brien [Tue, 18 Jul 2000 04:15:06 +0000 (04:15 +0000)]
Declare our DEC Alpha cdboot to be a fully released version 1.0.

23 years agoMove mtree to bootstrap-tools and add PATH=${TMPPATH} to IMAKEENV to pick it
Andrey A. Chernov [Tue, 18 Jul 2000 01:49:05 +0000 (01:49 +0000)]
Move mtree to bootstrap-tools and add PATH=${TMPPATH} to IMAKEENV to pick it

23 years agoChange my email address in the copyright notices for the sake of consistency
Jason Evans [Tue, 18 Jul 2000 01:38:19 +0000 (01:38 +0000)]
Change my email address in the copyright notices for the sake of consistency
(jasone@canonware.com --> jasone@freebsd.org).

23 years agoAdd mtree to cross-tools to make it updated for new -L option
Andrey A. Chernov [Tue, 18 Jul 2000 00:21:05 +0000 (00:21 +0000)]
Add mtree to cross-tools to make it updated for new -L option
It must solve make world breakage

23 years agoDocument the builtin echo command
Mark Ovens [Mon, 17 Jul 2000 23:37:55 +0000 (23:37 +0000)]
Document the builtin echo command

Reviewed by: Matthew Hunt <mph@astro.caltech.edu>

23 years agoInitialise ifnet::if_type
Brian Somers [Mon, 17 Jul 2000 23:21:42 +0000 (23:21 +0000)]
Initialise ifnet::if_type

PR: 17873
Submitted by: Kensaku Masuda <greg@greg.rim.or.jp>

23 years agoDeal correctly with statically initialized condition variables in
Jason Evans [Mon, 17 Jul 2000 22:55:05 +0000 (22:55 +0000)]
Deal correctly with statically initialized condition variables in
pthread_cond_signal(), pthread_cond_broadcast(), and pthread_cond_timedwait().

Do not dump core in pthread_cond_timedwait() (due to a NULL pointer
dereference) if attempting to wait on an uninitialized condition variable.

PR: bin/18099

23 years agoThe description of the semantics of -v and -q has long since been OBE.
Dag-Erling Smørgrav [Mon, 17 Jul 2000 22:44:36 +0000 (22:44 +0000)]
The description of the semantics of -v and -q has long since been OBE.

23 years agoWhile I'm at it, break a line that was too long, remove a pointless diagnostic
Dag-Erling Smørgrav [Mon, 17 Jul 2000 22:44:00 +0000 (22:44 +0000)]
While I'm at it, break a line that was too long, remove a pointless diagnostic
and adjust the verbosity level of another.

23 years agoReshuffle the SEE ALSO section.
Jason Evans [Mon, 17 Jul 2000 22:33:32 +0000 (22:33 +0000)]
Reshuffle the SEE ALSO section.

Prompted by: sheldonh

23 years agoDon't reply "not a plain file" when the requested file doesn't exist.
Dag-Erling Smørgrav [Mon, 17 Jul 2000 22:24:52 +0000 (22:24 +0000)]
Don't reply "not a plain file" when the requested file doesn't exist.

23 years agoDocument the fact that -r and -m are mutually exclusive.
Dag-Erling Smørgrav [Mon, 17 Jul 2000 21:51:48 +0000 (21:51 +0000)]
Document the fact that -r and -m are mutually exclusive.

23 years agoRearrange / rewrite large portions of fetch() to take advantage of new
Dag-Erling Smørgrav [Mon, 17 Jul 2000 21:49:01 +0000 (21:49 +0000)]
Rearrange / rewrite large portions of fetch() to take advantage of new
libfetch features (fetchRestartCalls, fetchXGet()).

Since it doesn't make much sense to have m_flag and r_flag set at the same
time, and it can actually cause trouble in some cases, die if they're both
set.

Set the SA_RESETHAND flag for SIGINT so that when we've caught one, we can
kill ourselves with a second SIGINT (thus notifying our parent of our tragic
fate) instead of just exiting.

These changes fix several problems that would show up when fetching ports,
as well as speeding up HTTP transfers quite a bit (at least for relatively
small files).

Most of these changes were prompted by an interaction problem with an HTTP
server called SWS-1.0, which exhibited two bugs, the first of which prevented
fetch from working around the second (the first was not sending content-type
in reply to HEAD requests, the second was sending garbage after the end of
the requested file).

23 years agoIntroduce fetchXGet*(), which combine the functionalities of fetchGet*() and
Dag-Erling Smørgrav [Mon, 17 Jul 2000 21:25:00 +0000 (21:25 +0000)]
Introduce fetchXGet*(), which combine the functionalities of fetchGet*() and
fetchStat*().  In most cases, either fetchGet*() or fetchXGet*() is a wrapper
around the other; in all cases, calling fetchGet*() is identical to calling
fetchXGet*() with the second argument set to NULL.

23 years agoDon't forget to set file descriptor to -1 after closing it, since the code
Dag-Erling Smørgrav [Mon, 17 Jul 2000 21:09:11 +0000 (21:09 +0000)]
Don't forget to set file descriptor to -1 after closing it, since the code
outside the loop inspects it to determine whether or not we succeeded in
retrieving the requested document. This fixes a bug where fetchGetHTTP()
would return a FILE with an invalid file descriptor if it hit the redirect
limit without locating the requested document.

23 years agoUse a symbolic constant instead of hardcoding 999
Dag-Erling Smørgrav [Mon, 17 Jul 2000 21:00:49 +0000 (21:00 +0000)]
Use a symbolic constant instead of hardcoding 999

23 years agoDon't forget to declare fetchRestartCalls.
Dag-Erling Smørgrav [Mon, 17 Jul 2000 20:52:06 +0000 (20:52 +0000)]
Don't forget to declare fetchRestartCalls.

23 years agoIntroduce the (undocumented) variable fetchRestartCalls, which controls whether
Dag-Erling Smørgrav [Mon, 17 Jul 2000 20:49:39 +0000 (20:49 +0000)]
Introduce the (undocumented) variable fetchRestartCalls, which controls whether
or not interrupted system calls will be restarted. This fixes a bug where
fetch(1) would hang (potentially forever) if a server stopped responding,
because the signal handler would absorb the user's efforts to interrupt the
transfer.

23 years agoRemove fetchContentType(), which disappeared in the HTTP rewrite.
Dag-Erling Smørgrav [Mon, 17 Jul 2000 20:42:13 +0000 (20:42 +0000)]
Remove fetchContentType(), which disappeared in the HTTP rewrite.

23 years agoclose PR 19544 - ipfw pipe delete causes panic when no pipes defined
Luigi Rizzo [Mon, 17 Jul 2000 20:03:27 +0000 (20:03 +0000)]
close PR 19544 - ipfw pipe delete causes panic when no pipes defined

PR: 19544

23 years ago- Don't try to free mboot.bootinst before it has been allocated. If, for
John Baldwin [Mon, 17 Jul 2000 19:51:42 +0000 (19:51 +0000)]
- Don't try to free mboot.bootinst before it has been allocated.  If, for
  some reason, mboot.bootinst is not initialized to NULL at the beginning
  of the program, then the last commit to this would try to free whatever
  bogus address is in it.
- Restore the behavior of free()'ing the mboot.bootinst buffer after we
  abuse it to determine the sector size of the disk (as clearly noted in
  the comments).  Properly fix the double free() bug by setting the pointer
  to NULL after we free it.