work on PRINT encoding
[pspp] / src / libpspp / temp-file.h
index 5965d544ae9cdb5bbb711e633cd33d262db534dd..186266574ec33966153eef15cac74976ac16363f 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
-/* A interface to allow a temporary file to be treated as an
-   array of data. */
+/* Functions for temporary files that honor $TMPDIR. */
 
 #ifndef LIBPSPP_TEMP_FILE_H
 #define LIBPSPP_TEMP_FILE_H 1
 
-#include <stdbool.h>
-#include <sys/types.h>
+#include <stdio.h>
 
-struct temp_file *temp_file_create (void);
-bool temp_file_destroy (struct temp_file *);
-bool temp_file_read (const struct temp_file *, off_t offset, size_t n, void *);
-bool temp_file_write (struct temp_file *, off_t offset, size_t n,
-                      const void *);
-bool temp_file_error (const struct temp_file *);
+FILE *create_temp_file (void);
+void close_temp_file (FILE *);
+const char *temp_dir_name (void);
 
-#endif /* libpspp/temp-file.h */
+
+#endif /* libpspp/ext-array.h */