jsing [Thu, 1 Jan 2015 13:55:03 +0000 (13:55 +0000)]
Convert the openssl(1) enc command to the new option parsing and usage.
With input from doug@
schwarze [Thu, 1 Jan 2015 13:30:52 +0000 (13:30 +0000)]
Revert previous; tls_accept_socket() was intentionally undocumented
because the API design isn't fully settled.
Requested by jsing@ and tedu@.
schwarze [Thu, 1 Jan 2015 13:18:23 +0000 (13:18 +0000)]
If man(1) only has one single argument, always interpret it as a name,
never as a section. Who would have thought that people call their
manual pages 7z(1), 9c(1), 9p(1), and 9p(3)...
Patch from Sebastien Marie <semarie dash openbsd at latrappe dot fr>.
schwarze [Thu, 1 Jan 2015 13:00:36 +0000 (13:00 +0000)]
activate eqn(7) tests
schwarze [Thu, 1 Jan 2015 12:53:46 +0000 (12:53 +0000)]
eqn(7) tests
ajacoutot [Thu, 1 Jan 2015 09:44:20 +0000 (09:44 +0000)]
Drop redundant FUNCS_ONLY.
schwarze [Thu, 1 Jan 2015 09:06:39 +0000 (09:06 +0000)]
The roff(7) language is Turing-complete, even the part implemented
in mandoc(1). So practice some recursive programming to make sure
it doesn't get broken.
schwarze [Thu, 1 Jan 2015 08:42:08 +0000 (08:42 +0000)]
minimally document tls_accept_socket();
patch from Sunil at Nimmagadda dot net
schwarze [Thu, 1 Jan 2015 07:27:34 +0000 (07:27 +0000)]
Get rid of .Tn; from Kaspars at Bankovskis dot net, tweaked by me.
While here, stop calling the Internet "the ARPA Internet".
schwarze [Thu, 1 Jan 2015 07:05:24 +0000 (07:05 +0000)]
Even though i personally consider 8-bit-characters in filenames unwise,
technically, filenames are not restricted to ASCII.
Patch from Kaspars at Bankovskis dot net, no opposition when shown on tech@.
lteo [Thu, 1 Jan 2015 03:27:56 +0000 (03:27 +0000)]
Remove an unnecessary freeaddrinfo() call, since errx() would free all
the memory including the one allocated by the earlier getaddrinfo()
(pointed out by claudio@).
feedback from claudio@
ok bluhm@
jsg [Thu, 1 Jan 2015 03:26:13 +0000 (03:26 +0000)]
Always drain the write buffer on pte sync. Needed for Cortex A7/A15
which have integrated L2 so changes will get flushed to memory ASAP.
From Patrick Wildt in Bitrig via rapha@
ok miod@
deraadt [Wed, 31 Dec 2014 23:12:36 +0000 (23:12 +0000)]
Do not take sh to STATICPIE yet. That will happen once matching
snapshots exist. That is why mips64 is still held up (arranged with
kettenis)
schwarze [Wed, 31 Dec 2014 20:41:53 +0000 (20:41 +0000)]
describe .Ql more precisely;
defect pointed out by Steffen Nurpmeso <sdaoden at yandex dot com>
tedu [Wed, 31 Dec 2014 16:56:55 +0000 (16:56 +0000)]
recent changes broke alignment requirements on arm.
simplify a bit more, swapping only aligned values and then using memcpy
to fill the digest. fix confirmed by jsg.
ok jsg kettenis millert
schwarze [Wed, 31 Dec 2014 16:50:54 +0000 (16:50 +0000)]
When showing more than one formatted manual page, insert horizontal lines
between pages. Suggested by Theo Buehler <theo at math dot ethz dot ch>.
Even in UTF-8 output mode, do not use fancy line drawing characters such
that you can easily use /^--- to skip to the next manual in your pager.
tedu [Wed, 31 Dec 2014 15:45:57 +0000 (15:45 +0000)]
adventure requires deterministic random for its internal data
"obfuscation" scheme to work (words fail me), but we can use arc4random
for the in game fun. from theo buehler
tedu [Wed, 31 Dec 2014 15:42:08 +0000 (15:42 +0000)]
simplify poll() conversion. from patrick keshishian
jsing [Wed, 31 Dec 2014 15:32:05 +0000 (15:32 +0000)]
copyright_year=$(date +%Y)
bluhm [Wed, 31 Dec 2014 14:05:26 +0000 (14:05 +0000)]
Adapt and add regression tests for sending syslog messages over TCP.
lum [Wed, 31 Dec 2014 13:56:37 +0000 (13:56 +0000)]
Use the first host of the documentation ranges for both address
families. ok jmc@ schwarze@ bluhm@
bluhm [Wed, 31 Dec 2014 13:55:57 +0000 (13:55 +0000)]
Implement sending syslog messages over TCP streams.
test and OK jasper@ jca@
jasper [Wed, 31 Dec 2014 11:52:22 +0000 (11:52 +0000)]
add entries for xmpp, mdns and puppet
ok aja@
aoyama [Wed, 31 Dec 2014 11:38:27 +0000 (11:38 +0000)]
Correct evcount_attach argument on cbus(4).
The third argument of evcount_attach() should point some permanent
variable, not an automatic variable. Now "vmstat -i" correctly prints
C-bus interrupt level number as irq, on C-bus devices.
ok miod@
dcoppa [Wed, 31 Dec 2014 11:37:40 +0000 (11:37 +0000)]
Mention previously missing '/etc/apm/hibernate' action
From Alessandro DE LAURENZIS <just22_dot_adl_at_gmail_dot_com>
tweak and ok jmc@
bluhm [Wed, 31 Dec 2014 01:25:07 +0000 (01:25 +0000)]
Create CA and certificates for TLS tests consistently. Better
logging of SSL errors. Do not import unneeded Socket constants.
millert [Tue, 30 Dec 2014 23:27:23 +0000 (23:27 +0000)]
Use a 1MB realloc() increment instead of an 8KB one for the config
connection buffer. Significantly speeds up spamd-setup for lage
blacklists. Also free the buffer when we are done with it so memory
can be returned to the system (as it can grow quite large).
OK deraadt@
bcallah [Tue, 30 Dec 2014 22:05:32 +0000 (22:05 +0000)]
Remove some checks that will always evaluate to true. Noticed by a very
recent clang.
ok schwarze@ lum@
schwarze [Tue, 30 Dec 2014 21:34:32 +0000 (21:34 +0000)]
fix wrong paths below FILES; from Theo Buehler <theo at math dot ethz dot ch>
bluhm [Tue, 30 Dec 2014 20:50:49 +0000 (20:50 +0000)]
Add syslog-tls 6514/tcp to etc/services.
OK jasper
afresh1 [Tue, 30 Dec 2014 20:46:45 +0000 (20:46 +0000)]
Make perl use our (arc4random backed) drand48 when unseeded
uses srand48_deterministic if a seed is provided.
seems fine millert@
schwarze [Tue, 30 Dec 2014 20:40:05 +0000 (20:40 +0000)]
When a file is given on the command line, actually exists, and its name
relative to the respective manual tree is longer than PATH_MAX, do not
leak the memory allocated to hold the name. Not sure that can actually
happen, but better safe than sorry.
FreeBSD Coverity Scan CID
1261303, reported by Pedro Giffuni <pfg@>.
miod [Tue, 30 Dec 2014 19:26:38 +0000 (19:26 +0000)]
self-relocating crt0 bits for sh, and enable static pie by default. With some
archdep.h help from kettenis@
miod [Tue, 30 Dec 2014 18:31:21 +0000 (18:31 +0000)]
Clean up and optimize _dl_start a bit by using immediate addressing for
the constants whenever they fit, and avoiding saving and restoring
registers we don't need to preserve.
ajacoutot [Tue, 30 Dec 2014 15:33:53 +0000 (15:33 +0000)]
Rename a few functions name. Will help factorize some stuffs.
robert [Tue, 30 Dec 2014 15:31:33 +0000 (15:31 +0000)]
do not print an empty order in case pkg_scripts is undefined
ok ajacoutot@
ajacoutot [Tue, 30 Dec 2014 14:46:33 +0000 (14:46 +0000)]
add_flags() does not need any action argument.
Use the flags variable instead of hardcoding the output in preparation for
further subcommands.
jsg [Tue, 30 Dec 2014 11:45:31 +0000 (11:45 +0000)]
Remove redundant md memcpy.S and memmove.S lines. The mi config
definitions will find the md .S files for these.
kettenis [Tue, 30 Dec 2014 11:26:48 +0000 (11:26 +0000)]
Fix handling of R_MIPS_REL32_64 relocations that reference a symbol.
Fixes remaining problems with static PIE on mips64.
dlg [Tue, 30 Dec 2014 11:08:59 +0000 (11:08 +0000)]
add __bounded as appropriate.
looks good to deraadt@ miod@ and tedu@
schwarze [Tue, 30 Dec 2014 10:28:56 +0000 (10:28 +0000)]
Test the weird construct of a user-defined macro starting (but not
ending!) the definition of another user defined macro.
Mandoc already handles this correctly, make sure it won't get broken.
tedu [Tue, 30 Dec 2014 10:27:24 +0000 (10:27 +0000)]
copy bcrypt autotune from encrypt(1) and expose via crypt_newhash
ok deraadt miod
schwarze [Tue, 30 Dec 2014 08:52:55 +0000 (08:52 +0000)]
let the "make groff" maintainer target show groff warnings
jsg [Tue, 30 Dec 2014 08:12:52 +0000 (08:12 +0000)]
unifdef __APCS_26__ we don't run on anything with a 26 bit program counter.
This codepath was removed in the NetBSD code this is derived from back
in 2003 and was removed in Bitrig earlier this year. No binary change.
krw [Tue, 30 Dec 2014 04:00:33 +0000 (04:00 +0000)]
Rework disklabel reading taskq to plug holes pointed out by jsing@.
Diff from dlg@.
ok jsing@
djm [Tue, 30 Dec 2014 01:41:43 +0000 (01:41 +0000)]
typo in comment: ouput => output
aoyama [Mon, 29 Dec 2014 22:01:19 +0000 (22:01 +0000)]
regen
aoyama [Mon, 29 Dec 2014 21:55:10 +0000 (21:55 +0000)]
Add audio(4) related entries.
ok miod@
millert [Mon, 29 Dec 2014 20:39:27 +0000 (20:39 +0000)]
Minor cleanup:
o doreply() just calls build_reply()
o remove a few dead stores and useless variables
o use the asprintf() return value
OK deraadt@
kettenis [Mon, 29 Dec 2014 20:18:20 +0000 (20:18 +0000)]
Make the PLT read-only on powerpc as well.
ok kurt@
naddy [Mon, 29 Dec 2014 20:16:58 +0000 (20:16 +0000)]
* Ukrainian airports; from Alexey Suslikov
* add Tampere; from Timo Myyra
kettenis [Mon, 29 Dec 2014 19:33:34 +0000 (19:33 +0000)]
Toggle the TX_RING_KICK_WRAP bit when appropriate.
tedu [Mon, 29 Dec 2014 17:07:17 +0000 (17:07 +0000)]
impose some limits on the ideal rounds so nothing too crazy happens when
the clock results are weird
deraadt [Mon, 29 Dec 2014 17:04:19 +0000 (17:04 +0000)]
encrypt is now built into instbin, do not need to use the /mnt version
tedu [Mon, 29 Dec 2014 16:55:44 +0000 (16:55 +0000)]
switch encrypt to auto scaling bcrypt rounds. ok deraadt
tedu [Mon, 29 Dec 2014 16:12:59 +0000 (16:12 +0000)]
don't leak timing info about padding errors by generating a fake key
afterwards. openssl has a more complicated fix, but it's less intrusive
for now to simply hoist the expensive part (fake key generation) up without
sweating a branch or two.
ok bcook jsing
schwarze [Mon, 29 Dec 2014 15:09:00 +0000 (15:09 +0000)]
document ordering more explicitly;
feedback and ok ajacoutot@ rpe@
tedu [Mon, 29 Dec 2014 14:35:04 +0000 (14:35 +0000)]
useless change. overwriting the nul byte with a newline means b64_ntop
can use the whole buffer, even the last byte.
tedu [Mon, 29 Dec 2014 14:23:17 +0000 (14:23 +0000)]
rename fingerprint struct field. no longer exposed to users, but since it's
not technically a fingerprint as others understand the term, pick another.
now it's a keynum!
after an email from Florian Weimer
tedu [Mon, 29 Dec 2014 14:16:04 +0000 (14:16 +0000)]
remove the inspect debug command. should not be used by users, who are not
supposed to know what fingerprints are or that they exist.
mpi [Mon, 29 Dec 2014 11:53:58 +0000 (11:53 +0000)]
Assert that rtrequest1(9) is always called at IPL_SOFTNET instead of
doing a spl dance.
This matters for RTM_DELETE because a deleted route entry is always
returned without having its reference counter increased when an `rtp'
argument is given. In this case, we do not want to call splx() that
might free this route.
Inputs from millert@, ok blambert@, mikeb@
ajacoutot [Mon, 29 Dec 2014 11:17:43 +0000 (11:17 +0000)]
Add line continuation to be consistent with rc_pre(); ok sthen@
ajacoutot [Mon, 29 Dec 2014 11:17:05 +0000 (11:17 +0000)]
pexp is not needed; ok sthen@
jsg [Mon, 29 Dec 2014 10:25:51 +0000 (10:25 +0000)]
sync
jasper [Mon, 29 Dec 2014 07:37:27 +0000 (07:37 +0000)]
re-add missing space in confirm prompt that got lost in -r1.18
ok espie@
miod [Mon, 29 Dec 2014 05:29:27 +0000 (05:29 +0000)]
Explicitely include <uvm/uvm_extern.h> in order to build on variable page size
architectures.
brad [Mon, 29 Dec 2014 02:39:33 +0000 (02:39 +0000)]
Some missing break's.
brad [Mon, 29 Dec 2014 02:33:13 +0000 (02:33 +0000)]
Some cleaning up of the ioctl handling bits to bring things in line
with the other drivers.
brad [Mon, 29 Dec 2014 00:46:01 +0000 (00:46 +0000)]
Some cleaning up of the ioctl handling bits to bring things in line
with the other drivers.
kettenis [Mon, 29 Dec 2014 00:30:31 +0000 (00:30 +0000)]
It sends and receives packets (until we run out of the initial receive blocks).
krw [Sun, 28 Dec 2014 21:32:44 +0000 (21:32 +0000)]
The greatest happiness is to scatter inferiour APIs, to drive them
before you, to see their files reduced to ashes, to see those who
love them shrouded in tears, and to gather into your API all their
invocations.
In other words, workq is no more. There is only taskq.
ok kettenis@ dlg@ (creator of taskq) jmc@
jmc [Sun, 28 Dec 2014 21:07:41 +0000 (21:07 +0000)]
spelling fix; from daria suchecka via krzystof warzecha
kettenis [Sun, 28 Dec 2014 20:46:23 +0000 (20:46 +0000)]
Fairly complete Rx path hardware initialization.
krw [Sun, 28 Dec 2014 18:32:12 +0000 (18:32 +0000)]
Replace last workq in tree (reading disklabels from newly attached
disks) with taskq. Diff originally from blambert@.
ok kettenis@
jsing [Sun, 28 Dec 2014 16:51:31 +0000 (16:51 +0000)]
Fix subtle typo.
jsing [Sun, 28 Dec 2014 16:34:23 +0000 (16:34 +0000)]
Add regress tests for default option handling.
jsing [Sun, 28 Dec 2014 16:33:34 +0000 (16:33 +0000)]
Allow a default option to be specified by having a NULL name, but a valid
option type. In this case process the option as per normal.
jsing [Sun, 28 Dec 2014 16:24:48 +0000 (16:24 +0000)]
Add regress tests for multiple argument callback functions.
jsing [Sun, 28 Dec 2014 16:22:37 +0000 (16:22 +0000)]
Provide an option type that allows for a callback function to consume an
arbitrary number of arguments. This will allow for more complex option
handling as required by some of the openssl(1) applications.
jsing [Sun, 28 Dec 2014 16:11:54 +0000 (16:11 +0000)]
Add option parsing regress tests with end of options handling.
jsing [Sun, 28 Dec 2014 16:10:33 +0000 (16:10 +0000)]
Teach option parsing that a single hyphen denotes the end of named options
(as currently only implemented by some of the openssl(1) applications).
jsing [Sun, 28 Dec 2014 15:49:36 +0000 (15:49 +0000)]
Add regress tests for option parsing with multiple unnamed arguments.
jsing [Sun, 28 Dec 2014 15:48:52 +0000 (15:48 +0000)]
Provide a mechanism for option parsing to return the number of arguments
that it has consumed. This allows for the handling of multiple unnamed
arguments, including lists of filenames.
matthieu [Sun, 28 Dec 2014 15:24:08 +0000 (15:24 +0000)]
Attach USB HID devices from the Generic Destop page, usage pointer to
ums. This is how the USB Tablet from Qemu in libvirt/kvm shows up and
it works with ums(4). ok mpi@
schwarze [Sun, 28 Dec 2014 15:22:42 +0000 (15:22 +0000)]
Improve documentation of the header/footer macros .Dt, .Os, .TH:
* State the defaults for .Os and the fourth .TH argument.
* Sync the section titles, and stop advertising obscure sections that
aren't actually fully supported and certainly not recommended for use.
jsing [Sun, 28 Dec 2014 15:07:52 +0000 (15:07 +0000)]
Update regress to match change in unnamed argument handling.
jsing [Sun, 28 Dec 2014 15:05:38 +0000 (15:05 +0000)]
Only accept a single unnamed argument - the existing behaviour is to
silently accept multiple unnamed arguments, ignoring all except the last.
This behaviour was already inconsistent between openssl(1) applications;
apply the principal of least surprise. This will also simplify the addition
of upcoming functionality.
jsing [Sun, 28 Dec 2014 14:50:15 +0000 (14:50 +0000)]
Slightly simplify options parsing logic.
schwarze [Sun, 28 Dec 2014 14:39:08 +0000 (14:39 +0000)]
mdoc(7) already uses the mandoc(1) -Ios argument in the footer line
when .Os has no argument, so do the same for man(7) when .TH has less
than four arguments; there is no reason to treat both differently.
Issue found following a question from Thomas Klausner <wiz at NetBSD>.
jsing [Sun, 28 Dec 2014 14:22:46 +0000 (14:22 +0000)]
Update options regress to match option function pointer change.
jsing [Sun, 28 Dec 2014 14:21:42 +0000 (14:21 +0000)]
Provide two different function pointers for option function callbacks. This
allows for simpler code in the common cases and will allow for further
extension to support the complex cases.
jsg [Sun, 28 Dec 2014 14:20:37 +0000 (14:20 +0000)]
remove a surplus argument to printf caught by -Wformat
ok claudio@
claudio [Sun, 28 Dec 2014 14:19:31 +0000 (14:19 +0000)]
Unbreak the tree. Looks like tedu did not tedu enough when killing KPDK
support.
schwarze [Sun, 28 Dec 2014 14:16:07 +0000 (14:16 +0000)]
improve previous: do the size check up front to avoid leaking memory
bluhm [Sun, 28 Dec 2014 14:08:01 +0000 (14:08 +0000)]
Add regression tests where OpenBSD syslogd is sending messages to
rsyslogd from ports. If the rsyslog package is installed, rsyslogd
is used as drain to test interoperability. This will be especially
useful for syslog via TCP and TLS.
jsing [Sun, 28 Dec 2014 14:01:33 +0000 (14:01 +0000)]
Provide initial regress tests for the complex option parsing that is needed
for openssl(1), which is also variable in behaviour between applications
(and currently inconsistent).
jsg [Sun, 28 Dec 2014 13:55:30 +0000 (13:55 +0000)]
mask with & not &&
ok claudio@
reyk [Sun, 28 Dec 2014 13:55:22 +0000 (13:55 +0000)]
Change the default ext_addr from "egress" to "*". Listening on the
egress group only works if you have a default route; this confused
some people.
reyk [Sun, 28 Dec 2014 13:53:23 +0000 (13:53 +0000)]
Change the default example from "listen on egress" to "listen on *".
Listening on the egress group only works if you have a default route;
this confused some people.
aoyama [Sun, 28 Dec 2014 13:03:18 +0000 (13:03 +0000)]
Add an audio driver, necsb(4), for NEC PC-9801-86 sound board on
cbus(4).
This work is based on the source code of NetBSD/pc98, an unofficial
NetBSD port for NEC PC-9801 series, written about 16 years ago.
Thanks to NetBSD/pc98 porting staff for their work, especially NAGAO
Tadaaki and N. Honda who wrote the original driver.
ok miod@