X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Ftemp-file.h;h=499c1e34884df8aa4d6427b142366e800644bad1;hb=7235f7f42b61c2b111174c3ee5ca72aac8815cd5;hp=5965d544ae9cdb5bbb711e633cd33d262db534dd;hpb=70514b3f2f32d57e58b04c01c83bc5f372559824;p=pspp
diff --git a/src/libpspp/temp-file.h b/src/libpspp/temp-file.h
index 5965d544ae..499c1e3488 100644
--- a/src/libpspp/temp-file.h
+++ b/src/libpspp/temp-file.h
@@ -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
@@ -14,20 +14,14 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see . */
-/* 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
-#include
+#include
-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 *);
-#endif /* libpspp/temp-file.h */
+#endif /* libpspp/ext-array.h */