wiz
57a81568cf
bump year
2014-11-14 22:46:34 +00:00
riastradh
995f5ce060
Commit to returning 1, not any nonzero value.
2014-11-14 16:43:57 +00:00
christos
d2ea5f1a49
add strnstr.c from FreeBSD
2014-09-24 22:21:33 +00:00
wiz
eb81de5e86
NUL byte instead of null byte.
2014-09-24 18:43:21 +00:00
christos
155fdf3987
add strnstr from FreeBSD
2014-09-24 18:16:36 +00:00
lneto
4ab4902eb2
lua: updated from 5.1 to 5.3 work3
...
* lua(1):
- changed lua_Integer to intmax_t
- updated distrib/sets/lists and etc/mtree
- updated bsd.lua.mk
- fixed bozohttpd (lua-bozo.c)
- compatibilized bindings: gpio, sqlite
* lua(4):
- removed floating-point and libc dependencies using '#ifndef _KERNEL'
- fixed division by zero and exponentiation
- libkern: added isalnum(), iscntrl(), isgraph(), isprint() and ispunct()
- acpica: removed isprint() from acnetbsd.h
- libc: moved strcspn.c, strpbrk.c and strspn.c to common
- removed stub headers
- compatibilized bindings: luapmf, luasystm
* reorganized luaconf.h
* updated doc/CHANGES and doc/RESPONSIBLE
2014-07-19 18:38:33 +00:00
shm
11ea949f80
PR/42032 fixed overrun in bm_exec(), free(3) clean ups
2014-06-23 10:43:25 +00:00
christos
6ddea99505
moved to common
2013-12-27 20:25:11 +00:00
tron
27c36eab53
Fix build problems.
2013-11-06 21:05:27 +00:00
joerg
08a6753cbd
Missing alias for strerror_l.
2013-09-02 07:59:32 +00:00
riastradh
495fdb7e9a
Make explicit_memset match memset's return value.
2013-08-28 15:46:23 +00:00
riastradh
cc79193075
Fix sense of consttime_memequal and update all callers.
...
Now it returns true (nonzero) to mean equal and false (zero) to mean
inequal, as the name suggests.
As promised on tech-userlevel back in June:
https://mail-index.netbsd.org/tech-userlevel/2013/06/24/msg007843.html
2013-08-28 15:24:41 +00:00
joerg
7efdee83f2
Add strerror_l.
2013-08-19 13:03:12 +00:00
joerg
6dd204a623
GC __indr_reference wrappers.
2013-08-19 10:59:39 +00:00
wiz
ec0c2a14eb
Fix xref.
2013-06-24 07:56:49 +00:00
riastradh
82db4b9858
Replace consttime_bcmp/explicit_bzero by consttime_memequal/explicit_memset.
...
consttime_memequal is the same as the old consttime_bcmp.
explicit_memset is to memset as explicit_bzero was to bcmp.
Passes amd64 release and i386/ALL, but I'm sure I missed some spots,
so please let me know.
2013-06-24 04:21:19 +00:00
riastradh
d1790daeea
Add consttime_bcmp(3) and explicit_bzero(3) to makefile and set lists.
2013-06-24 01:12:08 +00:00
riastradh
75f5a58349
Add man pages and xrefs for consttime_bcmp and explicit_bzero.
...
ok wiz
2013-06-23 16:44:06 +00:00
joerg
e0ac190e1e
Provide explicit LC_C_LOCALE accessor and drop the various NULL checks.
...
Provide LC_GLOBAL_LOCALE in a way that works with all locale functions.
Merge constant data used by the initial global locale and the C locale.
Drop function call layer for _current_locale() and directly return the
locale reference, not a pointer to it. Use protected access for global
variables, so that libc references can avoid the GOT overhead.
2013-05-17 12:55:56 +00:00
joerg
e81d3f1ebf
Add dummy strcoll_l and strxfrm_l.
2013-04-19 23:28:47 +00:00
joerg
10e0e4a06b
Add wcscoll_l, wcsxfrm_l, wcsncasecmp_l, wcscasecmp_l, btowc_l,
...
mbrlen_l, mbsinit_l, mbsrtowcs_l, wcrtomb_l, wcsrtombs_l and wctob_l.
2013-04-18 23:24:26 +00:00
wiz
695c00c96b
Add "wide" to description. From OpenBSD via Ingo Schwarze.
2012-12-28 13:53:12 +00:00
drochner
8588929dc5
Add "consttime_bcmp" and "explicit_bzero" functions for both kernel
...
abd userland, as proposed on tech-security, with explicit_bzero using
a volatile function pointer as suggested by Alan Barrett.
Both do what the name says. For userland, both are prefixed by "__"
to keep them out of the user namespace.
Change some memset/memcmp uses to the new functions where it makes
sense -- these are just some examples, more to come.
2012-08-30 12:16:48 +00:00
abs
9e66e6d75e
Update old-style definitions to ANSI, remove a couple of register
...
definitions along the way. Fixed gcc 4.1 build (thank you vax)
2012-06-25 22:32:43 +00:00
dholland
d66ac51d84
Mark these obsolete as well.
2012-05-05 21:24:19 +00:00
dholland
cf2f172048
Bump date for previous.
2012-05-05 21:18:43 +00:00
dholland
aa368b88e1
Describe these as obsolete.
2012-05-05 21:14:55 +00:00
christos
79f2de1232
size_t -> uint8_t
2012-03-21 00:35:50 +00:00
matt
504f867176
Use C89 Prototypes.
...
Remove use of __P
2012-03-20 17:44:17 +00:00
joerg
b05af17f87
If we have to cast, do it properly.
2011-11-25 17:48:22 +00:00
dholland
58632c2b81
Use CHAR_BIT; don't hardwire 8. Fix logic slightly to work with arbitrary
...
CHAR_BIT. Compiler output unchanged (on amd64).
2011-11-25 16:46:56 +00:00
tron
de9ace2de1
Add explicit casts to make lint happy and fix the NetBSD/i386 build.
2011-11-25 09:00:51 +00:00
joerg
d22a7f54f9
In wcscspn and wcspbrk, handle set size of 0 and 1 explicitly.
...
For larger sets, use a bloom filter to avoid the inner loop for most of
the input. The current implementation uses a simple modular hash as
first function (well suited for input e.g. in ISO Latin character sets)
and a more complex multiplicative hash as second function with a filter
size of 512 Bit. This reduces the typical run time to O(n+m).
2011-11-24 18:44:25 +00:00
joerg
64680c6b13
Handle simple cases (strlen(charset) <= 1) more efficiently.
2011-11-22 00:37:09 +00:00
joerg
7e173c1846
Clean up a bit in preparation for more serious changes
2011-11-21 15:02:48 +00:00
jym
b0471da334
Make strnlen(3) accessible in kernel. ok christos@.
2011-09-01 22:35:17 +00:00
dholland
75fea7f548
Add patch from Klaus Klein in PR 45258 to note that popcount32/64
...
require <stdint.h>.
2011-08-22 01:36:04 +00:00
martin
27868e15e9
Special-case the (unlikely in practice) call with len = 2 - previously
...
the code would not have swapped anything. Problem pointed out by
sparc64 automatic test run.
2011-01-04 17:14:07 +00:00
wiz
3d3c5d42cb
Observe the following spelling:
...
- wide character (noun)
- wide-character (adjective)
Inspired by jmc@OpenBSD.
2010-12-16 17:42:25 +00:00
wiz
ecad7beb9c
Bump date.
2010-10-25 07:37:11 +00:00
dholland
6d14a316d9
Mention err/warn. Note that they're generally preferred to perror().
...
Might want to strengthen the wording.
2010-10-24 23:10:51 +00:00
christos
6540fba480
consistency with c source
2010-07-05 00:45:19 +00:00
jruoho
c6d218be32
.Nm -> .Fn.
2010-04-30 03:52:13 +00:00
jruoho
6adec4717c
Fix markup.
2010-04-29 17:17:18 +00:00
wiz
3292536e4b
Add punctuation.
2010-04-29 07:27:30 +00:00
jruoho
157d0c3eea
Add some STANDARDS lingo, mainly to note the functions that have been
...
removed from POSIX (2008).
2010-04-29 06:54:26 +00:00
jruoho
8cd9bb9479
Note the recent changes.
2010-04-29 05:42:04 +00:00
jruoho
2da6d4a4d9
Only put the actual header for the .In line.
2010-04-28 07:47:09 +00:00
jruoho
494f19760f
Reference ffs32(3). Also note POSIX compliance and the movement of the
...
header from <string.h> to <strings.h>.
2010-04-28 07:44:04 +00:00
apb
67ca6b24d2
The number of byte pairs to swap is len/2, not len/2+1.
2010-04-18 11:39:39 +00:00