summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* If you're going to mechanically replicate something in 50 filesjulian1995-11-2977-149/+202
| | | | it's best to not have a (compiles cleanly) typo in it! (sigh)
* #ifdef out nearly the entire file of conf.c when JREMOD is definedjulian1995-11-294-7/+42
| | | | | | | | | | add a few safety checks in specfs because now it's possible to get entries in [cd]devsw[] which are ALL NULL so it's better to discover this BEFORE jumping into the d_open() entry.. more check to come later.. this getsthe code to the stage where I can start testing it, even if I haven't caught every little error case... I guess I'll find them quick enough..
* A test was backwards.phk1995-11-292-4/+6
| | | | Noticed by: Cheng, Hsiao-Yang <sycheng@cis.ufl.edu>
* 'see" -> "see" (in the comment).asami1995-11-292-4/+4
| | | | Noticed by: hilit19.el (stop laughing! ;)
* OK, that's it..julian1995-11-2979-743/+2708
| | | | | | | | | | | | | | | | | | | | | | | | That's EVERY SINGLE driver that has an entry in conf.c.. my next trick will be to define cdevsw[] and bdevsw[] as empty arrays and remove all those DAMNED defines as well.. Each of these drivers has a SYSINIT linker set entry that comes in very early.. and asks teh driver to add it's own entry to the two devsw[] tables. some slight reworking of the commits from yesterday (added the SYSINIT stuff and some usually wrong but token DEVFS entries to all these devices. BTW does anyone know where the 'ata' entries in conf.c actually reside? seems we don't actually have a 'ataopen() etc... If you want to add a new device in conf.c please make sure I know so I can keep it up to date too.. as before, this is all dependent on #if defined(JREMOD) (and #ifdef DEVFS in parts)
* staticize.phk1995-11-291-42/+42
|
* Staticized and '#ifdef notused' stuff we don't use.phk1995-11-2918-131/+140
|
* Add crynwr mode to the lp# interface.phk1995-11-291-4/+2
| | | | | Reviewed by: pst, phk Submitted by: tim@sarc.city.ac.uk
* Staticize again.phk1995-11-294-12/+12
|
* Fix a few typostg1995-11-291-3/+3
|
* A batch of Jim Lowe's patches:jkh1995-11-2912-35/+148
| | | | | | | | | | o Add signed/unsigned functionality to the matrox meteor device driver. o Apply a few fixes to the sound driver. o Add a ``SPIGOT_UNSECURE'' compile time definition so, if one defines SPIGOT_UNSECURE in their conf file, then they can use the spigot w/o root. There is a warning that this allows users access to the IO page which is probably not secure. Submitted by: james
* Device driver for Intel Pro/100 PCI Fast Ethernet controller.dg1995-11-285-0/+2627
|
* Add Lyndon's man page.joerg1995-11-284-2/+134
| | | | | | Closes PR # docs/842 Submitted by: lyndon@orthanc.com (Lyndon Nerenberg)
* If CONFIG_NO_CLOBBER_EVER is defined (e.g., in /etc/make.conf), don't makewollman1995-11-282-0/+5
| | | | | it possible for config to ever blow away a work directory. Default behavior remains broken.
* Added 'install' to the lib-tools target since it is uses the new '-C' flagnate1995-11-281-1/+3
| | | | to install libraries to avoid messing up dependencies.
* Comment out /usr/X386/man entry from MANDATORY_MANPATH - it's obsolete.jkh1995-11-281-1/+1
| | | | Submitted by: mi@ALDAN.star89.galstar.com
* Updated to BSD4.4lite2. Fixes PR836. `echo abcd | tr a-d A-BC-D' nowbde1995-11-281-3/+3
| | | | works.
* oops forgot one..julian1995-11-282-2/+70
|
* the second set of changes in a move towards getting devices to bejulian1995-11-282-1/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | totally dynamic. (the first was about 7 weeeks ago) this is only the devices in i386/isa I'll do more tomorrow. they're completely masked by #ifdef JREMOD at this stage... the eventual aim is that every driver will do a SYSINIT at startup BEFORE the probes, which will effectively link it into the devsw tables etc. If I'd thought about it more I'd have put that in in this set (damn) The ioconf lines generated by config will also end up in the device's own scope as well, so ioconf.c will eventually be gutted the SYSINIT call to the driver will include a phase where the driver links it's ioconf line into a chain of such. when this phase is done then the user can modify them with the boot: -c config menu if he wants, just like now.. config will put the config lines out in the .h file (e.g. in aha.h will be the addresses for the aha driver to look.) as I said this is a very small first step.. the aim of THIS set of edits is to not have to edit conf.c at all when adding a new device.. the tabe will be a simple skeleton.. when this is done, it will allow other changes to be made, all teh time still having a fully working kernel tree, but the logical outcome is the complete REMOVAL of the devsw tables. By the end of this, linked in drivers will be exactly the same as run-time loaded drivers, except they JUST HAPPEN to already be linked and present at startup.. the SYSINIT calls will be the equivalent of the "init" call made to a newly loaded driver in every respect. For this edit, each of the files has the following code inserted into it: obviously, tailored to suit.. ----------------------somewhere at the top: #ifdef JREMOD #include <sys/conf.h> #define CDEV_MAJOR 13 #define BDEV_MAJOR 4 static void sd_devsw_install(); #endif /*JREMOD */ ---------------------somewhere that's run during bootup: EVENTUALLY a SYSINIT #ifdef JREMOD sd_devsw_install(); #endif /*JREMOD*/ -----------------------at the bottom: #ifdef JREMOD struct bdevsw sd_bdevsw = { sdopen, sdclose, sdstrategy, sdioctl, /*4*/ sddump, sdsize, 0 }; struct cdevsw sd_cdevsw = { sdopen, sdclose, rawread, rawwrite, /*13*/ sdioctl, nostop, nullreset, nodevtotty,/* sd */ seltrue, nommap, sdstrategy }; static sd_devsw_installed = 0; static void sd_devsw_install() { dev_t descript; if( ! sd_devsw_installed ) { descript = makedev(CDEV_MAJOR,0); cdevsw_add(&descript,&sd_cdevsw,NULL); #if defined(BDEV_MAJOR) descript = makedev(BDEV_MAJOR,0); bdevsw_add(&descript,&sd_bdevsw,NULL); #endif /*BDEV_MAJOR*/ sd_devsw_installed = 1; } } #endif /* JREMOD */
* the second set of changes in a move towards getting devices to bejulian1995-11-2840-32/+1351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | totally dynamic. this is only the devices in i386/isa I'll do more tomorrow. they're completely masked by #ifdef JREMOD at this stage... the eventual aim is that every driver will do a SYSINIT at startup BEFORE the probes, which will effectively link it into the devsw tables etc. If I'd thought about it more I'd have put that in in this set (damn) The ioconf lines generated by config will also end up in the device's own scope as well, so ioconf.c will eventually be gutted the SYSINIT call to the driver will include a phase where the driver links it's ioconf line into a chain of such. when this phase is done then the user can modify them with the boot: -c config menu if he wants, just like now.. config will put the config lines out in the .h file (e.g. in aha.h will be the addresses for the aha driver to look.) as I said this is a very small first step.. the aim of THIS set of edits is to not have to edit conf.c at all when adding a new device.. the tabe will be a simple skeleton.. when this is done, it will allow other changes to be made, all teh time still having a fully working kernel tree, but the logical outcome is the complete REMOVAL of the devsw tables. By the end of this, linked in drivers will be exactly the same as run-time loaded drivers, except they JUST HAPPEN to already be linked and present at startup.. the SYSINIT calls will be the equivalent of the "init" call made to a newly loaded driver in every respect. For this edit, each of the files has the following code inserted into it: obviously, tailored to suit.. ----------------------somewhere at the top: #ifdef JREMOD #include <sys/conf.h> #define CDEV_MAJOR 13 #define BDEV_MAJOR 4 static void sd_devsw_install(); #endif /*JREMOD */ ---------------------somewhere that's run during bootup: EVENTUALLY a SYSINIT #ifdef JREMOD sd_devsw_install(); #endif /*JREMOD*/ -----------------------at the bottom: #ifdef JREMOD struct bdevsw sd_bdevsw = { sdopen, sdclose, sdstrategy, sdioctl, /*4*/ sddump, sdsize, 0 }; struct cdevsw sd_cdevsw = { sdopen, sdclose, rawread, rawwrite, /*13*/ sdioctl, nostop, nullreset, nodevtotty,/* sd */ seltrue, nommap, sdstrategy }; static sd_devsw_installed = 0; static void sd_devsw_install() { dev_t descript; if( ! sd_devsw_installed ) { descript = makedev(CDEV_MAJOR,0); cdevsw_add(&descript,&sd_cdevsw,NULL); #if defined(BDEV_MAJOR) descript = makedev(BDEV_MAJOR,0); bdevsw_add(&descript,&sd_bdevsw,NULL); #endif /*BDEV_MAJOR*/ sd_devsw_installed = 1; } } #endif /* JREMOD */
* Removed all #includes of the unused file <sys/device.h>.bde1995-11-283-6/+3
|
* Removed bogus __BEGIN_DECS/__END_DECLS.bde1995-11-281-3/+1
|
* After having put on my Asbestos suit, complete the MFS_ROOT part of Terry'speter1995-11-283-46/+67
| | | | | mountroot changes. This means that the mfs_initminiroot functionality into the root mfs_mount....
* Implement read/write to kernel space - I use this for a self-loading/peter1995-11-281-11/+16
| | | | | | | self-decompressing ram disk that I'm fiddling with.. (Note, this depends on the various syscalls having correctly set uio_segflag before calling physio - I've checked and they look correct.)
* Attempt to solve the busy-buffers-on-shutdown caused by MFS once and for all.peter1995-11-281-4/+14
| | | | | | | | | | | | | What was happening, was that the main mfs loop was sleeping, and when it was being awoken by a wakeup when it was supposed to process some IO requests. The problem was that if it was being woken out of the tsleep() by a signal at shutdown, it was going straight into dounmount() without servicing any pending IO requests, causing dounmount() to fail because there were busy buffers (and they could not be "processed" because the processing loop was trying to unmount rather than dispatching into mfs_doio()). This (dare I say it :-) appears to be a layering problem....
* Mainly cosmetic cleanups... It now uses more consistant message reportingpeter1995-11-286-54/+58
| | | | | on the console, and no longer uses "SLXOS" which I suspect may be a trademark... (I'm not sure, but this is not really a SLXOS driver anyway)
* Implement some rudimentry IPX support...peter1995-11-281-2/+18
|
* Separate colors & attributes as Terry pointsache1995-11-286-222/+444
| | | | Reviewed by: soren
* port 22 is the officially assigned "ssh" port...peter1995-11-271-1/+3
|
* Typo.jfieber1995-11-271-2/+2
|
* Make tip recognize EOF in more cases.phk1995-11-261-6/+17
|
* Fixed setting of speed B0 - don't output a bogus divisor of 0 and abde1995-11-263-15/+27
| | | | | random prescaler, just hang up. This may fix hangup problems with mgetty.
* Make the default tape device match dump(8).joerg1995-11-262-4/+4
|
* Add Donald Burr <d_burr@ix.netcom.com> for his contribution of theasami1995-11-261-1/+2
| | | | workman port.
* Make the {FETCH,BUILD,RUN}_DEPEND targets work with non-executable filesasami1995-11-261-5/+23
| | | | | | | too. Basically, if the name starts with a "/", it's tested with "test -e"; otherwise, it's tested with "witch -s". Reviewed by: the ports list (well at least nobody complained)
* Fixed beforeinstall rule. .CURDIR was spelled .SRCDIR.bde1995-11-261-4/+3
| | | | | | Changed beforeinstall rule to use `install -C' instead of `cmp -s' and `install -c'. `install -C' has exactly the right semantics for installing headers and should be used elsewhere.
* Bring forward libkadm change from 2.1jkh1995-11-261-1/+2
|
* My reorganization of chapter 9.jkh1995-11-254-58/+141
| | | | Reviewed by: jfieber
* Add -DNOCLEAN option which totally and utterly disables any form ofpeter1995-11-251-2/+18
| | | | | | | | | | | | | | | | | cleaning during a make. This may give you more rope to hang yourself if you are caught with some subtle dependency on installed binaries in your build, but if you are doing daily 'make -DNOCLEAN world' it's not too bad at all. It could take as little as 30 minutes to do an entire sync-up of your binaries if everything's up to date, especially if you are using 'INSTALL=install -C' in /etc/make.conf (highly recomended!). Also, add a "reinstall" target. You can do a 'make DESTDIR=/mnt reinstall' where /mnt is the nfs root of a machine and you get the install parts of the make world run on it. I saw this on -hackers quite some time ago and included it in my Makefile and have been using it on and off for a while. Alas, I cannot find the actual message with the author's name...
* Part two of a repository operation to sort out the libmp/libgmp builds.peter1995-11-252-59/+28
| | | | | After this commit, you should be able to build libmp and libgmp independently and without being forced to do a make depend first..
* Connect fsdb to /sbin makefile...peter1995-11-241-2/+2
|
* Adjust relative paths in Makefile to ../sbin/fsck and ../../sys/ufs/ffspeter1995-11-241-2/+2
|
* Disconnect fsdb in preperation for move to /sbinpeter1995-11-241-2/+2
|
* Oops, the previous change was missing the declaration of `structbde1995-11-243-3/+9
| | | | | buf_queue_head'. It isn't forward declared in <sys/types.h> like `struct buf'.
* Completed function declarations and/or added prototypes.bde1995-11-243-2/+7
|
* Added bogusly placed extern prototypes for functions that should probablybde1995-11-247-0/+24
| | | | be static.
* Fixed a comment.bde1995-11-243-6/+6
|
* Declared tqdisksort(). <sys/disklabel.h> is the wrong place, butbde1995-11-243-3/+6
| | | | <sys.disk.h> isn't used, so the declaration there isn't seen.
* Completed function declarations and/or added prototypes and/or #includesbde1995-11-2414-68/+98
| | | | | | | | | | to get the prototypes. Changed some `int's to `boolean_t's. boolean_t's are ints so they are hard to distinguish from ints. Converted function headers to old-style. ddb is written in K&R1 C except where we broke it.
* Completed function declarations and/or added prototypes.bde1995-11-249-130/+155
| | | | | | Removed `extern' from prototypes. Sorted prototypes. Uniformized idempotency ifdefs.
OpenPOWER on IntegriCloud