summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Be consistent about "static" functions: if the function is markedphk2002-09-2868-173/+174
| | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
* Create symlink for /etc/group. MAKEDEV file will use this file (group namematusita2002-09-282-0/+2
| | | | | | | | to gid conversion). PR: 43455 Submitted by: n-kogane@syd.odn.ad.jp X-MFC after: immediately if re@ permits, or after 4.7-RELEASE is out
* Put the casts on the right hand side of =.phk2002-09-281-1/+1
|
* Don't return(foo(bla)) when foo returns void.phk2002-09-281-2/+4
|
* I misplaced a local variable yesterday.phk2002-09-281-1/+1
|
* Correctly order VI_UNLOCK(), local variables and block comment.phk2002-09-281-4/+4
|
* Style, whitespace and lint fixes.phk2002-09-2811-77/+75
| | | | Sponsored by: DARPA & NAI Labs.
* Void functions cannot use return(foo) even if foo is also returning void.phk2002-09-281-14/+28
| | | | Sponsored by: DARPA & NAI Labs.
* Fix two style problems which made FlexeLint unhappy:phk2002-09-281-2/+2
| | | | | | Don't use zero-dimension array in struct pargs. Comma after the last element of an enum doesn't make sense.
* Rewrite the kse_create() function to better aproach the semantics wejulian2002-09-281-56/+71
| | | | have specified in the design.
* First confirmed kill from my Flexelint license: Check return valuephk2002-09-281-0/+4
| | | | | | | of g_clone_bio(). Detected by: http://www.gimpel.com/html/flex.htm Sponsored by: DARPA & NAI Labs.
* Remove masking macros for getwc(), putwc(), putwchar() and getwchar().tjr2002-09-285-17/+4
| | | | | | Although there was nothing wrong with getwc() and putwc(), getwchar() and putwchar() assumed that <stdio.h> had been included before <wchar.h>, which is not allowed by the standard.
* Place 'completed thread anchor' in pre-zero'd secion of the KSEGRPjulian2002-09-281-1/+1
| | | | structure, not the copied section.
* Remove more two-letters names,ache2002-09-281-8/+9
| | | | | | we don't use them in termcap already many years. Add "su" as alias to "dumb" to help login, with comment.
* Renamed intr_enqueue to intr_vector and intr_dequeue to intr_fast, tojake2002-09-285-12/+12
| | | | better reflect how they are called.
* Moved most interrupt related code to a new file, interrupt.S.jake2002-09-284-151/+190
|
* Zap now-unused SHLIB_MINORpeter2002-09-2840-40/+1
|
* Add a workaround for what seems to be confusion between binutils and thejake2002-09-274-8/+60
| | | | | | | | | | | sparc v9 ABI. The Elf_Rela records for local symbols appear to already have the symbol's value added in to the addend field, even though the ABI specifies we need to lookup the symbol and add its value too. This breaks text relocations in klds because the symbol's value is added twice, and the resulting address points off into nowhere land, so for now just use the addend. Tested by: rwatson
* Add a missing pair of curly braces to a conditional debuggibbs2002-09-271-2/+3
| | | | | statement. This ensures that debug code doesn't trigger if it isn't enabled. <blush>
* Update to match current kernel code.phk2002-09-275-203/+207
| | | | | | Fix a couple of reference data which were found to be in error. Sponsored by: DARPA & NAI Labs.
* Add "missing scratch-pad register" to the first of the two portsphk2002-09-271-2/+2
| | | | | | on the Argosy SP-320 dual-port async PCcard. An amazing piece of hardware seen from an ISO9000 point of view.
* Add a field so we can specify flags per port to the underlying device driver.phk2002-09-272-0/+3
|
* Add yet a quick flag to sio: 0x100000 "Scratch pad register missing".phk2002-09-271-6/+5
| | | | | | | The advanced stage of computer assisted hardware design and verification is aptly illustrated by the fact that this is necessary because only the first ports in a single-chip, dual-port async PC-Card product lacks this register.
* Fix so it compiles with the new disklabel stuff.sos2002-09-271-5/+5
|
* Extensively rework the geom_bsd method, put a lot of comments in, bettingphk2002-09-271-104/+424
| | | | | | | | | | | | | | | | | | | | | | | | | | | | that this will make people use this for their future copy&paste operations. Rework the detection of raw-disk offsets in disklabels. This actually unearthed a number of bugs in the (now) previous version. Also accept labels which don't have a magic RAW_PART, provided they don't confuse us too much. Change the order of our sanity-checks on labels found on disks to be more robust. Check against MAXPARTITIONS in our sanity-check and reject disklabels we cannot cope with. Create new g_bsd_modify() function to implment disklabel modifying ioctls. Implement DIOCSDINFO and DIOCWDINFO with the provision that the latter still not writes your change back to disk. I didn't have the nerves for that yet. In the start routine, use g_call_me() for complex ioctls to prevent sleeping. Sponsored by: DARPA & NAI Labs.
* Add the new g_slice_config() call, which can add/delete/change a slice,phk2002-09-278-5/+84
| | | | | | | | | with support for trying, doing and forcing. This will eventually replace g_slice_addslice() which gets changed from grabbing topology to requing it in this commit as well. Sponsored by: DARPA & NAI Labs.
* Make the UP/DOWN threads hold on to their own private mutex while doingphk2002-09-271-2/+26
| | | | | | | | | | work. This prevents people from sleeping in the UP/DOWN I/O path by mistake or design (doing so almost invariably result in deadlocks since it stalls all I/O processing in the given direction. Sponsored by: DARPA & NAI Labs.
* Correctly en/decode MAXPARTITIONS partitions.phk2002-09-271-16/+8
| | | | Sponsored by: DARPA & NAI Labs.
* Setattr should not retry on EBUSY, we could get EBUSY back becausephk2002-09-271-14/+15
| | | | | | | | | | a disklabel modification tries to change an open device, and no counter-examples exists. Be less facist about when we can do Setattr, the openmodes of devices are so loosely managed that the "exclusive" count is almost useless. Sponsored by: DARPA & NAI Labs.
* Various no-ops:phk2002-09-274-11/+5
| | | | | | | | | | | Add a __unused. Make the 2byte decoder functions return 16 bits for the benefits of picky lints. No need to grab giant around a tsleep() when we have a timeout. Sponsored by: DARPA & NAI Labs.
* Correctly calculate size of PC98 slices.phk2002-09-271-1/+1
| | | | Sponsored by: DARPA & NAI Labs.
* Allocate bio's with M_NOWAIT and let the caller deal with the problems.phk2002-09-271-7/+9
| | | | Sponsored by: DARPA & NAI Labs.
* Add checks for g_clone_bio() returning NULL, it will be possible RSN.phk2002-09-272-1/+18
| | | | Sponsored by: DARPA & NAI Labs.
* Implement g_call_me() as a way for geom methods to schedule operationsphk2002-09-273-1/+36
| | | | | | | | | | | | | | | | to be performed in the event-thread. To do this, we need to lock the eventlist with g_eventlock (nee g_doorlock), since g_call_me() being called from the UP/DOWN paths will not be able to aquire g_topology_lock. This also means that for now these events are not referenced on any particular consumer/provider/geom. For UP/DOWN path use, this will not become a problem since the access() function will make sure we drain any bio's before we dismantle. Sponsored by: DARPA & NAI Labs.
* Ok, include also the two tests which actually does effect the claimsphk2002-09-271-0/+4
| | | | | | of the last commit message. Sponsored by: DARPA & NAI Labs.
* Hook into the shutdown EVENTHANDLER and stop tasting things after wephk2002-09-271-0/+16
| | | | | | get notified to make things settle a bit faster. Sponsored by: DARPA & NAI Labs.
* Rename the doorlock to eventlock, it gets to protect a bit more in the future.phk2002-09-271-6/+6
| | | | Sponsored by: DARPA & NAI Labs.
* Make it a tad easier to deal with struct inode in userland programs whichphk2002-09-271-1/+1
| | | | | | fondle /dev/kmem by using "struct cdev *" instead of "dev_t". Requsted by: jake
* Use our mount-credential if we get a NOCRED when we try to write out EAphk2002-09-271-0/+2
| | | | | | | | | space back to disk. This is wrong in many ways, but not as wrong as a panic. Pancied on: rwatson & jmallet Sponsored by: DARPA & NAI Labs.
* MFNetBSD: Increasre the reset recovery time. (rev 1.69)joe2002-09-271-3/+3
|
* MFNetBSD: Update class codes. (rev 1.68)joe2002-09-271-5/+13
|
* Add a D_NOGIANT flag which can be set in a struct cdevsw to indicatephk2002-09-273-13/+78
| | | | | | | | | | | | that a particular device driver is not Giant-challenged. SPECFS will DROP_GIANT() ... PICKUP_GIANT() around calls to the driver in question. Notice that the interrupt path is not affected by this! This does _NOT_ work for drivers accessed through cdevsw->d_strategy() ie drivers for disk(-like), some tapes, maybe others.
* MFNetBSD: Add Bluetooth related classes etc. (rev 1.67)joe2002-09-271-5/+12
|
* MFNetBSD: revision 1.66joe2002-09-271-6/+6
| | | | Get rid of trailing white space.
* Add the pst (Promise SX6000) driver to GENERIC.sos2002-09-272-0/+2
|
* Add the "Monitor" interface flag.phk2002-09-274-0/+21
| | | | | | | | | | Setting this flag on an ethernet interface blocks transmission of packets and discards incoming packets after BPF processing. This is useful if you want to monitor network trafic but not interact with the network in question. Sponsored by: http://www.babeltech.dk
* Rename struct specinfo to the more appropriate struct cdev.phk2002-09-278-23/+23
| | | | Agreed on: jake, rwatson, jhb
* Add manpage for the pst driver (Promise SX6000)sos2002-09-272-0/+64
|
* Prepare for the uncoming import of the ServeRAID driverscottl2002-09-271-0/+2
|
* Fix moused so you can use the stop commandgordon2002-09-271-3/+1
| | | | Reported by: wa1ter@myrealbox.com
OpenPOWER on IntegriCloud