openbsd
9 years agoUse an interface index instead of a pointer for multicast options.
mpi [Wed, 17 Dec 2014 09:45:59 +0000 (09:45 +0000)]
Use an interface index instead of a pointer for multicast options.

Output interface (port) selection for multicast traffic is not done via
route lookups.  Instead the output ifp is registred when setsockopt(2)
is called with the IP{V6,}_MULTICAST_IF option.  But since there is no
mechanism to invalidate such pointer stored in a pcb when an interface
is destroyed/removed, it might lead your kernel to fault.

Prevent a fault upon resume reported by frantisek holop, thanks!

ok mikeb@, claudio@

9 years agoPrefer MADV_* over POSIX_MADV_* in kernel for consistency: the latter
guenther [Wed, 17 Dec 2014 06:58:10 +0000 (06:58 +0000)]
Prefer MADV_* over POSIX_MADV_* in kernel for consistency: the latter
doesn't have all the values and therefore can't be used everywhere.

ok deraadt@ kettenis@

9 years agodelete archaic simplelock use.
deraadt [Wed, 17 Dec 2014 06:05:51 +0000 (06:05 +0000)]
delete archaic simplelock use.
ok miod

9 years agoDo as the datasheet recommends and disable the RX filter before adjusting
brad [Wed, 17 Dec 2014 03:50:53 +0000 (03:50 +0000)]
Do as the datasheet recommends and disable the RX filter before adjusting
the RX filter.

From FreeBSD

9 years agoincrease to 2048 to prevent failure. ok deraadt@
daniel [Wed, 17 Dec 2014 00:10:22 +0000 (00:10 +0000)]
increase to 2048 to prevent failure. ok deraadt@

9 years agoinstall both ld.so with mode 444
deraadt [Tue, 16 Dec 2014 23:59:47 +0000 (23:59 +0000)]
install both ld.so with mode 444

9 years agoIgnore mdoc(7) and man(7) macros inside tbl(7) code because they
schwarze [Tue, 16 Dec 2014 23:44:16 +0000 (23:44 +0000)]
Ignore mdoc(7) and man(7) macros inside tbl(7) code because they
would abort the table in an unclean way, causing assertion failures
found by jsg@.

9 years agoTemporarily expand the pci memory range to suit Dell 13G servers.
jmatthew [Tue, 16 Dec 2014 23:13:20 +0000 (23:13 +0000)]
Temporarily expand the pci memory range to suit Dell 13G servers.
They have devices outside the 36 bit range that their firmware needs to talk
to, and they get constant acpi interrupts if it can't.  We should get the
necessary ranges via ACPI, but for now just make the allowed range bigger.

ok kettenis@ deraadt@

9 years agosync
deraadt [Tue, 16 Dec 2014 22:18:12 +0000 (22:18 +0000)]
sync

9 years agodon't include lock.h by default. poisons namespace. ok deraadt
tedu [Tue, 16 Dec 2014 21:40:05 +0000 (21:40 +0000)]
don't include lock.h by default. poisons namespace. ok deraadt

9 years agosync
miod [Tue, 16 Dec 2014 21:29:54 +0000 (21:29 +0000)]
sync

9 years agoDo not grab the kernel lock for clock interrupts, hardclock() will behave
miod [Tue, 16 Dec 2014 21:29:05 +0000 (21:29 +0000)]
Do not grab the kernel lock for clock interrupts, hardclock() will behave
correctly without. Modeled after sparc64 logic.

9 years agomust include lock.h to play with locks
tedu [Tue, 16 Dec 2014 21:25:28 +0000 (21:25 +0000)]
must include lock.h to play with locks

9 years agothese headers do not need to (and should not) include lock.h poisoning
tedu [Tue, 16 Dec 2014 21:20:23 +0000 (21:20 +0000)]
these headers do not need to (and should not) include lock.h poisoning
the namespace. ok deraadt

9 years agoinclude atomic.h to get atomic operations (virtio_membar). ok sf
tedu [Tue, 16 Dec 2014 21:19:29 +0000 (21:19 +0000)]
include atomic.h to get atomic operations (virtio_membar). ok sf

9 years agoDefine and print HV cpuid flag.
sf [Tue, 16 Dec 2014 21:02:58 +0000 (21:02 +0000)]
Define and print HV cpuid flag.

This is set by many hypervisors, including kvm, vmware, hyper-v.

9 years agoInstall a copy of ld.so into /sbin. Soon to be used in order to make "static"
pascal [Tue, 16 Dec 2014 20:53:12 +0000 (20:53 +0000)]
Install a copy of ld.so into /sbin.  Soon to be used in order to make "static"
PIE possible.

ok deraadt@ tedu@

9 years agotypo; ok deraadt
sthen [Tue, 16 Dec 2014 20:51:32 +0000 (20:51 +0000)]
typo; ok deraadt

9 years agowarn for correct symbol
deraadt [Tue, 16 Dec 2014 20:42:36 +0000 (20:42 +0000)]
warn for correct symbol

9 years agomust include lock.h if you want to play with locks
tedu [Tue, 16 Dec 2014 19:56:33 +0000 (19:56 +0000)]
must include lock.h if you want to play with locks

9 years agoonly need lock.h here, not all of uvm_extern.h
tedu [Tue, 16 Dec 2014 19:51:33 +0000 (19:51 +0000)]
only need lock.h here, not all of uvm_extern.h

9 years agocorrect -Tutf8 and -Thtml rendering of \(~=
schwarze [Tue, 16 Dec 2014 19:48:49 +0000 (19:48 +0000)]
correct -Tutf8 and -Thtml rendering of \(~=
and change the name of \(-~ to \(|= to agree with groff;
difference found by Carsten dot Kunze at arcor dot de

9 years agoDon't pass options after the to address to sendmail. The only
millert [Tue, 16 Dec 2014 18:37:17 +0000 (18:37 +0000)]
Don't pass options after the to address to sendmail.  The only
legitiate use of this is to set the sender name which should be
handled specifically by a different option.

9 years agoAdd new "expandaddr" flag (disabled by default) to enable recipient
millert [Tue, 16 Dec 2014 18:36:46 +0000 (18:36 +0000)]
Add new "expandaddr" flag (disabled by default) to enable recipient
address expansion and document it.  Previously, this behavior was
always enabled.  Also document how address expansion is performed,
which used to only be described in the (no longer installed) Mail
Reference Manual.  CVE-2014-7844

9 years agoUse glob() to expand filenames instead of passing it to the shell's
millert [Tue, 16 Dec 2014 18:31:06 +0000 (18:31 +0000)]
Use glob() to expand filenames instead of passing it to the shell's
echo command for expansion which could result in arbitrary command
execution.  CVE-2004-2771

9 years agoprimary change: move uvm_vnode out of vnode, keeping only a pointer.
tedu [Tue, 16 Dec 2014 18:30:03 +0000 (18:30 +0000)]
primary change: move uvm_vnode out of vnode, keeping only a pointer.
objective: vnode.h doesn't include uvm_extern.h anymore.
followup changes: include uvm_extern.h or lock.h where necessary.
ok and help from deraadt

9 years agoProtect memory allocation and disposal with splvm(); gets rid of splassert
miod [Tue, 16 Dec 2014 18:03:17 +0000 (18:03 +0000)]
Protect memory allocation and disposal with splvm(); gets rid of splassert
complaints during boot on i386.
ok stsp@

9 years agoExplicit block closure macros clobber next-line block head scope,
schwarze [Tue, 16 Dec 2014 17:24:58 +0000 (17:24 +0000)]
Explicit block closure macros clobber next-line block head scope,
just like explicit block macros themselves.
Fixing an assertion failure jsg@ found with afl.

9 years agoNow that we have Camellia support in libcrypto, bring in the SHA256 flavour of
miod [Tue, 16 Dec 2014 05:47:28 +0000 (05:47 +0000)]
Now that we have Camellia support in libcrypto, bring in the SHA256 flavour of
the Camellia ciphersuites for TLS 1.2 introduced in RFC 5932. From OpenSSL HEAD.

9 years agoWhen a string comparison condition contains no mismatching character
schwarze [Tue, 16 Dec 2014 03:52:31 +0000 (03:52 +0000)]
When a string comparison condition contains no mismatching character
but ends without the final delimiter, the parse point was advanced
one character too far and the invalid pointer returned to the
caller of roff_parseln().  Later use could potentially advance
the pointer even further and maybe even write to it.
Fixing a buffer overrun found by jsg@ with afl (the most severe so far).

9 years agoReplace setpgrp(0, getpid()) with setpgid(0, 0). OK deraadt@ tedu@
millert [Tue, 16 Dec 2014 03:35:49 +0000 (03:35 +0000)]
Replace setpgrp(0, getpid()) with setpgid(0, 0).  OK deraadt@ tedu@

9 years agoRemove some useless casts and includes. OK deraadt@ tedu@
millert [Tue, 16 Dec 2014 03:32:21 +0000 (03:32 +0000)]
Remove some useless casts and includes.  OK deraadt@ tedu@

9 years agoinclude lock.h, needed for later headers but currently included by magic
tedu [Tue, 16 Dec 2014 03:21:10 +0000 (03:21 +0000)]
include lock.h, needed for later headers but currently included by magic
ok millert

9 years agoDon't display formatted time if localtime() fails.
jsg [Tue, 16 Dec 2014 03:19:23 +0000 (03:19 +0000)]
Don't display formatted time if localtime() fails.
Avoids a crash in strftime() found with the afl fuzzer.
ok guenther@

9 years agoWhen a numerical condition errors out after consuming at least one
schwarze [Tue, 16 Dec 2014 01:21:37 +0000 (01:21 +0000)]
When a numerical condition errors out after consuming at least one
character of input, treat it as false, do not retry it as a string
comparison condition.  This also fixes a read buffer overrun that
happened when the numerical condition advanced to the end of the
input line before erroring out, found by jsg@ with afl.

9 years agouse .In and delete .Tn; from Kaspars at Bankovskis dot net
schwarze [Tue, 16 Dec 2014 00:06:49 +0000 (00:06 +0000)]
use .In and delete .Tn; from Kaspars at Bankovskis dot net

9 years agoEmpty conditions count as false.
schwarze [Mon, 15 Dec 2014 23:42:31 +0000 (23:42 +0000)]
Empty conditions count as false.
When negated, they still count as false.
Found when investigating crashes jsg@ found with afl.
Not completely fixing the crashes yet.

9 years agomerge improvements from NetBSD; ok jmc@ nicm@
schwarze [Mon, 15 Dec 2014 22:35:41 +0000 (22:35 +0000)]
merge improvements from NetBSD; ok jmc@ nicm@

9 years agodon't drop the kernel lock everytime. on a busy system, this results in
tedu [Mon, 15 Dec 2014 20:38:22 +0000 (20:38 +0000)]
don't drop the kernel lock everytime. on a busy system, this results in
the reaper spending more than half its time in uvm_pause. we want the
system to be interactive, but we want throughput too. this seems like a
decent balance.

9 years ago.Xr cut which may be what you're really looking for.
tedu [Mon, 15 Dec 2014 20:31:40 +0000 (20:31 +0000)]
.Xr cut which may be what you're really looking for.

9 years agoConsistency with the pci_intr_map bits.
brad [Mon, 15 Dec 2014 20:15:48 +0000 (20:15 +0000)]
Consistency with the pci_intr_map bits.

ok sf@

9 years agocorrect some character names to match groff;
schwarze [Mon, 15 Dec 2014 19:41:24 +0000 (19:41 +0000)]
correct some character names to match groff;
reported by Carsten dot Kunze at arcor dot de

9 years agoLet "man n open" do the same as "man -s n open" again, that is,
schwarze [Mon, 15 Dec 2014 18:04:32 +0000 (18:04 +0000)]
Let "man n open" do the same as "man -s n open" again, that is,
show the open(n) Tcl manual, as documented in man(1).  Issue reported
by Svyatoslav Mishyn <juef at openmailbox dot org> (Crux Linux).

9 years agoMerge from bsd.lv: text about HTML written by kristaps@.
schwarze [Mon, 15 Dec 2014 17:36:47 +0000 (17:36 +0000)]
Merge from bsd.lv: text about HTML written by kristaps@.

9 years agoCatch localtime() failure for additional safety;
schwarze [Mon, 15 Dec 2014 17:29:58 +0000 (17:29 +0000)]
Catch localtime() failure for additional safety;
patch from Jan Stary <hans at stare dot cz> some time ago.

9 years agoStop using usb_{alloc,free}mem() for the rings and internal structures.
mpi [Mon, 15 Dec 2014 17:10:44 +0000 (17:10 +0000)]
Stop using usb_{alloc,free}mem() for the rings and internal structures.

Since xhci(4) does not allocate memory for its rings in interrupt
context, it has no use for the free lists offered by the USB memory
allocator.

Using bus_dmamem_alloc(9) and friends also allows us to respect the
boundary requirement for the various structures specified in Table 54.

While here make use of defines for every alignment and boundary
requirements which are different than a page size.

9 years agoThe PCI device ID 0x4c6e is a secondary device ID for the Radeon Mobility
kettenis [Mon, 15 Dec 2014 13:43:17 +0000 (13:43 +0000)]
The PCI device ID 0x4c6e is a secondary device ID for the Radeon Mobility
9000/M9 that appears on the FireMV 2400 card.  It certainly isn't an RV280
chip and we don't want to attach to it, so remove it.  Same change has been
made upstream (based on a report by yours truly).

9 years agoNotify on zoom/unzoom, from George Nachmann.
nicm [Mon, 15 Dec 2014 10:04:18 +0000 (10:04 +0000)]
Notify on zoom/unzoom, from George Nachmann.

9 years agoOnly redraw affected lines when selection changes with mouse. From
nicm [Mon, 15 Dec 2014 10:02:55 +0000 (10:02 +0000)]
Only redraw affected lines when selection changes with mouse. From
Michael Graczyk.

9 years agoremove -r from usage();
jmc [Mon, 15 Dec 2014 07:01:12 +0000 (07:01 +0000)]
remove -r from usage();

9 years agoMove 40MB of .rodata and 40MB of stack to .bss; allows this test to run on
miod [Mon, 15 Dec 2014 06:03:15 +0000 (06:03 +0000)]
Move 40MB of .rodata and 40MB of stack to .bss; allows this test to run on
platforms with small MAXTSIZ or MAXSSIZ.

9 years agofully parenthesize the PMAP_DIRECT_* macros
guenther [Mon, 15 Dec 2014 05:05:24 +0000 (05:05 +0000)]
fully parenthesize the PMAP_DIRECT_* macros

ok tedu@

9 years agomove needed macros to pmap.c and delete stale ones. ok guenther
tedu [Mon, 15 Dec 2014 04:54:44 +0000 (04:54 +0000)]
move needed macros to pmap.c and delete stale ones. ok guenther

9 years agoUse MAP_INHERIT_* for the 'inh' argument to the UMV_MAPFLAG() macro,
guenther [Mon, 15 Dec 2014 02:24:22 +0000 (02:24 +0000)]
Use MAP_INHERIT_* for the 'inh' argument to the UMV_MAPFLAG() macro,
eliminating the must-be-kept-in-sync UVM_INH_* macros

ok deraadt@ tedu@

9 years agoconvert bcopy to memcpy. ok dlg krw
tedu [Mon, 15 Dec 2014 02:11:57 +0000 (02:11 +0000)]
convert bcopy to memcpy. ok dlg krw

9 years agochange bcopy to memcpy. ok deraadt
tedu [Mon, 15 Dec 2014 01:53:45 +0000 (01:53 +0000)]
change bcopy to memcpy. ok deraadt

9 years agoEliminate the -r option and always do sysctl OID, username, groupname,
guenther [Mon, 15 Dec 2014 01:48:54 +0000 (01:48 +0000)]
Eliminate the -r option and always do sysctl OID, username, groupname,
and ctime presentation, but combined with the numeric form ala 0<"root">.
Do username and groupname presentation on syscall arguments and retvals.

ok millert@ otto@

9 years agoAdd error handling for EVP_DigestInit_ex().
doug [Mon, 15 Dec 2014 00:46:53 +0000 (00:46 +0000)]
Add error handling for EVP_DigestInit_ex().

A few EVP_DigestInit_ex() calls were left alone since reporting an
error would change the public API.

Changed internal ssl3_cbc_digest_record() to return a value due to the above
change.  It will also now set md_out_size=0 on failure.

This is based on part of BoringSSL's commit to fix malloc crashes:
https://boringssl.googlesource.com/boringssl/+/69a01608f33ab6fe2c3485d94aef1fe9eacf5364

ok miod@

9 years agounconditionally align SSL payloads
bcook [Sun, 14 Dec 2014 21:49:29 +0000 (21:49 +0000)]
unconditionally align SSL payloads

Remove support for conditional payload alignment, since we would never
want to turn it off. Also, consistently use size_t for calculating the
alignment.

ok miod@

9 years agoBy now relayd expects tls in its config file and writes tls into
bluhm [Sun, 14 Dec 2014 20:30:51 +0000 (20:30 +0000)]
By now relayd expects tls in its config file and writes tls into
its log file.  Change regression tests form ssl to tls.

9 years agoRevert r1.10: properly built shared libraries will never have any DISP26
miod [Sun, 14 Dec 2014 19:55:12 +0000 (19:55 +0000)]
Revert r1.10: properly built shared libraries will never have any DISP26
relocations, but will always call public symbols through the library's PLT.

9 years agoSwitch man(1) to the mandoc implementation.
schwarze [Sun, 14 Dec 2014 17:55:36 +0000 (17:55 +0000)]
Switch man(1) to the mandoc implementation.
OK krw@ naddy@ sthen@  "commit it now" deraadt@

I won't remove the files in src/usr.bin/man, such that we can quickly
switch back in case a problem is found.

9 years agominimally document -IOKTW; requested by naddy@
schwarze [Sun, 14 Dec 2014 17:48:48 +0000 (17:48 +0000)]
minimally document -IOKTW; requested by naddy@

9 years agoRemove unused <stdlib.h>
bcallah [Sun, 14 Dec 2014 16:55:59 +0000 (16:55 +0000)]
Remove unused <stdlib.h>
ok lteo@ krw@ deraadt@

9 years agoConvert all of the straight forward client handshake handling code to use
jsing [Sun, 14 Dec 2014 16:19:38 +0000 (16:19 +0000)]
Convert all of the straight forward client handshake handling code to use
the new handshake functions.

ok miod@

9 years agoProvide functions for starting, finishing and writing SSL handshake
jsing [Sun, 14 Dec 2014 16:07:26 +0000 (16:07 +0000)]
Provide functions for starting, finishing and writing SSL handshake
messages. This will allow for removal of repeated/duplicated code.

Additionally, DTLS was written by wholesale copying of the SSL/TLS code,
with some DTLS specifics being added to the duplicated code. Since these
SSL handshake message functions know how to handle both SSL/TLS and DTLS,
upon conversion the duplicate versions will become identical (or close to),
at which point the DTLS versions can be removed and the SSL/TLS versions
used for both protocols.

Partially based on similar changes in OpenSSL.

ok miod@

9 years agoRemove trailing whitespace.
jsing [Sun, 14 Dec 2014 15:30:50 +0000 (15:30 +0000)]
Remove trailing whitespace.

9 years agothese are no longer used, remove
gilles [Sun, 14 Dec 2014 15:26:56 +0000 (15:26 +0000)]
these are no longer used, remove

9 years agounifdef OPENSSL_NO_NEXTPROTONEG
jsing [Sun, 14 Dec 2014 14:48:00 +0000 (14:48 +0000)]
unifdef OPENSSL_NO_NEXTPROTONEG

9 years agoRemove redundant NULL checks before free - BN_free(), BIO_free_all() and
jsing [Sun, 14 Dec 2014 14:45:33 +0000 (14:45 +0000)]
Remove redundant NULL checks before free - BN_free(), BIO_free_all() and
EC_GROUP_free() all have implicit NULL checks.

9 years agounifdef OPENSSL_NO_NEXTPROTONEG
jsing [Sun, 14 Dec 2014 14:42:06 +0000 (14:42 +0000)]
unifdef OPENSSL_NO_NEXTPROTONEG

9 years agounifdef OPENSSL_NO_NEXTPROTONEG, which is one of the last standing #ifndef
jsing [Sun, 14 Dec 2014 14:34:43 +0000 (14:34 +0000)]
unifdef OPENSSL_NO_NEXTPROTONEG, which is one of the last standing #ifndef
mazes in libssl. NPN is being replaced by ALPN, however it is still going
to be around for a while yet.

ok miod@

9 years agounifdef NETSCAPE_HANG_BUG from the DTLS code. The code is not currently
jsing [Sun, 14 Dec 2014 13:45:47 +0000 (13:45 +0000)]
unifdef NETSCAPE_HANG_BUG from the DTLS code. The code is not currently
enabled and I would hope that no one is using client certificates with DTLS
and Netscape, assuming it even supported it...

ok bcook@ miod@

9 years agoHandle ed command "s" as a one line command, which it is.
tobias [Sun, 14 Dec 2014 09:12:59 +0000 (09:12 +0000)]
Handle ed command "s" as a one line command, which it is.
Prevents arbitrary ed command executions in following lines.

ok millert

9 years agomacro cleanup; from Kaspars at Bankovskis dot net
schwarze [Sun, 14 Dec 2014 07:42:50 +0000 (07:42 +0000)]
macro cleanup; from Kaspars at Bankovskis dot net

9 years agoDisable MWAIT again, this time on both i386 and amd64. Too many systems
guenther [Sun, 14 Dec 2014 05:04:49 +0000 (05:04 +0000)]
Disable MWAIT again, this time on both i386 and amd64.  Too many systems
run excessively hot with it to have it on by default, and I still don't
have good logic to let acpicpu enable it when the AML says it's good.

9 years agoAn UVM_ADV_NORMAL -> MADV_NORMAL was missed here
guenther [Sat, 13 Dec 2014 23:29:14 +0000 (23:29 +0000)]
An UVM_ADV_NORMAL -> MADV_NORMAL was missed here

9 years agoyet more mallocarray() changes.
doug [Sat, 13 Dec 2014 21:05:32 +0000 (21:05 +0000)]
yet more mallocarray() changes.

ok tedu@ deraadt@

9 years agoSort members by size to reduce structure padding
guenther [Sat, 13 Dec 2014 21:02:32 +0000 (21:02 +0000)]
Sort members by size to reduce structure padding

9 years agoAdd .Xr to chflagsat(2)
guenther [Sat, 13 Dec 2014 21:00:19 +0000 (21:00 +0000)]
Add .Xr to chflagsat(2)

9 years agoCorrect the handling of symbolic links by chmod/chgrp/chown/chflags,
guenther [Sat, 13 Dec 2014 20:59:24 +0000 (20:59 +0000)]
Correct the handling of symbolic links by chmod/chgrp/chown/chflags,
making them more resistant to TOCTOU race conditions too.

ok tobias@

9 years agoclaim posix 2008 compat. apparently people look at this and get scared
tedu [Sat, 13 Dec 2014 20:42:41 +0000 (20:42 +0000)]
claim posix 2008 compat. apparently people look at this and get scared
when it's really old. but no actual ports fallout in espie's build.
ok deraadt

9 years agoProvide our own copy of {round,trunc}_page() now that uvm's is unreachable from
miod [Sat, 13 Dec 2014 16:26:13 +0000 (16:26 +0000)]
Provide our own copy of {round,trunc}_page() now that uvm's is unreachable from
non-_KERNEL code.

9 years agoA first shot at MOP boot instructions.
miod [Sat, 13 Dec 2014 15:45:53 +0000 (15:45 +0000)]
A first shot at MOP boot instructions.

9 years agojust released mandoc 1.13.2
schwarze [Sat, 13 Dec 2014 15:30:52 +0000 (15:30 +0000)]
just released mandoc 1.13.2

9 years agoInstall netboot.mop
miod [Sat, 13 Dec 2014 14:45:57 +0000 (14:45 +0000)]
Install netboot.mop

9 years agoCreate a MOP version of the network boot loader; verified to boot on DEC 3000.
miod [Sat, 13 Dec 2014 14:45:34 +0000 (14:45 +0000)]
Create a MOP version of the network boot loader; verified to boot on DEC 3000.

9 years agoGive the mop suite the ability to process alpha Elf64 files and create mop
miod [Sat, 13 Dec 2014 14:44:59 +0000 (14:44 +0000)]
Give the mop suite the ability to process alpha Elf64 files and create mop
alpha images of them.

9 years agoAdd DKIM signing example based on eric@'s asiabsdcon slides
millert [Sat, 13 Dec 2014 13:36:03 +0000 (13:36 +0000)]
Add DKIM signing example based on eric@'s asiabsdcon slides
OK gilles@ jmc@

9 years agoFix a regression found by Carsten dot Kunze at arcor dot de:
schwarze [Sat, 13 Dec 2014 13:13:26 +0000 (13:13 +0000)]
Fix a regression found by Carsten dot Kunze at arcor dot de:
Do not show bogus quotes when .Bl -column phrases are quoted.

9 years agoThe function savestr allows NULL return values during Plan A patching so in
tobias [Sat, 13 Dec 2014 10:31:07 +0000 (10:31 +0000)]
The function savestr allows NULL return values during Plan A patching so in
case of out of memory conditions, Plan B can step in.  In many cases, NULL
value is not properly handled, so use xstrdup here (it's outside Plan A/B
patching, which means that even Plan B relies on successful operations).

9 years agomacro cleanup; from Kaspars Bankovskis, tweaked a bit
schwarze [Sat, 13 Dec 2014 10:27:50 +0000 (10:27 +0000)]
macro cleanup; from Kaspars Bankovskis, tweaked a bit

9 years agoProperly validate ranges:
tobias [Sat, 13 Dec 2014 10:26:48 +0000 (10:26 +0000)]
Properly validate ranges:

- avoid out of boundary access on very short program names
- fix compiler warning when converting values between 0 and INT_MAX

ok deraadt, millert

9 years agoThinkPad Edge E130, event 0x6060 is supposed to indicate toggle
deraadt [Sat, 13 Dec 2014 05:29:50 +0000 (05:29 +0000)]
ThinkPad Edge E130, event 0x6060 is supposed to indicate toggle
between default Fn and media Fn modes.  We don't do that, so
ignore the toggle.
From Frederic Nowak

9 years agoadd a sxidog_activate() function so the kernel will link again
jsg [Sat, 13 Dec 2014 00:49:20 +0000 (00:49 +0000)]
add a sxidog_activate() function so the kernel will link again
after the changes made in rev 1.5

9 years agofree correct size. it's variable!
tedu [Fri, 12 Dec 2014 22:58:48 +0000 (22:58 +0000)]
free correct size. it's variable!

9 years agocatch up with swab.c rev. 1.9:
schwarze [Fri, 12 Dec 2014 20:06:13 +0000 (20:06 +0000)]
catch up with swab.c rev. 1.9:
update SYNOPSIS and DESCRIPTION and add STANDARDS

9 years agosizeof(*ptr) for some free()
tedu [Fri, 12 Dec 2014 19:02:07 +0000 (19:02 +0000)]
sizeof(*ptr) for some free()

9 years agoconvert some hash tables (the easy ones) to siphash. ok benno.
tedu [Fri, 12 Dec 2014 18:15:51 +0000 (18:15 +0000)]
convert some hash tables (the easy ones) to siphash. ok benno.

9 years agomarkup fixes from Kaspars at Bankovskis dot net;
schwarze [Fri, 12 Dec 2014 17:04:22 +0000 (17:04 +0000)]
markup fixes from Kaspars at Bankovskis dot net;
some of this is already contained upstream in NetBSD,
the rest will be sent there