openbsd
9 years agoAdd bell-action "other" to pass through bells in all windows except the
nicm [Tue, 12 May 2015 15:27:46 +0000 (15:27 +0000)]
Add bell-action "other" to pass through bells in all windows except the
current, suggested by Jan ONDREJ.

9 years agoFixup potential use after free and a memory leak.
mikeb [Tue, 12 May 2015 12:56:47 +0000 (12:56 +0000)]
Fixup potential use after free and a memory leak.

Found by Maxime Villard <max at m00nbsd ! net> with the Brainy Code Scanner,
thanks!

9 years agoThis file is only compiled when "pseudo-device bridge" is included in
mpi [Tue, 12 May 2015 12:35:10 +0000 (12:35 +0000)]
This file is only compiled when "pseudo-device bridge" is included in
your kernel configuration, no need for a #if NBRIDGE > 0 dance.

9 years agoMPLS also needs a definition for etherip_output(), fix build without
mpi [Tue, 12 May 2015 12:27:17 +0000 (12:27 +0000)]
MPLS also needs a definition for etherip_output(), fix build without
bridge.

9 years agoAdd newly matched devices to urtwn(4) hardware list.
stsp [Tue, 12 May 2015 11:53:13 +0000 (11:53 +0000)]
Add newly matched devices to urtwn(4) hardware list.
from Mikhail mp39590@gmail on tech@
Grammar fixes by sthen@. Made mandoc -T lint clean by me (must escape 'D1').

9 years agoMerge various urtwn(4) fixes from FreeBSD:
stsp [Tue, 12 May 2015 11:46:15 +0000 (11:46 +0000)]
Merge various urtwn(4) fixes from FreeBSD:
Match additional devices (RTL8188CU_3, DWA123D1, DWA125D1).
Fix efuse reading (fixes potential error in MAC address read from efuse).
Replace some magic numbers with macros.

Based on FreeBSD r270191, r273589, r281918, r281592, r282119, and r282623
via Mikhail mp39590@gmail on tech@
ok sthen@

9 years agoFix definition of R92C_USTIME_TSF.
stsp [Tue, 12 May 2015 11:19:35 +0000 (11:19 +0000)]
Fix definition of R92C_USTIME_TSF.
from FreeBSD r282623 via Mikhail mp39590@gmail on tech@

9 years agoregen
stsp [Tue, 12 May 2015 11:15:42 +0000 (11:15 +0000)]
regen

9 years agousbdevs_data.h
stsp [Tue, 12 May 2015 11:15:17 +0000 (11:15 +0000)]
usbdevs_data.h

9 years agoAdd 4 additional urtwn(4) device IDs.
stsp [Tue, 12 May 2015 11:14:06 +0000 (11:14 +0000)]
Add 4 additional urtwn(4) device IDs.
from FreeBSD via Mikhail mp39590@gmail on tech@

9 years agoDrop and reacquire the kernel lock in the vfs_shutdown and "cold"
mikeb [Tue, 12 May 2015 09:30:35 +0000 (09:30 +0000)]
Drop and reacquire the kernel lock in the vfs_shutdown and "cold"
portions of msleep and tsleep to give interrupts a chance to run
on other CPUs.

Tweak and OK kettenis

9 years agoFix an uninitialized variable access when pptp.hostname is configured.
yasuoka [Tue, 12 May 2015 05:30:24 +0000 (05:30 +0000)]
Fix an uninitialized variable access when pptp.hostname is configured.

9 years agoimxiic is known to be broken don't try attaching it on utilite
jsg [Tue, 12 May 2015 04:40:31 +0000 (04:40 +0000)]
imxiic is known to be broken don't try attaching it on utilite

9 years agoRaise VM_PHYSSEG_MAX to two and load an additional physical memory
jsg [Tue, 12 May 2015 04:31:10 +0000 (04:31 +0000)]
Raise VM_PHYSSEG_MAX to two and load an additional physical memory
segment if u-boot reports it.  Needed for the utilite where u-boot
reports two 1GB segments of physical memory.

From Patrick Wildt in bitrig with some additional sanity checks added.

9 years agoPut the right number of leading underscores in ___cerror and __cerror, for
miod [Tue, 12 May 2015 04:22:01 +0000 (04:22 +0000)]
Put the right number of leading underscores in ___cerror and __cerror, for
the sake of libpthread. Probably missed during the a.out->ELF switch, I
can't believe this went unnoticed for so long.

9 years agoMove the logit() prototype so parse.y will see it.
jsg [Tue, 12 May 2015 03:23:15 +0000 (03:23 +0000)]
Move the logit() prototype so parse.y will see it.
ok yasuoka@

9 years agoAdd missing braces.
jsg [Tue, 12 May 2015 02:49:48 +0000 (02:49 +0000)]
Add missing braces.
Tested by and ok djm@

9 years agochflagsat() is also async-signal-safe
guenther [Tue, 12 May 2015 02:44:06 +0000 (02:44 +0000)]
chflagsat() is also async-signal-safe

9 years agoThe i211 does not support an external EEPROM only a OTP
jsg [Tue, 12 May 2015 02:33:39 +0000 (02:33 +0000)]
The i211 does not support an external EEPROM only a OTP
Internal Non-Volatile Memory (iNVM).  Add support for reading
words out of it instead of an EEPROM.

From Patrick Wildt with some more offsets added.

9 years agoregen
jasper [Mon, 11 May 2015 20:20:33 +0000 (20:20 +0000)]
regen

9 years agoadd id for virtio rng
jasper [Mon, 11 May 2015 20:20:03 +0000 (20:20 +0000)]
add id for virtio rng

ok sf@

9 years agoMake softraid(4) compile with SR_DEBUG by fixing __kprintf__ specifiers.
pelikan [Mon, 11 May 2015 12:24:06 +0000 (12:24 +0000)]
Make softraid(4) compile with SR_DEBUG by fixing __kprintf__ specifiers.

ok jsing krw

9 years agofix a potential use-after-free in pf_state_rm_src_node
henning [Mon, 11 May 2015 12:22:14 +0000 (12:22 +0000)]
fix a potential use-after-free in pf_state_rm_src_node
found by jsg; ok jsg mikeb

9 years agoexplicit_bzero(3) on private data, in case of core dumps (and being a good example)
pelikan [Mon, 11 May 2015 12:14:22 +0000 (12:14 +0000)]
explicit_bzero(3) on private data, in case of core dumps (and being a good example)

ok florian jsing

9 years agoLeft the c0-* options behind in the table.
nicm [Mon, 11 May 2015 10:58:22 +0000 (10:58 +0000)]
Left the c0-* options behind in the table.

9 years agoRemove the c0-* options which never really worked satisfactorily. Going
nicm [Mon, 11 May 2015 10:10:16 +0000 (10:10 +0000)]
Remove the c0-* options which never really worked satisfactorily. Going
to try something else...

9 years agoRefresh sensor values asynchronously.
mpi [Mon, 11 May 2015 08:51:31 +0000 (08:51 +0000)]
Refresh sensor values asynchronously.

From David Higgs.

9 years agoTake trunk(4) out of ether_input().
mpi [Mon, 11 May 2015 08:41:43 +0000 (08:41 +0000)]
Take trunk(4) out of ether_input().

Each physical interface of a trunk now gets a specific ifih (interface
input handler) that runs before ether_input().

Tested by sthen@, dlg@, Theo Buehler and <mxb AT alumni.chalmers DOT se>

ok sthen@, dlg@

9 years agoRemove support for ADPCM encoding which isn't used nowadays and
ratchov [Mon, 11 May 2015 06:52:35 +0000 (06:52 +0000)]
Remove support for ADPCM encoding which isn't used nowadays and
not available to programs anyway.

9 years agoRemove all audio format conversion code from the kernel (btw holding
ratchov [Mon, 11 May 2015 06:46:21 +0000 (06:46 +0000)]
Remove all audio format conversion code from the kernel (btw holding
the kernel_lock), as we already do better conversions in
user-mode. Yet, no need for every single driver to fiddle with the
conversion code as they are done transparently by common MI code. With
help from armani and miod, support from mpi

ok armani@

9 years agoWhoops, need to pass through O_ACCMODE flags to the underlying __*_open()
guenther [Mon, 11 May 2015 06:31:17 +0000 (06:31 +0000)]
Whoops, need to pass through O_ACCMODE flags to the underlying __*_open()

problem pointed out by Mark Patruck (mark (at) wrapped.cx)

9 years agoConvert from uiomovei() to uiomove() to prevent short tranfers
guenther [Mon, 11 May 2015 02:01:01 +0000 (02:01 +0000)]
Convert from uiomovei() to uiomove() to prevent short tranfers

diff from natano@bitrig

9 years agoConvert from uiomovei() to uiomove() to prevent short tranfers
guenther [Mon, 11 May 2015 01:56:26 +0000 (01:56 +0000)]
Convert from uiomovei() to uiomove() to prevent short tranfers

diff from natano@bitrig, with some additional format and cast tweaks

9 years agoWhen checking flags that will be passed to open(), test the O_ACCMODE portion
guenther [Mon, 11 May 2015 00:42:54 +0000 (00:42 +0000)]
When checking flags that will be passed to open(), test the O_ACCMODE portion
separately to avoid false negatives.

ok miod@ millert@

9 years agoSet POLLHUP even if no valid events were specified as per POSIX.
millert [Sun, 10 May 2015 22:35:38 +0000 (22:35 +0000)]
Set POLLHUP even if no valid events were specified as per POSIX.
Since we use the poll backend for select(2), care must be taken not
to set the fd's bit in writefds in this case.  A kernel-only flag,
POLLNOHUP, is used by selscan() to tell the poll backend not to
return POLLHUP on EOF.  This is currently only used by fifo_poll().
The fifofs regress now passes.  OK guenther@

9 years agoAdd _bfd_ar_spacepadll() for formatting long long values in archive headers.
guenther [Sun, 10 May 2015 20:41:19 +0000 (20:41 +0000)]
Add _bfd_ar_spacepadll() for formatting long long values in archive headers.

ok kettenis@

9 years agoFix urtwn(4) 11b performance for RTL8188EU devices.
stsp [Sun, 10 May 2015 19:40:56 +0000 (19:40 +0000)]
Fix urtwn(4) 11b performance for RTL8188EU devices.
With 11b APs the firmware retries excessively unless we force it into
11b-only mode instead of mixed b/g. Perhaps a firmware bug, perhaps
a bug in our code elsewhere. For now, this makes it work.
ok kettenis

9 years agoIn the child after fork, the dl lock has to be forced as its inner spinlock
guenther [Sun, 10 May 2015 18:33:15 +0000 (18:33 +0000)]
In the child after fork, the dl lock has to be forced as its inner spinlock
may have been grabbed by another thread in the parent before the fork

problem report from dcoppa@, ok kettenis@

9 years agosync
miod [Sun, 10 May 2015 17:51:27 +0000 (17:51 +0000)]
sync

9 years agoVM_MAX_KERNEL_ADDRESS is the end of the kva range not the end of
jsg [Sun, 10 May 2015 15:56:28 +0000 (15:56 +0000)]
VM_MAX_KERNEL_ADDRESS is the end of the kva range not the end of
addressable virtual memory space but arm ports were using a value of
0xffffffff for this.

Instead of using a shared VM_MAX_KERNEL_ADDRESS define add md
VM_KERNEL_SPACE_SIZE defines based on the KERNEL_VM_SIZE values
from the respective machdep.c files.

djm's novena was hitting "panic: bufinit: can't reserve VM for buffers"
without a similiar change.

ok miod@

9 years agoMy commit adding RTL8188EU did introduce a regression after all.
stsp [Sun, 10 May 2015 15:10:46 +0000 (15:10 +0000)]
My commit adding RTL8188EU did introduce a regression after all.
Repair firmware reset on RTL8188CUS devices (and perhaps others) by
restoring the proper register write order in the non-8188EU code path.
Fixes "urtwn0: timeout waiting for firmware readiness" after device reset.

9 years agolimit physical memory to (paddr_t)-PAGE_SIZE (0xfffff000)
jsg [Sun, 10 May 2015 05:42:46 +0000 (05:42 +0000)]
limit physical memory to (paddr_t)-PAGE_SIZE (0xfffff000)

novena has 4GB of physical memory and it's u-boot tells us
memstart: 0x10000000
memsize:  0xf0000000

which would previously cause an overflow leading to
"panic: initarm: out of memory"

tweak from and ok miod@

9 years agoA new version from the original author of math.sed that does exponents
millert [Sun, 10 May 2015 01:45:12 +0000 (01:45 +0000)]
A new version from the original author of math.sed that does exponents
and lots of other neat things.  Via FreeBSD

9 years agoFor half and reverse line feeds, recognize SUSv2-style escape-digit
schwarze [Sat, 9 May 2015 20:36:18 +0000 (20:36 +0000)]
For half and reverse line feeds, recognize SUSv2-style escape-digit
sequences in the input stream in addition to traditional BSD-style
escape-control-char sequences because traditional tools, for example
Heirloom roff, produce SUSv2-style sequences.  Switch the encoding
of forward half line feeds in the output of -f back to SUSv2 style
because that's likely to work with more tools than the non-standard
traditional BSD-style sequence.  Fully document these choices.

Issues originally reported by bapt at FreeBSD.
OK millert@ jmc@, and bapt@ also more or less agrees with the direction.

9 years agoCleanup/rejig GPT code to be more readable, support different endian
krw [Sat, 9 May 2015 17:11:26 +0000 (17:11 +0000)]
Cleanup/rejig GPT code to be more readable, support different endian
archs and different sized disk sectors. Make MBR have higher priority
than GPT. Add many paranoia checks and associated DPRINTF's to make
further development easier. Keep everything hidden behind #ifdef
GPT.

Tested and ok doug@ mpi@. Nothing bad seen by millert@.

9 years agoFix an occurance of mtx_enter() that should have been mtx_leave().
jsg [Sat, 9 May 2015 10:27:32 +0000 (10:27 +0000)]
Fix an occurance of mtx_enter() that should have been mtx_leave().
This line was originally an splx() before being converted to a mutex.

ok ratchov@

9 years agoNeed explicit <sys/kcore.h> include now.
miod [Fri, 8 May 2015 22:56:53 +0000 (22:56 +0000)]
Need explicit <sys/kcore.h> include now.

9 years agoMake this run on strict alignment architectures.
miod [Fri, 8 May 2015 21:30:37 +0000 (21:30 +0000)]
Make this run on strict alignment architectures.

9 years agoWhen changing screen saver parameters with wsconsctl (or any other way to
miod [Fri, 8 May 2015 19:17:20 +0000 (19:17 +0000)]
When changing screen saver parameters with wsconsctl (or any other way to
perform ioctls), check the flags of the currently displayed screen in order
to decide whether the screen saver needs to be retriggered, rather than the
flags of the device we are issuing the ioctl on.

wsconsctl will always use ttyC0, while the X server may run on another
virtual screen (such as ttyC4), and the kernel screen saver would then be
reenabled behind the X server's back.

While there, apply this `should the screen burner get reenabled or disabled?'
logic at the end of every virtual screen switch. The screen burner will now
get reenabled when switching from X11 to a virtual text console, and disabled
when switching back to X.

9 years agoAdd a new `don't read back' flag for variables, to prevent reading their value
miod [Fri, 8 May 2015 19:12:51 +0000 (19:12 +0000)]
Add a new `don't read back' flag for variables, to prevent reading their value
after modifying them. Give this flag to `display.focus', since screen
switching is asynchronous, and reading back will return the screen we are
switching from if the switch has not completed yet.

Also, disallow -= and += syntax for display.focus, as it doesn't make any sense.

9 years agoPut the tty structs together, and tabify.
nicm [Fri, 8 May 2015 16:48:12 +0000 (16:48 +0000)]
Put the tty structs together, and tabify.

9 years agogrid_marker_cell is no longer used.
nicm [Fri, 8 May 2015 16:44:03 +0000 (16:44 +0000)]
grid_marker_cell is no longer used.

9 years agomode_key_entry can go into mode-key.c; also a few spaces->tabs.
nicm [Fri, 8 May 2015 16:33:29 +0000 (16:33 +0000)]
mode_key_entry can go into mode-key.c; also a few spaces->tabs.

9 years agoAvoid scattering octal escapes all over the place,
schwarze [Fri, 8 May 2015 16:30:07 +0000 (16:30 +0000)]
Avoid scattering octal escapes all over the place,
use the definitions given at the top of the file.
No functional change.
From bapt at FreeBSD.

9 years agowindow_choose_mode_item can move into window-choose.c.
nicm [Fri, 8 May 2015 16:23:34 +0000 (16:23 +0000)]
window_choose_mode_item can move into window-choose.c.

9 years agoMove input parser structs into input.c (removing fairly useless
nicm [Fri, 8 May 2015 16:18:04 +0000 (16:18 +0000)]
Move input parser structs into input.c (removing fairly useless
saved_cursor_[xy] formats as a side-effect).

9 years agoRemove some stuff that accidentally ended up here from portable, and
nicm [Fri, 8 May 2015 15:56:49 +0000 (15:56 +0000)]
Remove some stuff that accidentally ended up here from portable, and
remove a little-used debug function.

9 years agoRemove ereply prototype since it is never used. Tweak a comment to reflect
bcallah [Fri, 8 May 2015 12:35:08 +0000 (12:35 +0000)]
Remove ereply prototype since it is never used. Tweak a comment to reflect
ereply removal.
ok jasper@ florian@

9 years agoFix about ten integer overflows and underflows and a handful of logic
schwarze [Fri, 8 May 2015 12:30:27 +0000 (12:30 +0000)]
Fix about ten integer overflows and underflows and a handful of logic
errors in line number handling.  Detailed explanations were sent to tech@
on October 18, 2014.
OK doug@, and bapt at FreeBSD says he likes the direction

9 years agoSeparately track the number of items in alloc_table in a variable. With
sthen [Fri, 8 May 2015 12:15:50 +0000 (12:15 +0000)]
Separately track the number of items in alloc_table in a variable. With
the changes for handling template files in r1.293, alloc_table became
a pointer to an array of structs (rather than the array itself), so
nitems(alloc_table) no longer returns the number of elements. As found
by sebastia@, autosize would only try the first allocation scheme,
so installation would fail on small disks.  ok henning@

9 years agoSwitch i386 and sparc64 to binutils 2.17. More architectures to follow if
kettenis [Fri, 8 May 2015 10:28:34 +0000 (10:28 +0000)]
Switch i386 and sparc64 to binutils 2.17.  More architectures to follow if
this doesn't cause any serious regressions.

ok espie@, pascal@, deraadt@

9 years agowhitespace
djm [Fri, 8 May 2015 07:29:00 +0000 (07:29 +0000)]
whitespace

9 years agowhitespace at EOL
djm [Fri, 8 May 2015 07:26:13 +0000 (07:26 +0000)]
whitespace at EOL

9 years agoFix the indentation. While originally I thought this was an if statement
jsg [Fri, 8 May 2015 07:25:36 +0000 (07:25 +0000)]
Fix the indentation.  While originally I thought this was an if statement
with missing braces ratchov checked the specs to see the current
behaviour is correct, just poorly formatted.

ok ratchov@

9 years agomoar whitespace at eol
djm [Fri, 8 May 2015 06:45:13 +0000 (06:45 +0000)]
moar whitespace at eol

9 years agowhitespace at EOL
djm [Fri, 8 May 2015 06:41:56 +0000 (06:41 +0000)]
whitespace at EOL

9 years agoAdd missing sabresd case statements. As sabresd_devs[] includes imxgpio
jsg [Fri, 8 May 2015 04:47:27 +0000 (04:47 +0000)]
Add missing sabresd case statements.  As sabresd_devs[] includes imxgpio
an attempt to boot on sabresd would have tried to deref NULL function
pointers.

9 years agowhitespace at EOL
djm [Fri, 8 May 2015 03:56:51 +0000 (03:56 +0000)]
whitespace at EOL

9 years agoAdd initial board specific parts of novena support, tested by djm@
jsg [Fri, 8 May 2015 03:38:26 +0000 (03:38 +0000)]
Add initial board specific parts of novena support, tested by djm@
While novena has it's own board id it's u-boot does not set it.
"setenv machid 10ad" in u-boot will set the novena board id (0x10ad/4269).

9 years agoUse xcalloc for permitted_adm_opens instead of xmalloc to ensure it's zeroed.
dtucker [Fri, 8 May 2015 03:25:07 +0000 (03:25 +0000)]
Use xcalloc for permitted_adm_opens instead of xmalloc to ensure it's zeroed.
Fixes post-auth crash with permitopen=none.  bz#2355, ok djm@

9 years agodon't choke on new-format private keys encrypted with an AEAD cipher;
djm [Fri, 8 May 2015 03:17:49 +0000 (03:17 +0000)]
don't choke on new-format private keys encrypted with an AEAD cipher;
bz#2366, patch from Ron Frederick; ok markus@

9 years agomsleep(9) must prevent kernel from attempting a context switch
mikeb [Thu, 7 May 2015 18:30:27 +0000 (18:30 +0000)]
msleep(9) must prevent kernel from attempting a context switch
during autoconf and after panics.

Tweak and OK guenther, OK miod

9 years agoWhoops; missed updating a setfile() call.
guenther [Thu, 7 May 2015 17:32:20 +0000 (17:32 +0000)]
Whoops; missed updating a setfile() call.

problem reported dcoppa; ok millert@

9 years agoCorrect the note about RAID support
mikeb [Thu, 7 May 2015 15:14:02 +0000 (15:14 +0000)]
Correct the note about RAID support

9 years agoUpdate environment when switching sessions as well as attaching, from Si
nicm [Thu, 7 May 2015 14:07:16 +0000 (14:07 +0000)]
Update environment when switching sessions as well as attaching, from Si
Beaumont.

9 years agoDo not let the -m option or MANPATH with leading, trailing, or double
schwarze [Thu, 7 May 2015 12:07:29 +0000 (12:07 +0000)]
Do not let the -m option or MANPATH with leading, trailing, or double
colon override the default manpath, let them add to the default manpath.
Only override the default manpath by the -M option, by MANPATH without
leading, trailing, or double colon, or by "manpath" in man.conf(5).

Problem reported by Jan Stary <hans at stare dot cz>.
Patch OK'ed by millert@.

9 years agoStyle spacing nits.
nicm [Thu, 7 May 2015 11:42:56 +0000 (11:42 +0000)]
Style spacing nits.

9 years agoInclude the timestamp TCP option in keep alive packets as well.
mikeb [Thu, 7 May 2015 09:19:31 +0000 (09:19 +0000)]
Include the timestamp TCP option in keep alive packets as well.

According to RFC 7323 "once TSopt has been successfully negotiated,
... [it] MUST be sent in every non-<RST> segment for the duration
of the connection."  Which means that keep alives which are just
ACK packets must include that too.

Pointed out and tested by Lauri Tirkkonen <lotheac at iki ! fi>, thanks!
ok mpi

9 years agoPass a thread pointer instead of its file descriptor table to getvnode(9).
mpi [Thu, 7 May 2015 08:53:32 +0000 (08:53 +0000)]
Pass a thread pointer instead of its file descriptor table to getvnode(9).

Input and ok millert@

9 years agoarray.h can be local to window-choose.c now.
nicm [Thu, 7 May 2015 08:08:54 +0000 (08:08 +0000)]
array.h can be local to window-choose.c now.

9 years agoUse a TAILQ not array for find-window.
nicm [Thu, 7 May 2015 07:59:52 +0000 (07:59 +0000)]
Use a TAILQ not array for find-window.

9 years agoSimplify environ_push so it doesn't need the ARRAY_* functions.
nicm [Thu, 7 May 2015 07:35:31 +0000 (07:35 +0000)]
Simplify environ_push so it doesn't need the ARRAY_* functions.

9 years agoIf status line is at the top, the offset needs to be adjusted when
nicm [Thu, 7 May 2015 07:16:14 +0000 (07:16 +0000)]
If status line is at the top, the offset needs to be adjusted when
drawing pane numbers.  Based on a diff from John O'Meara.

9 years agoremove badly indented printf and it's preceeding test
jsg [Thu, 7 May 2015 02:17:16 +0000 (02:17 +0000)]
remove badly indented printf and it's preceeding test
as suggested by miod@

9 years agofix indentation
jsg [Thu, 7 May 2015 01:55:43 +0000 (01:55 +0000)]
fix indentation
ok miod@

9 years agofix indentation of a line
jsg [Thu, 7 May 2015 01:19:00 +0000 (01:19 +0000)]
fix indentation of a line
ok krw@ miod@

9 years agoadd missing braces to code under #ifdef TRM_DEBUG0
jsg [Thu, 7 May 2015 01:09:56 +0000 (01:09 +0000)]
add missing braces to code under #ifdef TRM_DEBUG0
ok krw@

9 years agoremove a surplus tab
jsg [Thu, 7 May 2015 00:16:25 +0000 (00:16 +0000)]
remove a surplus tab
from miod@

9 years agoadd missing braces
jsg [Thu, 7 May 2015 00:00:52 +0000 (00:00 +0000)]
add missing braces
ok miod@

9 years agoRemove ARRAY_* from history and expand completion to complete a) layout
nicm [Wed, 6 May 2015 23:56:46 +0000 (23:56 +0000)]
Remove ARRAY_* from history and expand completion to complete a) layout
names and b) targets beginning with -t or -s.

9 years agofix a fd leak in an error path in code under #ifdef DEBUG
jsg [Wed, 6 May 2015 23:52:49 +0000 (23:52 +0000)]
fix a fd leak in an error path in code under #ifdef DEBUG

9 years agoregen
jsg [Wed, 6 May 2015 11:26:02 +0000 (11:26 +0000)]
regen

9 years ago#include <sys/event.h> was removed from init_sysent.c but not
jsg [Wed, 6 May 2015 11:20:07 +0000 (11:20 +0000)]
#include <sys/event.h> was removed from init_sysent.c but not
syscalls.master where the file is generated from.  Fix this by removing
it from syscalls.master so it doesn't come back.

From Nicolas Bedos.

9 years agoPass a thread pointer instead of its file descriptor table to getsock(9).
mpi [Wed, 6 May 2015 08:52:17 +0000 (08:52 +0000)]
Pass a thread pointer instead of its file descriptor table to getsock(9).

Diff from Vitaliy Makkoveev.

Manpage tweak and ok millert@

9 years agouse res_hnok() to valid domain part in valid_domain()
gilles [Wed, 6 May 2015 08:37:47 +0000 (08:37 +0000)]
use res_hnok() to valid domain part in valid_domain()

ok eric@

9 years agoAdd a format window_linked which is 1 if a window has been linked
nicm [Wed, 6 May 2015 08:35:39 +0000 (08:35 +0000)]
Add a format window_linked which is 1 if a window has been linked
multiple times, also remove the default space in window_flags and use a
conditional to add it in window-status-format (this means additional
flags can be added in the option without extra spaces). From Thomas Adam
with tweaks by me.

9 years agoDocument that priority 1 is reserved for kernel use.
mpi [Wed, 6 May 2015 07:55:42 +0000 (07:55 +0000)]
Document that priority 1 is reserved for kernel use.

9 years agoDisplay thread IDs instead of the name of the process's owner when "-H"
mpi [Wed, 6 May 2015 07:53:29 +0000 (07:53 +0000)]
Display thread IDs instead of the name of the process's owner when "-H"
is used.

The rationnal is that when you're looking at threads you're generally
already filtereing by PID and this allow you to see which thread is a
pig.

Written some time ago with mikeb@

ok sthen@, krw@, guenther@

9 years agoTurn cursor off during redraw, pointed out by George Nachman.
nicm [Wed, 6 May 2015 07:52:06 +0000 (07:52 +0000)]
Turn cursor off during redraw, pointed out by George Nachman.

9 years agoClarify pseudo-terminal request behaviour and use "pseudo-terminal"
dtucker [Wed, 6 May 2015 05:45:17 +0000 (05:45 +0000)]
Clarify pseudo-terminal request behaviour and use "pseudo-terminal"
consistently.  bz#1716, ok jmc@ "I like it" deraadt@.