This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Export timingsafe_bcmp and timingsafe_memcmp
- From: Jon TURNEY <jturney at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 7 Mar 2017 18:42:05 -0000
- Subject: [newlib-cygwin] Export timingsafe_bcmp and timingsafe_memcmp
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b9498f17f962bdbdb743f413f753a3639d9f9867
commit b9498f17f962bdbdb743f413f753a3639d9f9867
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date: Mon Mar 6 17:54:42 2017 +0000
Export timingsafe_bcmp and timingsafe_memcmp
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Diff:
---
winsup/cygwin/common.din | 2 ++
winsup/cygwin/include/cygwin/version.h | 3 ++-
winsup/cygwin/release/2.7.1 | 1 +
winsup/doc/posix.xml | 2 ++
4 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/winsup/cygwin/common.din b/winsup/cygwin/common.din
index 8c9af21..6cbb012 100644
--- a/winsup/cygwin/common.din
+++ b/winsup/cygwin/common.din
@@ -1437,6 +1437,8 @@ timer_gettime SIGFE
timer_settime SIGFE
times SIGFE
timezone SIGFE
+timingsafe_bcmp NOSIGFE
+timingsafe_memcmp NOSIGFE
tmpfile SIGFE
tmpnam SIGFE
toascii NOSIGFE
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h
index b647ae9..308bc8b 100644
--- a/winsup/cygwin/include/cygwin/version.h
+++ b/winsup/cygwin/include/cygwin/version.h
@@ -471,12 +471,13 @@ details. */
304: Export strerror_l, strptime_l, wcsftime_l.
305: [f]pathconf flag _PC_CASE_INSENSITIVE added.
306: Export getentropy, getrandom.
+ 307: Export timingsafe_bcmp, timingsafe_memcmp.
Note that we forgot to bump the api for ualarm, strtoll, strtoull,
sigaltstack, sethostname. */
#define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 306
+#define CYGWIN_VERSION_API_MINOR 307
/* There is also a compatibity version number associated with the shared memory
regions. It is incremented when incompatible changes are made to the shared
diff --git a/winsup/cygwin/release/2.7.1 b/winsup/cygwin/release/2.7.1
index 9657e1d..227d7a2 100644
--- a/winsup/cygwin/release/2.7.1
+++ b/winsup/cygwin/release/2.7.1
@@ -1,6 +1,7 @@
What's new:
-----------
+- New API: timingsafe_bcmp, timingsafe_memcmp
What changed:
-------------
diff --git a/winsup/doc/posix.xml b/winsup/doc/posix.xml
index e80da4d..fac32b7 100644
--- a/winsup/doc/posix.xml
+++ b/winsup/doc/posix.xml
@@ -1232,6 +1232,8 @@ also IEEE Std 1003.1-2008 (POSIX.1-2008).</para>
strlcat
strlcpy
strsep
+ timingsafe_bcmp
+ timingsafe_memcmp
updwtmp
valloc
verr