sthen [Wed, 8 Apr 2015 21:35:57 +0000 (21:35 +0000)]
add a #define for IEEE80211_ELEMID_CSA, 802.11h-2003 Channel Switch Announcement
ok stsp@
florian [Wed, 8 Apr 2015 19:39:29 +0000 (19:39 +0000)]
Do not silently accept multiple Content-Length headers.
Pointed out by Regis Leroy (regis.leroy AT makina-corpus DOT com),
thanks!
Tweak and OK reyk@
millert [Wed, 8 Apr 2015 17:25:58 +0000 (17:25 +0000)]
s/inexistent/nonexistent/
mpi [Wed, 8 Apr 2015 15:58:25 +0000 (15:58 +0000)]
Kill unused function.
jsg [Wed, 8 Apr 2015 15:01:33 +0000 (15:01 +0000)]
Move vmap back to kernel_map/uvm_km_valloc as it's allowed to fail.
This should help dlg's dell 2950 that gets stuck during boot with vmap
in the trace.
ok kettenis@
mikeb [Wed, 8 Apr 2015 14:19:28 +0000 (14:19 +0000)]
Table flags are not looked at when a table entry is created.
Spotted by Alexandr Nedvedicky <alexandr ! nedvedicky at oracle ! com>,
thanks!
kettenis [Wed, 8 Apr 2015 14:02:43 +0000 (14:02 +0000)]
I believe UVM is clean now and no managed pages should be in use anymore
when we call pmap_release(). Turn debug code into printf and remove the code
that tried to mop up. Override Debugger() such that it inserts a trap
instruction directly into the code such that we get useful backtraces.
This way I don't need to worry about pmap_release() removing pv entries when
making this pmap mpsafe.
mpi [Wed, 8 Apr 2015 12:58:24 +0000 (12:58 +0000)]
Convert to if_input().
ok dlg@
mikeb [Wed, 8 Apr 2015 12:50:21 +0000 (12:50 +0000)]
Destination table needs it's own negation flag passed to the pfr_update_stats.
Spotted by Alexandr Nedvedicky <alexandr ! nedvedicky at oracle ! com>,
thanks a lot! Ok florian
mpi [Wed, 8 Apr 2015 10:49:25 +0000 (10:49 +0000)]
Check for link status in tsec_start(). Prevent the watchdog from fireing
when no cable is plugged in but the interface is brough up.
inputs and ok kettenis@
mpi [Wed, 8 Apr 2015 10:07:47 +0000 (10:07 +0000)]
Convert to if_input().
ok dlg@
jasper [Wed, 8 Apr 2015 09:29:49 +0000 (09:29 +0000)]
don't leak the chip's hardware address during scans when a randomized address
is set by the user.
previously the address read from the eeprom would also be used in discovery
frames, even if later data frames would contain the spoofed address.
ok stsp@
jsg [Wed, 8 Apr 2015 04:24:40 +0000 (04:24 +0000)]
change back to udelay/mdelay
guenther [Wed, 8 Apr 2015 04:23:15 +0000 (04:23 +0000)]
Delete another piece of a.out detritus
jsg [Wed, 8 Apr 2015 04:03:06 +0000 (04:03 +0000)]
change back to memcpy_toio/memcpy_fromio/memset_io
jsg [Wed, 8 Apr 2015 03:21:13 +0000 (03:21 +0000)]
change back to using min_t
jsg [Wed, 8 Apr 2015 02:28:13 +0000 (02:28 +0000)]
ttm has it's own version of kmap/kunmap that uses
kernel_map/uvm_km_valloc and i915 has a version that uses
phys_map/uvm_km_valloc_wait as calling code assumes kmap would
sleep if no memory is available.
Move these and ttm's vmap/vunmap into the linux compat files
and make them all use phys_map/uvm_km_valloc_wait.
looks good kettenis@
djm [Tue, 7 Apr 2015 23:00:42 +0000 (23:00 +0000)]
treat Protocol=1,2|2,1 as Protocol=2 when compiled without SSH1
support; ok dtucker@ millert@
sf [Tue, 7 Apr 2015 19:31:42 +0000 (19:31 +0000)]
Use m_defrag when mbuf chains get fragmented.
Patch by Kimberley Manning <kmanning at gmx ! com> with some
additional tweaks.
mpi [Tue, 7 Apr 2015 14:59:06 +0000 (14:59 +0000)]
Keep in sync with the sparc version: convert to if_input().
mpi [Tue, 7 Apr 2015 14:36:34 +0000 (14:36 +0000)]
Remove a lie, the early boot console does not need any mapping.
In fact we even use the firmware interface for "bsd -c" and "bsd -d".
So do the necessary firmware calls before calling initppc() to be able
to use printf() really early in the boot sequence.
mpi [Tue, 7 Apr 2015 14:02:51 +0000 (14:02 +0000)]
Convert to if_input().
Tested with simh using a floppy image built by miod@
nicm [Tue, 7 Apr 2015 13:06:22 +0000 (13:06 +0000)]
When replacing, don't free the old paste until after the new one's name
has been copied. Fixes a use-after-free in window-copy.c. Bug reported
by J Raynor (who also provided a different fix).
dlg [Tue, 7 Apr 2015 11:15:02 +0000 (11:15 +0000)]
nothing uses pool_sleep, so get rid of it
dlg [Tue, 7 Apr 2015 11:07:56 +0000 (11:07 +0000)]
introduce a garbage collector for (very) idle pool pages.
now that idle pool pages are timestamped we can tell how long theyve
been idle. this adds a task that runs every second that iterates
over all the pools looking for pages that have been idle for 8
seconds so it can free them.
this idea probably came from a conversation with tedu@ months ago.
ok tedu@ kettenis@
mpi [Tue, 7 Apr 2015 10:46:20 +0000 (10:46 +0000)]
Do not pass an `ifp' argument to interface input handlers since it
might be overwritten by pseudo-drivers.
ok dlg@, henning@
rpe [Tue, 7 Apr 2015 09:59:38 +0000 (09:59 +0000)]
Tweak previous.
OK halex@ krw@
mpi [Tue, 7 Apr 2015 09:54:11 +0000 (09:54 +0000)]
Mark audio interrupt handlers as MPSAFE, they already grab the right
mutex when necessary.
ok kettenis@, ratchov@
mpi [Tue, 7 Apr 2015 09:52:27 +0000 (09:52 +0000)]
Use appropriate memory barriers.
ok kettenis@, miod@
deraadt [Tue, 7 Apr 2015 06:30:30 +0000 (06:30 +0000)]
sync
guenther [Tue, 7 Apr 2015 05:50:40 +0000 (05:50 +0000)]
Teach libkvm a bit about PAE, making it independent of the kernel defines
and doing runtime detection of what the target kernel is using. Getting
this is now to avoid breakage when kernel bits come.
ok deraadt@
guenther [Tue, 7 Apr 2015 05:37:03 +0000 (05:37 +0000)]
Revert: breaks h2ph handling of symlinks like endian.h --> sys/endian.h
Simply adding -type l mean the problem it was trying to solve is *not*
solved, so just go back to the original set. Sorry, but random files types
in /usr/include are your problem, not the build system's...
lteo [Tue, 7 Apr 2015 02:38:14 +0000 (02:38 +0000)]
Fix miscellaneous factual, grammar, and markup errors.
From Jan Stary.
millert [Tue, 7 Apr 2015 01:49:11 +0000 (01:49 +0000)]
Add support for setting tm_zone now that we have the timezone symbol.
millert [Tue, 7 Apr 2015 01:47:04 +0000 (01:47 +0000)]
Remove obsolete timezone() function.
Add timezone and daylight symbols for XSI compatibility.
guenther [Tue, 7 Apr 2015 01:27:06 +0000 (01:27 +0000)]
Make pthread_atfork() track the DSO that called it like atexit() does,
unregistering callbacks if the DSO is unloaded. Move the callback
handling from libpthread to libc, though libpthread still overrides the
inner call to handle locking and thread-library reinitialization.
Major version bump for both libc and libpthread.
verification that this fixes various ports ajacoutot@
asm assistance miod@; ok millert@ deraadt@
schwarze [Mon, 6 Apr 2015 22:06:06 +0000 (22:06 +0000)]
Do not mistreat empty arguments to font alternating macros
as vertical spacing requests. Bug found with xmahjongg(6).
rpe [Mon, 6 Apr 2015 21:36:56 +0000 (21:36 +0000)]
Moar comments !! Explain what's going on during install / upgrade.
OK krw@
tedu [Mon, 6 Apr 2015 20:49:41 +0000 (20:49 +0000)]
bludgeon DES support out of crypt. long live the bcrypt.
kettenis [Mon, 6 Apr 2015 18:30:22 +0000 (18:30 +0000)]
Add support for an efi-app-x86_64 target. Needed for UEFI bootloader work.
ok mlarkin@
kettenis [Mon, 6 Apr 2015 18:29:27 +0000 (18:29 +0000)]
Add support for an efi-app-x86_64 target. Needed for UEFI bootloader work.
ok mlarkin@
jsg [Mon, 6 Apr 2015 15:43:15 +0000 (15:43 +0000)]
Move almost all of the linux compat from drmP.h to drm_linux.h.
The exception being the barrier defines that are implemented in terms of
DRM_* defines.
ok kettenis@
schwarze [Mon, 6 Apr 2015 14:58:53 +0000 (14:58 +0000)]
On a new RS nesting level, the saved width starts from the default
width, not from the saved width of the previous level.
Improves xterm(1) and XSetEventQueueOwner(3); found in transcode_filter(1).
jsg [Mon, 6 Apr 2015 14:32:55 +0000 (14:32 +0000)]
switch back from roundup2() and roundup() to round_up()
jsg [Mon, 6 Apr 2015 14:10:59 +0000 (14:10 +0000)]
switch back from howmany() to DIV_ROUND_UP()
gilles [Mon, 6 Apr 2015 13:47:00 +0000 (13:47 +0000)]
remove superfluous ';' in Received lines
schwarze [Mon, 6 Apr 2015 13:34:54 +0000 (13:34 +0000)]
Use the default width for .RS without arguments.
Reduces groff-mandoc differences in base and Xenocara by about 4%.
Found while looking at wpa_supplicant(8).
rpe [Mon, 6 Apr 2015 13:34:23 +0000 (13:34 +0000)]
Use if then else instead of testing $_fstype twice.
OK krw@
jsg [Mon, 6 Apr 2015 12:25:10 +0000 (12:25 +0000)]
move some inline linux compat into the dedicated files
espie [Mon, 6 Apr 2015 12:19:35 +0000 (12:19 +0000)]
don't check this twice.
espie [Mon, 6 Apr 2015 11:14:58 +0000 (11:14 +0000)]
make pkg_info run slightly slower on distant packages, but do check that
the info is signed and checked.
after remarks from tedu@...
espie [Mon, 6 Apr 2015 11:13:41 +0000 (11:13 +0000)]
mark installed locations as "trusted" so that pkg_info does not check sigs
on them.
espie [Mon, 6 Apr 2015 11:07:24 +0000 (11:07 +0000)]
move signer_list up so pkg_info can use it
jsg [Mon, 6 Apr 2015 11:05:54 +0000 (11:05 +0000)]
drm_calloc -> kcalloc
jsg [Mon, 6 Apr 2015 10:56:37 +0000 (10:56 +0000)]
add/use some more errno remapping
jsg [Mon, 6 Apr 2015 10:03:34 +0000 (10:03 +0000)]
Now we have dev_priv->mm.gtt_base_addr we can set fb_base and remove
an ifdef. The code that uses fb_base itself remains #if 0'd out.
jsg [Mon, 6 Apr 2015 09:23:19 +0000 (09:23 +0000)]
Add an empty drm_sysfs_hotplug_event() function and use it
and the existing drm_sysfs* functions to remove some ifdefs.
tedu [Mon, 6 Apr 2015 09:18:51 +0000 (09:18 +0000)]
improve realloc. when expanding a region, actually use the free page cache
instead of simply zapping it. this can save many syscalls in a program
that repeatedly grows and shrinks a buffer, as observed in the wild.
miod [Mon, 6 Apr 2015 09:13:55 +0000 (09:13 +0000)]
Convert to if_input(); ok mpi@
tedu [Mon, 6 Apr 2015 09:05:32 +0000 (09:05 +0000)]
tidy up by inlining next level included makefiles
ok deraadt guenther
kettenis [Mon, 6 Apr 2015 08:14:00 +0000 (08:14 +0000)]
Add get_user() and put_user() compatibility interfaces and use them.
ok jsg@
jsg [Mon, 6 Apr 2015 07:38:49 +0000 (07:38 +0000)]
add back some more static use to reduce the diff to linux
jsg [Mon, 6 Apr 2015 06:12:25 +0000 (06:12 +0000)]
No need to use a temporary pointer variable after the drm struct name
in the softc changed a while back.
jsg [Mon, 6 Apr 2015 05:35:29 +0000 (05:35 +0000)]
add and use macros for wake_up/wake_up_all/wake_up_all_locked
guenther [Mon, 6 Apr 2015 04:26:55 +0000 (04:26 +0000)]
h2ph only handles actual _files_, so request just them from 'find'. Crazy, eh?
Based on diff from Gregory Edigarov (edigarov (at) qarea.com)
ok afresh1@
guenther [Mon, 6 Apr 2015 04:09:59 +0000 (04:09 +0000)]
readdir() is thread-safe when DIR handles aren't shared, so delete the lock.
(POSIX is fixing its description: readdir_r() was a botch)
Patch from Carlos MartÃn Nieto (cmn (at) dwim.me)
no -portable concerns bcook@
jsg [Mon, 6 Apr 2015 03:49:47 +0000 (03:49 +0000)]
Convert some udelay() calls back to DRM_UDELAY() where
the wrapper is still used in the original linux code.
miod [Sun, 5 Apr 2015 23:25:57 +0000 (23:25 +0000)]
Work-in-progress support for non-accelerated X11 on *some* sti(4) frame buffers;
based upon the old HP ngle X11 driver. Currently limited to CRX (720/735/750),
Timber (710, old 715), Artist (712, 715) and EG (B-series), however the
colormap isn't set up correctly on Timber and EG yet.
Joint work with Artem Falcon, now in good enough shape to be worked further
in the tree.
schwarze [Sun, 5 Apr 2015 23:04:22 +0000 (23:04 +0000)]
If a partial explicit block extending to the next input line follows
the end macro of a broken block, put all of it into the breaking block.
Needed for example by mutella(1).
schwarze [Sun, 5 Apr 2015 22:43:40 +0000 (22:43 +0000)]
Reduce code duplication, no functional change:
Both partial and full implicit blocks can break explicit blocks.
Put the code to handle both cases into a common function.
guenther [Sun, 5 Apr 2015 17:02:57 +0000 (17:02 +0000)]
Upstream has retired the gnuc.h header, so do so as well, killing a gcc 2.x
reference.
ok sthen@ jca@ deraadt@
miod [Sun, 5 Apr 2015 15:43:43 +0000 (15:43 +0000)]
Do not use int for sig_atomic_t; spotted by christos@netbsd; ok markus@
schwarze [Sun, 5 Apr 2015 14:43:10 +0000 (14:43 +0000)]
Arguments to end macros of broken partial explicit blocks
must go inside the breaking block. For example, in
.It Ic cmd Oo
.Ar optional_arg Oc Ar mandatory_arg
the mandatory_arg is still inside the .It block.
Used for example by mutella(1).
tedu [Sun, 5 Apr 2015 14:35:16 +0000 (14:35 +0000)]
seems unlikely that a new release will be made available for us to import
millert [Sun, 5 Apr 2015 14:20:22 +0000 (14:20 +0000)]
Document that some sorts uses -b w/o key fields.
millert [Sun, 5 Apr 2015 13:59:26 +0000 (13:59 +0000)]
For the -g flag, treat non-floating point keys as 0, similar to -n.
This makes "sort -gu" and "sort -nu" behave similarly and passes
our sort regress tests.
deraadt [Sun, 5 Apr 2015 13:56:57 +0000 (13:56 +0000)]
sync
millert [Sun, 5 Apr 2015 13:56:04 +0000 (13:56 +0000)]
The -b flag should only apply when key fields are specified.
If -b follows -k it has no effect.
millert [Sun, 5 Apr 2015 13:54:06 +0000 (13:54 +0000)]
Do not permute command line arguments but still support the
obsolescent "-o outfile" after input files syntax.
sthen [Sun, 5 Apr 2015 13:33:06 +0000 (13:33 +0000)]
Don't use GH_COMMIT and GH_TAGNAME together. From Adam Wolk.
kettenis [Sun, 5 Apr 2015 13:04:41 +0000 (13:04 +0000)]
Consistently use #if 0/#endif to handle our lack of DRM_MINOR_CONTROL.
Change an #ifdef notyet into #ifdef __linux__ as we'll never have sysfs.
Remove #ifdef notyet around WARN macro since we have it now.
kettenis [Sun, 5 Apr 2015 12:53:41 +0000 (12:53 +0000)]
whitespace
rpe [Sun, 5 Apr 2015 12:37:14 +0000 (12:37 +0000)]
Cope with the removal of less from install media.
Noted by Adam Wolk, thanks.
OK krw@ deraadt@
kettenis [Sun, 5 Apr 2015 11:53:53 +0000 (11:53 +0000)]
Another round of reducing diffs with Linux. This one moves the various
copy_to_user and copy_from_user functions into drm_linux.h and uses them
instead of copyin/copyout and DRM_COPY_*. Also move the timespec functions,
and put i915_gem_object_is_purgable() where it belongs.
Uncovered a bug where the arguments to copyout() were in the wrong order.
ok jsg@
jturner [Sat, 4 Apr 2015 23:27:55 +0000 (23:27 +0000)]
Bump major to 30, regen .pc and header
jturner [Sat, 4 Apr 2015 23:26:54 +0000 (23:26 +0000)]
Merge conflicts
jturner [Sat, 4 Apr 2015 23:25:54 +0000 (23:25 +0000)]
Merge conflicts
jturner [Sat, 4 Apr 2015 23:24:43 +0000 (23:24 +0000)]
Update sqlite3 to 3.8.8.3. Changes available here:
http://sqlite.org/releaselog/3_8_8_3.html
Tested in bulk and ok landry@
jca [Sat, 4 Apr 2015 18:53:18 +0000 (18:53 +0000)]
The swapfile argument is also const char *.
Found a while ago when porting cpulimit.
ok deraadt@
schwarze [Sat, 4 Apr 2015 18:52:12 +0000 (18:52 +0000)]
Give man(7) section and subsection headers heanging indentation.
Reduces groff-mandoc differences in base by about 2.5% due to
various Perl manuals having long section titles.
Quirk found in argtable2(3).
jca [Sat, 4 Apr 2015 18:06:08 +0000 (18:06 +0000)]
fchmod and lstat are standard, widen their visibility
ok millert@ kettenis@; input + "get it in" guenther@
guenther [Sat, 4 Apr 2015 18:05:04 +0000 (18:05 +0000)]
gcc 2.x is dead
ok millert@
schwarze [Sat, 4 Apr 2015 17:46:58 +0000 (17:46 +0000)]
Rounding rules for horizontal scaling widths are more complicated.
There is a first rounding to basic units on the input side.
After that, rounding rules differ between requests and macros.
Requests round to the nearest possible character position.
Macros round to the next character position to the left.
Implement that by changing the return value of term_hspan()
to basic units and leaving the second scaling and rounding stage
to the formatters instead of doing it in the terminal handler.
Improves for example argtable2(3).
renato [Sat, 4 Apr 2015 16:29:48 +0000 (16:29 +0000)]
Show the remote labels in "ldpctl show lib" even if they are not installed in the FIB.
ok claudio@
renato [Sat, 4 Apr 2015 16:21:48 +0000 (16:21 +0000)]
Remove lo protection.
There's no need to protect the 127/8 network on ldpd since this network
is filtered before being sent to lde.
If we receive a label mapping for this network, it won't be installed
because lde has no nexthop for it, and thus the code will always fall
into the LMp.13 case of the RFC "Receive Label Mapping" algorithm:
the mapping will be recorded but not used.
ok claudio@
deraadt [Sat, 4 Apr 2015 15:46:49 +0000 (15:46 +0000)]
banished the attic
renato [Sat, 4 Apr 2015 15:15:44 +0000 (15:15 +0000)]
Show the full LIB in the "ldpctl show lib" command.
The LIB is a table where the router keeps all known MPLS labels. So,
we should loop over all the received label mappings from all neighbors
to show the full LIB.
The lde_nbr_is_nexthop() function was introduced to verify if a lib
entry is supposed to be installed in the fib (according to the fib entry's
nexthop and the addresses advertised by the lib entry's nexthop). This is
better than keeping track of lib<->fib entries with pointers and back
pointers because it keeps the lib/fib structures independent of each
other, which in turn makes the code less prone to bugs.
OK claudio@
renato [Sat, 4 Apr 2015 15:09:47 +0000 (15:09 +0000)]
Remove unused parameter from adj_new().
The adjacency holdtime is set in recv_hello().
OK claudio@
renato [Sat, 4 Apr 2015 15:04:49 +0000 (15:04 +0000)]
Give more detailed information on a couple of debug messages.
rpe [Sat, 4 Apr 2015 14:21:01 +0000 (14:21 +0000)]
I contributed substantially to the installer, so add copyright.
prodded by deraadt@