aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly pass in the relocation base and data offset into ef_reloc()Ian Dowse2004-08-287-43/+54
| | | | | | | | | rather than relying on a trick that happens to work for the current relocation schemes. Also add some comments and improve variable naming. Notes: svn path=/head/; revision=134450
* Also, match the full path to the special nologin shell.Mike Makonnen2004-08-281-1/+2
| | | | | | | | | | | | | Previously, it would recognize it as a valid shell only if the basename (nologin) was specified. Now, it will recognize both the basename and the full path. NOTE: The full path as adduser(8) understands it is /usr/sbin/nologin. There is a symlink, /sbin/nologin, but that's deprecated and only there for backwards compatibility. Notes: svn path=/head/; revision=134440
* Use a temporary void * variable to work around a strict aliasingIan Dowse2004-08-271-2/+3
| | | | | | | warning that gcc generates at -O2 and higher. Notes: svn path=/head/; revision=134373
* Add MD relocation support for amd64 and i386 platforms. The no-opIan Dowse2004-08-272-0/+207
| | | | | | | | | | | | relocation is not sufficient for ELF relocatable object format modules, since accessing the module metadata involves following pointers between different ELF sections. This allows kldxref to correctly build linker.hints on the amd64 platform. Notes: svn path=/head/; revision=134362
* Add support for reading ELF relocatable object file format modules.Ian Dowse2004-08-273-4/+609
| | | | Notes: svn path=/head/; revision=134361
* Call the file format specific code through a table of functionIan Dowse2004-08-275-75/+244
| | | | | | | | pointers and remove knowledge of the file format from kldxref.c. This will make it possible to support more than one file format. Notes: svn path=/head/; revision=134358
* No longer do special handling of Perl. FreeBSD users have all of 5.xDavid E. O'Brien2004-08-254-7/+1
| | | | | | | | | | | | | to get used to the fact that Perl is no longer part of the base system. It is practically impossible to install any useful package and not get Perl automatically pulled in as a dependency. So the typical user will get their Perl. This change greatly reduces the amount of manual labor in building the miniinst.iso in release building. Notes: svn path=/head/; revision=134286
* Add snapshots.se.freebsd.org to list of available ftp mirrors.Josef El-Rayes2004-08-242-2/+6
| | | | | | | | Dont forget to use X-LATEST as Release Name (where X is version major number) when you choose a snapshot server. Notes: svn path=/head/; revision=134274
* mdoc(7) janitor:Simon L. B. Nielsen2004-08-211-1/+2
| | | | | | | | | - Fix hard sentence breaks. MFC after: 3 days Notes: svn path=/head/; revision=134117
* Rewrite of the floppy driver to make it MPsafe & GEOM friendly:Poul-Henning Kamp2004-08-203-115/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Centralize the fdctl_wr() function by adding the offset in the resource to the softc structure. Bugfix: Read the drive-change signal from the correct place: same place as the ctl register. Remove the cdevsw{} related code and implement a GEOM class. Ditch the state-engine and park a thread on each controller to service the queue. Make the interrupt FAST & MPSAFE since it is just a simple wakeup(9) call. Rely on a per controller mutex to protect the bioqueues. Grab GEOMs topology lock when we have to and Giant when ISADMA needs it. Since all access to the hardware is isolated in the per controller thread, the rest of the driver is lock & Giant free. Create a per-drive queue where requests are parked while the motor spins up. When the motor is running the requests are purged to the per controller queue. This allows requests to other drives to be serviced during spin-up. Only setup the motor-off timeout when we finish the last request on the queue and cancel it when a new request arrives. This fixes the bug in the old code where the motor turned off while we were still retrying a request. Make the "drive-change" work reliably. Probe the drive on first opens. Probe with a recal and a seek to cyl=1 to reset the drive change line and check again to see if we have a media. When we see the media disappear we destroy the geom provider, create a new one, and flag that autodetection should happen next time we see a media (unless a specific format is configured). Add sysctl tunables for a lot of drive related parameters. If you spend a lot of time waiting for floppies you can grab the i82078 pdf from Intels web-page and try tuning these. Add sysctl debug.fdc.debugflags which will enable various kinds of debugging printfs. Add central definitions of our well known floppy formats. Simplify datastructures for autoselection of format and call the code at the right times. Bugfix: Remove at least one piece of code which would have made 2.88M floppies not work. Use implied seeks on enhanced controllers. Use multisector transfers on all controllers. Increase ISADMA bounce buffers accordingly. Fall back to single sector when retrying. Reset retry count on every successful transaction. Sort functions in a more sensible order and generally tidy up a fair bit here and there. Assorted related fixes and adjustments in userland utilities. WORKAROUNDS: Do allow r/w opens of r/o media but refuse actual write operations. This is necessary until the p4::phk_bufwork branch gets integrated (This problem relates to remounting not reopening devices, see sys/*/*/${fs}_vfsops.c for details). Keep PC98's private copy of the old floppy driver compiling and presumably working (see below). TODO (planned) Move probing of drives until after interrupts/timeouts work (like for ATA/SCSI drives). TODO (unplanned) This driver should be made to work on PC98 as well. Test on YE-DATA PCMCIA floppy drive. Fix 2.88M media. This is a MT5 candidate (depends on the bioq_takefirst() addition). Notes: svn path=/head/; revision=134081
* When one entry in the RSDT is corrupted, just skip it instead of bailing out.Nate Lawson2004-08-181-2/+5
| | | | | | | | | | | | This gets us the info we need on systems which have proprietary tables that don't match the standard. For instance, an AMI system has a table of type "OEMB" with an invalid checksum. Tested by: Maxim Maximov <mcsi_at_mcsi.pp.ru> MFC after: 1 day Notes: svn path=/head/; revision=133935
* Update man page for supported table types.Nate Lawson2004-08-181-5/+2
| | | | | | | MFC after: 1 day Notes: svn path=/head/; revision=133934
* Remove the ACPIIO_ENABLE and ACPIIO_DISABLE ioctls as well as allNate Lawson2004-08-182-31/+4
| | | | | | | | | | | | | callers. These ioctls attempted to enable and disable the ACPI interpreter at runtime. In practice, it is not possible to boot with ACPI and then disable it on many systems and trying to do so can cause crashes, interrupt storms, etc. Binary compatibility with userland is retained. MFC after: 2 days Notes: svn path=/head/; revision=133933
* We now handle SSDT tables. Remove a reference from the BUGS sectionMarcel Moolenaar2004-08-161-2/+4
| | | | | | | | | | | and explicitly mention SSDT when we talk about the DSDT so that people don't have to guess whether it includes the SSDT. While here, touch date. Pointed out by: le@ Notes: svn path=/head/; revision=133883
* Fix installing from SCSI tape drives by catching up device names withBruce A. Mah2004-08-162-2/+2
| | | | | | | | | | reality. PR: 70279 Submitted by: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk> Notes: svn path=/head/; revision=133798
* MFNetBSDMartin Blapp2004-08-161-1/+5
| | | | | | | | | | Decrease log severity to debug if a protocol is not supported by the kernel (rpcbind checks /etc/netconfig if a protocol is available). This avoids "rpcbind: cannot create socket for tcp6" messages at startup on IPv4-only kernels. Notes: svn path=/head/; revision=133789
* Comment out the ability to enable/disable ACPI at runtime. This appearsNate Lawson2004-08-151-0/+4
| | | | | | | | to not work reliably and crash some systems. It is not supported at all on others. Pending discussion, the underlying ioctls will be removed. Notes: svn path=/head/; revision=133788
* Save on one variable in ofwo_action(). Leftover from an older version ofMarius Strobl2004-08-151-3/+1
| | | | | | | this function which needed the handle of the /options node more than once. Notes: svn path=/head/; revision=133768
* - Correct the description of the "local-mac-address?" variable. Not all NICsMarius Strobl2004-08-151-4/+43
| | | | | | | | | | | | use it, only those with FCode. Add references to dc(4), gem(4) and hme(4) for obtaining further information about such devices presently supported by FreeBSD. - Correct the HISTORY section. There was an eeprom(8) utility in 4.4BSD and early versions of FreeBSD 2.x. - Add an AUTHORS section. Notes: svn path=/head/; revision=133767
* A media type of floppy is detected automatically.Yoshihiro Takahashi2004-08-151-31/+0
| | | | | | | Submitted by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp> Notes: svn path=/head/; revision=133750
* o Add -l option to jail(8) similar to su(1): before running jail'edMaxim Konovalov2004-08-152-6/+50
| | | | | | | | | | | | program under specific user's credentials, clean the environment and set only a few variables. PR: bin/70024 Submitted by: demon MFC after: 1 month Notes: svn path=/head/; revision=133743
* Add support for SSDT tables. Dumping or disassembling the DSDT willMarcel Moolenaar2004-08-133-20/+58
| | | | | | | | | | | | now include the contents if any SSDT table as well. This makes use of the property that one can concatenate the body of SSDT tables to the DSDT, updating the DSDT header (length and checksum) and end up with a larger and valid DSDT table. Hence, this also works with -f. Reviewed by: njl@ Notes: svn path=/head/; revision=133679
* Replaced COPTS by equivalent CFLAGS.Ruslan Ermilov2004-08-132-9/+9
| | | | Notes: svn path=/head/; revision=133652
* ntptimeset is not build anymore by default so remove it for the time being.Ollivier Robert2004-08-131-19/+0
| | | | | | | Prodded by: imp Notes: svn path=/head/; revision=133638
* Don't put DEBUG to CFLAGS, we have the standard DEBUG_FLAGS for this.Ruslan Ermilov2004-08-127-8/+6
| | | | Notes: svn path=/head/; revision=133596
* Link to the build again. The problem was that we need a newHartmut Brandt2004-08-111-3/+3
| | | | | | | | gensnmptree for the .def file to parse. This was fixed in Makefile.inc1. Notes: svn path=/head/; revision=133508
* Again something bad is happening so comment out the ATM module.Hartmut Brandt2004-08-111-3/+3
| | | | Notes: svn path=/head/; revision=133503
* typoOliver Eikemeier2004-08-111-1/+1
| | | | | | | Approved by: ru Notes: svn path=/head/; revision=133502
* FWIIW, make the `test' target in pkg_install/version actually work.Oliver Eikemeier2004-08-111-1/+1
| | | | Notes: svn path=/head/; revision=133501
* Now, after the import of NgATM-1.1, re-enable the atm module.Hartmut Brandt2004-08-111-1/+1
| | | | Notes: svn path=/head/; revision=133496
* Update links to the bluez-firmware packageMaksim Yevmenkin2004-08-111-4/+4
| | | | | | | Update md5 hash Notes: svn path=/head/; revision=133461
* Teach sysinstall about the "srescue" distribution, which contains theColin Percival2004-08-106-1/+11
| | | | | | | | | | | contents of /usr/src/rescue. Until now, the files were shipped with releases but sysinstall would ignore them (resulting in a non-buildable source tree). Sanity checked by: jhb Notes: svn path=/head/; revision=133441
* Update wording regarding geography to match the man page and web site.Murray Stokely2004-08-101-1/+1
| | | | | | | | | | Specifically, change the second level menu title from 'Country' to 'Country or Region', since e.g. Hong Kong is not a country. Submitted by: Xin LI <delphij@frontfree.net> Notes: svn path=/head/; revision=133425
* Disable the snmp_atm module until the source gets fixed. This will unbreakScott Long2004-08-101-1/+1
| | | | | | | this portion of the build. Notes: svn path=/head/; revision=133424
* Initial pass at shifting sysinstall(8) to install X.org instead of XFree86.Ken Smith2004-08-1010-463/+312
| | | | | | | | | | There are still a few nits to work out (graphical config non-functional). Patches by: anholt@, adapted slightly Reviewed by: 'make release' Notes: svn path=/head/; revision=133421
* By default, the watch utility will attempt to open /dev/snp0, ifChristian S.J. Peron2004-08-101-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | another process already has /dev/snp0 open, the snp(4) will return EBUSY, in which case watch will try to open /dev/snp1..9. Currently watch does not check errno to see if the failure was a result of EBUSY. This results in watch making futile attempts to open snp0..snp9 even though devices may not exist or the caller does not have permissions to access the device. In addition to this, it attempts to setup the screen for snooping even though it may not ever get an snp device. So this patch does two things 1) Checks errno for EBUSY, if open(2) fails for another reason print that reason and exit. 2) setup the terminal for snooping after the snp descriptor has been obtained. Approved by: bmilekic (mentor) Notes: svn path=/head/; revision=133419
* Introduce ng_hci_inquiry_response structure and use it in the hccontrol(8)Maksim Yevmenkin2004-08-101-8/+1
| | | | Notes: svn path=/head/; revision=133415
* During FTP installs, when installing Postfix as an alternate MTA, theSimon L. B. Nielsen2004-08-092-2/+2
| | | | | | | | | | | | | | | | | | | | | | | install of Postfix fails since Postfix 1 is picked from INDEX instead of Postfix 2. The problem is that the package_add function matches multiple Postfix packages and then installs a "random" version (the last one found in INDEX). This does not occur with a CD-ROM install since there is only one Postfix package on the CD-ROM. The correct solution to this would be to check the origin field from INDEX instead of the package name, but due to the way sysinstall is made that is not trivial, so instead work around the problem by hard-coding the Postfix major and minor revision (for the current stable version) to install directly into the package_add call. PR: misc/65426 Reported by: Harold Kachelmyer <bugs@princessharold.net> Approved by: trhodes Notes: svn path=/head/; revision=133408
* Fix a 4.X -> 5.X upgrade problem: crunchgen used to emit a line 'MAKE=make'Hartmut Brandt2004-08-091-7/+7
| | | | | | | | | | | | | | or 'env MAKEOBJDIRPREFIX=... make' depending on the setting of MAKEOBJDIRPREFIX in the environment. In any case this line kills the original value of ${MAKE}. When during buildworld a new make is built (as is the case during the upgrade) this causes a wrong make to be picked up (the first one in the path). Use the same technique as Makefile.inc1: create a MAKEENV variable and a CRUNCHMAKE that calls ${MAKE} with that MAKEENV prefixed. Use CRUNCHMAKE instead of MAKE throughout the generated makefile. This leaves the original ${MAKE} undisturbed. Notes: svn path=/head/; revision=133399
* Link the snmp_atm module to the build unless NOATM is defined.Hartmut Brandt2004-08-091-1/+6
| | | | Notes: svn path=/head/; revision=133393
* Now that gensnmptree can read and merge more than one tree makeHartmut Brandt2004-08-091-4/+4
| | | | | | | | the rule so that the tree .c and .h files can be produced from several trees. Notes: svn path=/head/; revision=133392
* A module for bsnmpd(1) that exports a MIB that contains information aboutHartmut Brandt2004-08-094-0/+478
| | | | | | | the local ATM interfaces and allows to change some parameters via SNMP. Notes: svn path=/head/; revision=133391
* fix bug which prevented programming function keys that were exactly 16John-Mark Gurney2004-08-091-1/+1
| | | | | | | | | | | characters long.. strcpy was coping over the length... PR: 52960 Submitted by: Dmitry Sivachenko MFC after: 1 week Notes: svn path=/head/; revision=133353
* Revert unintended commit that came in with 3rd clause removalWarner Losh2004-08-071-67/+12
| | | | Notes: svn path=/head/; revision=133271
* Fix syntax error introduced in the last commit.Lukas Ertl2004-08-071-2/+2
| | | | | | | | Additionally, since this file is written in C and not in Perl, we need 'continue' instead of 'next'. Notes: svn path=/head/; revision=133268
* Remove extra "*/".Hidetoshi Shimokawa2004-08-071-2/+0
| | | | Notes: svn path=/head/; revision=133264
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived softwareWarner Losh2004-08-0766-273/+95
| | | | | | | (with permission of addtional copyright holders where appropriate) Notes: svn path=/head/; revision=133249
* Per letter dated July 22, 1999, delete clause 3 from code directlyWarner Losh2004-08-0717-68/+0
| | | | | | | from Berkeley. Notes: svn path=/head/; revision=133248
* Create an EFI partition when the user wants auto defaults. There'sMarcel Moolenaar2004-08-072-0/+44
| | | | | | | | | some confusion as to how large the EFI system partition should be, but 100MB seems to be either the maximum, the minimum or the default size, so make the EFI partition 100MB. Notes: svn path=/head/; revision=133246
* o Save pointers to the chunks for root, home, swap, usr, var and tmp inMarcel Moolenaar2004-08-078-314/+298
| | | | | | | | | | | | | | | | | | global variables. On ia64, save a pointer to the efi chunk as well. o At the same time, change checkLabels() to define these globals instead of having the caller of checkLabels() pass addresses to variables for these. Change the two callers correspondingly. o Spent a bit more time adjusting try_auto_label() to prepate for having the EFI partition created on ia64. o Remove efi_mountpoint(). The EFI chunk is now available without having to iterate over the disks and chunks to find it every time we need it. o On ia64, now that the root chunk is globally available, set the vfs.root.mountfrom tunable in loader.conf. This avoids that one cannot boot into FreeBSD after an install. The kernel cannot find the root device without a little help... Notes: svn path=/head/; revision=133241