21 months agocarp: add carp_group_demote_adj() master
Jan Lentfer [Mon, 9 Aug 2010 21:10:58 +0000]
carp: add carp_group_demote_adj()

21 months agopf: Enable CARP support in pfsync
Jan Lentfer [Mon, 9 Aug 2010 19:52:55 +0000]
pf: Enable CARP support in pfsync

pfsync didn't build with CARP enabled

reported by: Sascha Wildner

21 months agosys/net: add more interface groups related functions
Jan Lentfer [Mon, 9 Aug 2010 19:50:20 +0000]
sys/net: add more interface groups related functions

if_creategroup()
if_addgroup()
if_delgroup()
if_getgroup()
if_getgroupmembers()

Imported from OpenBSD

21 months agowlan(4): Replace GNU old-style field designators with proper C.
Sascha Wildner [Mon, 9 Aug 2010 18:58:11 +0000]
wlan(4): Replace GNU old-style field designators with proper C.

This GCC extension has been considered obsolete since 1993.

21 months agokernel - Move KNOTE() out of interrupt path
Samuel J. Greear [Mon, 9 Aug 2010 18:00:33 +0000]
kernel - Move KNOTE() out of interrupt path

21 months agopf: Fix if_pfsync to compile
Jan Lentfer [Mon, 9 Aug 2010 14:02:09 +0000]
pf: Fix if_pfsync to compile

if_pfsync has to be enabled in the
kernel config file.
It passed the last update unattended.
This patch let's it compile, but function
is untested, also tdb functioniality
has been removed.

21 months agopf(4): Add missing file to sys/conf/files for building pf into the kernel.
Sascha Wildner [Mon, 9 Aug 2010 08:04:48 +0000]
pf(4): Add missing file to sys/conf/files for building pf into the kernel.

21 months agopfctl(8): Fix some little printf() issues on x86_64 (fixes buildworld).
Sascha Wildner [Sun, 8 Aug 2010 21:24:30 +0000]
pfctl(8): Fix some little printf() issues on x86_64 (fixes buildworld).

21 months ago.gitignore: Add *.bak, *.core, *.old and .depend.
Sascha Wildner [Sun, 8 Aug 2010 20:39:12 +0000]
.gitignore: Add *.bak, *.core, *.old and .depend.

21 months ago.gitignore: Sort alphabetically.
Sascha Wildner [Sun, 8 Aug 2010 20:38:18 +0000]
.gitignore: Sort alphabetically.

21 months agoftp-proxy(8): Remove leftover .depend.
Sascha Wildner [Sun, 8 Aug 2010 20:29:36 +0000]
ftp-proxy(8): Remove leftover .depend.

21 months agoftp-proxy: Update to OpenBSD 4.1 pf_update_clean
Jan Lentfer [Sun, 8 Aug 2010 16:47:04 +0000]
ftp-proxy: Update to OpenBSD 4.1

ftp-proxy has been moved from libexec/ to usr.sbin/

21 months agopflogd: Update to OpenBSD 4.1
Jan Lentfer [Sun, 8 Aug 2010 16:43:17 +0000]
pflogd: Update to OpenBSD 4.1

21 months agokernel - Fix kqueue panic on signal event knote
Matthew Dillon [Sun, 8 Aug 2010 19:43:04 +0000]
kernel - Fix kqueue panic on signal event knote

* sig_filtops filters on a process, not a file descriptor.  Remove
  the FILTEROP_ISFD flag.

  This should fix a panic when the kqueue is closed while the signal
  event is still active.

Reported-by: Jan Lentfer <Jan.Lentfer@web.de>

21 months agoMerge branch 'master' of git://island.quantumachine.net/dragonfly
Jan Lentfer [Sun, 8 Aug 2010 19:28:24 +0000]
Merge branch 'master' of git://island.quantumachine.net/dragonfly

21 months agoFix a panic in the varsym_get(2) syscall.
Sascha Wildner [Sun, 8 Aug 2010 18:13:07 +0000]
Fix a panic in the varsym_get(2) syscall.

In varsymfind(), release the lock only if vss != NULL. This could be
the case if garbage was passed in the mask.

21 months agoloader - Use PTOV() to convert physical addresses to virtual addresses.
Antonio Huete Jimenez [Sat, 7 Aug 2010 19:37:37 +0000]
loader - Use PTOV() to convert physical addresses to virtual addresses.

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1683>
Submitted-by:  Sascha Wildner <swildner@>
Obtained-from: FreeBSD

21 months agoFix a panic in the __getcwd(2) syscall.
Sascha Wildner [Sun, 8 Aug 2010 09:19:09 +0000]
Fix a panic in the __getcwd(2) syscall.

buflen has to be unsigned so that large values do not become negative
and sneak past the MAXPATHLEN check.

21 months agoFix panics in two syscalls, caps_sys_get(2) and caps_sys_wait(2).
Sascha Wildner [Sun, 8 Aug 2010 08:43:08 +0000]
Fix panics in two syscalls, caps_sys_get(2) and caps_sys_wait(2).

Only call caps_drop() if caps != NULL.

21 months agopf: Update packet filter to the version that comes with OpenBSD 4.1
Jan Lentfer [Sun, 8 Aug 2010 07:44:38 +0000]
pf: Update packet filter to the version that comes with OpenBSD 4.1

    The original OpenBSD 4.1 defaults to "keep state flags S/SA" for
    all pass rules. In contrast to that we default to "no state". As
    in earlier verions of pf in DragonFly the default keep-state
    policy can still be set with the keep-policy option (e.g. "set
    keep-policy keep state (pickups)").

    DragonFly additions to pf have been kept: fairq support,
    pickups.

Detailed Info on changes/additions:
* ALTQ: Fix altq to work with pf_mtag
Patch by Matthew Dillon
* libkern: Revert commit e104539
strchr was added to libkern.h together with strrch
* net/if.h: add interface groups
Imported from FreeBSD.
* netinet6/in6.h: add macros
IN6_IS_ADDR_MC_INTFACELOCAL
IN6_IS_SCOPE_EMBED
PV6_ADDR_SCOPE_INTFACELOCAL
* sys/libkern.h: Add strchr and strrchr as inline functions
Brought in from FreeBSD
* sys/net/if_var.h: Import interface groups
Import interface groups and event handlers from FreeBSD
* sys/net/if_var.h: add if_pf_kif, if_groups to struct ifnet
obtained from: Open/FreeBSD
* net/if_types.h: add IFT_ENC to non-IATA-assignments
obtained from Open/FreeBSD
* net/bpf.c: add bpf_mtap_hdr from OpenBSD
Con up a minimal dummy header to pacify bpf.  Allocate
(only) a struct m_hdr on the stack.

21 months agore(4): fix re_setmulti(): PCIe mcast hash registers were swapped
Thomas Nikolajsen [Sun, 8 Aug 2010 07:41:05 +0000]
re(4): fix re_setmulti(): PCIe mcast hash registers were swapped

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1799>
Submitted-by:  "Mitja Horvat <pinkfluid@>"
Obtained-from: FreeBSD

21 months agodaemon(8): add missing break
Thomas Nikolajsen [Sun, 8 Aug 2010 06:45:56 +0000]
daemon(8): add missing break

DragonFly-bug: <http://bugs.dragonflybsd.org/issue1800>
Submitted-by:  "Mitja Horvat <pinkfluid@>"

21 months agoiwn.4: Miscellaneous adjustments.
Sascha Wildner [Sat, 7 Aug 2010 03:14:29 +0000]
iwn.4: Miscellaneous adjustments.

* Add some words about iwn6050fw.

* Comment out information about building the firmwares separately into
  the kernel. We don't support that (yet).

21 months agoiwn(4): Add Makefile for building iwn6050fw.ko.
Sascha Wildner [Sat, 7 Aug 2010 03:12:38 +0000]
iwn(4): Add Makefile for building iwn6050fw.ko.

21 months agoAdd iwn(4) and iwnfw(4) to LINT.
Sascha Wildner [Sat, 7 Aug 2010 03:11:48 +0000]
Add iwn(4) and iwnfw(4) to LINT.

21 months agoconfig - Fix typo in iwn6050 clean target.
Joe Talbott [Sat, 7 Aug 2010 02:21:23 +0000]
config - Fix typo in iwn6050 clean target.

21 months agoUnbreak buildworld.
Sascha Wildner [Fri, 6 Aug 2010 23:26:40 +0000]
Unbreak buildworld.

wlan_token shall be visible to the kernel only.

21 months agoiwn - Fix warning related to token work.
Joe Talbott [Sun, 25 Jul 2010 22:50:05 +0000]
iwn - Fix warning related to token work.

21 months agoiwn - Cleanup sysctl tree on detach.
Joe Talbott [Sun, 25 Jul 2010 22:49:35 +0000]
iwn - Cleanup sysctl tree on detach.

21 months agoiwn - Clean up memory freeing.
Joe Talbott [Sun, 25 Jul 2010 22:27:29 +0000]
iwn - Clean up memory freeing.

* Mark variables with NULL after freeing.
* Properly free dma memory.

21 months agoiwn - Convert to use the new wlan layer's global token.
Joe Talbott [Sun, 25 Jul 2010 20:09:21 +0000]
iwn - Convert to use the new wlan layer's global token.

21 months agowlan - Convert lockmgr locking to a global token.
Joe Talbott [Sun, 25 Jul 2010 20:08:19 +0000]
wlan - Convert lockmgr locking to a global token.

Use the lwkt_token API to synchronize the wlan layer entry points.

Discussed-With: dillon

21 months agoiwn - Bring in recent changes from FreeBSD.
Joe Talbott [Sun, 25 Jul 2010 19:29:52 +0000]
iwn - Bring in recent changes from FreeBSD.

Taken-From: FreeBSD

21 months agoiwn - Lock callout iwn_timer_timeout().
Joe Talbott [Sat, 24 Jul 2010 14:48:09 +0000]
iwn - Lock callout iwn_timer_timeout().

21 months agoiwn - Update firmware for 6000 chipset.
Joe Talbott [Tue, 20 Jul 2010 13:38:30 +0000]
iwn - Update firmware for 6000 chipset.

21 months agoiwnfw - Update 6000 firmware and add 6050 firmware
Joe Talbott [Tue, 20 Jul 2010 12:43:36 +0000]
iwnfw - Update 6000 firmware and add 6050 firmware

21 months agoAdd some more *at() system calls.
Sascha Wildner [Fri, 6 Aug 2010 14:44:50 +0000]
Add some more *at() system calls.

mkdirat(2), mkfifoat(2), mknodat(2), readlinkat(2), symlinkat(2)

Missing still (at least): linkat(2)

Documentation-changes-from: FreeBSD

21 months agoRemove <sys/selinfo.h> per 'make upgrade'.
Sascha Wildner [Fri, 6 Aug 2010 14:01:55 +0000]
Remove <sys/selinfo.h> per 'make upgrade'.

21 months agokernel - Clean up pipe filters (fixes last)
Samuel J. Greear [Fri, 6 Aug 2010 12:29:24 +0000]
kernel - Clean up pipe filters (fixes last)

* Remove extra pipe space calculation

* Move disconnected pipe check before token acquisition

21 months agokern - Clean up pipe filters
Samuel J. Greear [Fri, 6 Aug 2010 12:16:22 +0000]
kern - Clean up pipe filters

* Do not check ki_note, just issue the KNOTE and let kq sort it out.

* Remove an unmatched rel_mplock().

* Take the r and w tokens for the pipe in question before poking around for
  states and sizes.

* Reverse the pipe end that the write filter assumes it will receive, this
  matches the semantics of the previous .fo_poll implementation.

21 months agokernel - Silently swallow EOPNOTSUPP filter errors for select(2) in all cases
Samuel J. Greear [Fri, 6 Aug 2010 09:19:38 +0000]
kernel - Silently swallow EOPNOTSUPP filter errors for select(2) in all cases

* This fixes hald

Reported-by: Rumko

21 months agokernel - make poll return only explicitly asked for events
Samuel J. Greear [Fri, 6 Aug 2010 09:15:15 +0000]
kernel - make poll return only explicitly asked for events

* Previously we were returning all events that were analogous to each other,
  now we return only what was explicitly asked for.

* This fixes pulseaudio

Reported-by: Rumko

21 months agoFix some typos in various places.
Sascha Wildner [Thu, 5 Aug 2010 16:49:49 +0000]
Fix some typos in various places.

21 months agoFix LINT build.
Sascha Wildner [Thu, 5 Aug 2010 08:09:33 +0000]
Fix LINT build.

21 months agoBring in FreeBSD's stress2 stress testing suite.
Sascha Wildner [Wed, 4 Aug 2010 23:36:53 +0000]
Bring in FreeBSD's stress2 stress testing suite.

Great for crashing the system.

See test/stress/stress2/README for instructions.

Thanks to Peter Holm <pho@FreeBSD.org> for writing it.

Thanks to Damian Lubosch <dl@xiqit.de> for helping with testing
on DragonFly.

This might need further adjustment in the future.

21 months agobuildworld - Fix header file
Matthew Dillon [Wed, 4 Aug 2010 05:34:35 +0000]
buildworld - Fix header file

* struct kqinfo must be exposed for _KERNEL_STRUCTURES too.
  Fixes buildworld.

* Attempt to limit the inclusion of sys/queue.h to builds
  with _KERNEL or _KERNEL_STRUCTURES.

Reported-by: swildner

21 months agokernel - Add ALTQ to GENERIC and X86_64_GENERIC
Matthew Dillon [Wed, 4 Aug 2010 02:34:15 +0000]
kernel - Add ALTQ to GENERIC and X86_64_GENERIC

* Add ALTQ to these guys, as no altq module is currently
  available.

21 months agokernel - Make filters able to be marked MPSAFE
Samuel J. Greear [Tue, 3 Aug 2010 15:11:21 +0000]
kernel - Make filters able to be marked MPSAFE

* Change struct filterops f_isfd field to f_flags, taking FILTEROP_ISFD and/or
  FILTEROP_MPSAFE.

* Convert all existing filter definitions to use new flags.

* Create filter_attach/detach/event wrapper functions for calling through the
  struct filterops vector that grab the MPLOCK as necessary.

* kern_event() uses kq->kq_count to determine whether or not to sleep,
  kqueue_scan() removes events from the TAILQ and can possibly sleep, releasing
  the global kq token, before updating kq->kq_count.

21 months agokernel - Remove kevent subsystem from under mplock
Samuel J. Greear [Thu, 29 Jul 2010 12:06:13 +0000]
kernel - Remove kevent subsystem from under mplock

* Create a global token for the kevent subsystem to operate under

* Push klist insertion and removal into knote_insert()/knote_remove()

* Rename struct selinfo to struct kqinfo

21 months agoiwn{,fw}.4: Remove trailing whitespace and an unneeded .Pp
Sascha Wildner [Tue, 3 Aug 2010 14:06:51 +0000]
iwn{,fw}.4: Remove trailing whitespace and an unneeded .Pp

21 months agotwa(4): Sync with FreeBSD's current code.
Sascha Wildner [Tue, 3 Aug 2010 12:20:56 +0000]
twa(4): Sync with FreeBSD's current code.

This adds support for more and newer cards (see the hardware list in
the manual page).

Big thanks to Damian Lubosch <dl@xiqit.de> for testing it on a 9650SE.

21 months agokernel - Silently swallow EOPNOTSUPP filter errors for poll(2) in all cases
Samuel J. Greear [Tue, 3 Aug 2010 06:06:27 +0000]
kernel - Silently swallow EOPNOTSUPP filter errors for poll(2) in all cases

* This fixes firefox/gconfd/others

Reported-by: tuxillo

21 months agoFix buildkernel with 'options CPU_GEODE' but without 'device gpio'.
Sascha Wildner [Tue, 3 Aug 2010 00:49:13 +0000]
Fix buildkernel with 'options CPU_GEODE' but without 'device gpio'.

21 months agoFix x86_64 build by casting some {u,}intmax_t's for printing.
Sascha Wildner [Mon, 2 Aug 2010 21:03:18 +0000]
Fix x86_64 build by casting some {u,}intmax_t's for printing.

21 months ago{fetch,store}.9: Move casuword() from fetch(9) to store(9).
Sascha Wildner [Mon, 2 Aug 2010 09:08:32 +0000]
{fetch,store}.9: Move casuword() from fetch(9) to store(9).

21 months agokernel - Filter out unknown errors for select(2) and poll(2)
Samuel J. Greear [Mon, 2 Aug 2010 13:10:05 +0000]
kernel - Filter out unknown errors for select(2) and poll(2)

* select/poll have very limited error management, silently ignore anything they
  cannot handle (this brings us closer in line with the previous
  implementation).

* Add a couple of kern.nseldebug kprintf's

* Increment the kqueue serial by the number of descriptors for both select
  and poll.

21 months agokernel - Unset TS_ZOMBIE when pty is re-opened
Samuel J. Greear [Mon, 2 Aug 2010 13:09:27 +0000]
kernel - Unset TS_ZOMBIE when pty is re-opened

Reported-by: tuxillo

21 months agoFix the VKERNEL build with KLD_DEBUG set.
Sascha Wildner [Mon, 2 Aug 2010 13:00:58 +0000]
Fix the VKERNEL build with KLD_DEBUG set.

Reported-by: lentferj

21 months agobce(4): Remove some carriage returns.
Sascha Wildner [Mon, 2 Aug 2010 12:22:53 +0000]
bce(4): Remove some carriage returns.

21 months agoiwn(4): Hook the manual pages into the build as well.
Sascha Wildner [Sun, 1 Aug 2010 17:49:30 +0000]
iwn(4): Hook the manual pages into the build as well.

21 months agodsched - minor fixes, cleanup
Alex Hornung [Sun, 1 Aug 2010 12:04:32 +0000]
dsched - minor fixes, cleanup

* Clean up old dsched dev stuff, since dschedctl was the only consumer
  of it.

* Add a sysctl to change the default dsched policy
  (dsched.policy.default).

Suggested-by: Sascha Wildner

21 months agoMark the *at(2) system calls' prototypes as being new in IEEE 1003.1-2008.
Sascha Wildner [Sun, 1 Aug 2010 09:02:12 +0000]
Mark the *at(2) system calls' prototypes as being new in IEEE 1003.1-2008.

This is to prevent them from being exposed if an earlier version is
explicitly requested.

Mark them with __BSD_VISIBLE too so they are still exposed in our default
programming environment.

21 months agokernel - Make pt's throw EOF on disconnect.
Samuel J. Greear [Sun, 1 Aug 2010 08:54:29 +0000]
kernel - Make pt's throw EOF on disconnect.

* Set TS_ZOMBIE when pts is closed (already set for ptc).

* Add TS_ZOMBIE filter checks which throw EOF.

* This fixes a problem with screen introduced with screen commit 33b7c9ca

Reported-by: YONETANI Tomokazu

21 months agoRemove dschedctl(8).
Sascha Wildner [Sun, 1 Aug 2010 08:38:46 +0000]
Remove dschedctl(8).

dsched's behavior is controlled by the dsched.* tunables and sysctls
for a while now.

In-discussion-with: alexh

21 months agochroot.2: Add some words about chroot_kernel().
Sascha Wildner [Sun, 1 Aug 2010 08:06:40 +0000]
chroot.2: Add some words about chroot_kernel().

21 months agonlookup.9: Document nlookup_init_at() and nlookup_done_at().
Sascha Wildner [Sun, 1 Aug 2010 07:26:04 +0000]
nlookup.9: Document nlookup_init_at() and nlookup_done_at().

21 months agorenameat(2): Properly use nlookup_done_at() instead of nlookup_done().
Sascha Wildner [Sun, 1 Aug 2010 06:48:09 +0000]
renameat(2): Properly use nlookup_done_at() instead of nlookup_done().

21 months agoAdd a renameat(2) system call.
Sascha Wildner [Sat, 31 Jul 2010 20:46:31 +0000]
Add a renameat(2) system call.

Based-on: FreeBSD

21 months agodsched - Encapsulate tdio for curthread creation
Alex Hornung [Thu, 29 Jul 2010 15:07:11 +0000]
dsched - Encapsulate tdio for curthread creation

* Encapsulate the creation of a tdio for a thread created during the
  "prepare" method.

21 months agodevd - select only with a read set
Samuel J. Greear [Thu, 29 Jul 2010 04:26:10 +0000]
devd - select only with a read set

21 months agoAdd a dm(4) manual page (derived from NetBSD's).
Sascha Wildner [Wed, 28 Jul 2010 21:30:49 +0000]
Add a dm(4) manual page (derived from NetBSD's).

21 months agomkinitrd.8: Add some missing quotation marks.
Sascha Wildner [Wed, 28 Jul 2010 21:29:58 +0000]
mkinitrd.8: Add some missing quotation marks.

21 months agoFix typo in <sys/elf_common.h>: ET_LIPROC -> ET_LOPROC
Sascha Wildner [Wed, 28 Jul 2010 15:22:54 +0000]
Fix typo in <sys/elf_common.h>: ET_LIPROC -> ET_LOPROC

21 months agomake_dev.9: Remove reference to d_poll_t.
Sascha Wildner [Wed, 28 Jul 2010 03:44:18 +0000]
make_dev.9: Remove reference to d_poll_t.

It is gone with the recent poll/select work.

21 months agoRemove old time zone files via 'make upgrade'.
Sascha Wildner [Tue, 27 Jul 2010 18:16:43 +0000]
Remove old time zone files via 'make upgrade'.

21 months agofiles - Remove unneeded dependency on wlan_amrr from wpi.
Joe Talbott [Tue, 27 Jul 2010 16:56:16 +0000]
files - Remove unneeded dependency on wlan_amrr from wpi.

Pointed-Out-By: Max Herrgard

21 months agoral - Move NULL test to correct location and remove useless cast.
Joe Talbott [Tue, 27 Jul 2010 01:33:43 +0000]
ral - Move NULL test to correct location and remove useless cast.

Reported-By: Max Herrgard

21 months agoconfig - Don't rebuild firmware modules unless the blob changed.
Joe Talbott [Tue, 27 Jul 2010 01:32:09 +0000]
config - Don't rebuild firmware modules unless the blob changed.

Reported-By: swildner

21 months agoiwn - Hook iwn into the build infrastructure.
Joe Talbott [Tue, 20 Jul 2010 13:54:38 +0000]
iwn - Hook iwn into the build infrastructure.

21 months agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Samuel J. Greear [Mon, 26 Jul 2010 23:57:24 +0000]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

21 months agokernel - bring back reasonable fifo blocking semantics
Samuel J. Greear [Mon, 26 Jul 2010 23:52:37 +0000]
kernel - bring back reasonable fifo blocking semantics

* Differentiate between a pipe that has not yet been connected to and one that
  all readers or writers have disconnected from for issuing an EOF.

* Add soisreconnected/soisreconnecting to restore socket flags after a
  soisdisconnected when a fifo becomes reconnected.

21 months agokernel - clean up pipe kq filters
Samuel J. Greear [Mon, 26 Jul 2010 23:50:28 +0000]
kernel - clean up pipe kq filters

* Get rid of the legacy select test before wakeup, let kq handle it

* Minor cleanup of the filters

21 months agoSync zoneinfo database with tzdata2010k from elsie.nci.nih.gov
Sascha Wildner [Mon, 26 Jul 2010 16:17:50 +0000]
Sync zoneinfo database with tzdata2010k from elsie.nci.nih.gov

africa:         8.26 -> 8.27
australasia:    8.17 -> 8.18
backward:       8.8  -> 8.9
europe:         8.26 -> 8.27
leapseconds:    8.9  -> 8.10
northamerica:   8.31 -> 8.34
zone.tab:       8.36 -> 8.37

* africa: DST will not be used in Egypt during Ramadan.

* australasia: Change Pacific/Truk to Pacific/Chuuk (with corresponding
    time zone abbreviation change) and change Pacific/Ponape to
    Pacific/Pohnpei (with thanks to Clint Adams).

* backward: Add Pacific/Truk and Pacific/Ponape links and adjust
    Pacific/Yap link.

* europe: Change Finland transition times in 1981 and 1982 (with thanks
    to Janne Snabb).

* leapseconds: Update comments with latest IERS leap second bulletin.

* northamerica: Correct instant of 2010 move between time zones in
    Bahia de Banderas. Add comments from Mark Brader on DST in Windsor.
    Add comments on Canadian DST in 1930 from the Journal of the Royal
    Astronomical Society of Canada.

* zone.tab: Change Pacific/Truk to Pacific/Chuuk and change Pacific/Ponape
    to Pacific/Pohnpei.

22 months agobpf - do wakeup at the proper time
Samuel J. Greear [Mon, 26 Jul 2010 08:40:52 +0000]
bpf - do wakeup at the proper time

* kq runs the filters to determine readiness after a KNOTE, KNOTE must be
  called after twiddling struct members that will have an impact on the
  readiness check.

22 months agotwe(4): Correct indent.
Sascha Wildner [Mon, 26 Jul 2010 07:33:18 +0000]
twe(4): Correct indent.

22 months agokernel - Fix poll return values in the presence of filter errors
Samuel J. Greear [Mon, 26 Jul 2010 03:30:02 +0000]
kernel - Fix poll return values in the presence of filter errors

* Ensure processing of all incoming descriptors in kern_kevent.

* Poll may register up to 3 filters for each descriptor, never increment
  the poll return value by more than 1 in the case of multiple filters
  returning in error.

22 months agoman - Fix poll HISTORY, implementation has changed
Samuel J. Greear [Mon, 26 Jul 2010 03:28:09 +0000]
man - Fix poll HISTORY, implementation has changed

22 months agoMore work on CCVER=clangsvn.
Sascha Wildner [Mon, 26 Jul 2010 03:23:37 +0000]
More work on CCVER=clangsvn.

* Remove /usr/libdata/gcc41 from the include path. It is not needed.

* Use gcc 4.4's C++ headers instead of gcc 4.1's. This fixes building of
  devd(8) and likely of other C++ stuff too.

22 months agolock.9: Mention lockuninit().
Sascha Wildner [Mon, 26 Jul 2010 02:24:31 +0000]
lock.9: Mention lockuninit().

22 months agohier.7: Sync with our current state of affairs.
Sascha Wildner [Sun, 25 Jul 2010 03:44:08 +0000]
hier.7: Sync with our current state of affairs.

22 months agoAdd syscalls.master.5 MLINK (to syscall.9).
Sascha Wildner [Sun, 25 Jul 2010 01:50:31 +0000]
Add syscalls.master.5 MLINK (to syscall.9).

22 months agosys/emulation/linux/i386/syscalls.conf: Remove unused variable.
Sascha Wildner [Sun, 25 Jul 2010 00:44:07 +0000]
sys/emulation/linux/i386/syscalls.conf: Remove unused variable.

22 months agoSome cleanup in sys/emulation/linux Makefiles.
Sascha Wildner [Sun, 25 Jul 2010 00:14:02 +0000]
Some cleanup in sys/emulation/linux Makefiles.

22 months agonrelease: No need to exclude 'CVS' anymore for src-sys.tgz.
Sascha Wildner [Sat, 24 Jul 2010 23:24:36 +0000]
nrelease: No need to exclude 'CVS' anymore for src-sys.tgz.

22 months agonrelease: Download pkgsrc and src with our standard /usr/Makefile targets.
Sascha Wildner [Sat, 24 Jul 2010 23:09:34 +0000]
nrelease: Download pkgsrc and src with our standard /usr/Makefile targets.

Also fix a typo in a comment.

22 months agoral - fix crash during attach
Nicolas Thery [Sat, 24 Jul 2010 09:01:32 +0000]
ral - fix crash during attach

Reported-by: Max Herrgard <herrgard@gmail.com>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1785>

22 months agodm_target_crypt - cleanup & minor improvements
Alex Hornung [Sun, 18 Jul 2010 08:13:25 +0000]
dm_target_crypt - cleanup & minor improvements

* Overwrite memory used for keys, essiv hash and other private data when
  destroying a crypt target.

* Rename the static functions so it's easier to see what they do,
  without the huge dm_target_crypt prefix.

* Rename dm_target_crypt_work to _crypto_start to clearly indicate that
  the crypto operations are split phase.

* Explicitly convert the sector number used for the iv generators to
  little endian for future compatibility.

Big-Thanks-to: Aggelos Economopoulos

22 months agokernel - Count only non-spurious events in main kevent loop
Samuel J. Greear [Fri, 23 Jul 2010 13:00:28 +0000]
kernel - Count only non-spurious events in main kevent loop

* Add a couple of debug fields to kern.nseldebug kprintf's

* The main kevent loop is effectively event driven until it has processed the
  maximum number of events it is allowed to return. Spurious events counted
  toward this total, resulting in no events being returned if the number of
  spurious events processed reached the total.

22 months agoiwi(4): Properly lock iwi_watchdog().
Sascha Wildner [Fri, 23 Jul 2010 09:22:17 +0000]
iwi(4): Properly lock iwi_watchdog().

Submitted-by:  Johannes Hofmann <johannes.hofmann@gmx.de>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1795>

22 months agousbdi.9: Add missing headers (usbdi.h needs them).
Sascha Wildner [Fri, 23 Jul 2010 09:00:13 +0000]
usbdi.9: Add missing headers (usbdi.h needs them).