| Allegro CL version 8.2 Unrevised from 8.1 to 8.2. 8.1 version | ||||||||||
Arguments:
Returns the pathname of the temporary directory used by the current
running Lisp for writing temporary files and sets, if necessary, the
value of sys:*temporary-directory* to that
directory.
This function works as follows:
sys:*temporary-directory* is examined. If
its value is nil, a new temporary directory
is selected using the algorithm below.
sys:*temporary-directory* is returned. If
the value returned by probe-file
is nil, then a new temporary directory is
selected using the algorithm below.
In a freshly installed Lisp image, the initial value
of sys:*temporary-directory*
is nil. However, in a user-built image (made
with dumplisp or
build-lisp-image or
generate-application), sys:*temporary-directory* may have been
given a value, which might or might not be a valid value on the
machine where the image is run. If it is not a valid value, the
behavior is the same as when the value
is nil. But it can happen (perhaps
unexpectedly) that the value is valid and in that case it is used.
If a temporary directory must be chosen, it is chosen according to the following algorithms.
On UNIX and the Mac: #p"/tmp/".
On Windows: the first of the following to be a valid directory is used:
When a directory is chosen by this algorithm, the value
of sys:*temporary-directory* is set to it.
This function does not work with setf. It is
informational only. You can change the temporary directory by changing
the value of sys:*temporary-directory* to the desired
directory pathname. Whenever this function is called, it tests
whether (probe-file sys:*temporary-directory*)
returns true, returning the value of sys:*temporary-directory* when it
is. If (probe-file sys:*temporary-directory*)
returns nil, a new value is chosen using the
algorithm above. Changing the temporary directory is not recommended.
Copyright (c) 1998-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.1 page.
Created 2010.1.21.
| Allegro CL version 8.2 Unrevised from 8.1 to 8.2. 8.1 version | ||||||||||