This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.28.9000-107-g2bda273


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  2bda273aa37e47bb5afdaf122605440391dac7c5 (commit)
      from  3bad2358d67d371497079bba4f8eca9c0096f4e2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=2bda273aa37e47bb5afdaf122605440391dac7c5

commit 2bda273aa37e47bb5afdaf122605440391dac7c5
Author: Florian Weimer <fweimer@redhat.com>
Date:   Thu Aug 30 14:14:53 2018 +0200

    reallocarray: Declare under _DEFAULT_SOURCE
    
    Initially, this function was restricted to _GNU_SOURCE, but experience
    shows that compatibility with existing build systems is improved if we
    declare it under _DEFAULT_SOURCE as well.

diff --git a/ChangeLog b/ChangeLog
index 1719c9d..b3689a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-08-30  Florian Weimer  <fweimer@redhat.com>
+
+	* stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
+
 2018-08-30  Stefan Liebler  <stli@linux.ibm.com>
 
 	* stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
diff --git a/NEWS b/NEWS
index 639fb56..325157c 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,9 @@ Major new features:
 
 * Optimized generic sinf, cosf, sincosf and tanf.
 
+* The reallocarray function is now declared under _DEFAULT_SOURCE, not just
+  for _GNU_SOURCE, to match BSD environments.
+
 Deprecated and removed features, and other changes affecting compatibility:
 
 * The glibc.tune tunable namespace has been renamed to glibc.cpu and the
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index 8e23e93..870e02d 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -549,7 +549,7 @@ extern void *calloc (size_t __nmemb, size_t __size)
 extern void *realloc (void *__ptr, size_t __size)
      __THROW __attribute_warn_unused_result__;
 
-#ifdef __USE_GNU
+#ifdef __USE_MISC
 /* Re-allocate the previously allocated block in PTR, making the new
    block large enough for NMEMB elements of SIZE bytes each.  */
 /* __attribute_malloc__ is not used, because if reallocarray returns

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog       |    4 ++++
 NEWS            |    3 +++
 stdlib/stdlib.h |    2 +-
 3 files changed, 8 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]