Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2012 23:30:19 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r232277 - stable/9/include
Message-ID:  <201202282330.q1SNUJ2a097116@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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