summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix LLVM compiler errors related to K&R declarations with ANSI prototypes.ed2009-02-266-57/+25
| | | | Submitted by: Pawel Worach <pawel.worach@gmail.com>
* MFp4 //depot/projects/usb@157974thompsa2009-02-241-0/+33
| | | | | | | Add support for setting and getting the USB template value through libusb20 and usbconfig. Submitted by: Hans Petter Selasky
* Build fixups for the new USB stack.thompsa2009-02-231-0/+1
|
* Move usb to a graveyard location under sys/legacy/dev, it is intended that thethompsa2009-02-231-1/+1
| | | | | | | new USB2 stack will fully replace this for 8.0. Remove kernel modules, a subsequent commit will update conf/files. Unhook usbdevs from the build.
* Include string.h for strncpy prototypeimp2009-02-191-0/+2
| | | | Include strings.h for bcopy and bzero prototype
* Properly convert bit value to a bit field. Before we were storingimp2009-02-191-2/+2
| | | | | | | | | | values like 0x80 or 0x40 into a uint8_t foo:1 bitfield. This would result in the bit always being 0. One of these caused a warning for overflow (one that was 0x80), but the other didn't. They were both wrong. This is why I hate code that mixes c struct bitfields and #defines. The rest of the fields accessed by the program should be audited.
* yppasswdd assumed that a struct x_master_passwd is type punable to aimp2009-02-181-3/+21
| | | | | | | | | | | | | | | | struct passwd. This is not the case when sizeof(unsigned long) != sizeof(time_t). Write a dinky function to do the assignment instead of relying on the punning. This does slow things down a little (1 extra function call, 11 pointer or int assignments), but is much safer and machines have been fast enough since the mid 1990s that nobody will notice the difference. time_t is a 64-bits int on arm and mips. Before this change, arm was silently broken. I guess there aren't that many ARM machines running master YP domain servers. :) The client side doesn't assume this type punning, so it doesn't need to be fixed.
* Remove reference to phy_delay from fwcontrol. Thanks for the catch!sbruno2009-02-171-2/+1
| | | | | Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr> MFC after: 2 weeks
* nitsbms2009-02-151-12/+12
|
* Blow away KAME MLDv2 hooks.bms2009-02-151-80/+0
| | | | | | This code can be gotten from change history here and it's more than likely our implementation will differ significantly because of VIMAGE and SMPng.
* Improve ifmcstat(8) and fix a few bugs while we're at it:bms2009-02-152-82/+188
| | | | | | | | | | | | | | | | | | * Retire the old 'ifmcstat <kernel>' usage. * Print AF_LINK records even if run against KVM. This makes the KVM backend consistent with the sysctl backend. * Suppress printing of link-layer group records by default. * Add a -v switch to allow link-layer groups to be printed. * If compiled without INET6 support, actually work. * If compiled with INET6 support, print the scope ID of all IPv6 addresses in both backends. * Update man page. * Update copyrights. With this change, it is now reasonable to retire netstat -g. Most of the SSM related gunk in this file will require later refactoring. MFC after: 2 weeks
* Fix a typo which caused ifmcstat's sysctl pathbms2009-02-151-1/+1
| | | | | | | | | to print the network-layer endpoint address of the group membership, rather than its link-layer mapping as intended. The KVM path is not affected. MFC after: 1 week
* Tune output to remove trailing space.mav2009-02-151-3/+3
| | | | Submitted by: Christoph Mallon
* Add SATA and PCI Advanced Features capabilities reporting.mav2009-02-151-0/+24
|
* Move sys/pccard/*.h here.imp2009-02-154-5/+487
|
* Remove unnecessary pccard/cardinfo.h include.imp2009-02-151-1/+0
|
* Remove vestiges of OLDCARD PC Card support. We haven't needed/usedimp2009-02-157-324/+0
| | | | this since 5.x.
* MFp4 //depot/projects/usb@157699thompsa2009-02-143-5/+30
| | | | | | | | | | | | | | | | Add two new functions to the libusb20 API and required kernel ioctls. - libusb20_dev_get_iface_desc - libusb20_dev_get_info New command to usbconfig, "show_ifdrv", which will print out the kernel driver attached to the given USB device aswell. See "man libusb20" for a detailed description. Some minor style corrections long-line wrapping. Submitted by: Hans Petter Selasky
* Sync comment with actual configuration format.delphij2009-02-131-2/+2
|
* Serialize write() calls on TTYs.ed2009-02-112-0/+10
| | | | | | | | | | | | | | | | | | | | Just like the old TTY layer, the current MPSAFE TTY layer does not make any attempt to serialize calls of write(). Data is copied into the kernel in 256 (TTY_STACKBUF) byte chunks. If a write() call occurs at the same time, the data may interleave. This is especially likely when the TTY starts blocking, because the output queue reaches the high watermark. I've implemented this by adding a new flag, TTY_BUSY_OUT, which is used to mark a TTY as having a thread stuck in write(). Because I don't want non-blocking processes to be possibly blocked by a sleeping thread, I'm still allowing it to bypass the protection. According to this message, the Linux kernel returns EAGAIN in such cases, but I think that's a little too restrictive: http://kerneltrap.org/index.php?q=mailarchive/linux-kernel/2007/5/2/85418/thread PR: kern/118287
* Move the comment to it's correct place.wkoszek2009-02-071-5/+5
|
* Remove leftover of alpha support for config(8)--we have MAP_FAILEDwkoszek2009-02-071-3/+0
| | | | globally defined.
* Make config -x <kernel> only return non-zero characters,wkoszek2009-02-061-2/+13
| | | | | | | | | | so that: config -x <kernel> | grep <something> just works. Reported by: Danny Braniss <danny@cs.huji.ac.il>
* Don't leave the console TTY constantly open.ed2009-02-052-19/+22
| | | | | | | | | | | | | | | | | When we leave the console TTY constantly open, we never reset the termios attributes. This causes output processing, echoing, etc. not to be reset to the proper values when going into single user mode after the system has booted. It also causes nl-to-crnl-conversion not to take place during shutdown, which causes a `staircase effect'. This patch adds a new TTY flag, TF_OPENED_CONS, which is set when the TTY is opened through /dev/console. Because the flags are only used by the kernel and the pstat(8) utility, I've decided to renumber the TTY flags. This shouldn't be an issue, because the TTY layer is not yet part of a stable release. Reported by: Mark Atkinson <atkin901 yahoo com> Tested by: sepotvin
* Clenup code a bit and do not call fork(2) before dameon(3) where not needed.emax2009-02-043-36/+10
| | | | MFC after: 1 month
* Begin basic improvements to fwcontrol in the area of handlingsbruno2009-02-022-13/+12
| | | | | | | | | video streams from cameras. This patch changes the displayed timer to a time stamp and corrects one or two mishandled errors. Submitted by: imp
* - Add a new ioctl to /dev/pci to fetch details on an individual BAR of ajhb2009-02-022-7/+96
| | | | | | | | | | | | | | device. The details include the current value of the BAR (including all the flag bits and the current base address), its length, and whether or not it is enabled. Since this operation is not invasive, non-root users are allowed to use it (unlike manual config register access which requires root). The intention is that userland apps (such as Xorg) will use this interface rather than dangerously frobbing the BARs from userland to obtain this information. - Add a new sub-mode to the 'list' mode of pciconf. The -b flag when used with -l will now list all the active BARs for each device. MFC after: 1 month
* Hook up btpand(8) to the buildemax2009-02-021-0/+1
| | | | MFC after: 1 month
* Fix client mode. Pick up service availability changes.emax2009-02-023-21/+19
| | | | | Obtained from: NetBSD MFC after: 1 month
* The last sector in the first segment might just be a sync, increment beforephk2009-02-021-0/+1
| | | | checking validity of segment two.
* Don't overwrite it, if only one sector is written yet.phk2009-02-021-7/+8
| | | | Discovered by: "Dewayne Geraghty" <dewayne.geraghty@heuristicsystems.com.au>
* Run with -B and just .POSIX.obrien2009-01-311-2/+2
|
* Write timestamps with exactly 9 digits after the period.kientzle2009-01-314-3/+9
| | | | | | | | | | This ensures that the value written is both compatible with older mtree versions (which expect the value after the period to be an integer count of nanoseconds after the whole second) and is a correct floating-point value. Leave the parsing code unchanged so it will continue to read older files.
* Add btpand(8) daemon from NetBSD. This daemon provides support foremax2009-01-3015-0/+3372
| | | | | | | | Bluetooth Network Access Point (NAP), Group Ad-hoc Network (GN) and Personal Area Network User (PANU) profiles. Obtained from: NetBSD MFC after: 1 month
* - Remove superfluous commentgabor2009-01-301-2/+0
| | | | | PR: docs/129400 Submitted by: Gavin Atkinson <gavin@freebsd.org>
* Accept integer times. Previously, the field "time=1233294539" would bekientzle2009-01-301-6/+7
| | | | rejected as invalid.
* Delete commented out ancient history.imp2009-01-261-14/+0
|
* Introduce the I2C diagnostic utility. It let's discover and inspect slaveraj2009-01-264-0/+810
| | | | | | | devices on the bus. Reviewed by: bms, stas Obtained from: Semihalf
* New sentence starts on a new line.bz2009-01-241-1/+2
| | | | MFC after: 2 week
* Update the description of the '-h' option wrt to primary addressesbz2009-01-241-4/+5
| | | | | | per address family and add a reference to the ip-addresses option. MFC after: 1 week
* Add urtw(4) to the list of supported network interface.weongyo2009-01-231-0/+1
|
* s,unmount 8,umount 8, it is unmount(2) which I did not mean.bz2009-01-171-2/+2
| | | | | Submitted by: pluknet@gmail.com MFC after: 1 week
* Extend the geom-related info and put in the NOTE section, notluigi2009-01-131-14/+19
| | | | | | | in BUGS, as this is a feature. Bump the date, as it was forgotten in previous commits and the page has had significant changes recently
* MFp4: //depot/projects/usb@155807thompsa2009-01-131-1/+1
| | | | | | | Fix a typo. Reported by Alexander Best. Submitted by: Hans Petter Selasky
* MFp4: //depot/projects/usb@155731thompsa2009-01-131-1/+1
| | | | | | | Make printout more informative. Reported by: Volker Submitted by: Hans Petter Selasky
* Set .POSIX mode, along with disable parallel mode. Crunchgen parses theobrien2009-01-131-3/+4
| | | | | output from make(1) and its picky what it should look like. Also use make's conditional assignment operator rather than test and set.
* o Sort .Xr.maxim2009-01-121-2/+2
|
* Add a short section talking about jails and file systems; mention thebz2009-01-111-1/+26
| | | | | | | | mountand jail-aware file systems as well as quota. PR: kern/68192 Reviewed by: simon MFC after: 2 weeks
* Use full name (noticed by: ru@chinsan2009-01-111-1/+1
|
* Recognize et(4), igb(4), iwn(4), ixgbe(4) and nxge(4) devices.brueffer2009-01-091-1/+6
| | | | | | | | Correct some minor whitespace in the ae(4) entry. Reported by: Mars G Miro Approved by: rwatson (mentor) MFC after: 1 week
OpenPOWER on IntegriCloud