openbsd
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

9 years agooops, i was not supposed to disable mwait. found by stsp
tedu [Fri, 12 Dec 2014 16:51:32 +0000 (16:51 +0000)]
oops, i was not supposed to disable mwait. found by stsp

9 years agoLike previously done in relayd, change the keyword "ssl" to "tls" to
reyk [Fri, 12 Dec 2014 14:45:59 +0000 (14:45 +0000)]
Like previously done in relayd, change the keyword "ssl" to "tls" to
reflect reality.

OK benno@

9 years agomarkup fixes, and repair some wrong argument types while here;
schwarze [Fri, 12 Dec 2014 14:23:17 +0000 (14:23 +0000)]
markup fixes, and repair some wrong argument types while here;
from Kaspars at Bankovskis dot net

9 years agoIncrease cipher suite test coverage by including all cipher suites that
jsing [Fri, 12 Dec 2014 12:23:35 +0000 (12:23 +0000)]
Increase cipher suite test coverage by including all cipher suites that
use RSA authentication, rather than only those that use RSA key exchange.

9 years agoChange the keyword "ssl" to "tls" to reflect reality since we
reyk [Fri, 12 Dec 2014 10:05:09 +0000 (10:05 +0000)]
Change the keyword "ssl" to "tls" to reflect reality since we
effectively disabled support for the SSL protocols.  SSL remains a
common term describing SSL/TLS, there is some controvery about this
change, and the name really doesn't matter, but I feel confident about
it now.

(btw., sthen@ pointed out some historical context:
http://tim.dierks.org/2014/05/security-standards-and-name-changes-in.html)

OK benno@, with input from tedu@

9 years agoput global_ptrace here too so users know how to spell it. poke by jmc
tedu [Fri, 12 Dec 2014 08:42:48 +0000 (08:42 +0000)]
put global_ptrace here too so users know how to spell it. poke by jmc

9 years agosysctl kern.global_ptrace.
tedu [Fri, 12 Dec 2014 07:46:24 +0000 (07:46 +0000)]
sysctl kern.global_ptrace.
controls whether you can ptrace any process with appropriate privileges
or only one own's children.
ok deraadt

9 years agosysctl kern.global_ptrace.
tedu [Fri, 12 Dec 2014 07:45:46 +0000 (07:45 +0000)]
sysctl kern.global_ptrace.
controls whether you can ptrace any process with appropriate privileges
or only one own's children.
ok deraadt

9 years agoRange check the value of the base for typeset -i base x=y. Instead of
jsg [Fri, 12 Dec 2014 05:00:55 +0000 (05:00 +0000)]
Range check the value of the base for typeset -i base x=y.  Instead of
erroring for values outside of the range switch to base 10 to match the
behaviour of ksh93.  As we have a smaller digit alphabet than ksh93 the
accepted range is smaller (2-36) than ksh93 (2-64).  The other form
of setting a base, typeset -i x=base#y already has a range check that
errors (as ksh93 also does for that syntax).
Fixes a crash found with the afl fuzzer.

9 years agoBounds check the file path used in the 'w' command. Modified version
jsg [Fri, 12 Dec 2014 03:32:55 +0000 (03:32 +0000)]
Bounds check the file path used in the 'w' command.  Modified version
of a diff from Sebastien Marie to prevent a crash found by Sebastien
with the afl fuzzer.

9 years agoRework the pointer swap in the 'P' command to make the intent
jsg [Fri, 12 Dec 2014 03:22:35 +0000 (03:22 +0000)]
Rework the pointer swap in the 'P' command to make the intent
clearer and avoid a crash on 'g;P' found by Sebastien Marie with
the afl fuzzer.

9 years agosysctl_proc_vmmap(): Allow retrieving "self" VM mapping without privilege.
uebayasi [Fri, 12 Dec 2014 03:04:11 +0000 (03:04 +0000)]
sysctl_proc_vmmap(): Allow retrieving "self" VM mapping without privilege.

Previous version OK'ed by tedu@ deraadt@

9 years agoXr getdtablecount
deraadt [Fri, 12 Dec 2014 01:40:04 +0000 (01:40 +0000)]
Xr getdtablecount

9 years agorevert chunk I didn't mean to commit yet; via jmc@
djm [Fri, 12 Dec 2014 00:02:17 +0000 (00:02 +0000)]
revert chunk I didn't mean to commit yet; via jmc@

9 years agoupdate swab() to match the current posix definition. "rationale: none."
tedu [Thu, 11 Dec 2014 23:05:38 +0000 (23:05 +0000)]
update swab() to match the current posix definition. "rationale: none."
rewrite the function to be simpler as well. the compiler can unroll the
loop for us if necessary.
ok schwarze

9 years agosync
deraadt [Thu, 11 Dec 2014 21:16:35 +0000 (21:16 +0000)]
sync

9 years agowe do not need the complexity of an assembly swab function here.
tedu [Thu, 11 Dec 2014 20:41:08 +0000 (20:41 +0000)]
we do not need the complexity of an assembly swab function here.
ok deraadt

9 years agouse a local swapbytes function instead of relying on undefined
tedu [Thu, 11 Dec 2014 20:39:06 +0000 (20:39 +0000)]
use a local swapbytes function instead of relying on undefined
overlapping swab behavior. vaguely ok kettenis

9 years agoThe utwitch(4) driver was never added here. Obviously it belongs in the
deraadt [Thu, 11 Dec 2014 20:33:09 +0000 (20:33 +0000)]
The utwitch(4) driver was never added here.  Obviously it belongs in the
"Human Interface Devices" section.

9 years agoDo not blindly dereference hw_vendor and hw_prod without checking them for
miod [Thu, 11 Dec 2014 20:24:48 +0000 (20:24 +0000)]
Do not blindly dereference hw_vendor and hw_prod without checking them for
NULL first, for they are not guaranteed to be allocated.
Found the hard way by Tobias Stoeckmann; ok deraadt@

9 years agoFix previous:
schwarze [Thu, 11 Dec 2014 20:24:05 +0000 (20:24 +0000)]
Fix previous:
As pointed out by stsp@, LC_CTYPE *does* affect the ctype.h functions.
Use a wording similar to a suggestion by deraadt@.
Feedback and OK jmc@, OK stsp@.

9 years agoslightly reshuffle some code to reduce the diff with portable;
schwarze [Thu, 11 Dec 2014 19:50:04 +0000 (19:50 +0000)]
slightly reshuffle some code to reduce the diff with portable;
no functional change

9 years agoregen
tedu [Thu, 11 Dec 2014 19:48:38 +0000 (19:48 +0000)]
regen

9 years agoremove urio
tedu [Thu, 11 Dec 2014 19:48:02 +0000 (19:48 +0000)]
remove urio

9 years agoremove urio
tedu [Thu, 11 Dec 2014 19:46:15 +0000 (19:46 +0000)]
remove urio

9 years agourio has been removed
tedu [Thu, 11 Dec 2014 19:45:28 +0000 (19:45 +0000)]
urio has been removed

9 years agodragonflybsd has added a urio driver. conservation of urios requires
tedu [Thu, 11 Dec 2014 19:44:16 +0000 (19:44 +0000)]
dragonflybsd has added a urio driver. conservation of urios requires
that we delete ours, which isn't actually useful.
ok mpi sthen

9 years agoconvert bcopy to memcpy/memmove. ok krw
tedu [Thu, 11 Dec 2014 19:21:57 +0000 (19:21 +0000)]
convert bcopy to memcpy/memmove. ok krw

9 years agoMake sure you'll never look at stack garbage, prodded by kettenis@.
mpi [Thu, 11 Dec 2014 18:55:15 +0000 (18:55 +0000)]
Make sure you'll never look at stack garbage, prodded by kettenis@.

9 years agoHandle UPSes with broken report descriptors.
mpi [Thu, 11 Dec 2014 18:50:32 +0000 (18:50 +0000)]
Handle UPSes with broken report descriptors.

As reported by David Higgs some UPSes might send fewer bytes than
requested.  When such thing happens, do like apcupsd and adjust
the size of the given descriptor.

Based on a diff provided by David Higgs, thanks!

9 years agoChange uhidev(4) set/get report functions in various way.
mpi [Thu, 11 Dec 2014 18:39:27 +0000 (18:39 +0000)]
Change uhidev(4) set/get report functions in various way.

Always pass the parent uhidev(4) descriptor corresponding to the single
USB device with multiple reportIDs instead of a child.

Make uhidev_get_report() aware of non NUL reportID by prepending a byte
to the given buffer, just like uhidev_set_report{,async}() already do.

Return the number of bytes written or read upon success and -1 otherwise.
This allow callers to deal with short reads without having do mess with
xfer error codes madness.

Reviewed and tested by David Higgs.

9 years agoWhen scanning backwards for the last dot in a filename,
schwarze [Thu, 11 Dec 2014 17:06:55 +0000 (17:06 +0000)]
When scanning backwards for the last dot in a filename,
stop at the '/' marking the beginning of the filename.
This allows to configure a Content-Type for a filename without a dot.
OK reyk@

9 years agomerge conflicts
brad [Thu, 11 Dec 2014 16:26:58 +0000 (16:26 +0000)]
merge conflicts

9 years agoRemove an undocumented limit on the length of the pattern and string
millert [Thu, 11 Dec 2014 16:25:34 +0000 (16:25 +0000)]
Remove an undocumented limit on the length of the pattern and string
to match of PATH_MAX.  As fnmatch() is used for matching more than
just pathnames, this can prevent legitimate matches for long strings
or partterns.  OK miod@ tedu@

9 years agoupdate to Unbound 1.5.1, ok sthen@
brad [Thu, 11 Dec 2014 16:17:58 +0000 (16:17 +0000)]
update to Unbound 1.5.1, ok sthen@

9 years agotypos; from kaspars bankovskis
jmc [Thu, 11 Dec 2014 14:33:48 +0000 (14:33 +0000)]
typos; from kaspars bankovskis

9 years agoaccording to kaspars bankovskis, allocbuf was removed in -r1.88
jmc [Thu, 11 Dec 2014 14:29:42 +0000 (14:29 +0000)]
according to kaspars bankovskis, allocbuf was removed in -r1.88
of sys/kern/vfs_bio.c;

9 years agoDelete #ifdef'd code that hasn't been compiled in years from sparc64 ofwboot.
stsp [Thu, 11 Dec 2014 10:52:07 +0000 (10:52 +0000)]
Delete #ifdef'd code that hasn't been compiled in years from sparc64 ofwboot.
ok miod@

9 years agoDo not change the interface of a route if it is not intended.
mpi [Thu, 11 Dec 2014 08:55:10 +0000 (08:55 +0000)]
Do not change the interface of a route if it is not intended.

When a route change message is submitted, looks for a new ifa to attach
the route only if a gateway, an ifp or an ifa has been specified.

Fix a regression reported by Florian Riehm, ok bluhm@.

9 years agoDo not use "struct route" when it is not necessary.
mpi [Thu, 11 Dec 2014 08:45:44 +0000 (08:45 +0000)]
Do not use "struct route" when it is not necessary.

This structure is now only used to pass a cached route entry to
ip{6,}_output() which will be converted shortly.

With inputs from millert@, ok bluhm@

9 years agoexplicitly include sys/param.h in files that use the howmany() macro;
djm [Thu, 11 Dec 2014 08:20:09 +0000 (08:20 +0000)]
explicitly include sys/param.h in files that use the howmany() macro;
from portable

9 years agoMake quotactlcmd formatting consistent with others
guenther [Thu, 11 Dec 2014 05:44:12 +0000 (05:44 +0000)]
Make quotactlcmd formatting consistent with others
Fix some indentation in the generated .c file

9 years agomention AuthorizedKeysCommandUser must be set for
djm [Thu, 11 Dec 2014 05:25:06 +0000 (05:25 +0000)]
mention AuthorizedKeysCommandUser must be set for
AuthorizedKeysCommand to be run; bz#2287

9 years agoshow in debug output which hostkeys are being tried when attempting
djm [Thu, 11 Dec 2014 05:13:28 +0000 (05:13 +0000)]
show in debug output which hostkeys are being tried when attempting
hostbased auth; patch from Iain Morgan

9 years agoMake manual reflect reality:
djm [Thu, 11 Dec 2014 04:16:14 +0000 (04:16 +0000)]
Make manual reflect reality:
sftp-server's -d option accepts a "%d" option, not a "%h" one.

bz#2316; reported by Kirk Wolf

9 years agoHISTORY correction: v7, not v6.
schwarze [Wed, 10 Dec 2014 21:15:30 +0000 (21:15 +0000)]
HISTORY correction: v7, not v6.
Facts checked by Kaspars Bankovskis using tuhs.org archives.
The commit introducing the claim that it was in v6 (by
Keith Bostic on June 9, 1993) does not cite any sources:
http://svnweb.freebsd.org/csrg?view=revision&revision=62961

9 years agoadd missing sentence to RETURN VALUES; from Kaspars at Bankovskis dot net
schwarze [Wed, 10 Dec 2014 19:46:48 +0000 (19:46 +0000)]
add missing sentence to RETURN VALUES; from Kaspars at Bankovskis dot net

9 years agosync
deraadt [Wed, 10 Dec 2014 19:45:32 +0000 (19:45 +0000)]
sync

9 years agoThe macros endtoken and isgood aren't used anywhere... zap them and
tobias [Wed, 10 Dec 2014 19:44:21 +0000 (19:44 +0000)]
The macros endtoken and isgood aren't used anywhere... zap them and
their data structures.

ok jsg, millert

9 years agoIf default file descriptors (0, 1, 2) have to be assigned to /dev/null,
tobias [Wed, 10 Dec 2014 19:42:14 +0000 (19:42 +0000)]
If default file descriptors (0, 1, 2) have to be assigned to /dev/null,
don't accidentally assign 3, too.

ok millert, with input by and ok bluhm

9 years agoFile descriptors are of type int, not short. While at it, adjust remaining
tobias [Wed, 10 Dec 2014 19:40:21 +0000 (19:40 +0000)]
File descriptors are of type int, not short.  While at it, adjust remaining
short to int too -- there are no space savings anymore, as stated by millert.

ok bluhm, millert

9 years agouse .Rv and simplify wording; from Kaspars at Bankovskis dot net
schwarze [Wed, 10 Dec 2014 19:30:22 +0000 (19:30 +0000)]
use .Rv and simplify wording; from Kaspars at Bankovskis dot net

9 years agouse .Rv; no change of meaning; from Kaspars at Bankovskis dot net
schwarze [Wed, 10 Dec 2014 19:19:00 +0000 (19:19 +0000)]
use .Rv; no change of meaning; from Kaspars at Bankovskis dot net

9 years agossl3_init_finished_mac() calls BIO_new() which can fail since it in turn
jsing [Wed, 10 Dec 2014 15:43:31 +0000 (15:43 +0000)]
ssl3_init_finished_mac() calls BIO_new() which can fail since it in turn
calls malloc(). Instead of silently continuing on failure, check the return
value of BIO_new() and propagate failure back to the caller for appropriate
handling.

ok bcook@

9 years agoRemove support for GOST R 34.10-94 signature authentication, along with
jsing [Wed, 10 Dec 2014 15:36:46 +0000 (15:36 +0000)]
Remove support for GOST R 34.10-94 signature authentication, along with
the two ciphersuites that use it. GOST94 public/private keys have been
long obsoleted and libcrypto does not have support for them anyway.

Discussed with Dmitry Eremin-Solenikov.

9 years agoretire shutdown hooks; ok deraadt, krw
mikeb [Wed, 10 Dec 2014 15:29:52 +0000 (15:29 +0000)]
retire shutdown hooks; ok deraadt, krw

9 years agoAdd ALPN support to openssl(1).
jsing [Wed, 10 Dec 2014 15:24:01 +0000 (15:24 +0000)]
Add ALPN support to openssl(1).

Based on OpenSSL.

9 years agoAdd regress for ALPN.
jsing [Wed, 10 Dec 2014 15:06:50 +0000 (15:06 +0000)]
Add regress for ALPN.

Based on OpenSSL.

9 years agolibssl major++
jsing [Wed, 10 Dec 2014 14:59:32 +0000 (14:59 +0000)]
libssl major++

9 years agoAdd support for ALPN.
jsing [Wed, 10 Dec 2014 14:58:56 +0000 (14:58 +0000)]
Add support for ALPN.

Based on OpenSSL and BoringSSL.

ok bcook@

9 years agoadd stdint.h to ssl.h.
bcook [Wed, 10 Dec 2014 14:51:00 +0000 (14:51 +0000)]
add stdint.h to ssl.h.

ok jsing@

9 years agoAdd an unmute quirk for HP machines with the IDT 92HD75B1/2 codec.
jsg [Wed, 10 Dec 2014 14:18:11 +0000 (14:18 +0000)]
Add an unmute quirk for HP machines with the IDT 92HD75B1/2 codec.
From Alessandro DE LAURENZIS, who requires this to get sound
out of the speakers on a Compaq 610 laptop.  Other machines such as
the HP Mini 1000 and HP Mini 5102 will likely benefit from this as well.

9 years agoIf pfctl cannot set a limit in the kernel, print the name of the
bluhm [Wed, 10 Dec 2014 13:59:29 +0000 (13:59 +0000)]
If pfctl cannot set a limit in the kernel, print the name of the
limit and the requested value.
OK henning@

9 years agoConvert watchdog(4) devices to use autoconf(9) framework.
mikeb [Wed, 10 Dec 2014 12:27:56 +0000 (12:27 +0000)]
Convert watchdog(4) devices to use autoconf(9) framework.

ok deraadt, tests on glxpcib and ok mpi

9 years agoTime to murder some smtpd's related XXX
giovanni [Wed, 10 Dec 2014 08:57:41 +0000 (08:57 +0000)]
Time to murder some smtpd's related XXX
ok rpe@ deraadt@

9 years agoimplementation no longer updates every 10 seconds; from william orr
jmc [Wed, 10 Dec 2014 07:36:38 +0000 (07:36 +0000)]
implementation no longer updates every 10 seconds; from william orr
ok mlarkin

9 years agono support for isapnp or eisa;
jmc [Wed, 10 Dec 2014 07:33:20 +0000 (07:33 +0000)]
no support for isapnp or eisa;
from alexey suslikov

9 years agoPrefer .In and .Rv -std
guenther [Wed, 10 Dec 2014 07:18:44 +0000 (07:18 +0000)]
Prefer .In and .Rv -std

9 years agoImprove the description and layout of the RUSAGE_* values, and do some
guenther [Wed, 10 Dec 2014 07:16:58 +0000 (07:16 +0000)]
Improve the description and layout of the RUSAGE_* values, and do some
general cleanup

diff from Kaspars Bankovskis (kaspars (at) bankovskis.net)
ok and tweaks schwarze@, jmc@

9 years agosync
deraadt [Wed, 10 Dec 2014 06:38:07 +0000 (06:38 +0000)]
sync

9 years agoenable skgpio(4)
jsg [Wed, 10 Dec 2014 05:50:58 +0000 (05:50 +0000)]
enable skgpio(4)

9 years agoAdd skgpio(4) a driver for the Soekris net6501 GPIO and LEDs
jsg [Wed, 10 Dec 2014 05:42:25 +0000 (05:42 +0000)]
Add skgpio(4) a driver for the Soekris net6501 GPIO and LEDs
from Matt Dainty.

9 years agoFix a potential integer overflow in pppd options file parsing.
jsg [Wed, 10 Dec 2014 03:39:54 +0000 (03:39 +0000)]
Fix a potential integer overflow in pppd options file parsing.
From Paul Mackerras in 7658e8257183f062dc01f87969c140707c7e52cb
This issue is CVE-2014-3158.

9 years agoSome sort regress test fixes. cksum no longer supports -o2.
daniel [Wed, 10 Dec 2014 03:15:59 +0000 (03:15 +0000)]
Some sort regress test fixes. cksum no longer supports -o2.

9 years agofix previous.
daniel [Wed, 10 Dec 2014 03:12:38 +0000 (03:12 +0000)]
fix previous.

9 years agoconvert bcopy to memcpy. ok millert
tedu [Wed, 10 Dec 2014 02:44:46 +0000 (02:44 +0000)]
convert bcopy to memcpy. ok millert

9 years agoReusing the same field for different things in different contexts may
krw [Wed, 10 Dec 2014 02:34:03 +0000 (02:34 +0000)]
Reusing the same field for different things in different contexts may
be clever, but it is definitely confusing. Use a flag IFI_VALID_LLADDR
to indicate that the ifi->hw_address field is valid, rather than
assuming ifi->linkstat does that. Add startup_time to record client
startup rather than using first_sending and hoping nobody else needs
it until link is complete.

9 years agobetter error value for invalid signature length
djm [Wed, 10 Dec 2014 01:24:09 +0000 (01:24 +0000)]
better error value for invalid signature length

9 years agoThe consensus is that RTM_IFINFO messages do not always carry the
krw [Wed, 10 Dec 2014 01:05:13 +0000 (01:05 +0000)]
The consensus is that RTM_IFINFO messages do not always carry the
latest information. So back off to using interface_status() to
directly query the interface when link status is in question. Partly
from Nathanael Rensen's original diff.

Also, while waiting for initial link, keep checking every second
rather than backing off to checking every (default) 60 seconds after
(default) 10 seconds.

9 years agoXr and Ox fixes;
jmc [Tue, 9 Dec 2014 21:55:39 +0000 (21:55 +0000)]
Xr and Ox fixes;

9 years agoFix division by zero for files with long lines (> 1024) in Plan B mode
tobias [Tue, 9 Dec 2014 20:28:43 +0000 (20:28 +0000)]
Fix division by zero for files with long lines (> 1024) in Plan B mode
by supporting arbitrarily long lines just like Plan A does.

ok tedu

9 years agorandom seed buffer must be unsigned
deraadt [Tue, 9 Dec 2014 19:50:26 +0000 (19:50 +0000)]
random seed buffer must be unsigned

9 years agoAdd pane_dead_status for exit status of dead panes.
nicm [Tue, 9 Dec 2014 19:23:35 +0000 (19:23 +0000)]
Add pane_dead_status for exit status of dead panes.

9 years agosync
deraadt [Tue, 9 Dec 2014 18:35:05 +0000 (18:35 +0000)]
sync

9 years agoCheck strlcpy(), strlcat(), and snprintf() return values in sparc64 ofwboot.
stsp [Tue, 9 Dec 2014 18:05:16 +0000 (18:05 +0000)]
Check strlcpy(), strlcat(), and snprintf() return values in sparc64 ofwboot.
tweak and ok millert@ miod@

9 years agoUse memmove() instead of strlcpy() for an overlapping string copy
millert [Tue, 9 Dec 2014 17:46:24 +0000 (17:46 +0000)]
Use memmove() instead of strlcpy() for an overlapping string copy
so we don't rely on undefined behavior.  OK deraadt@

9 years agoCatch up with the BPF_ALIGNMENT switch to the uint32_t.
mikeb [Tue, 9 Dec 2014 17:03:19 +0000 (17:03 +0000)]
Catch up with the BPF_ALIGNMENT switch to the uint32_t.

bpf aligns data following the datalink header (e.g. ethernet)
on the BPF_ALIGNMENT boundary.  Since rev1.41 of bpf.h it's
uint32_t instead of a long.  And also since then almost all
packets become "unaligned" from the tcpdump perspective and
require costly copies into the internal buffer.  Neither IP
header (struct ip) nor IPv6 (struct ip6_hdr) have fields
larger than 32 bits and therefore alignment requirements for
them are at most 32 bit.

ok millert, jsg, deraadt

9 years agoinit crmsg to something so it doesn't crash on invalid wtmp files.
tedu [Tue, 9 Dec 2014 15:40:23 +0000 (15:40 +0000)]
init crmsg to something so it doesn't crash on invalid wtmp files.
from david higgs

9 years agoput back some information what the character classes actually mean;
schwarze [Tue, 9 Dec 2014 15:37:13 +0000 (15:37 +0000)]
put back some information what the character classes actually mean;
while here, remove the lie that regex(3) character classes would
depend on the locale;
ok jmc@

9 years agoavoid void arithmetic. from david carlier
tedu [Tue, 9 Dec 2014 15:36:36 +0000 (15:36 +0000)]
avoid void arithmetic. from david carlier

9 years agoLC_CTYPE has no effect on ctype(3), but on wctype(3); ok jmc@
schwarze [Tue, 9 Dec 2014 15:32:23 +0000 (15:32 +0000)]
LC_CTYPE has no effect on ctype(3), but on wctype(3); ok jmc@

9 years agoLike libc, also for the kernel: Import new amd64 assembly versions of
reyk [Tue, 9 Dec 2014 15:13:57 +0000 (15:13 +0000)]
Like libc, also for the kernel: Import new amd64 assembly versions of
strchr/index, strrchr/rindex, and strlen that provide a significantly
faster performance than our previous .c or .S implementations.  Based
on NetBSD's code.

Tested with different amd64 CPUs.

ok deraadt@ mikeb@

9 years agoImport new amd64 assembly versions of strchr/index, strrchr/rindex,
reyk [Tue, 9 Dec 2014 15:10:39 +0000 (15:10 +0000)]
Import new amd64 assembly versions of strchr/index, strrchr/rindex,
and strlen that provide a significantly faster performance than our
previous .c or .S implementations.  Based on NetBSD's code.

Tested with different amd64 CPUs.

ok deraadt@ mikeb@

9 years agono more string(3);
jmc [Tue, 9 Dec 2014 14:41:00 +0000 (14:41 +0000)]
no more string(3);

9 years agono more ctype(3);
jmc [Tue, 9 Dec 2014 14:39:37 +0000 (14:39 +0000)]
no more ctype(3);