COOPY » Guide  version 0.6.5
/home/paulfitz/cvs/coopy_scm/coopy/src/libcoopy_core/gnulib/tmpdir.h
Go to the documentation of this file.
00001 /* Determine a temporary directory.
00002    Copyright (C) 2001-2002, 2009-2012 Free Software Foundation, Inc.
00003 
00004    This program is free software: you can redistribute it and/or modify
00005    it under the terms of the GNU General Public License as published by
00006    the Free Software Foundation; either version 3 of the License, or
00007    (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012    GNU General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00016 
00017 #include <stdbool.h>
00018 #include <stddef.h>
00019 
00020 /* Path search algorithm, for tmpnam, tmpfile, etc.  If DIR is
00021    non-null and exists, uses it; otherwise uses the first of $TMPDIR,
00022    P_tmpdir, /tmp that exists.  Copies into TMPL a template suitable
00023    for use with mk[s]temp.  Will fail (-1) if DIR is non-null and
00024    doesn't exist, none of the searched dirs exists, or there's not
00025    enough space in TMPL. */
00026 extern int path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx, bool try_tmpdir);
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines