aboutsummaryrefslogtreecommitdiffstats
path: root/include/stdio.h
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2011-12-28 05:35:33 +0000
committerXin LI <delphij@FreeBSD.org>2011-12-28 05:35:33 +0000
commitc8fb747dc10ec2e99602b237a8fd5172b7c2308b (patch)
treed68874e281fca8cbd6e96e4b3277cea3ae067f21 /include/stdio.h
parent9800a50f2df93441011380dd6ce635583a4b0413 (diff)
downloadsrc-c8fb747dc10ec2e99602b237a8fd5172b7c2308b.tar.gz
src-c8fb747dc10ec2e99602b237a8fd5172b7c2308b.zip
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
Notes
Notes: svn path=/head/; revision=228924
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 0ae4d8a6a66a..02032d9788fd 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