From 41d91b4c7bafe88f7a31de5b7f896a4fd93552cc Mon Sep 17 00:00:00 2001 From: delphij Date: Wed, 28 Dec 2011 05:35:33 +0000 Subject: In POSIX.1-2008: P_tmpdir [OB XSI] Default directory prefix for tempnam(). This macro is used in a lot of places in legacy applications, and is why we see a lot of programs written for e.g. Linux store volatile temporary files in /var/tmp and not /tmp. MFC after: 2 months --- include/stdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/stdio.h') diff --git a/include/stdio.h b/include/stdio.h index 0ae4d8a..02032d9 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -205,7 +205,7 @@ __END_DECLS /* System V/ANSI C; this is the wrong way to do this, do *not* use these. */ #if __XSI_VISIBLE -#define P_tmpdir "/var/tmp/" +#define P_tmpdir "/tmp/" #endif #define L_tmpnam 1024 /* XXX must be == PATH_MAX */ #define TMP_MAX 308915776 -- cgit v1.1