summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use more compiler friendly test for overflow.phk1999-08-211-3/+3
| | | | Submitted by: bde
* Clear all file flags when taking ownership of devices. Do not ignoreimp1999-08-212-3/+16
| | | | | chown failures in some places, but instead log them like we do all other errors.
* Remove all flags from devices before we try to assert ownership andimp1999-08-211-1/+3
| | | | | | | set permissions. Bug not fixed: We silently ignore failures of chflags, chmod and chown.
* added usb0 to 'all' target for usbd(8)gehenna1999-08-213-6/+9
|
* Add warnings, ala mktemp, to tempnam and tmpnam as a reminder thatimp1999-08-212-3/+13
| | | | | | these are inherently unsafe interfaces. Do not allow TMPDIR to override path for setuid/setgid programs.
* This commit adds support for the NetBSD MII abstraction layer andwpaul1999-08-2121-6/+2970
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MII-compliant PHY drivers. Many 10/100 ethernet NICs available today either use an MII transceiver or have built-in transceivers that can be programmed using an MII interface. It makes sense then to separate this support out into common code instead of duplicating it in all of the NIC drivers. The mii code also handles all of the media detection, selection and reporting via the ifmedia interface. This is basically the same code from NetBSD's /sys/dev/mii, except it's been adapted to FreeBSD's bus architecture. The advantage to this is that it automatically allows everything to be turned into a loadable module. There are some common functions for use in drivers once an miibus has been attached (mii_mediachg(), mii_pollstat(), mii_tick()) as well as individual PHY drivers. There is also a generic driver for all PHYs that aren't handled by a specific driver. It's possible to do this because all 10/100 PHYs implement the same general register set in addition to their vendor-specific register sets, so for the most part you can use one driver for pretty much any PHY. There are a couple of oddball exceptions though, hence the need to have specific drivers. There are two layers: the generic "miibus" layer and the PHY driver layer. The drivers are child devices of "miibus" and the "miibus" is a child of a given NIC driver. The "miibus" code and the PHY drivers can actually be compiled and kldoaded as completely separate modules or compiled together into one module. For the moment I'm using the latter approach since the code is relatively small. Currently there are only three PHY drivers here: the generic driver, the built-in 3Com XL driver and the NS DP83840 driver. I'll be adding others later as I convert various NIC drivers to use this code. I realize that I'm cvs adding this stuff instead of importing it onto a separate vendor branch, but in my opinion the import approach doesn't really offer any significant advantage: I'm going to be maintaining this stuff and writing my own PHY drivers one way or the other.
* The "depends-list" target disappeared in r.1.300 (Dec. 12, 1998) ofhoek1999-08-211-2/+2
| | | | | | bsd.port.mk. Replace its occurrence in this file with a synonym. PR: docs/13255
* Quiet some overly chatty debug output, do some minor cleanups tojkh1999-08-214-34/+38
| | | | the DHCP support code.
* MFS: Revert shared lib major version number back to 3.obrien1999-08-211-2/+2
|
* Detect if the the offset used to read from a raw device loose bitsphk1999-08-211-2/+8
| | | | when converted to block number.
* Implement a new generic mechanism for attaching handler functions tomsmith1999-08-2130-263/+496
| | | | | | | | | | | | | events, in order to pave the way for removing a number of the ad-hoc implementations currently in use. Retire the at_shutdown family of functions and replace them with new event handler lists. Rework kern_shutdown.c to take greater advantage of the use of event handlers. Reviewed by: green
* Remove superfluous `preserve' entry.chris1999-08-211-3/+1
| | | | PR: docs/13279
* Fix spelling error: compliment -> complementchris1999-08-214-24/+24
|
* Fix power management register definitions.wpaul1999-08-211-5/+5
|
* Add a NULL pointer check whose absence could cause segmentationjdp1999-08-201-6/+6
| | | | | | | violations in certain obscure cases involving failed dlopens. Many thanks to Archie Cobbs for providing me with a good test case. Eliminate a block that existed only to localize a declaration.
* Loosen up the constructed argument segment generation slightly; rather thanmsmith1999-08-202-20/+6
| | | | | | | | trying to size it intelligently just make it 64k and leave it up to the caller to ensure that the arguments all fit within that range. This should resolve the issue that some people were seeing with the PnP BIOS scan crashing on a large PnP node.
* move sanity check of timeval struct so as not to segfault when passedalfred1999-08-203-15/+15
| | | | | | | a null pointer. Pointed out by: Thomas Gellekum <tg@ihf.rwth-aachen.de> Reviewed by: eivind
* First small steps at merging DEVFS and PHK's Dev_t stuff.julian1999-08-206-35/+43
|
* Fixes for some style bugs in the initial version of this file:ken1999-08-201-10/+8
| | | | | | | | | | | | - missing reformatting protection in copyright. - missing blank line after copyright. - unusual spelling of idempotency macro (no trailing underscore). - unusual value of idempotency macro (1 instead of <empty>). - space instead of tab after #define's. - unnecessary namespace pollution and extra code to give it. - tab instead of space after #endif. Submitted by: bde
* Restore INTERNALLIB.abial1999-08-201-0/+1
| | | | Noticed by: bde,jdp
* MAXLINE not MAX_CMDLINEmdodd1999-08-201-1/+1
| | | | Noticed by: Norman C. Rice <nrice@emu.sourcee.com>
* Fix MLINKS.mdodd1999-08-201-3/+2
| | | | Noticed by: Norman C. Rice <nrice@emu.sourcee.com>
* Finally: fix test -x as completely as possible.green1999-08-201-7/+17
| | | | | Reviewed by: bde Reworked by: bde
* Fix stupid error (xse -> xsc).mdodd1999-08-203-22/+24
| | | | | | | | | Notice that 'unit' wasn't defined once I changed the parameters of the func. These things make me feel like wading in with a flamethrowr or something. Too much cruft! </rant>
* Fix a nasty kld bug where modules with objects of type GLOB_DAT which hadgallatin1999-08-202-2/+4
| | | | non-zero addends were being loaded incorrectly
* Set ifp->if_init to the right function.mdodd1999-08-207-67/+88
| | | | | | | | | | | | if_init_f_t is passed void * containing the address of ifp->if_softc not the unit number. Someone tell me if these things don't work as I don't have the hardware needed to test them. (thats a first.) I'll get if_ze and if_zp later. Pointed out by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
* When checking if there is a stack to free, observe the fact that itjb1999-08-203-18/+69
| | | | | | | | might have been mmapped, and if so, passing the pointer to free() is really not a good idea. [ In the next millenium, when I've taken over the world, I'm going to ban 8 character tabs. You've been warned. ]
* Remove unused MANBIN directive.ru1999-08-202-12/+4
|
* There may exist two kinds of IBM BlueLightning CPU. One is that 5/2kato1999-08-202-2/+30
| | | | | | | | | test does not change undefined flag like Cyrix CPUs. Another is that 5/2 test changes undefined flag like Intel CPUs. Latter one could not be detected and was recognized 486DX CPU. To solve this, finishidentcpu() calls identblue() when cpu_vendor is null string (that is, CPUID instruction is not supported) and cpu == CPU_486. Tests have been done on IBM BlueLightning CPUs, i486SX and i486DX.
* * Consistantly surround macro parameters with ()obrien1999-08-202-64/+67
| | | | | | | * Consistantly put spaces after "," in macro param lists * Consistantly align continuation characters. * Don't need to supply all variations of __FOO__ in CPP_PREDEFINES, gcc will do that for us.
* A "=" should have been "+=".obrien1999-08-201-2/+2
| | | | Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
* Fix some cut and paste damage.mdodd1999-08-202-3/+3
| | | | Noticed by: Norman C. Rice <nrice@emu.sourcee.com>
* Fix EINVAL related descriptions.rse1999-08-206-18/+21
|
* vm_page_alloc and contigmalloc1:alc1999-08-201-3/+3
| | | | | | Verify that free pages are not dirty. Submitted by: dillon
* Update blackhole(4)csgr1999-08-201-5/+8
|
* Fix short timeout problems with the pt(4) driver:ken1999-08-207-39/+146
| | | | | | | | | | | | | - increase the default timeout from 10 seconds to 60 seconds - add a new kernel option, SCSI_PT_DEFAULT_TIMEOUT, that lets users specify the default timeout for the pt driver to use - add two new ioctls, one to get the timeout for a given pt device, the other to set the timeout for a given pt device. The idea is that userland applications using the device can set the timeout to suit their purposes. The ioctls are defined in a new header file, sys/ptio.h PR: 10266 Reviewed by: gibbs, joerg
* Reduce default timeout on remote serial debugging sessions from 20grog1999-08-201-1/+1
| | | | | | | | | | seconds to 1 second. This fixes a problem where gdb would appear to hang on flaky serial connections. There's a theoretical problem that the relatively short timeout could cause problems on slow links, but you can override the default value with the 'set remotetimeout' command. Approved-by: dfr
* What the heck was I thinking? Nobody else saw this? Sheesh.mdodd1999-08-203-8/+14
| | | | | | | | | | (num > MAX) ? MAX : num rather than (MAX > num) ? MAX : num Also, make things a little easier to read while I'm here.
* Add 2 functions: el_data_set() and el_data_get() which do what youmdodd1999-08-205-3/+41
| | | | | | | | would expect. (Allow user data to be associated with an EditLine context). As this changes no existing interfaces and doesn't alter any structs visable to the user I've been told that its not necessary to bump the version of the library.
* Change the name of the static variable 'files' to 'linker_files' ingrog1999-08-201-14/+14
| | | | | | order to be able to refer to it uniquely from the kernel debugger. Approved-by: peter
* time_to_sleep->tv_nsec > 1000000000alfred1999-08-193-6/+6
| | | | | -to- time_to_sleep->tv_nsec >= 1000000000
* Sanity check time structures passed in, return EINVAL like the systemalfred1999-08-1912-18/+54
| | | | | | | | calls do to avoid corrupting the thread library's concept of wakeup time. PR: kern/12141 Reviewed by: deischen, eivind
* Make gcc work on the Alpha again. alpha/alpha.h is used instead of svr4.hpeter1999-08-191-2/+2
|
* Quieten ppp at startup.brian1999-08-197-14/+14
|
* Let processes retrieve their argv through procfs. Revert to the originalmarcel1999-08-192-16/+82
| | | | | | behaviour in all other cases. Submitted by: Andrew Gordon <arg@arg1.demon.co.uk>
* o Add the -foreground switch. This switch behaves like -background exceptbrian1999-08-1916-285/+358
| | | | | | | | | that ppp stays in the foreground. o Add the -quiet switch to quieten ppps startup o Add the -nat flag and discourage the use of the -alias flag. Both do the same thing. o Correct some nat usage strings. o Change the internal ``alias'' command to ``nat''.
* handle under/overflow of time values in a more robust manner,alfred1999-08-193-9/+9
| | | | | | | | there may be an overflow that need to be adjusted more than once. Pointed out by: Fabian Thylmann <fthylmann@stats.net> Reviewed by: eivind, jb
* Fix a typo and a bug.peter1999-08-191-10/+12
| | | | | | - One RTP_PRIO_REALTIME was meant to be RTP_PRIO_IDLE. - RTP_PRIO_FIFO was not handled. - Move the usual case first for setrunqueue() etc.
* Replace the tulip_delay_300ns() with a DELAY(1). Hammering the PCI buspeter1999-08-192-22/+4
| | | | | | | | | | | | | | | | | | | | | | | to achieve a delay is pretty mean. Andrew reports: "The tulip_delay_300ns() is, well, bloody stupid on machines with a heavily loaded PCI bus. It tries to do a delay by assuming PCI reads will take a certain amount of time & issues a large amount of (expensive, 5% CPU when your PCI bus is heavily loaded) pci reads. Locally, we've replaced the calls to tulip_delay_300ns(sc) in the EMIT macros with a simple DELAY(1) and not seen any problems. Plus we've gained about 50Mb/sec throughput on our gigabit network cards because of the added PCI bus bandwidth available." Also, I do not understand why, but this change appears to stop the Transmit Fifo underrun on one of my systems (but not the Alpha PC164SX). This shouldn't make that much of a difference since the mii bus isn't touched all that often, but perhaps when it does get accessed and hence hammers the register, it was causing the chip to get upset. Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
* Undo my previous commit and do it differently. Break the ffs() etc macrospeter1999-08-192-28/+54
| | | | | | | | into two parts - one to do the bsfl and the other to convert the result (base 0) to ffs()-like (base 1) in inline C. This enables the optimizer to be a lot smarter in certain cases, like where it knows that the argument is non-zero and we want ffs(known non zero arg) - 1. This appears to produce identical code to the old inline when the argument is unknown.
OpenPOWER on IntegriCloud