blob: 051b339b5bfb555231602e35f1774a8b2c0287f9 [file]
<html lang="en">
<head>
<title>TMPDIR - The GNU Fortran Compiler</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="The GNU Fortran Compiler">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Runtime.html#Runtime" title="Runtime">
<link rel="next" href="GFORTRAN_005fSTDIN_005fUNIT.html#GFORTRAN_005fSTDIN_005fUNIT" title="GFORTRAN_STDIN_UNIT">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
Copyright (C) 1999-2013 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being ``Funding Free Software'', the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below). A copy of the license is included in the section entitled
``GNU Free Documentation License''.
(a) The FSF's Front-Cover Text is:
A GNU Manual
(b) The FSF's Back-Cover Text is:
You have freedom to copy and modify this GNU Manual, like GNU
software. Copies published by the Free Software Foundation raise
funds for GNU development.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<a name="TMPDIR"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="GFORTRAN_005fSTDIN_005fUNIT.html#GFORTRAN_005fSTDIN_005fUNIT">GFORTRAN_STDIN_UNIT</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Runtime.html#Runtime">Runtime</a>
<hr>
</div>
<h3 class="section">3.1 <samp><span class="env">TMPDIR</span></samp>&mdash;Directory for scratch files</h3>
<p>When opening a file with <code>STATUS='SCRATCH'</code>, GNU Fortran tries to
create the file in one of the potential directories by testing each
directory in the order below.
<ol type=1 start=1>
<li>The environment variable <samp><span class="env">TMPDIR</span></samp>, if it exists.
<li>On the MinGW target, the directory returned by the <code>GetTempPath</code>
function. Alternatively, on the Cygwin target, the <samp><span class="env">TMP</span></samp> and
<samp><span class="env">TEMP</span></samp> environment variables, if they exist, in that order.
<li>The <code>P_tmpdir</code> macro if it is defined, otherwise the directory
<samp><span class="file">/tmp</span></samp>.
</ol>
</body></html>