00001 #ifndef CLASSLIB_SYSAPI_TEMP_FILE_H
00002 # define CLASSLIB_SYSAPI_TEMP_FILE_H
00003
00004
00005
00006 # include <cerrno>
00007 # ifdef _WIN32
00008 # include <windows.h>
00009 # include "classlib/sysapi/WindowsIO.h"
00010 # else
00011 # include <unistd.h>
00012 # include <sys/stat.h>
00013 # include <fcntl.h>
00014 # endif
00015 # include <cstdio>
00016
00017
00018
00019 #ifndef TMP_MAX
00020 # define TMP_MAX 16384
00021 #endif
00022
00023
00024
00025
00026
00027
00028 # if !HAVE_MKDTEMP || !HAVE_MKDTEMP_DECL
00029 extern "C" char *mkdtemp (char *path);
00030 # endif
00031
00032 # if !HAVE_MKSTEMP || !HAVE_MKSTEMP_DECL
00033 extern "C" lat::IOFD mkstemp (char *path);
00034 # endif
00035
00036
00037
00038
00039
00040 #endif // CLASSLIB_SYSAPI_TEMP_FILE_H