openbsd
9 years agoAxe vq_free_entry_locked
sf [Fri, 10 Apr 2015 20:00:26 +0000 (20:00 +0000)]
Axe vq_free_entry_locked

A leftover from netbsd

9 years agoFix typo in macro name
sf [Fri, 10 Apr 2015 19:59:19 +0000 (19:59 +0000)]
Fix typo in macro name

9 years agoDon't use pa_to_pvh() if we already have the page. Avoids an unused variable
kettenis [Fri, 10 Apr 2015 18:08:31 +0000 (18:08 +0000)]
Don't use pa_to_pvh() if we already have the page.  Avoids an unused variable
for non-DIAGNOSTIC kernels.

ok deraadt@

9 years agoThis changes vi to use resizeterm(3) instead of reinitializing curses on
brynet [Fri, 10 Apr 2015 18:05:51 +0000 (18:05 +0000)]
This changes vi to use resizeterm(3) instead of reinitializing curses on
window resizes, which was leaking massive amounts of memory.

Try observing vi in top(1) and while resizing the window a few times
before and aftering applying this diff..

Also some more comment cleanup and another memory leak..

From github.com/lichray/nvi2
879d2ad6dd4a4343eb0a588ebfe637e1c9845bc4
a8c38480adb030a05bbb2aafec6067dd65d8c2eb

ok millert@

9 years agoConvert to if_input().
mpi [Fri, 10 Apr 2015 16:04:47 +0000 (16:04 +0000)]
Convert to if_input().

Tested by Daniel Jakots, thanks!

9 years agoAdd a -x flag to copy-selection, append-selection and start-named-buffer
nicm [Fri, 10 Apr 2015 16:00:08 +0000 (16:00 +0000)]
Add a -x flag to copy-selection, append-selection and start-named-buffer
to prevent it exiting copy mode after copying. From J Raynor with a few
tweaks by me.

9 years agoI did quite some changes to this driver, so add copyright.
mpi [Fri, 10 Apr 2015 15:33:20 +0000 (15:33 +0000)]
I did quite some changes to this driver, so add copyright.

9 years agoreplace the use of ifqueues for most input queues serviced by netisr
dlg [Fri, 10 Apr 2015 13:58:20 +0000 (13:58 +0000)]
replace the use of ifqueues for most input queues serviced by netisr
with niqueues.

this change is so big because there's a lot of code that takes
pointers to different input queues (eg, ether_input picks between
ipv4, ipv6, pppoe, arp, and mpls input queues) and falls through
to code to enqueue packets against the pointer. if i changed only
one of the input queues id have to add sepearate code paths, one
for ifqueues and one for niqueues in each of these places

by flipping all these input queues at once i can keep the currently
common code common.

testing by mpi@ sthen@ and rafael zalamena
ok mpi@ sthen@ claudio@ henning@

9 years agoFull-speed isochronous transfers support with opportunistic micro-frames
mpi [Fri, 10 Apr 2015 13:56:42 +0000 (13:56 +0000)]
Full-speed isochronous transfers support with opportunistic micro-frames
scheduling.

More work is required to properly budget and schedule micro-frames, most
of it at the HUB level.  But this let people use USB1.1 uaudio(4) devices
on ehci(4)-only systems.

Thanks to all the testers!

ok ratchov@, sthen@, naddy@

9 years agoreplace the guts of tdb_hash with SipHash24
dlg [Fri, 10 Apr 2015 12:31:55 +0000 (12:31 +0000)]
replace the guts of tdb_hash with SipHash24

tested by (including some statistical measurement) and ok mikeb@

9 years agoMove irqs_disabled() and in_dbg_master() out of the i386/amd64 ifdef block
jsg [Fri, 10 Apr 2015 12:06:52 +0000 (12:06 +0000)]
Move irqs_disabled() and in_dbg_master() out of the i386/amd64 ifdef block
and change drm_can_sleep() to only use in_atomic() on i386/amd64 as
it isn't defined for other archs currently.  Unbreaks the sparc64 build.
Found the hard way by benoit@

9 years agompi@ introduced a ph_cookie in mbuf packet headers that can be used
dlg [Fri, 10 Apr 2015 11:02:12 +0000 (11:02 +0000)]
mpi@ introduced a ph_cookie in mbuf packet headers that can be used
by a subsystem to stash some state while the mbuf gets queued. eg,
net80211 uses it to keep track of the wireless node associated with
a packet before submitting it to a drivers snd queue for transmission.

this makes pipex use ph_cookie to keep track of the pipex session
associated with a packet before submitting it to the softint queues.
this lets us get rid of an mbuf tag type, and avoids the cost of
tag allocation.

ok yasuoka@

9 years agoRun detach hook and similar before cleaning up any other resource when
mpi [Fri, 10 Apr 2015 08:48:24 +0000 (08:48 +0000)]
Run detach hook and similar before cleaning up any other resource when
an interface is destroyed/removed.  This way we can ensure pseudo-driver
changes done after attaching an interface are undone before detaching it.

Note: it is safe to call if_deactivate() multiple times as the interface
should not have any attached pseudo-interface after the first call.

ok deraadt@, dlg@

9 years agoAdd support for CRC-enabled elantech v3 touchpads.
stsp [Fri, 10 Apr 2015 08:48:08 +0000 (08:48 +0000)]
Add support for CRC-enabled elantech v3 touchpads.
Patch by Fasse <fasse.f2@gmail.com>
ok mpi@

9 years agoConvert remaining USB Ethernet adapter to if_input().
mpi [Fri, 10 Apr 2015 08:41:43 +0000 (08:41 +0000)]
Convert remaining USB Ethernet adapter to if_input().

ok dlg@

9 years agoin the case -> in this case.
nicm [Fri, 10 Apr 2015 07:23:14 +0000 (07:23 +0000)]
in the case -> in this case.

9 years agoeverything else is gone, so remove the man pages too;
jmc [Fri, 10 Apr 2015 07:06:30 +0000 (07:06 +0000)]
everything else is gone, so remove the man pages too;

9 years agoUse mdelay(x) instead of delay(x * 1000) for drm_msleep() to better
jsg [Fri, 10 Apr 2015 06:00:39 +0000 (06:00 +0000)]
Use mdelay(x) instead of delay(x * 1000) for drm_msleep() to better
deal with long delays.

9 years agoMake drm_can_sleep() match linux. No change in behaviour as it's
jsg [Fri, 10 Apr 2015 05:52:09 +0000 (05:52 +0000)]
Make drm_can_sleep() match linux.  No change in behaviour as it's
only ever used to decide between mdelay and drm_msleep and our
drm_msleep delays instead of sleeping.

9 years agoadd irqs_disabled() and in_dbg_master() using cold and db_is_active
jsg [Fri, 10 Apr 2015 05:31:25 +0000 (05:31 +0000)]
add irqs_disabled() and in_dbg_master() using cold and db_is_active

9 years agoDon't send hostkey advertisments (hostkeys-00@openssh.com) to current
dtucker [Fri, 10 Apr 2015 05:16:50 +0000 (05:16 +0000)]
Don't send hostkey advertisments (hostkeys-00@openssh.com) to current
versions of Tera Term as they can't handle them.  Newer versions should
be OK.  Patch from Bryan Drewery and IWAMOTO Kouichi, ok djm@

9 years agodont inherit the parent interfaces hardmtu as the vlan interfaces
dlg [Fri, 10 Apr 2015 02:08:08 +0000 (02:08 +0000)]
dont inherit the parent interfaces hardmtu as the vlan interfaces
mtu when it gets set up. instead, allow the vlan interfaces mtu to
be raised to the parents hardmtu in SIOCSIFMTU handling.

pointed out by claudio@

9 years agoinclude port number if a non-default one has been specified;
djm [Fri, 10 Apr 2015 00:08:55 +0000 (00:08 +0000)]
include port number if a non-default one has been specified;
based on patch from Michael Handler

9 years agosync
deraadt [Thu, 9 Apr 2015 23:11:36 +0000 (23:11 +0000)]
sync

9 years agokflag and wflag don't need to be counters; wflag only needs to know if
okan [Thu, 9 Apr 2015 19:48:25 +0000 (19:48 +0000)]
kflag and wflag don't need to be counters; wflag only needs to know if
greater than 0 for its one test case.

ok deraadt

9 years agoBoth more and less accept options beginning with '+'.
millert [Thu, 9 Apr 2015 19:37:35 +0000 (19:37 +0000)]
Both more and less accept options beginning with '+'.
From Tim van der Molen

9 years agoIf looking up a string which looks like a gTLD, doesn't match a known set of
sthen [Thu, 9 Apr 2015 19:29:53 +0000 (19:29 +0000)]
If looking up a string which looks like a gTLD, doesn't match a known set of
existing ones not using the new standard hostnames, and whois.nic.TLD exists,
head straight there for lookups rather than using whois-servers.net (who have
been a bit variable in their speed of picking up new zones). Bug spotted by
giovanni@ and jasper@, ok giovanni@

9 years agoSend lmc(4) and san(4) to the HDLC framed bit bucket in the sky.
deraadt [Thu, 9 Apr 2015 18:58:22 +0000 (18:58 +0000)]
Send lmc(4) and san(4) to the HDLC framed bit bucket in the sky.

9 years agoMake the sparc64 pmap (more) mpsafe by protecting both the pmap itself and the
kettenis [Thu, 9 Apr 2015 16:56:52 +0000 (16:56 +0000)]
Make the sparc64 pmap (more) mpsafe by protecting both the pmap itself and the
pv lists with a mutex.  Some minor code adjustments to prevent holding locks
too long.  This should make pmap_enter(9), pmap_remove(9) and
pmap_page_protect(9) safe to use without holding the kernel lock.

9 years agoRevert previous as this breaks stuff.
florian [Thu, 9 Apr 2015 16:48:29 +0000 (16:48 +0000)]
Revert previous as this breaks stuff.
I fscked up the testing, sorry!
Found the hard way by jsg@

9 years agoPlug a memory leak in pfr_destroy_kentry
mikeb [Thu, 9 Apr 2015 12:04:14 +0000 (12:04 +0000)]
Plug a memory leak in pfr_destroy_kentry

pfi_kif objects allocated for table entries created by route-to or
by specifying weight weren't garbage collected when the table entry
was destroyed.

Spotted by Alexandr Nedvedicky <alexandr ! nedvedicky at oracle ! com>,
thanks!  Ok henning, florian

9 years agoELF weak symbols are _not_ like a.out indirect symbols. Nothing in ELF is,
guenther [Thu, 9 Apr 2015 04:46:18 +0000 (04:46 +0000)]
ELF weak symbols are _not_ like a.out indirect symbols.  Nothing in ELF is,
so remove N_INDR handling.

ok kettenis@

9 years agoto quote jim smith:
dlg [Thu, 9 Apr 2015 02:08:55 +0000 (02:08 +0000)]
to quote jim smith:

> fix a regression on re chips which have
> 7k jumbo support (RL_JUMBO_MTU_7K) as reported by daniel jakots
> and emilio perea. the regression was caused because RL_JUMBO_FRAMELEN
> was changed to 9k and i missed fixing up the RL_JUMBO_MTU_7K macro.

nice of him to fix the thing he broke ;)
ok sthen@

9 years agoTeach the 802.11 printer about Channel Switch Announcements (advertised by
sthen [Wed, 8 Apr 2015 21:44:16 +0000 (21:44 +0000)]
Teach the 802.11 printer about Channel Switch Announcements (advertised by
an AP in beacons in the run-up to a channel switch, either for radar avoidance,
or for frequency management). ok stsp@

We don't support these in net80211 yet (as pointed out by stsp a few days ago)
but it's useful to at least have a way to debug why your connection is getting
knocked down!

9 years agoadd a #define for IEEE80211_ELEMID_CSA, 802.11h-2003 Channel Switch Announcement
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@

9 years agoDo not silently accept multiple Content-Length headers.
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@

9 years agos/inexistent/nonexistent/
millert [Wed, 8 Apr 2015 17:25:58 +0000 (17:25 +0000)]
s/inexistent/nonexistent/

9 years agoKill unused function.
mpi [Wed, 8 Apr 2015 15:58:25 +0000 (15:58 +0000)]
Kill unused function.

9 years agoMove vmap back to kernel_map/uvm_km_valloc as it's allowed to fail.
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@

9 years agoTable flags are not looked at when a table entry is created.
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!

9 years agoI believe UVM is clean now and no managed pages should be in use anymore
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.

9 years agoConvert to if_input().
mpi [Wed, 8 Apr 2015 12:58:24 +0000 (12:58 +0000)]
Convert to if_input().

ok dlg@

9 years agoDestination table needs it's own negation flag passed to the pfr_update_stats.
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

9 years agoCheck for link status in tsec_start(). Prevent the watchdog from fireing
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@

9 years agoConvert to if_input().
mpi [Wed, 8 Apr 2015 10:07:47 +0000 (10:07 +0000)]
Convert to if_input().

ok dlg@

9 years agodon't leak the chip's hardware address during scans when a randomized address
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@

9 years agochange back to udelay/mdelay
jsg [Wed, 8 Apr 2015 04:24:40 +0000 (04:24 +0000)]
change back to udelay/mdelay

9 years agoDelete another piece of a.out detritus
guenther [Wed, 8 Apr 2015 04:23:15 +0000 (04:23 +0000)]
Delete another piece of a.out detritus

9 years agochange back to memcpy_toio/memcpy_fromio/memset_io
jsg [Wed, 8 Apr 2015 04:03:06 +0000 (04:03 +0000)]
change back to memcpy_toio/memcpy_fromio/memset_io

9 years agochange back to using min_t
jsg [Wed, 8 Apr 2015 03:21:13 +0000 (03:21 +0000)]
change back to using min_t

9 years agottm has it's own version of kmap/kunmap that uses
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@

9 years agotreat Protocol=1,2|2,1 as Protocol=2 when compiled without SSH1
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@

9 years agoUse m_defrag when mbuf chains get fragmented.
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.

9 years agoKeep in sync with the sparc version: convert to if_input().
mpi [Tue, 7 Apr 2015 14:59:06 +0000 (14:59 +0000)]
Keep in sync with the sparc version: convert to if_input().

9 years agoRemove a lie, the early boot console does not need any mapping.
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.

9 years agoConvert to if_input().
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@

9 years agoWhen replacing, don't free the old paste until after the new one's name
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).

9 years agonothing uses pool_sleep, so get rid of it
dlg [Tue, 7 Apr 2015 11:15:02 +0000 (11:15 +0000)]
nothing uses pool_sleep, so get rid of it

9 years agointroduce a garbage collector for (very) idle pool pages.
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@

9 years agoDo not pass an `ifp' argument to interface input handlers since it
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@

9 years agoTweak previous.
rpe [Tue, 7 Apr 2015 09:59:38 +0000 (09:59 +0000)]
Tweak previous.

OK halex@ krw@

9 years agoMark audio interrupt handlers as MPSAFE, they already grab the right
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@

9 years agoUse appropriate memory barriers.
mpi [Tue, 7 Apr 2015 09:52:27 +0000 (09:52 +0000)]
Use appropriate memory barriers.

ok kettenis@, miod@

9 years agosync
deraadt [Tue, 7 Apr 2015 06:30:30 +0000 (06:30 +0000)]
sync

9 years agoTeach libkvm a bit about PAE, making it independent of the kernel defines
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@

9 years agoRevert: breaks h2ph handling of symlinks like endian.h --> sys/endian.h
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...

9 years agoFix miscellaneous factual, grammar, and markup errors.
lteo [Tue, 7 Apr 2015 02:38:14 +0000 (02:38 +0000)]
Fix miscellaneous factual, grammar, and markup errors.

From Jan Stary.

9 years agoAdd support for setting tm_zone now that we have the timezone symbol.
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.

9 years agoRemove obsolete timezone() function.
millert [Tue, 7 Apr 2015 01:47:04 +0000 (01:47 +0000)]
Remove obsolete timezone() function.
Add timezone and daylight symbols for XSI compatibility.

9 years agoMake pthread_atfork() track the DSO that called it like atexit() does,
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@

9 years agoDo not mistreat empty arguments to font alternating macros
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).

9 years agoMoar comments !! Explain what's going on during install / upgrade.
rpe [Mon, 6 Apr 2015 21:36:56 +0000 (21:36 +0000)]
Moar comments !! Explain what's going on during install / upgrade.

OK krw@

9 years agobludgeon DES support out of crypt. long live the bcrypt.
tedu [Mon, 6 Apr 2015 20:49:41 +0000 (20:49 +0000)]
bludgeon DES support out of crypt. long live the bcrypt.

9 years agoAdd support for an efi-app-x86_64 target. Needed for UEFI bootloader work.
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@

9 years agoAdd support for an efi-app-x86_64 target. Needed for UEFI bootloader work.
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@

9 years agoMove almost all of the linux compat from drmP.h to drm_linux.h.
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@

9 years agoOn a new RS nesting level, the saved width starts from the default
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).

9 years agoswitch back from roundup2() and roundup() to round_up()
jsg [Mon, 6 Apr 2015 14:32:55 +0000 (14:32 +0000)]
switch back from roundup2() and roundup() to round_up()

9 years agoswitch back from howmany() to DIV_ROUND_UP()
jsg [Mon, 6 Apr 2015 14:10:59 +0000 (14:10 +0000)]
switch back from howmany() to DIV_ROUND_UP()

9 years agoremove superfluous ';' in Received lines
gilles [Mon, 6 Apr 2015 13:47:00 +0000 (13:47 +0000)]
remove superfluous ';' in Received lines

9 years agoUse the default width for .RS without arguments.
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).

9 years agoUse if then else instead of testing $_fstype twice.
rpe [Mon, 6 Apr 2015 13:34:23 +0000 (13:34 +0000)]
Use if then else instead of testing $_fstype twice.

OK krw@

9 years agomove some inline linux compat into the dedicated files
jsg [Mon, 6 Apr 2015 12:25:10 +0000 (12:25 +0000)]
move some inline linux compat into the dedicated files

9 years agodon't check this twice.
espie [Mon, 6 Apr 2015 12:19:35 +0000 (12:19 +0000)]
don't check this twice.

9 years agomake pkg_info run slightly slower on distant packages, but do check that
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@...

9 years agomark installed locations as "trusted" so that pkg_info does not check sigs
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.

9 years agomove signer_list up so pkg_info can use it
espie [Mon, 6 Apr 2015 11:07:24 +0000 (11:07 +0000)]
move signer_list up so pkg_info can use it

9 years agodrm_calloc -> kcalloc
jsg [Mon, 6 Apr 2015 11:05:54 +0000 (11:05 +0000)]
drm_calloc -> kcalloc

9 years agoadd/use some more errno remapping
jsg [Mon, 6 Apr 2015 10:56:37 +0000 (10:56 +0000)]
add/use some more errno remapping

9 years agoNow we have dev_priv->mm.gtt_base_addr we can set fb_base and remove
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.

9 years agoAdd an empty drm_sysfs_hotplug_event() function and use it
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.

9 years agoimprove realloc. when expanding a region, actually use the free page cache
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.

9 years agoConvert to if_input(); ok mpi@
miod [Mon, 6 Apr 2015 09:13:55 +0000 (09:13 +0000)]
Convert to if_input(); ok mpi@

9 years agotidy up by inlining next level included makefiles
tedu [Mon, 6 Apr 2015 09:05:32 +0000 (09:05 +0000)]
tidy up by inlining next level included makefiles
ok deraadt guenther

9 years agoAdd get_user() and put_user() compatibility interfaces and use them.
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@

9 years agoadd back some more static use to reduce the diff to linux
jsg [Mon, 6 Apr 2015 07:38:49 +0000 (07:38 +0000)]
add back some more static use to reduce the diff to linux

9 years agoNo need to use a temporary pointer variable after the drm struct name
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.

9 years agoadd and use macros for wake_up/wake_up_all/wake_up_all_locked
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

9 years agoh2ph only handles actual _files_, so request just them from 'find'. Crazy, eh?
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@

9 years agoreaddir() is thread-safe when DIR handles aren't shared, so delete the lock.
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@