Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/include Pull up following revision(s) (requested by mrg i...



details:   https://anonhg.NetBSD.org/src/rev/a1a59d452f22
branches:  netbsd-9
changeset: 746406:a1a59d452f22
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Mar 30 18:54:56 2020 +0000

description:
Pull up following revision(s) (requested by mrg in ticket #811):

        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.

diffstat:

 include/stdio.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 805534722694 -r a1a59d452f22 include/stdio.h
--- a/include/stdio.h   Mon Mar 30 18:47:33 2020 +0000
+++ b/include/stdio.h   Mon Mar 30 18:54:56 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdio.h,v 1.97 2016/03/17 00:42:49 christos Exp $      */
+/*     $NetBSD: stdio.h,v 1.97.18.1 2020/03/30 18:54:56 martin Exp $   */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -193,7 +193,7 @@
 
 /* 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 <limits.h> */



Home | Main Index | Thread Index | Old Index