dragonfly.git
3 years agoiwn - Clean up memory freeing.
Joe Talbott [Sun, 25 Jul 2010 22:27:29 +0000 (18:27 -0400)]
iwn - Clean up memory freeing.

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

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

3 years agowlan - Convert lockmgr locking to a global token.
Joe Talbott [Sun, 25 Jul 2010 20:08:19 +0000 (16:08 -0400)]
wlan - Convert lockmgr locking to a global token.

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

Discussed-With: dillon

3 years agoiwn - Bring in recent changes from FreeBSD.
Joe Talbott [Sun, 25 Jul 2010 19:29:52 +0000 (15:29 -0400)]
iwn - Bring in recent changes from FreeBSD.

Taken-From: FreeBSD

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

3 years agoiwn - Update firmware for 6000 chipset.
Joe Talbott [Tue, 20 Jul 2010 13:38:30 +0000 (09:38 -0400)]
iwn - Update firmware for 6000 chipset.

3 years agoiwnfw - Update 6000 firmware and add 6050 firmware
Joe Talbott [Tue, 20 Jul 2010 12:43:36 +0000 (08:43 -0400)]
iwnfw - Update 6000 firmware and add 6050 firmware

3 years agoAdd some more *at() system calls.
Sascha Wildner [Fri, 6 Aug 2010 14:44:50 +0000 (16:44 +0200)]
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

3 years agoRemove <sys/selinfo.h> per 'make upgrade'.
Sascha Wildner [Fri, 6 Aug 2010 14:01:55 +0000 (16:01 +0200)]
Remove <sys/selinfo.h> per 'make upgrade'.

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

* Remove extra pipe space calculation

* Move disconnected pipe check before token acquisition

3 years agokern - Clean up pipe filters
Samuel J. Greear [Fri, 6 Aug 2010 12:16:22 +0000 (12:16 +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.

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

* This fixes hald

Reported-by: Rumko
3 years agokernel - make poll return only explicitly asked for events
Samuel J. Greear [Fri, 6 Aug 2010 09:15:15 +0000 (09: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
3 years agoFix some typos in various places.
Sascha Wildner [Thu, 5 Aug 2010 16:49:49 +0000 (18:49 +0200)]
Fix some typos in various places.

3 years agoFix LINT build.
Sascha Wildner [Thu, 5 Aug 2010 08:09:33 +0000 (10:09 +0200)]
Fix LINT build.

3 years agoBring in FreeBSD's stress2 stress testing suite.
Sascha Wildner [Wed, 4 Aug 2010 23:36:53 +0000 (01:36 +0200)]
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.

3 years agobuildworld - Fix header file
Matthew Dillon [Wed, 4 Aug 2010 05:34:35 +0000 (22:34 -0700)]
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
3 years agokernel - Add ALTQ to GENERIC and X86_64_GENERIC
Matthew Dillon [Wed, 4 Aug 2010 02:34:15 +0000 (19:34 -0700)]
kernel - Add ALTQ to GENERIC and X86_64_GENERIC

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

3 years agokernel - Make filters able to be marked MPSAFE
Samuel J. Greear [Tue, 3 Aug 2010 15:11:21 +0000 (15:11 +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.

3 years agokernel - Remove kevent subsystem from under mplock
Samuel J. Greear [Thu, 29 Jul 2010 12:06:13 +0000 (12:06 +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

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

3 years agotwa(4): Sync with FreeBSD's current code.
Sascha Wildner [Tue, 3 Aug 2010 12:20:56 +0000 (14:20 +0200)]
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.

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

* This fixes firefox/gconfd/others

Reported-by: tuxillo
3 years agoFix buildkernel with 'options CPU_GEODE' but without 'device gpio'.
Sascha Wildner [Tue, 3 Aug 2010 00:49:13 +0000 (02:49 +0200)]
Fix buildkernel with 'options CPU_GEODE' but without 'device gpio'.

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

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

3 years agokernel - Filter out unknown errors for select(2) and poll(2)
Samuel J. Greear [Mon, 2 Aug 2010 13:10:05 +0000 (13:10 +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.

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

Reported-by: tuxillo
3 years agoFix the VKERNEL build with KLD_DEBUG set.
Sascha Wildner [Mon, 2 Aug 2010 13:00:58 +0000 (15:00 +0200)]
Fix the VKERNEL build with KLD_DEBUG set.

Reported-by: lentferj
3 years agobce(4): Remove some carriage returns.
Sascha Wildner [Mon, 2 Aug 2010 12:22:53 +0000 (14:22 +0200)]
bce(4): Remove some carriage returns.

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

3 years agodsched - minor fixes, cleanup
Alex Hornung [Sun, 1 Aug 2010 12:04:32 +0000 (13:04 +0100)]
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
3 years 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 (11:02 +0200)]
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.

3 years agokernel - Make pt's throw EOF on disconnect.
Samuel J. Greear [Sun, 1 Aug 2010 08:54:29 +0000 (08:54 +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
3 years agoRemove dschedctl(8).
Sascha Wildner [Sun, 1 Aug 2010 08:38:46 +0000 (10:38 +0200)]
Remove dschedctl(8).

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

In-discussion-with: alexh

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

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

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

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

Based-on: FreeBSD

3 years agodsched - Encapsulate tdio for curthread creation
Alex Hornung [Thu, 29 Jul 2010 15:07:11 +0000 (16:07 +0100)]
dsched - Encapsulate tdio for curthread creation

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

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

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

3 years agomkinitrd.8: Add some missing quotation marks.
Sascha Wildner [Wed, 28 Jul 2010 21:29:58 +0000 (23:29 +0200)]
mkinitrd.8: Add some missing quotation marks.

3 years agoFix typo in <sys/elf_common.h>: ET_LIPROC -> ET_LOPROC
Sascha Wildner [Wed, 28 Jul 2010 15:22:54 +0000 (17:22 +0200)]
Fix typo in <sys/elf_common.h>: ET_LIPROC -> ET_LOPROC

3 years agomake_dev.9: Remove reference to d_poll_t.
Sascha Wildner [Wed, 28 Jul 2010 03:44:18 +0000 (05:44 +0200)]
make_dev.9: Remove reference to d_poll_t.

It is gone with the recent poll/select work.

3 years agoRemove old time zone files via 'make upgrade'.
Sascha Wildner [Tue, 27 Jul 2010 18:16:43 +0000 (20:16 +0200)]
Remove old time zone files via 'make upgrade'.

3 years agofiles - Remove unneeded dependency on wlan_amrr from wpi.
Joe Talbott [Tue, 27 Jul 2010 16:56:16 +0000 (12:56 -0400)]
files - Remove unneeded dependency on wlan_amrr from wpi.

Pointed-Out-By: Max Herrgard
3 years agoral - Move NULL test to correct location and remove useless cast.
Joe Talbott [Tue, 27 Jul 2010 01:33:43 +0000 (21:33 -0400)]
ral - Move NULL test to correct location and remove useless cast.

Reported-By: Max Herrgard
3 years agoconfig - Don't rebuild firmware modules unless the blob changed.
Joe Talbott [Tue, 27 Jul 2010 01:32:09 +0000 (21:32 -0400)]
config - Don't rebuild firmware modules unless the blob changed.

Reported-By: swildner
3 years agoiwn - Hook iwn into the build infrastructure.
Joe Talbott [Tue, 20 Jul 2010 13:54:38 +0000 (09:54 -0400)]
iwn - Hook iwn into the build infrastructure.

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

3 years agokernel - bring back reasonable fifo blocking semantics
Samuel J. Greear [Mon, 26 Jul 2010 23:52:37 +0000 (23:52 +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.

3 years agokernel - clean up pipe kq filters
Samuel J. Greear [Mon, 26 Jul 2010 23:50:28 +0000 (23:50 +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

3 years agoSync zoneinfo database with tzdata2010k from elsie.nci.nih.gov
Sascha Wildner [Mon, 26 Jul 2010 16:17:50 +0000 (18:17 +0200)]
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.

3 years agobpf - do wakeup at the proper time
Samuel J. Greear [Mon, 26 Jul 2010 08:40:52 +0000 (08:40 +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.

3 years agotwe(4): Correct indent.
Sascha Wildner [Mon, 26 Jul 2010 07:33:18 +0000 (09:33 +0200)]
twe(4): Correct indent.

3 years agokernel - Fix poll return values in the presence of filter errors
Samuel J. Greear [Mon, 26 Jul 2010 03:30:02 +0000 (03:30 +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.

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

3 years agoMore work on CCVER=clangsvn.
Sascha Wildner [Mon, 26 Jul 2010 03:23:37 +0000 (05:23 +0200)]
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.

3 years agolock.9: Mention lockuninit().
Sascha Wildner [Mon, 26 Jul 2010 02:24:31 +0000 (04:24 +0200)]
lock.9: Mention lockuninit().

3 years agohier.7: Sync with our current state of affairs.
Sascha Wildner [Sun, 25 Jul 2010 03:44:08 +0000 (05:44 +0200)]
hier.7: Sync with our current state of affairs.

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

3 years agosys/emulation/linux/i386/syscalls.conf: Remove unused variable.
Sascha Wildner [Sun, 25 Jul 2010 00:44:07 +0000 (02:44 +0200)]
sys/emulation/linux/i386/syscalls.conf: Remove unused variable.

3 years agoSome cleanup in sys/emulation/linux Makefiles.
Sascha Wildner [Sun, 25 Jul 2010 00:14:02 +0000 (02:14 +0200)]
Some cleanup in sys/emulation/linux Makefiles.

3 years agonrelease: No need to exclude 'CVS' anymore for src-sys.tgz.
Sascha Wildner [Sat, 24 Jul 2010 23:24:36 +0000 (01:24 +0200)]
nrelease: No need to exclude 'CVS' anymore for src-sys.tgz.

3 years agonrelease: Download pkgsrc and src with our standard /usr/Makefile targets.
Sascha Wildner [Sat, 24 Jul 2010 23:09:34 +0000 (01:09 +0200)]
nrelease: Download pkgsrc and src with our standard /usr/Makefile targets.

Also fix a typo in a comment.

3 years agoral - fix crash during attach
Nicolas Thery [Sat, 24 Jul 2010 09:01:32 +0000 (11:01 +0200)]
ral - fix crash during attach

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

3 years agodm_target_crypt - cleanup & minor improvements
Alex Hornung [Sun, 18 Jul 2010 08:13:25 +0000 (09:13 +0100)]
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

3 years agokernel - Count only non-spurious events in main kevent loop
Samuel J. Greear [Fri, 23 Jul 2010 13:00:28 +0000 (13:00 +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.

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

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

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

3 years agomake_dev.9: Add #include <sys/devfs.h> (for devfs_scan_t).
Sascha Wildner [Fri, 23 Jul 2010 04:12:09 +0000 (06:12 +0200)]
make_dev.9: Add #include <sys/devfs.h> (for devfs_scan_t).

3 years agomake_autoclone_dev.9: Fix some minor issues in the prototypes.
Sascha Wildner [Fri, 23 Jul 2010 04:09:32 +0000 (06:09 +0200)]
make_autoclone_dev.9: Fix some minor issues in the prototypes.

3 years agoSpecify the correct headers in some kernel manual pages.
Sascha Wildner [Fri, 23 Jul 2010 03:53:26 +0000 (05:53 +0200)]
Specify the correct headers in some kernel manual pages.

3 years agoThe LINPROCFS option goes to opt_dontuse.h, not to a file named '#Linux'.
Sascha Wildner [Thu, 22 Jul 2010 22:39:30 +0000 (00:39 +0200)]
The LINPROCFS option goes to opt_dontuse.h, not to a file named '#Linux'.

3 years agoaltq.9: Fix prototype.
Sascha Wildner [Thu, 22 Jul 2010 18:41:47 +0000 (20:41 +0200)]
altq.9: Fix prototype.

3 years agoetc/rc.d doesn't need an obj directory and we don't have noprog.
Sascha Wildner [Wed, 21 Jul 2010 22:01:54 +0000 (00:01 +0200)]
etc/rc.d doesn't need an obj directory and we don't have noprog.

3 years agorc: In 'syslogd', adjust the handling of syslog sockets in chroots.
Sascha Wildner [Wed, 21 Jul 2010 21:34:32 +0000 (23:34 +0200)]
rc: In 'syslogd', adjust the handling of syslog sockets in chroots.

Use a keyword, 'chrootdir', to help syslogd place additional log sockets
in chroots. It's main use at the moment is to help with BIND installed
from pkgsrc.

This silences the other of the rc error messages we've been having since
we removed BIND from base.

3 years agorc: Add a dummy 'named' script to give 'rpcbind' something to depend on.
Sascha Wildner [Wed, 21 Jul 2010 21:29:47 +0000 (23:29 +0200)]
rc: Add a dummy 'named' script to give 'rpcbind' something to depend on.

If BIND is installed from pkgsrc, its 'named9' script (which provides
'named') will do the real work.

This silences one of the rc error messages we've been having since we
removed BIND from base.

3 years agosasc(1): Remove the INSTALL file (nothing here is of any interest).
Sascha Wildner [Thu, 15 Jul 2010 09:18:09 +0000 (11:18 +0200)]
sasc(1): Remove the INSTALL file (nothing here is of any interest).

3 years ago<wchar.h>: Partial revert of b9286c919de6585c967b8dbf2c472fba7b33f9f1.
Sascha Wildner [Wed, 21 Jul 2010 10:34:44 +0000 (12:34 +0200)]
<wchar.h>: Partial revert of b9286c919de6585c967b8dbf2c472fba7b33f9f1.

Before Hasso's commit, both wchar_t and WCHAR_{MIN,MAX} were inside a
#ifndef __cplusplus. With this state, devel/boost-libs in pkgsrc indeed
fails to build because it can't find WCHAR_{MIN,MAX}.

However, with the #ifndef completely removed (after Hasso's commit),
clang whines during C++ compilation because wchar_t is a built in type
in C++.

Therefore, bring back the #ifndef, but only around wchar_t and not
around the limits. This keeps boost-libs building, silences clang, is
in line with what the C++ standard says and with what others (FreeBSD,
for example) do.

3 years agoCOPYRIGHT: Fix typo.
Sascha Wildner [Tue, 20 Jul 2010 16:50:08 +0000 (18:50 +0200)]
COPYRIGHT: Fix typo.

3 years agoiwn.4: Add reference to ifmedia(4).
Sascha Wildner [Tue, 20 Jul 2010 16:32:09 +0000 (18:32 +0200)]
iwn.4: Add reference to ifmedia(4).

3 years agohier.7: Adjust a bit.
Sascha Wildner [Tue, 20 Jul 2010 13:09:52 +0000 (15:09 +0200)]
hier.7: Adjust a bit.

3 years ago/usr/share/doc/legal: Install some more firmware licenses.
Sascha Wildner [Tue, 20 Jul 2010 13:04:31 +0000 (15:04 +0200)]
/usr/share/doc/legal: Install some more firmware licenses.

Also add /usr/share/doc/legal to the hier(7) manual page and add
a reference to it in /COPYRIGHT.

3 years agoral - Add license for firmware.
Joe Talbott [Tue, 20 Jul 2010 12:11:37 +0000 (08:11 -0400)]
ral - Add license for firmware.

Taken-From: FreeBSD

3 years agoFix the VKERNEL build.
Sascha Wildner [Tue, 20 Jul 2010 10:36:49 +0000 (12:36 +0200)]
Fix the VKERNEL build.

3 years agoiwn - Fix for x86_64.
Joe Talbott [Tue, 20 Jul 2010 01:09:21 +0000 (21:09 -0400)]
iwn - Fix for x86_64.

* Convert to lockmgr locks.
* curthred -> curthread
* Clean up locking to be more in sync with FreeBSD.

Reported-By: swildner
Tested-By: swildner
New-Best-Friend: swildner

3 years agolink_elf_obj - When current proc is NULL use proc0.
Joe Talbott [Tue, 20 Jul 2010 01:08:19 +0000 (21:08 -0400)]
link_elf_obj - When current proc is NULL use proc0.

Reported-By: swildner
Tested-By: swildner
3 years agokqueue - Fix bad error path triggered by emacs
Matthew Dillon [Tue, 20 Jul 2010 01:08:18 +0000 (18:08 -0700)]
kqueue - Fix bad error path triggered by emacs

* Some device d_kqfilter functions were not setting ap->a_result,
  leading to an error being improperly returned and knotes left
  hanging.  This led to a lockup and/or a panic when running emacs.

* Adjust dev_dkqfilter() to preset ap->a_result to 0 to fix the
  problem and document it.

Reported-by: Sascha Wildner <swildner@erpicon.de>
3 years agobdes(1): Sync with FreeBSD.
Sascha Wildner [Tue, 20 Jul 2010 00:40:34 +0000 (02:40 +0200)]
bdes(1): Sync with FreeBSD.

3 years agolvm - get rid of gcc-only cruft
Alex Hornung [Mon, 19 Jul 2010 21:40:35 +0000 (22:40 +0100)]
lvm - get rid of gcc-only cruft

* replace the subtraction of members of unions and structs with the
  standard use of offsetof.

* This allows lvm to be compiled by clang.

Reported-by: Sascha Wildner
3 years agolvm - get rid of CVS directories
Alex Hornung [Mon, 19 Jul 2010 21:42:37 +0000 (22:42 +0100)]
lvm - get rid of CVS directories

Reported-by: Sascha Wildner
3 years agopcm - Remove unused variable
Samuel J. Greear [Mon, 19 Jul 2010 21:49:28 +0000 (21:49 +0000)]
pcm - Remove unused variable

3 years agoMerge branch 'selwakeup'
Samuel J. Greear [Mon, 19 Jul 2010 21:25:57 +0000 (21:25 +0000)]
Merge branch 'selwakeup'

3 years agoMore work on CCVER=clangsvn.
Sascha Wildner [Mon, 19 Jul 2010 20:38:05 +0000 (22:38 +0200)]
More work on CCVER=clangsvn.

* For C++ code, call clang as clang++.

* Add some options for C++ compilation.

3 years agocpdup - code cleanup (non-operational changes)
Matthew Dillon [Mon, 19 Jul 2010 19:23:08 +0000 (12:23 -0700)]
cpdup - code cleanup (non-operational changes)

* Cleanup code constructs for human readability

3 years agocpdup - Bump version, adjust manual page and usage()
Matthew Dillon [Mon, 19 Jul 2010 19:20:13 +0000 (12:20 -0700)]
cpdup - Bump version, adjust manual page and usage()

* Bump to 1.17
* Add Oliver's name to the manual page, copyright, and usage().

3 years agocpdup - Add several new features
Matthew Dillon [Mon, 19 Jul 2010 19:13:36 +0000 (12:13 -0700)]
cpdup - Add several new features

* Add -R option for ssh authorized_key based slave mode.
* Add byte order detection and handling.
* Improve remote directory scan performance.
* Add Sun compatibility files for completeness.

Submitted-by: Oliver Fromme <olli@fromme.com>
3 years agowlan - For the time being include wlan_amrr when wlan is included.
Joe Talbott [Mon, 19 Jul 2010 17:42:59 +0000 (13:42 -0400)]
wlan - For the time being include wlan_amrr when wlan is included.