From 3986dc9b9224ac750cb0e6b870bd2430778b5fa2 Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Tue, 17 Apr 2007 22:25:45 +0000 Subject: [PATCH] Point P_tmpdir to /tmp instead of /var/tmp. Temp files are much better of placed in /tmp than in the not-so-volatile /var/tmp. Additionally, people might get space issues or might have tuned their /tmp for speed, but not /var/tmp. Libiberty, among other consumers is using P_tmpdir to place the temp files, leading compiler temp files being created in /var/tmp. --- include/stdio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/stdio.h b/include/stdio.h index 1c7ea505f1..75b4442439 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -35,7 +35,7 @@ * * @(#)stdio.h 8.5 (Berkeley) 4/29/95 * $FreeBSD: src/include/stdio.h,v 1.24.2.5 2002/11/09 08:07:20 imp Exp $ - * $DragonFly: src/include/stdio.h,v 1.11 2005/08/27 21:35:01 joerg Exp $ + * $DragonFly: src/include/stdio.h,v 1.12 2007/04/17 22:25:45 corecode Exp $ */ #ifndef _STDIO_H_ @@ -139,7 +139,7 @@ __END_DECLS /* System V/ANSI C; this is the wrong way to do this, do *not* use these. */ #ifndef _ANSI_SOURCE -#define P_tmpdir "/var/tmp/" +#define P_tmpdir "/tmp/" #endif #define L_tmpnam 1024 /* XXX must be == PATH_MAX */ #define TMP_MAX 308915776 -- 2.41.0