newlib-cygwin/newlib/libc/string
Sebastian Huber 55c239d834 Add timingsafe_memcmp()
This function is used by LibreSSL and OpenSSH and is provided by the
OpenBSD libc.

	* libc/include/string.h (timingsafe_memcmp): Declare.
	* libc/string/timingsafe_memcmp.c: New file.
	* libc/string/Makefile.am: Add new file.
	* libc/string/Makefile.in: Regenerate.
2016-03-18 12:33:40 +01:00
..
Makefile.am Add timingsafe_memcmp() 2016-03-18 12:33:40 +01:00
Makefile.in Add timingsafe_memcmp() 2016-03-18 12:33:40 +01:00
bcmp.c 2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-08-23 12:01:51 +00:00
bcopy.c 2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-08-23 12:01:51 +00:00
bzero.c 2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-08-23 12:01:51 +00:00
explicit_bzero.c Add explicit_bzero() 2016-03-18 12:33:40 +01:00
gnu_basename.c Fix compile with GCC 5 -Werror 2016-02-12 10:16:06 -06:00
index.c 2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-08-23 12:01:51 +00:00
local.h * libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned 2014-10-09 12:24:56 +00:00
memccpy.c * libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned 2014-10-09 12:24:56 +00:00
memchr.c * libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned 2014-10-09 12:24:56 +00:00
memcmp.c
memcpy.c * libc/sys/linux/include/netdb.h, libc/sys/linux/net/getaddrinfo.c, 2013-07-23 07:05:31 +00:00
memmem.c Make strstr and strcasestr O(n), not O(n^2); add memmem. 2008-01-12 04:25:55 +00:00
memmove.c 2013-12-10 Jeff Johnston <jjohnstn@redhat.com> 2013-12-10 18:57:30 +00:00
mempcpy.c 2010-09-21 Craig Howland <howland@LGSInnovations.com> 2010-09-22 03:15:07 +00:00
memrchr.c * libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned 2014-10-09 12:24:56 +00:00
memset.c * libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned 2014-10-09 12:24:56 +00:00
rawmemchr.c * libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned 2014-10-09 12:24:56 +00:00
rindex.c 2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-08-23 12:01:51 +00:00
stpcpy.c * libc/sys/linux/include/netdb.h, libc/sys/linux/net/getaddrinfo.c, 2013-07-23 07:05:31 +00:00
stpncpy.c * libc/sys/linux/include/netdb.h, libc/sys/linux/net/getaddrinfo.c, 2013-07-23 07:05:31 +00:00
str-two-way.h * lib/str-two-way.h (two_way_long_needle): Avoid bug with long 2010-10-06 09:29:35 +00:00
strcasecmp.c 2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-08-23 12:01:51 +00:00
strcasestr.c * libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned 2014-10-09 12:24:56 +00:00
strcat.c * libc/sys/linux/include/netdb.h, libc/sys/linux/net/getaddrinfo.c, 2013-07-23 07:05:31 +00:00
strchr.c Optimize the generic strchr. 2008-05-22 02:31:46 +00:00
strchrnul.c strchrnul: avoid segv 2011-04-15 20:26:05 +00:00
strcmp.c
strcoll.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
strcpy.c Avoid more compiler warnings. 2007-05-29 21:26:59 +00:00
strcspn.c
strdup.c
strdup_r.c
strerror.c * libc/string/strerror.c: Fix documentation so makedoc doesn't 2014-07-30 08:02:12 +00:00
strerror_r.c strerror: allow user hook to comply with POSIX rules 2011-05-25 18:41:10 +00:00
strings.tex Use source files which have makedoc markup, but aren't processed or included. 2015-06-24 12:24:01 +01:00
strlcat.c
strlcpy.c
strlen.c 2008-05-26 Eric Blake <ebb9@byu.net> 2008-05-26 22:56:14 +00:00
strlwr.c 2009-04-23 Mike Burgess <wizardsguild@earthlink.net> 2009-04-23 18:11:22 +00:00
strncasecmp.c 2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-08-23 12:01:51 +00:00
strncat.c 2013-08-08 Freddie Chopin <freddie_chopin@op.pl> 2013-08-08 15:17:09 +00:00
strncmp.c
strncpy.c * libc/sys/linux/include/netdb.h, libc/sys/linux/net/getaddrinfo.c, 2013-07-23 07:05:31 +00:00
strndup.c
strndup_r.c 2006-02-13 Jeff Johnston <jjohnstn@redhat.com> 2006-02-13 17:27:50 +00:00
strnlen.c 2006-02-13 Jeff Johnston <jjohnstn@redhat.com> 2006-02-13 17:27:50 +00:00
strpbrk.c
strrchr.c Avoid more compiler warnings. 2007-05-29 21:26:59 +00:00
strsep.c
strsignal.c * libc/string/strsignal.c (strsignal): Avoid duplicate case statement where 2010-05-18 14:52:38 +00:00
strspn.c
strstr.c Make strstr and strcasestr O(n), not O(n^2); add memmem. 2008-01-12 04:25:55 +00:00
strtok.c Add missing semicolons to prototypes. 2015-11-02 16:34:49 -05:00
strtok_r.c * libc/sys/linux/include/netdb.h, libc/sys/linux/net/getaddrinfo.c, 2013-07-23 07:05:31 +00:00
strupr.c 2009-04-23 Mike Burgess <wizardsguild@earthlink.net> 2009-04-23 18:11:22 +00:00
strxfrm.c * libc/sys/linux/include/netdb.h, libc/sys/linux/net/getaddrinfo.c, 2013-07-23 07:05:31 +00:00
swab.c
timingsafe_bcmp.c Add timingsafe_bcmp() 2016-03-18 12:33:40 +01:00
timingsafe_memcmp.c Add timingsafe_memcmp() 2016-03-18 12:33:40 +01:00
u_strerr.c * libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned 2014-10-09 12:24:56 +00:00
wcpcpy.c Remove stray punctuation in ANSI_SYNOPSIS prototypes 2015-06-23 17:30:07 +01:00
wcpncpy.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
wcscasecmp.c * libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare. 2009-03-11 12:57:53 +00:00
wcscat.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
wcschr.c
wcscmp.c
wcscoll.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
wcscpy.c Remove stray punctuation in ANSI_SYNOPSIS prototypes 2015-06-23 17:30:07 +01:00
wcscspn.c
wcsdup.c 2009-03-25 Jeff Johnston <jjohnstn@redhat.com> 2009-03-25 17:57:11 +00:00
wcslcat.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
wcslcpy.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
wcslen.c
wcsncasecmp.c * libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare. 2009-03-11 12:57:53 +00:00
wcsncat.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
wcsncmp.c
wcsncpy.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
wcsnlen.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
wcspbrk.c
wcsrchr.c
wcsspn.c
wcsstr.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
wcstok.c Add missing semicolons to prototypes. 2015-11-02 16:34:49 -05:00
wcstrings.tex * libc/time/time.tex (wcsftime.def): Include. 2009-03-12 15:34:57 +00:00
wcswidth.c * libc/string/local.h: New file. 2009-05-15 11:40:28 +00:00
wcsxfrm.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
wcwidth.c 2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-08-23 11:59:56 +00:00
wmemchr.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
wmemcmp.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
wmemcpy.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
wmemmove.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
wmemset.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
xpg_strerror_r.c strerror: allow user hook to comply with POSIX rules 2011-05-25 18:41:10 +00:00