svn commit: r232277 - stable/9/include

Xin LI delphij at FreeBSD.org
Tue Feb 28 23:30:19 UTC 2012


Author: delphij
Date: Tue Feb 28 23:30:19 2012
New Revision: 232277
URL: http://svn.freebsd.org/changeset/base/232277

Log:
  MFC r228924:
  
  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.

Modified:
  stable/9/include/stdio.h
Directory Properties:
  stable/9/include/   (props changed)

Modified: stable/9/include/stdio.h
==============================================================================
--- stable/9/include/stdio.h	Tue Feb 28 22:30:58 2012	(r232276)
+++ stable/9/include/stdio.h	Tue Feb 28 23:30:19 2012	(r232277)
@@ -202,7 +202,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


More information about the svn-src-all mailing list