Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Move reallocarray under _OPENBSD_SOURCE where it belongs.
details: https://anonhg.NetBSD.org/src/rev/c314bab4fd46
branches: trunk
changeset: 336208:c314bab4fd46
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Feb 17 20:33:40 2015 +0000
description:
Move reallocarray under _OPENBSD_SOURCE where it belongs.
diffstat:
include/stdlib.h | 4 ++--
lib/libc/stdlib/reallocarray.c | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diffs (39 lines):
diff -r 53ca7ae92ab1 -r c314bab4fd46 include/stdlib.h
--- a/include/stdlib.h Tue Feb 17 20:30:44 2015 +0000
+++ b/include/stdlib.h Tue Feb 17 20:33:40 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stdlib.h,v 1.114 2015/02/17 20:29:20 joerg Exp $ */
+/* $NetBSD: stdlib.h,v 1.115 2015/02/17 20:33:40 joerg Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -125,6 +125,7 @@
strtoul(const char * __restrict, char ** __restrict, int);
#ifdef _OPENBSD_SOURCE
long long strtonum(const char *, long long, long long, const char **);
+void *reallocarray(void *, size_t, size_t);
#endif
int system(const char *);
@@ -366,7 +367,6 @@
strtoull_l(const char * __restrict, char ** __restrict, int, locale_t);
# if defined(_NETBSD_SOURCE)
-void *reallocarray(void *, size_t, size_t);
quad_t strtoq_l(const char * __restrict, char ** __restrict, int, locale_t);
u_quad_t strtouq_l(const char * __restrict, char ** __restrict, int, locale_t);
diff -r 53ca7ae92ab1 -r c314bab4fd46 lib/libc/stdlib/reallocarray.c
--- a/lib/libc/stdlib/reallocarray.c Tue Feb 17 20:30:44 2015 +0000
+++ b/lib/libc/stdlib/reallocarray.c Tue Feb 17 20:33:40 2015 +0000
@@ -14,8 +14,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#define _OPENBSD_SOURCE
#include <sys/cdefs.h>
-__RCSID("$NetBSD: reallocarray.c,v 1.1 2015/02/05 16:04:35 christos Exp $");
+__RCSID("$NetBSD: reallocarray.c,v 1.2 2015/02/17 20:33:40 joerg Exp $");
#include <sys/param.h>
#include <sys/types.h>
Home |
Main Index |
Thread Index |
Old Index