summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Remove bogus block device major now that bdev majors are gone.jhb2001-04-021-2/+1
|
* If ifpromisc() fails the SIOCSIFFLAGS ioctl, put ifp->if_flagsbrian2001-04-021-0/+4
| | | | back the way we found them.
* Return 0 and do nothing when we get a SIOCSIFFLAGS.brian2001-04-021-0/+1
| | | | | | | Without this, ifpromisc() always fails (after setting the IFF_PROMISC bit in ifp->if_flags) and bpf never bothers to turn promiscuous mode off. PR: 20188
* - Move the second stop() of process 'p' in issignal() to be after we sendjhb2001-04-021-3/+2
| | | | | | | | | | | | SIGCHLD to our parent process. Otherwise, we could block while obtaining the process lock for our parent process and switch out while we were in SSTOP. Even worse, when we try to resume from the mutex being blocked on our p_stat will be SRUN, not SSTOP. - Fix a comment above stop() to indicate that it requires that the proc lock be held, not a proctree lock. Reported by: markm Sleuthing by: jake
* Regen.n_hibma2001-04-022-2/+18
|
* Add Agate Q-Drive.n_hibma2001-04-021-0/+4
| | | | Submitted by: Ian Cartwright <ian351c@home.com>
* Regen.n_hibma2001-04-022-8/+204
|
* Sync with NetBSD usbdevsn_hibma2001-04-021-16/+56
|
* Add support for MODULES_OVERRIDE. This is a list of modules to buildimp2001-04-026-0/+19
| | | | | | | | | instead of all of them. You can put this in /etc/make.conf or in makeoptions. Reviewed by: arch@ # docs to follow.
* o Correct an ACL implementation bug that could result in a system panicrwatson2001-04-021-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | under heavy use when default ACLs were bgin inherited by new files or directories. This is done by removing a bug in default ACL reading, and improving error handling for this failure case: - Move the setting of the buffer length (len) variable to above the ACL type (ap->a_type) switch rather than having it only for ACL_TYPE_ACCESS. Otherwise, the len variable is unitialized in the ACL_TYPE_DEFAULT case, which generally worked right, but could result in failure. - Add a check for a short/long read of the ACL_TYPE_DEFAULT type from the underlying EA, resulting in EPERM rather than passing a potentially corrupted ACL back to the caller (resulting "cleaner" failures if the EA is damaged: right now, the caller will almost always panic in the presence of a corrupted EA). This code is similar to code in the ACL_TYPE_ACCESS handling in the previous switch case. - While I'm fixing this code, remove a redundant bzero() of the ACL reader buffer; it need only be initialized above the acl_type switch. Obtained from: TrustedBSD Project
* Make an attempt to get the asr driver to compile on Alpha by fixing some i386scottl2001-04-012-1/+15
| | | | | specific bogons. Compile with -O0, as anything higher gives the compiler a fit. No idea if this driver will actually work on Alpha, though.
* make code use strxxx() callsalfred2001-04-011-11/+3
| | | | Glanced at by: imp
* Correct typo.nyan2001-04-011-4/+4
|
* Merged from sys/i386/i386/bioscall.s revision 1.9 and 1.10.nyan2001-04-011-3/+7
|
* Regen after adding linux_sched_get_priority_max() andalc2001-04-013-7/+15
| | | | linux_sched_get_priority_min().
* Merged from sys/i386/isa/clock.c revision 1.171.nyan2001-04-013-9/+3
|
* Merged from sys/i386/i386/machdep.c revision 1.446.nyan2001-04-012-2/+4
|
* Merged from sys/dev/aic/aic_isa.c revision 1.7.nyan2001-04-011-1/+5
|
* Add linux_sched_get_priority_max() and linux_sched_get_priority_min(): Thealc2001-04-012-2/+58
| | | | policy parameter requires translation.
* Merged from sys/i386/apm/apm.c revision 1.121.nyan2001-04-011-6/+7
|
* Merged from sys/conf/options.i386 revision 1.144.nyan2001-04-011-0/+1
|
* Merged from sys/conf/files.i386 revision 1.350 and 1.354.nyan2001-04-011-1/+1
|
* Change ahc_update_pending_scbs() so that it safe to be calledgibbs2001-04-011-0/+11
| | | | | even if the controller is not paused. This prevents SCB list corruption that was introduced in the last checkin.
* o Part two of introduction of extattr_{delete,get,set}_fd() system calls,rwatson2001-03-316-8/+45
| | | | | | regenerate necessary automatically-generated code. Obtained from: TrustedBSD Project
* o Introduce extattr_{delete,get,set}_fd() to allow extended attributerwatson2001-03-314-156/+447
| | | | | | | | | | | | | operations on file descriptors, which complement the existing set of calls, extattr_{delete,get,set}_file() which act on paths. In doing so, restructure the system call implementation such that the two sets of functions share most of the relevant code, rather than duplicating it. This pushes the vnode locking into the shared code, but keeps the copying in of some arguments in the system call code. Allowing access via file descriptors reduces the opportunity for race conditions when managing extended attributes. Obtained from: TrustedBSD Project
* comment typo: subsytem -> subsystemmurray2001-03-311-1/+1
| | | | | PR: 26219 Submitted by: Andre <andre@akademie3000.de>, chern@osd.bsdi.com
* Recognize a few newer cpus (pca57, ev67 & ev68) and update systypes togallatin2001-03-302-1/+13
| | | | include "CUSCO" and "Eiger" while I'm at it.
* Change the previous commit to be in style(9)jesper2001-03-301-2/+1
| | | | Reviewed by: jhb
* o Restructure privilege check associated with process visibility forrwatson2001-03-291-3/+1
| | | | | | | | | ps_showallprocs such that if superuser is present to override process hiding, the search falls through [to success]. When additional restrictions are placed on process visibility, such as MAC, new clauses will be placed above the return(0). Obtained from: TrustedBSD Project
* Reduce the emasculation of bounds_check_with_label() by one line, so weobrien2001-03-291-1/+1
| | | | propagate a bio error condition to the caller and above.
* Removed the ``#if 0'' that turned bounds_check_with_label() into worseobrien2001-03-291-2/+0
| | | | | | | | | | | | | | than a NOP. bounds_check_with_label() would return -1 yet NOT set any of the bio flags to show an error. This meant the caller would not properly see that bounds_check_with_label() did not do any work. This prevented newfs(8) from being able to write a file system on any partition other than `c' on a `ccd'. The logs of this file do not tell _why_ bounds_check_with_label() was emasculated. Nor are there any `XXX' comments. So we'll unemasculated it, and see what breaks. Submitted by: gallatin
* Fix a couple style nits, no code changes. Turn one magic number intowpaul2001-03-292-19/+23
| | | | | | a #defined constant, wrap a few long lines, etc... Also remove stupid 'all your base are belong to us' joke from comment that I don't really care to see immortalized in the source tree.
* Since -CURRENT requires module dependencies to actually be correct forgreen2001-03-291-0/+1
| | | | linking to work, have cue(4) depend on usb so it actually works.
* - Various style fixes.jhb2001-03-292-14/+6
| | | | | | | - Fix a silly bug so that we return the actual error code if a procfs attach fails rather than always returning 0. Reported by: bde
* - Added suspend/resume support.orion2001-03-292-229/+319
| | | | | | | | | | | | | - Added 4 speaker enable to initialization sequence. - Removed delays between register pokes which appear to aggravate a problem this card has sampling at 44.1kHz. With any form of delay, skew relative to system clock at 44.1kHz is usually in range 0-25% (now 0-3%). No other rates exhibit this problem. - Changed structs cmi_* to sc_*. Approved by: Cameron Grant <gandalf@vilnya.demon.co.uk>
* fix a number of printf format string warnings inside DEBUG ifdefsgallatin2001-03-292-28/+30
|
* Fix building NEWCARD again, by includingjesper2001-03-291-0/+2
| | | | | sys/types.h and sys/lock.h in pccbb.c, as jhb noted in rev 1.12 of src/share/man/man9/mutex.9
* aic7770.c:gibbs2001-03-299-310/+371
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aic7xxx_pci.c: Enable board generation of interrupts only once our handler is in place and all other setup has occurred. aic7xxx.c: More conversion of data types to ahc_* names. tmode_tstate and tmode_lstate are the latest victims. Clean up the check condition path by branching early rather than indenting a giant block of code. Add support for target mode initiated sync negotiation. The code has been tested by forcing the feature on for all devices, but for the moment is left inaccesible until a decent mechanism for controlling the behavior is complete. Implementing this feature required the removal of the old "target message request" mechanism. The old method required setting one of the 16 bit fields to initiate negotiation with a particular target. This had the nice effect of being easy to change the request and have it effect the next command. We now set the MK_MESSAGE bit on any new command when negotiation is required. When the negotiation is successful, we walk through and clean up the bit on any pending commands. Since we have to walk the commands to reset the SCSI syncrate values so no additional work is required. The only drawback of this approach is that the negotiation is deferred until the next command is queued to the controller. On the plus side, we regain two bytes of sequencer scratch ram and 6 sequencer instructions. When cleaning up a target mode instance, never remove the "master" target mode state object. The master contains all of the saved SEEPROM settings that control things like transfer negotiations. This data will be cloned as the defaults if a target mode instance is re-instantiated. Correct a bug in ahc_set_width(). We neglected to update the pending scbs to reflect the new parameters. Since wide negotiation is almost always followed by sync negotiation it is doubtful that this had any real effect. When in the target role, don't complain about "Target Initiated" negotiation requests when an initiator negotiates with us. Defer enabling board interrupts until after ahc_intr_enable() is called. Pull all info that used to be in ahc_timeout for the FreeBSD OSM into ahc_dump_card_state(). This info should be printed out on all platforms. aic7xxx.h: Add the SCB_AUTO_NEGOITATE scb flag. This allows us to discern the reason the MK_MESSAGE flag is set in the hscb control byte. We only want to clear MK_MESSAGE in ahc_update_pending_scbs() if the MK_MESSAGE was set due to an auto transfer negotiation. Add the auto_negotiate bitfield for each tstate so that behavior can be controlled for each of our enabled SCSI IDs. Use a bus interrupt handler vector in our softc rather than hard coding the PCI interrupt handler. This makes it easier to build the different bus attachments to the aic7xxx driver as modules. aic7xxx.reg: Remove the TARGET_MSG_REQUEST definition for sequencer ram. aic7xxx.seq: Fix a few target mode bugs: o If MK_MESSAGE is set in an SCB, transition to message in phase and notify the kernel so that message delivery can occur. This is currently only used for target mode initiated transfer negotiation. o Allow a continue target I/O to compile without executing a status phase or disconnecting. If we have not been granted the disconnect privledge but this transfer is larger than MAXPHYS, it may take several CTIOs to get the job done. Remove the tests of the TARGET_MSG_REQUEST field in scratch ram. aic7xxx_freebsd.c: Add support for CTIOs that don't disconnect. We now defer the clearing of our pending target state until we see a CTIO for that device that has completed sucessfully. Be sure to return early if we are in a target only role and see an initiator only CCB type in our action routine. If a CTIO has the CAM_DIS_DISCONNECT flag set, propogate this flag to the SCB. This flag has no effect if we've been asked to deliver status as well. We will complete the command and release the bus in that case. Handle the new auto_negotiate field in the tstate correctly. Make sure that SCBs for "immediate" (i.e. to continue a non disconnected transaction) CTIO requests get a proper mapping in the SCB lookup table. Without this, we'll complain when the transaction completes. Update ahc_timeout() to reflect the changes to ahc_dump_card_state(). aic7xxx_inline.h: Use ahc->bus_intr rather than ahc_pci_intr.
* Regenerate correctly.peter2001-03-292-2/+2
|
* Hint: usbdevs_data.h and usbdevs.h are marked:peter2001-03-291-0/+1
| | | | | * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. Put the Epson 1240 scanner device in the correct place.
* Prepare for pseudofs.des2001-03-281-1/+1
|
* o introduce u_cansee(), which performs access control checks betweenrwatson2001-03-282-14/+27
| | | | | | | | | | two subject ucreds. Unlike p_cansee(), u_cansee() doesn't have process lock requirements, only valid ucred reference requirements, so is prefered as process locking improves. For now, back p_cansee() into u_cansee(), but eventually p_cansee() will go away. Reviewed by: jhb, tmm Obtained from: TrustedBSD Project
* Make per-address input packet counts for lo0 work.ume2001-03-281-6/+22
| | | | | Reported by: bmah Submitted by: Noriyasu KATO <noriyasu.kato@toshiba.co.jp> (via itojun)
* resurrect the declaration of order to unbreak kernel build. Putgallatin2001-03-281-0/+1
| | | | it inside the ifdef so as to avoid unused variable warnings
* Small patch is required to the USB susbsystem to include support forphk2001-03-283-0/+8
| | | | | | | Epson Perfection 1240U scanner. PR: 25565 Submitted by: Martin Machacek <m@m3a.cz>
* Close a race condition where if we were obtaining a sleep lock and no spinjhb2001-03-281-1/+14
| | | | | | | | locks were held, we could be preempted and switch CPU's in between the time that we set a variable to the list of spin locks on our CPU and the time that we checked that variable to ensure no spinlocks were held while grabbing a sleep lock. Losing the race resulted in checking some other CPU's spin lock list and bogusly panicing.
* Fix a number of minor bugs in the VLAN code:yar2001-03-281-6/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initialize the "struct sockaddr_dl sdl" correctly in vlan_setmulti(). PR: kern/22181 * The driver used to call malloc(..., M_NOWAIT), but to not check the return value. Change malloc(..., M_NOWAIT) to malloc(..., M_WAITOK) because the corresponding part of code is called from the upper half of the kernel only. PR: kern/22181 * Make sure a parent interface is up and running before invoking its if_start() routine in order to avoid system panic. PR: kern/22179 kern/24741 i386/25478 * Do not copy all the flags from a parent mindlessly. PR: kern/22179 * Do not call if_down() on a parent interface if it's already down. Call if_down() at splimp because if_down() needs that. PR: kern/22179 Reviewed by: wollman
* Add missing includes of <sys/sx.h>jhb2001-03-283-0/+3
| | | | Reported by: peter
* Typo fix. s/criticale_t/critical_t/peter2001-03-283-3/+3
|
* MFC candidate.jesper2001-03-283-3/+5
| | | | | | | | | | | | | Change code from PRC_UNREACH_ADMIN_PROHIB to PRC_UNREACH_PORT for ICMP_UNREACH_PROTOCOL and ICMP_UNREACH_PORT And let TCP treat PRC_UNREACH_PORT like PRC_UNREACH_ADMIN_PROHIB This should fix the case where port unreachables for udp returned ENETRESET instead of ECONNREFUSED Problem found by: Bill Fenner <fenner@research.att.com> Reviewed by: jlemon
OpenPOWER on IntegriCloud