Jan Lentfer [Sun, 8 Aug 2010 16:47:04 +0000 (18:47 +0200)]
ftp-proxy: Update to OpenBSD 4.1
ftp-proxy has been moved from libexec/ to usr.sbin/
Jan Lentfer [Sun, 8 Aug 2010 16:43:17 +0000 (18:43 +0200)]
pflogd: Update to OpenBSD 4.1
Jan Lentfer [Sun, 8 Aug 2010 07:29:24 +0000 (09:29 +0200)]
PF: Update manpages
pf.os(5)
Jan Lentfer [Sat, 7 Aug 2010 06:55:19 +0000 (08:55 +0200)]
Merge branch 'master' into pf_update
Sascha Wildner [Sat, 7 Aug 2010 03:14:29 +0000 (05:14 +0200)]
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).
Sascha Wildner [Sat, 7 Aug 2010 03:12:38 +0000 (05:12 +0200)]
iwn(4): Add Makefile for building iwn6050fw.ko.
Sascha Wildner [Sat, 7 Aug 2010 03:11:48 +0000 (05:11 +0200)]
Add iwn(4) and iwnfw(4) to LINT.
Joe Talbott [Sat, 7 Aug 2010 02:21:23 +0000 (22:21 -0400)]
config - Fix typo in iwn6050 clean target.
Sascha Wildner [Fri, 6 Aug 2010 23:26:40 +0000 (01:26 +0200)]
Unbreak buildworld.
wlan_token shall be visible to the kernel only.
Jan Lentfer [Fri, 6 Aug 2010 20:46:31 +0000 (22:46 +0200)]
Merge branch 'master' into pf_update
Jan Lentfer [Fri, 6 Aug 2010 20:44:46 +0000 (22:44 +0200)]
PF: more man page updates (pfsync(4))
Joe Talbott [Sun, 25 Jul 2010 22:50:05 +0000 (18:50 -0400)]
iwn - Fix warning related to token work.
Joe Talbott [Sun, 25 Jul 2010 22:49:35 +0000 (18:49 -0400)]
iwn - Cleanup sysctl tree on detach.
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.
Joe Talbott [Sun, 25 Jul 2010 20:09:21 +0000 (16:09 -0400)]
iwn - Convert to use the new wlan layer's 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
Joe Talbott [Sun, 25 Jul 2010 19:29:52 +0000 (15:29 -0400)]
iwn - Bring in recent changes from FreeBSD.
Taken-From: FreeBSD
Joe Talbott [Sat, 24 Jul 2010 14:48:09 +0000 (10:48 -0400)]
iwn - Lock callout iwn_timer_timeout().
Joe Talbott [Tue, 20 Jul 2010 13:38:30 +0000 (09:38 -0400)]
iwn - Update firmware for 6000 chipset.
Joe Talbott [Tue, 20 Jul 2010 12:43:36 +0000 (08:43 -0400)]
iwnfw - Update 6000 firmware and add 6050 firmware
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
Sascha Wildner [Fri, 6 Aug 2010 14:01:55 +0000 (16:01 +0200)]
Remove <sys/selinfo.h> per 'make upgrade'.
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
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.
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
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
Sascha Wildner [Thu, 5 Aug 2010 16:49:49 +0000 (18:49 +0200)]
Fix some typos in various places.
Jan Lentfer [Thu, 5 Aug 2010 13:29:56 +0000 (15:29 +0200)]
PF: Update pf related man pages
Sync pf(4) and pflog(4) with OpenBSD 4.1
Sascha Wildner [Thu, 5 Aug 2010 08:09:33 +0000 (10:09 +0200)]
Fix LINT build.
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.
Jan Lentfer [Wed, 4 Aug 2010 14:45:40 +0000 (16:45 +0200)]
Merge branch 'master' into pf_update
Jan Lentfer [Wed, 4 Aug 2010 14:40:50 +0000 (16:40 +0200)]
PF: Change M_NOWAIT to M_WAITOK where appropriate
Patch by Matthew Dillon
Jan Lentfer [Wed, 4 Aug 2010 14:23:29 +0000 (16:23 +0200)]
PF: Update pf.conf(5) man page
Also reorder the lower part
to fit the OpenBSD original again
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
Jan Lentfer [Wed, 4 Aug 2010 04:56:03 +0000 (06:56 +0200)]
Merge branch 'master' into pf_update
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.
Jan Lentfer [Tue, 3 Aug 2010 17:55:11 +0000 (19:55 +0200)]
Merge branch 'master' into pf_update
Jan Lentfer [Tue, 3 Aug 2010 17:54:28 +0000 (19:54 +0200)]
PF: Remove debugging output
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.
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
Sascha Wildner [Tue, 3 Aug 2010 14:06:51 +0000 (16:06 +0200)]
iwn{,fw}.4: Remove trailing whitespace and an unneeded .Pp
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.
Jan Lentfer [Tue, 3 Aug 2010 12:02:06 +0000 (14:02 +0200)]
Merge branch 'master' into pf_update
Jan Lentfer [Tue, 3 Aug 2010 11:30:05 +0000 (13:30 +0200)]
PF: Fix "set keep-policy (pickups)" option
Jan Lentfer [Tue, 3 Aug 2010 11:16:04 +0000 (13:16 +0200)]
PF: Fix ALTQ/fairq support in PF
Patch by Matthew Dillon
Jan Lentfer [Tue, 3 Aug 2010 11:15:05 +0000 (13:15 +0200)]
ALTQ: Fix altq to work with m_tag from pf
Patch by Matthew Dillon
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
Sascha Wildner [Tue, 3 Aug 2010 00:49:13 +0000 (02:49 +0200)]
Fix buildkernel with 'options CPU_GEODE' but without 'device gpio'.
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.
Sascha Wildner [Mon, 2 Aug 2010 09:08:32 +0000 (11:08 +0200)]
{fetch,store}.9: Move casuword() from fetch(9) to store(9).
Jan Lentfer [Mon, 2 Aug 2010 19:12:09 +0000 (21:12 +0200)]
string.h: Fix VKERNEL breakage
Jan Lentfer [Mon, 2 Aug 2010 18:55:31 +0000 (20:55 +0200)]
Merge branch 'master' into pf_update
Jan Lentfer [Mon, 2 Aug 2010 18:35:39 +0000 (20:35 +0200)]
PF: Remove hardcoded KLD_DEBUG (debugging)
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.
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
Sascha Wildner [Mon, 2 Aug 2010 13:00:58 +0000 (15:00 +0200)]
Fix the VKERNEL build with KLD_DEBUG set.
Reported-by: lentferj
Sascha Wildner [Mon, 2 Aug 2010 12:22:53 +0000 (14:22 +0200)]
bce(4): Remove some carriage returns.
Jan Lentfer [Mon, 2 Aug 2010 11:24:10 +0000 (13:24 +0200)]
PF: Update authpf Makefile
Jan Lentfer [Mon, 2 Aug 2010 11:20:59 +0000 (13:20 +0200)]
libkern: Revert commit e104539
strchr was added to libkern.h
together with strrch
Jan Lentfer [Sun, 1 Aug 2010 21:36:38 +0000 (23:36 +0200)]
PF: Re-add files in usr.sbin/pfctl
Jan Lentfer [Sun, 1 Aug 2010 21:32:49 +0000 (23:32 +0200)]
PF: Update usr.sbin/authpf to OpenBSD 4.1
Jan Lentfer [Sun, 1 Aug 2010 21:32:12 +0000 (23:32 +0200)]
PF: Fix warnings in pfctl after update
Jan Lentfer [Sat, 31 Jul 2010 04:50:17 +0000 (06:50 +0200)]
PF: Adjust flags for keep state (pickups)
Jan Lentfer [Sat, 31 Jul 2010 04:47:30 +0000 (06:47 +0200)]
PF: Fix some more locking issues on module unload
Jan Lentfer [Thu, 22 Jul 2010 15:03:02 +0000 (17:03 +0200)]
PF: Fix more locking and module unload problems
Jan Lentfer [Thu, 22 Jul 2010 11:37:11 +0000 (13:37 +0200)]
PF: Fix panic on unload
Jan Lentfer [Wed, 21 Jul 2010 19:04:48 +0000 (21:04 +0200)]
PF: fix locking in pf_purge_thread() and friends
Jan Lentfer [Tue, 20 Jul 2010 17:35:04 +0000 (19:35 +0200)]
PF: More debug output
Jan Lentfer [Thu, 10 Jun 2010 09:29:20 +0000 (11:29 +0200)]
pfctl: Update to OpenBSD 4.1 version
Jan Lentfer [Sat, 5 Jun 2010 18:47:40 +0000 (20:47 +0200)]
net/pf: Fix panic on module unload
pf_purge_thread wasn't cleanly finished.
Code taken from FreeBSD and changed to
DragonFly syntax.
Jan Lentfer [Sat, 5 Jun 2010 18:47:15 +0000 (20:47 +0200)]
net/bpf.c: Fix bpf_mtap_hdr
Jan Lentfer [Sat, 5 Jun 2010 18:39:09 +0000 (20:39 +0200)]
net/if.h: add interface groups
Imported from FreeBSD.
Jan Lentfer [Sun, 30 May 2010 18:02:50 +0000 (20:02 +0200)]
net/pf: Update PF to OpenBSD 4.1 release
Jan Lentfer [Sat, 29 May 2010 18:43:28 +0000 (20:43 +0200)]
netinet6/in6.h: add PV6_ADDR_SCOPE_INTFACELOCAL
Jan Lentfer [Sat, 29 May 2010 18:39:59 +0000 (20:39 +0200)]
netinet6/in6.h: add IN6_IS_ADDR_MC_INTFACELOCAL macro
Jan Lentfer [Sat, 29 May 2010 18:35:01 +0000 (20:35 +0200)]
netinet6/in6.h: add IN6_IS_SCOPE_EMBED macro
Jan Lentfer [Fri, 28 May 2010 19:06:34 +0000 (21:06 +0200)]
sys/libkern.h: Add strchr and strrchr as inline functions
* Brought in from FreeBSD
Jan Lentfer [Wed, 19 May 2010 20:33:17 +0000 (22:33 +0200)]
sys/net/if_var.h: Import interface groups
* Import interface groups and event handlers from FreeBSD
* add if_groups to struct ifnet
* necessary additions for PF update
Jan Lentfer [Mon, 17 May 2010 11:45:12 +0000 (13:45 +0200)]
net/if_var.h: add if_pf_kif to struct ifnet
* obtained from: Open/FreeBSD
Jan Lentfer [Mon, 17 May 2010 10:44:49 +0000 (12:44 +0200)]
net/if_types.h: add IFT_ENC to non-IATA-assignments
* obtained from Open/FreeBSD
Jan Lentfer [Fri, 14 May 2010 18:45:32 +0000 (20:45 +0200)]
net/bpf: Fix argument types in bpf_mtap_hdr
Jan Lentfer [Fri, 14 May 2010 17:00:06 +0000 (19:00 +0200)]
bla
Jan Lentfer [Fri, 14 May 2010 16:37:04 +0000 (18:37 +0200)]
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.
Sascha Wildner [Sun, 1 Aug 2010 17:49:30 +0000 (19:49 +0200)]
iwn(4): Hook the manual pages into the build as well.
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
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.
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
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
Sascha Wildner [Sun, 1 Aug 2010 08:06:40 +0000 (10:06 +0200)]
chroot.2: Add some words about chroot_kernel().
Sascha Wildner [Sun, 1 Aug 2010 07:26:04 +0000 (09:26 +0200)]
nlookup.9: Document nlookup_init_at() and nlookup_done_at().
Sascha Wildner [Sun, 1 Aug 2010 06:48:09 +0000 (08:48 +0200)]
renameat(2): Properly use nlookup_done_at() instead of nlookup_done().
Sascha Wildner [Sat, 31 Jul 2010 20:46:31 +0000 (22:46 +0200)]
Add a renameat(2) system call.
Based-on: FreeBSD
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.
Samuel J. Greear [Thu, 29 Jul 2010 04:26:10 +0000 (04:26 +0000)]
devd - select only with a read set
Sascha Wildner [Wed, 28 Jul 2010 21:30:49 +0000 (23:30 +0200)]
Add a dm(4) manual page (derived from NetBSD's).
Sascha Wildner [Wed, 28 Jul 2010 21:29:58 +0000 (23:29 +0200)]
mkinitrd.8: Add some missing quotation marks.
Sascha Wildner [Wed, 28 Jul 2010 15:22:54 +0000 (17:22 +0200)]
Fix typo in <sys/elf_common.h>: ET_LIPROC -> ET_LOPROC
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.
Sascha Wildner [Tue, 27 Jul 2010 18:16:43 +0000 (20:16 +0200)]
Remove old time zone files via 'make upgrade'.
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