summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use NULL in preference to 0 in pointer contexts.imp2009-02-032-9/+9
|
* Make bioq_disksort have a ANSI-C definition rather than a K&R definition.imp2009-02-031-3/+1
|
* rman_debug should be static, so make it static.imp2009-02-031-1/+1
|
* Use ANSI function definition for profil.imp2009-02-031-3/+1
|
* Prefer ANSI function definitions to K&R ones.imp2009-02-031-6/+3
|
* Use NULL in preference to 0 for pointers.imp2009-02-032-7/+7
|
* Use NULL in preference to 0 for pointers.imp2009-02-032-2/+2
|
* o Use unsigned for bit fields.imp2009-02-031-3/+3
| | | | o Use NULL for pointers in preference to 0.
* int foo(void) is the proper ANSI function definition when there's noimp2009-02-031-1/+1
| | | | parameters. Use it for resettodr().
* In g_handleattr(), set bp->bio_completed also for the casemarcel2009-02-031-1/+2
| | | | | where len is 0. Otherwise g_getattr() will never succeed when it is handled by g_handleattr_str().
* Introduce a C type representing the header for GNU-style hash tablejkoshy2009-02-031-0/+11
| | | | | | | sections. These ELF sections are generated by newer versions of GNU binutils. Reviewed by: kaiw, Ali Bahrami <ali dot bahrami at sun dot com>
* Move away from autogenerated enums, these values never change and its helpfulthompsa2009-02-035-124/+114
| | | | to be able to look them up.
* o Define some symbols for a few items that are bare constants in theimp2009-02-032-16/+34
| | | | | | code. o Use NULL in preference to 0 for a few pointers. o default to bus timing normal, like we default to bus_width_1.
* make sure that interrupts are disabled when handling page faults et alkmacy2009-02-031-4/+4
|
* Use NULL in preference to 0 for pointers.imp2009-02-031-4/+4
|
* Use NULL in preference to '0' for pointers.imp2009-02-031-2/+2
|
* Use %u instead of %zu when we intend to print integer constant.delphij2009-02-031-3/+3
|
* Declare bus_data_devices to be static: it isn't used elsewhere.imp2009-02-031-5/+5
| | | | | Use NULL in a couple of places rather than 0 in the context of pointers to be consistent with the rest of the file.
* break out of loop if we run out of mbufskmacy2009-02-021-5/+6
|
* Goof, catch up to constant rename (I renamed it to match the overall PCIjhb2009-02-021-1/+1
| | | | | | style of having register offsets start with PCIR_* rather than PCI_*). Submitted by: rss
* - Add a new ioctl to /dev/pci to fetch details on an individual BAR of ajhb2009-02-021-0/+9
| | | | | | | | | | | | | | | | 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. (Missed in previous commit) MFC after: 1 week
* Provide a type for the argument.rdivacky2009-02-021-1/+1
| | | | Approved by: kib (mentor)
* Properly retun error core from kbdmux_modevent()emax2009-02-021-1/+1
| | | | | Reported by: Christoph Mallon < christoph -dot- mallon -at- gmx -dot- de > MFC after: 1 week
* 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
* Move a comment to where it belongs.cognet2009-02-021-2/+1
| | | | Spotted out by: Christoph Mallon <christoph d0t mallon AT gmx d0t de>
* Remove unused variables.cognet2009-02-025-13/+4
| | | | Spotted out by: Christoph Mallon <christoph d0t mallon AT gmx d0t de>
* - Add a new ioctl to /dev/pci to fetch details on an individual BAR of ajhb2009-02-024-11/+169
| | | | | | | | | | | | | | 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
* - Use a separate pointer to the allocated memory for freeing, as strsep maylulf2009-02-021-3/+3
| | | | | | | | | | modify the pointer argument passed to it. This triggered an assert in malloc when a geom command being run under the livefs environment. PR: bin/130632 Submitted by: Dimitry Andric <dimitry -at- andric.com> Pointy hat to: me MFC after: 2 days
* 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
* o make SAVE_CCK slightly less error prone by always writing the _flagsam2009-02-021-2/+3
| | | | | value used later by RESTORE_CCK o swap arg order in RESTORE_CCK to slightly reduce cost
* restore variable initialization removed in r187831; this brokesam2009-02-021-1/+1
| | | | | the horrible SAVE/RESTORE_CCK macros used by swan/nala cards to implement 11b using 11g
* Since, rc.d/defaultroute has the ability to wait for amtm2009-02-021-1/+1
| | | | | | default route to show up we can turn this knob back on without screwing subsequent daemons that expect to be able to talk to the outside world.
* The 30 second wait for network interfaces to show up effectively makes themtm2009-02-021-4/+15
| | | | | | time to boot an unplugged system 30 sec. longer for no good reason. Therefore, add a check to make sure that any DHCP interfaces are plugged in before waiting.
* 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>
* Alow dirname(1) to accept multiple arguments in the same way thatrwatson2009-02-022-5/+9
| | | | | | | | | | | basename(1) does. (Two different PRs contained identical patches, both cited below) PR: 121520, 86148 Submitted by: Ighighi <ighighi at gmail dot com> Submitted by: Leif Neland <leif at neland dot dk> MFC after: 3 days
* Explain that we assume AF_INET and only use the addr and port fieldluigi2009-02-021-1/+4
| | | | from a struct sockaddr_in, so there is no need to initialize sin_len
* remove duplicate #includeluigi2009-02-021-1/+0
|
* Remove duplicate OPTFLAGS definition.fjoe2009-02-021-1/+0
|
* Fix select on platforms where sizeof(long) != sizeof(int). This usedsepotvin2009-02-021-2/+2
| | | | | | to work by accident before the cleanup done in revision 187693. Approved by: kan (mentor)
* Sort the options, per style(9).imp2009-02-021-24/+25
| | | | Reviewed by: obrien@
* src/usr.bin/usbhidaction/usbhidaction.calfred2009-02-0213-60/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/usr.bin/usbhidctl/usbhid.c src/sys/dev/usb2/include/usb2_hid.h src/sys/dev/usb2/input/uhid2.c src/lib/libusbhid/Makefile src/lib/libusbhid/descr.c src/lib/libusbhid/descr_compat.c src/lib/libusbhid/usbhid.3 src/lib/libusbhid/usbhid.h src/lib/libusbhid/usbvar.h Patches to make libusbhid and HID userland utilities compatible with the new USB stack. All HID ioctls should go through the libusbhid library to ensure compatibility. I have found at least one piece of software in /usr/ports which needs to get updated before USB HID devices will work. This is the X joystick input driver. Reported and tested by: Daichi GOTO and Masanori OZAWA. src/sys/dev/usb2/core/usb2_process.c Correct USB process names. Reported by: Andre Guibert de Bruet src/sys/dev/usb2/serial/uftdi2.c Integrate changes from old USB stack. Submitted by: hps
* Some updates and bug squashing in the firewire stack.sbruno2009-02-015-69/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the interupt handler to a driver_intr_t type function as it was trying to do way to much for a lightweight filter interrupt function. Introduce much more locking around fc->mtx. Tested this for lock reversals and other such lockups. Locking seems to be working better, but there is much more to do with regard to locking. The most significant lock is in the BUS RESET handler. It was possible, before this checkin, to set a bus reset via "fwcontrol -r" and have the BUS RESET handler fire before the code responsible for asserting BUS RESET was complete. This locking fixes that issue. Move some of the memory allocations in the fc struct to the attach function in firewire.c Rework the businfo.generation indicator to be merely a on/off bit now. It's purpose according to spec is to notify the bus that the config ROM has changed. That's it. Catch and squash a possible panic in SBP where in the SBP_LOCK was held during a possible error case. The error handling code would definitely panic as it would try to acquire the SBP_LOCK on entrance. Catch and squash a camcontrol/device lockup when firewire drives go away. When a firewire device was powered off or disconnected from the firewire bus, a "camcontrol rescan all" would hang trying to poll removed devices as they were not properly detached. Don't do that. Approved by: scottl MFC after: 2 weeks
* when promoting an 11b channel to 11g do not accept a ``pure G'' (OFDM only)sam2009-02-011-2/+2
| | | | | | channel, only accept a real 11g channel; this fixes a problem where we were wrongly promoting 11b to a Dynamic Turbo G channel which broke scanning on channel 6
* Remove the single global unlocked route cache ip6_forward_rtbz2009-02-017-136/+75
| | | | | | | | | | | | | | | | | | from the inet6 stack along with statistics and make sure we properly free the rt in all cases. While the current situation is not better performance wise it prevents panics seen more often these days. After more inet6 and ipsec cleanup we should be able to improve the situation again passing the rt to ip6_forward directly. Leave the ip6_forward_rt entry in struct vinet6 but mark it for removal. PR: kern/128247, kern/131038 MFC after: 25 days Committed from: Bugathon #6 Tested by: Denis Ahrens <denis@h3q.com> (different initial version)
* put the altq-related functions into a separate file.luigi2009-02-016-122/+167
| | | | | Minor cleanup of the includes used by the various source files, including annotations of why certain headers are used.
* Before this fix, pax would stop the restore sequence forkientzle2009-02-011-36/+4
| | | | | | | | | | | | | symlinks after setting the owner. As a result, mode and timestamp were not restored. This patch corrects the problem by simply removing the short-circuit for symlinks and using lchown()/lchmod()/lutimes() always for restoring metadata. PR: bin/91316 Submitted by: Jaakko Heinonen Reviewed by: Joerg Sonnenberger MFC after: 14 days
* Permit ` as a pad character in the filename table.kientzle2009-02-011-4/+3
| | | | | This seems to fix the devel/zziplib port, which distributes its man pages in an ar archive.
* Constify val in g_handleattr() and str in g_handleattr_str().marcel2009-02-012-4/+5
| | | | This allows passing string constants to g_handleattr_str().
OpenPOWER on IntegriCloud