summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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().
* Revert part of r187970, the NULL check was removed fromthompsa2009-02-011-0/+3
| | | | udbp_bulk_read_complete() as well as udbp_attach.
* Remove check for null softc in attach, it can never happen.thompsa2009-02-0144-140/+0
|
* Also un-split _PATH_STDPATH for grepability.obrien2009-02-011-4/+3
| | | | While I'm here, fix other style bugs reported to me.
* David doesn't consider the prior -s behavior a bug. Back out thisimp2009-01-311-1/+0
| | | | change.
* Bring over the code from sys/i386/i386/mp_machdep.c, r187880bz2009-01-311-0/+3
| | | | | to make XEN config compile again: - Allocate apic vectors on a per-cpu basis.
* Fix the inconsistent tabbing.obrien2009-01-311-52/+55
| | | | Noticed by: bde
* Test wprintf() in addition to printf().das2009-01-311-3/+19
|
* Add tests for conj{,f,l}() that I wrote some time ago. These test thedas2009-01-313-1/+169
| | | | versions in libm, not the gcc builtins.
* Add a function attribute called `__malloc_like', which informs gccdas2009-01-315-7/+9
| | | | | | | | | | | | | | that the annotated function returns a pointer that doesn't alias any extant pointer. This results in a 50%+ speedup in microbenchmarks such as the following: char *cp = malloc(1), *buf = malloc(BUF); for (i = 0; i < BUF; i++) buf[i] = *cp; In real programs, your mileage will vary. Note that gcc already performs this optimization automatically for any function called `malloc', `calloc', `strdup', or `strndup' unless -fno-builtins is used.
* After r186194 the *fs_strategy() functions always return 0.bz2009-01-312-4/+2
| | | | | | | | So we are no longer interested in the error returned from the *fs_doio() functions. With that we can remove the error variable as its value is unused now. Submitted by: Christoph Mallon christoph.mallon@gmx.de
* Remove unused local variables.bz2009-01-318-20/+2
| | | | | | Submitted by: Christoph Mallon christoph.mallon@gmx.de Reviewed by: kib MFC after: 2 weeks
* Remove unused local MACROs.bz2009-01-312-3/+0
| | | | | Submitted by: Christoph Mallon christoph.mallon@gmx.de MFC after: 2 weeks
* There is no need to initialize the variable here.bz2009-01-311-2/+0
| | | | | | Submitted by: Christoph Mallon christoph.mallon@gmx.de Reviewed by: kib (as part of a larger patch) MFC after: 2 weeks
* Remove and unused variable.bz2009-01-311-2/+1
| | | | | Submitted by: Christoph Mallon christoph.mallon@gmx.de MFC after: 2 weeks
* Coalesce two consecutive #ifdef IPSEC blocks.bz2009-01-311-4/+1
| | | | | | | Move the skip_ipsec: label below the goto as we can never have ipsecrt set if we get to that label so there is no need to check. MFC after: 2 weeks
* Change some movl's to mov's. Newer GAS no longer accept 'movl' instructionsobrien2009-01-3112-48/+48
| | | | | | for moving between a segment register and a 32-bit memory location. Looked at by: jhb
* Remove dead code from #if 0:bz2009-01-311-4/+0
| | | | | | we do not have an ipsrcchk_rt anywhere else. MFC after: 2 weeks
* Like with r185713 make sure to not leak a lock as rtalloc1(9) returnsbz2009-01-315-9/+10
| | | | | | | | | | | | | | a locked route. Thus we have to use RTFREE_LOCKED(9) to get it unlocked and rtfree(9)d rather than just rtfree(9)d. Since the PR was filed, new places with the same problem were added with new code. Also check that the rt is valid before freeing it either way there. PR: kern/129793 Submitted by: Dheeraj Reddy <dheeraj@ece.gatech.edu> MFC after: 2 weeks Committed from: Bugathon #6
* Fix a typo in a comment.trhodes2009-01-311-1/+1
|
* Fix bug in hint.hdac.X.config parsing.mav2009-01-311-2/+2
|
* 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.
* Remove 4 entirely unsued ip6 variables.bz2009-01-303-16/+4
| | | | | | | | Leave then in struct vinet6 to not break the ABI with kernel modules but mark them for removal so we can do it in one batch when the time is right. MFC after: 1 month
* 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
* Committo ergo sum.jamie2009-01-301-0/+3
| | | | Approved by: bz
* Use NULL rather than 0 when comparing pointers.bz2009-01-301-2/+2
| | | | MFC after: 2 weeks
* Sometimes, depending on the bpf filter rules used in $PATTERN,keramida2009-01-301-15/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the example script of the manpage feeds awk(1) with values larger than UINT32_MAX. Then awk prints a negative value, and this messes up $BPFPROG. Trying to load the resulting bpf byte codes with ngctl then fails. For example, the output for PATTERN="udp and dst net 255.255.0.0/16" should be (all in one line): bpf_prog_len=10 bpf_prog=[ { code=40 jt=0 jf=0 k=12 } { code=21 jt=7 jf=0 k=34525 } { code=21 jt=0 jf=6 k=2048 } { code=48 jt=0 jf=0 k=23 } { code=21 jt=0 jf=4 k=17 } { code=32 jt=0 jf=0 k=30 } { code=84 jt=0 jf=0 k=4294901760 } { code=21 jt=0 jf=1 k=4294901760 } { code=6 jt=0 jf=0 k=8192 } { code=6 jt=0 jf=0 k=0 } ] The two k=4294901760 values are displayed as k=-2147483648 by awk. Replace the awk script of the manpage example with a slower but safer version, that doesn't really attempt to convert the byte code printed by tcpdump from string to number and back. PR: docs/123255 Submitted by: Eugenio Maffione, eugenio.maffione at telecomitalia.it MFC after: 3 days
* Add the '-C' "check clean" flag. If the FS is marked clean, skip fileobrien2009-01-307-15/+37
| | | | | | | | system checking. However, if the file system is not clean, perform a full fsck. Reviewed by: delphij Obtained from: Juniper Networks
* Bump .Dd for r187609keramida2009-01-301-1/+1
|
* Unbreak make -s. There's about a 10% performance improvement with -simp2009-01-301-0/+1
| | | | | | in many environments. The recent --- blah --- reintroduction has killed. That output makes almost no sense when all the other output is silenced.
* - Remove non-existing referencegabor2009-01-301-2/+1
| | | | | | | | - Fix trailing comma PR: docs/85118 Submitted by: vs MFC after: 3 days
* - Remove superfluous commentgabor2009-01-301-2/+0
| | | | | PR: docs/129400 Submitted by: Gavin Atkinson <gavin@freebsd.org>
* - Remove superfluous commentgabor2009-01-301-2/+0
| | | | | PR: docs/129400 Submitted by: Gavin Atkinson <gavin@freebsd.org>
* - Remove superfluous commentgabor2009-01-301-2/+0
| | | | | PR: docs/129400 Submitted by: Gavin Atkinson <gavin@freebsd.org>
OpenPOWER on IntegriCloud