Commit graph

42908 commits

Author SHA1 Message Date
John Polstra 85c981cc3f Add a "-d" option which causes the system to generate a crash dump. 1999-11-21 21:52:40 +00:00
Matt Jacob ddc83e8523 Don't clear the SA_FLAG_TAPE_LOCKED prior to calling
saprevent when we're doing an OFFLINE ioctl- saprevent
won't unlock the door, which then causes the unload to
fail on some units.

If we've already unloaded the tape, don't try and rewind and
unload in saclose. This is a slightly riskier change because
we're now going to depend on SA_FLAG_TAPE_MOUNTED to say whether
we've really unloaded the tape. This involved changing the
setting in sadone for tape errors to SA_FLAG_TAPE_FROZEN (which
is more accurate anyway-if you get an EIO you've probably lost
tape position anyway) where it used to just clear the mounted
flag.
1999-11-21 20:23:58 +00:00
Marcel Moolenaar be4512ece9 Build tools against the host's includes and libraries. Also, don't
build make(1) twice and merge the bootstrap-libraries and libraries
targets.

This change solves the bug where build-tools, compiled against the
includes and libraries built from the sources failed to run on the
host, as was the case with the sigset_t change. With this update, a
buildworld will fail if the tools won't compile on the host. This
is solved in further commits where backward compatibility of the
tools is enlarged.

The libraries target has been fixed. The libraries are now build in
the proper order, satisfying the dependencies. The comment is updated
to reflect this.

The linux module and netboot have been removed from the list of tools.
More to follow.

Reviewed by: bde, imp
1999-11-21 20:06:03 +00:00
Matt Jacob 2728bfbd9e Add make_dev functions. Tested with only one changer (sigh- all my others
are broken).
Submitted by:	ken@freebsd.org
1999-11-21 19:17:47 +00:00
David E. O'Brien f90c9f8e9e Restore the 2.3 config file. 1999-11-21 19:10:50 +00:00
Poul-Henning Kamp a9e0361b4a Introduce the new function
p_trespass(struct proc *p1, struct proc *p2)
which returns zero or an errno depending on the legality of p1 trespassing
on p2.

Replace kern_sig.c:CANSIGNAL() with call to p_trespass() and one
extra signal related check.

Replace procfs.h:CHECKIO() macros with calls to p_trespass().

Only show command lines to process which can trespass on the target
process.
1999-11-21 19:03:20 +00:00
Nick Hibma 7183c3f848 Add event queue handling. It triggers activities on events read from
/dev/usb. The actions are specified in the file /etc/usbd.conf.

usbd.c:
   - Add event queue (/dev/usb) handling.
   - Add comments
   - Clean up code some more

usbd.8:
   - Update manpage for the new command line flags
   - Remove a duplicate FreeBSD tag from it).

usbd.conf, usbd.conf.5, Makefile:
   - Add the usbd.conf configuration file and the man page for it.

NOTE: MAKEDEV already creates the /dev/usb device tree node, no change
needed there anymore.
1999-11-21 17:44:43 +00:00
Andrey A. Chernov 3cc1fd63ff Add FNM_FILE_NAME - GNU alias to FNM_PATHNAME
Move all excepting NOESCAPE,PATHNAME,PERIOD under !defined(_POSIX_SOURCE)
1999-11-21 17:32:45 +00:00
Nick Hibma 937791192a Addition of new fields to the usb_devinfo struct to enable the new
and shiny usbd daemon to handle events.

usb_port.h:
- Add a macro to retrieve the unit number from a USBBASEDEVICE

usb.h, usb_subr.c:
- Add fields to the device_info struct.

usb_subr.c:
- Fill in the new fields.
- Remove the notification of the event up a bit to make sure all the
  information is still available to fill the usb_devinfo struct.

This requires recompilation of usbdevs (src/usr.sbin/usbdevs) and the
ezdownload/ezupload (ports/misc/ezload) utilities in any case.
1999-11-21 17:30:42 +00:00
Nick Hibma 88ea580e34 Revoke the vnodes on detach. This avoids the crashes people have seen
when moused was still running when the mouse was detached.

Convert uhid to use make_dev while I am there. Ugen still needs to be
converted.
1999-11-21 17:25:30 +00:00
Nick Hibma 6c1119c8a5 Enclosed the arguments of binary and in brackets. 1999-11-21 17:22:30 +00:00
Cameron Grant e479a8af2a fix for -fno-builtin
PR:		kern/14278
1999-11-21 17:15:12 +00:00
Boris Popov 1a7c256983 Add text for Rendition Verite V1000 and V2000 video cards. 1999-11-21 17:08:47 +00:00
Boris Popov 4a22b7e60e Remove race condition under SMP.
Noted by:	Denis Kalinin <denis@mail.rbc.ru>
1999-11-21 16:35:29 +00:00
Philippe Charnier 93d6b9b66d Make better use of .Ar. Use DIAGNOSTICS instead of incorrect section name.
Add rcsid. Remove unused #includes. Cosmetic in error messages.
1999-11-21 16:16:30 +00:00
Philippe Charnier dd562b0ebb Correct use of .Nm. Add DIAGNOSTICS section. Add rcsid 1999-11-21 16:11:56 +00:00
Peter Wemm 959b26f66f These files have been repo-copied to dev/sound/* (making way for pcm
and midi to share the backend files).
1999-11-21 15:58:07 +00:00
Poul-Henning Kamp 3e0c8d78f3 Add comment about aliases on same subnet.
Submitted by:	Martin Blapp <mbr@imp.ch>
1999-11-21 14:53:13 +00:00
Peter Holm 8feb5d575d Moved useracc() to top of sigreturn as to avoid panic
caused by invalid arguments to rutine.

Reviewed by:	marcel, phk
1999-11-21 14:46:43 +00:00
Poul-Henning Kamp da654d9070 s/p_cred->pc_ucred/p_ucred/g 1999-11-21 12:38:21 +00:00
Julian Elischer 93abfafb05 Document new feature (support for write(2) when 1 hook attached). 1999-11-21 12:03:00 +00:00
Julian Elischer 6faf164ce9 Fixes from brian. With some changes from me.
Allows FreeBSD to run as a PPPOE server
One patch still not included.
1999-11-21 10:43:05 +00:00
Mike Smith d5f08622ae Fix the entry for the NetGear FA410TX, which appears to have been committed
untested (invalid syntax, and config index 0x1 does not appear to exist in
the card as it currently ships).
1999-11-21 09:48:15 +00:00
Peter Wemm bce3d5b6ef Apply a bandaid to the grep Makefile to try and get it to compile and stop
breaking world.
1999-11-21 09:44:26 +00:00
Matthew Dillon c69a34d486 Add rpc.umntall utility, to be used by startup and shutdown scripts
to replace (broken) umntall signal code previously in mountd.

Submitted by:	Martin Blapp <mb@imp.ch>
1999-11-21 08:06:00 +00:00
Mike Smith b3be35ee5e If vfs_mountroot_try() isn't given a path to try mounting, return a silent
error rather than complaining about it verbosely.  No path is not really
a failure, but the diagnostic was confusing and unuseful.
1999-11-21 08:05:50 +00:00
Peter Wemm 95dc37f68d Tempt fate and stop index from converting a const char * into a char *.
I've made a seperate version (c_index() etc) that use const/const, but
I'm not sure it's worth it considering there is one file in the tree
that uses index on const strings (kern_linker.c) and it's easily adjusted
to scan the strings directly (and is perhaps more efficient that way).
1999-11-21 04:26:48 +00:00
Matt Jacob 75099bed2f document new ISP config options 1999-11-21 03:27:29 +00:00
Matt Jacob 38dace9790 Clean up stupidity in the isp_handle_other_response function- indexes
of queue entries have to be at least 16 bits now! If we're running
a 2100 less than rev 5, turn off loop fairness (per Qlogic errata). Fix
typo in checking against 2200 F/W revision. Slightly fix/reorder fabric
login stuff. Change to usage of isp_getrqentry for code clarity. Add some
defensive dual bus assumptions. Various cleanups, etc...
1999-11-21 03:18:22 +00:00
Matt Jacob 6db20c3127 Add storage/access for a default WWN. A miscellaneous tweak or two. 1999-11-21 03:15:11 +00:00
Matt Jacob 840e8002a0 Add a isp_getrqentry inline function (that is, find the next available
request queue entry if any are left).
1999-11-21 03:14:04 +00:00
Matt Jacob 80ae565585 Fix some includes for when we (eventually) get target mode working again.
Role the core version minor number. Change the arguments to the dma
setup function to use a u_int16_t for the output request loop pointer
(truly amazing that this hasn't blown up in anyones face so far). Do
some shuffling around of some items.
1999-11-21 03:12:58 +00:00
Matt Jacob 28e9826fd4 Put *back* the f/w, this time with a BSD style licence as approved
by Qlogic. The firmware is now also kept from compiling by default
unless some config options are set.

While we're at it, roll the 2200 f/w to 2.01.0. Still need to get the
1.17.26 2100 f/w working as it solves a lot of problems but it doesn't
want to work yet with this driver (:-)).
1999-11-21 03:08:29 +00:00
Matt Jacob 73e1de9229 Add in new Qlogic isp config options:
ISP_COMPILE_1020_FW	compile in Qlogic 1020/1040 PCI SCSI f/w
ISP_COMPILE_1080_FW	compile in Qlogic 1080/1240/1280 PCI LVD SCSI f/w
ISP_COMPILE_2100_FW	compile in Qlogic 2100 Fibre Channel f/w
ISP_COMPILE_2200_FW	compile in Qlogic 2200 Fibre Channel f/w
ISP_COMPILE_FW		compile in all firmware (overrides the others)

These are not on by default, thus saving about 200KBytes.

Additionally:

SCSI_ISP_WWN            to define a WWN to use
1999-11-21 03:00:19 +00:00
Matt Jacob 9637d68c97 Fix dmasetup functions to have 16 bit queue indices. Get the chip revision
out of the PCI CLASS reg and store it in the softc. Use the getenv_quad
function to get a WWN override from the environment. Look for a config
value for same. Make slightly less lame the wwn seed construction.
1999-11-21 02:56:17 +00:00
Jordan K. Hubbard 87d643ce34 Revert peter's commit to remove cdevsw_add() - it was a bit premature
since things fail to function properly without it (pty allocation becomes
somewhat haphazard).
1999-11-21 02:54:54 +00:00
David E. O'Brien 75b7d1d0ef Spell command names correctly. Even when they appear at the beginning
of a sentence.
1999-11-21 02:00:16 +00:00
David E. O'Brien 5b104c31b2 Merge FreeBSD changes into 2.3:
* revs 1.5-6 - added builtin decompression using zlib library, option -Z.

Submitted by:	ru
1999-11-21 01:55:21 +00:00
David E. O'Brien 678b4e4854 Virgin import of a trimmed down GNU Grep 2.3.
It is being re-imported here, to keep our long source change history with
this source continuous.
src/contrib/grep will be deleted some time in the very near future.
1999-11-21 01:50:08 +00:00
David E. O'Brien dd5c240f7a Merge FreeBSD changes into 2.3:
* rev 1.2 - use -lgnuregex

FreeBSD changes OBE'ed by 2.3:
* revs 1.4-5 - icase searches & ctype macro changes, fuctionality moved
               elsewhere.
* rev 1.3 - Remove trailing whitespace.  The GNU Grep maintainers did this
            for us.

Submitted by:	ru
1999-11-21 01:15:40 +00:00
David E. O'Brien 8d50785029 Alias -R to -r for backward compatibility.
Submitted by:	ru
Requested by:	wosch
1999-11-21 01:09:03 +00:00
David E. O'Brien 435811113f Set default matcher from argv[0].
Merge FreeBSD changes into 2.3:
* revs 1.9-10 - built-in decompression using zlib(3) library

FreeBSD changes OBE'ed by 2.3:
* rev 1.7 - our "-q" flag.  Use "-L" or "-l" now.
* revs 1.{4,6} - colleate, and with correct LC_ type.
* rev 1.3 - remove trailing whitespace.

Submitted by:	ru
1999-11-21 01:02:48 +00:00
Jun Kuriyama 31de378d47 s/Brige/Bridge/. 1999-11-21 00:53:23 +00:00
David E. O'Brien 4d0ccc8353 This is the stock 2.3 file (+ FreeBSD id). Since someone added 2.0 rather
than vendor importing the virgin 2.0 sources, we have to manually put this
on the HEAD branch.
1999-11-20 23:42:44 +00:00
David E. O'Brien 54d8658575 This is the stock 2.3 file (+ FreeBSD id). Since someone majorly SPAMMED
the repository by NOT vendor importing the virgin 2.0 sources, CVS had no
idea what to do here.
1999-11-20 23:41:24 +00:00
David E. O'Brien 651d50a82f This is the stock 2.3 file (+ FreeBSD id). Since someone majorly SPAMMED
the repository by NOT vendor importing the virgin 2.0 sources, CVS had no
idea what to do here.
1999-11-20 23:16:11 +00:00
David E. O'Brien 7423a9f8e9 Merge FreeBSD changes into 2.3:
* rev 1.5 - use collate for alpha character ranges
* rev 1.3 - use -lgnuregex

Submitted by: ru
1999-11-20 23:09:17 +00:00
Poul-Henning Kamp 95f1a897f9 Teach the md driver to use preloaded files of type "md_image". 1999-11-20 22:43:27 +00:00
David E. O'Brien c0e0ea0037 Virgin import of a trimmed down GNU Grep 2.3.
It is being re-imported here, to keep our long source change history with
this source continuous.
src/contrib/grep will be deleted some time in the very near future.
1999-11-20 18:37:42 +00:00
David E. O'Brien 2186a02c95 This commit was generated by cvs2svn to compensate for changes in r53469,
which included commits to RCS files with non-trunk default branches.
1999-11-20 18:37:42 +00:00