CVS commit: [netbsd-8] src/include
Module Name:src Committed By: martin Date: Sun Mar 29 12:08:38 UTC 2020 Modified Files: src/include [netbsd-8]: stdio.h Log Message: Pull up following revision(s) (requested by mrg in ticket #1526): include/stdio.h: revision 1.98 move P_tmpdir from "/var/tmp/" to "/tmp/". the main effect of this is to make GCC and other libiberty using tools use /tmp instead of /var/tmp for compiler temp files, which can be a bottleneck on larger systems. a survey of other platforms shows only OSX also uses /var/tmp, everyone else has switched to /tmp long ago. cons: some smaller systems may have a smaller /tmp than /var/tmp, and this may cause builds to fail with out of space earlier. point the build to /var/tmp using TMPDIR in this case. one can argue that setting TMPDIR would work around this, but we want to have the effect for all users without having special setup. To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.97.8.1 src/include/stdio.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/include/stdio.h diff -u src/include/stdio.h:1.97 src/include/stdio.h:1.97.8.1 --- src/include/stdio.h:1.97 Thu Mar 17 00:42:49 2016 +++ src/include/stdio.h Sun Mar 29 12:08:37 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: stdio.h,v 1.97 2016/03/17 00:42:49 christos Exp $ */ +/* $NetBSD: stdio.h,v 1.97.8.1 2020/03/29 12:08:37 martin Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -193,7 +193,7 @@ __END_DECLS /* System V/ANSI C; this is the wrong way to do this, do *not* use these. */ #if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) -#define P_tmpdir "/var/tmp/" +#define P_tmpdir "/tmp/" #endif #define L_tmpnam 1024 /* XXX must be == PATH_MAX */ /* Always ensure that this is consistent with */
CVS commit: [netbsd-8] src/include
Module Name:src Committed By: martin Date: Sun Dec 8 10:32:41 UTC 2019 Modified Files: src/include [netbsd-8]: monetary.h Log Message: Pull up following revision(s) (requested by kre in ticket #1470): include/monetary.h: revision 1.4 PR lib/54744 (br...@haible.de) Add missing __END_DECLS for C++ compiles. XXX pullup -9 XXX pullup -8 (bug not present in -7). To generate a diff of this commit: cvs rdiff -u -r1.2.56.1 -r1.2.56.2 src/include/monetary.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/include/monetary.h diff -u src/include/monetary.h:1.2.56.1 src/include/monetary.h:1.2.56.2 --- src/include/monetary.h:1.2.56.1 Tue Aug 29 11:51:51 2017 +++ src/include/monetary.h Sun Dec 8 10:32:41 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: monetary.h,v 1.2.56.1 2017/08/29 11:51:51 martin Exp $ */ +/* $NetBSD: monetary.h,v 1.2.56.2 2019/12/08 10:32:41 martin Exp $ */ /*- * Copyright (c) 2001 Alexey Zelkin @@ -52,6 +52,7 @@ typedef struct _locale *locale_t; __BEGIN_DECLS ssize_t strfmon_l(char * __restrict, size_t, locale_t, const char * __restrict, ...) __attribute__((__format__(__strfmon__, 4, 5))); +__END_DECLS #endif __BEGIN_DECLS
CVS commit: [netbsd-8] src/include
Module Name:src Committed By: snj Date: Sun Feb 25 23:53:59 UTC 2018 Modified Files: src/include [netbsd-8]: string.h Log Message: Pull up following revision(s) (requested by kamil in ticket #561): include/string.h: 1.52 Mark in string.h: memccpy(3) and strdup(3) as _POSIX_C_SOURCE >= 2001 To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.51.6.1 src/include/string.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/include/string.h diff -u src/include/string.h:1.51 src/include/string.h:1.51.6.1 --- src/include/string.h:1.51 Wed Oct 12 20:01:22 2016 +++ src/include/string.h Sun Feb 25 23:53:59 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: string.h,v 1.51 2016/10/12 20:01:22 christos Exp $ */ +/* $NetBSD: string.h,v 1.51.6.1 2018/02/25 23:53:59 snj Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -74,7 +74,8 @@ int strerror_r(int, char *, size_t); #endif /* _POSIX_C_SOURCE >= 199506 || XOPEN_SOURCE >= 500 || ... */ size_t strxfrm(char * __restrict, const char * __restrict, size_t); -#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) +#if (_POSIX_C_SOURCE - 0 >= 200112L) || defined(_XOPEN_SOURCE) || \ +defined(_NETBSD_SOURCE) void *memccpy(void *, const void *, int, size_t); char *strdup(const char *); #endif