Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Dec 2011 05:35:34 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228924 - head/include
Message-ID:  <201112280535.pBS5ZYc5084883@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Wed Dec 28 05:35:33 2011
New Revision: 228924
URL: http://svn.freebsd.org/changeset/base/228924

Log:
  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

Modified:
  head/include/stdio.h

Modified: head/include/stdio.h
==============================================================================
--- head/include/stdio.h	Tue Dec 27 23:53:00 2011	(r228923)
+++ head/include/stdio.h	Wed Dec 28 05:35:33 2011	(r228924)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112280535.pBS5ZYc5084883>